sabrina: Override systemcontrol to allow NET_ADMIN
authorNolen Johnson <johnsonnolen@gmail.com>
Tue, 11 Jun 2024 17:42:23 +0000 (13:42 -0400)
committerNolen Johnson <johnsonnolen@gmail.com>
Tue, 11 Jun 2024 17:42:23 +0000 (13:42 -0400)
* sabrina's droidlogic-res app + systemcontrol requires
  NET_ADMIN.

Change-Id: I39a7475d9f2fb06b65f9c2adac89932d3afcc2d9

device.mk
init-files/systemcontrol_sabrina.rc [new file with mode: 0644]

index cffd9f4d41ca768d511afb0e463387989bc7f8b3..17648d70a65f403bd5f3ad6a451ce7b8126651b2 100644 (file)
--- 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 (file)
index 0000000..5f709d3
--- /dev/null
@@ -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