From a627b61631364e94a5af7d6087128120e95aaaca Mon Sep 17 00:00:00 2001 From: Nolen Johnson Date: Tue, 11 Jun 2024 13:42:23 -0400 Subject: [PATCH] sabrina: Override systemcontrol to allow NET_ADMIN * sabrina's droidlogic-res app + systemcontrol requires NET_ADMIN. Change-Id: I39a7475d9f2fb06b65f9c2adac89932d3afcc2d9 --- device.mk | 3 ++- init-files/systemcontrol_sabrina.rc | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 init-files/systemcontrol_sabrina.rc diff --git a/device.mk b/device.mk index cffd9f4..17648d7 100644 --- a/device.mk +++ b/device.mk @@ -13,7 +13,8 @@ PRODUCT_PACKAGES += \ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/init-files/init.amlogic.sku.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.amlogic.sku.rc \ $(LOCAL_PATH)/init-files/init.amlogic.wifi_buildin.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.amlogic.wifi_buildin.rc \ - $(LOCAL_PATH)/init-files/init.recovery.sabrina.rc:recovery/root/init.recovery.sabrina.rc + $(LOCAL_PATH)/init-files/init.recovery.sabrina.rc:recovery/root/init.recovery.sabrina.rc \ + $(LOCAL_PATH)/init-files/systemcontrol_sabrina.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/systemcontrol_sabrina.rc ## Kernel Modules PRODUCT_PACKAGES += \ diff --git a/init-files/systemcontrol_sabrina.rc b/init-files/systemcontrol_sabrina.rc new file mode 100644 index 0000000..5f709d3 --- /dev/null +++ b/init-files/systemcontrol_sabrina.rc @@ -0,0 +1,7 @@ +service system_control /vendor/bin/systemcontrol + override + user root + group system root media audio + interface vendor.amlogic.hardware.systemcontrol@1.0::ISystemControl default + interface vendor.amlogic.hardware.systemcontrol@1.1::ISystemControl default + capabilities NET_ADMIN -- 2.20.1