sabrina: Disable systemcontrol_static in recovery
authorNolen Johnson <johnsonnolen@gmail.com>
Mon, 11 Dec 2023 06:21:39 +0000 (01:21 -0500)
committerNolen Johnson <johnsonnolen@gmail.com>
Fri, 2 Feb 2024 07:17:20 +0000 (07:17 +0000)
Change-Id: Ia5943a6c68963add1ab41f632d522a15b7108879
(cherry picked from commit ad6740130b2636475bbe316ec4b32238b805106d)

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

index 088687c9560e26f25cbc4e8509987e9a0927c837..ec74034495552e8a59dee6e1bec810a5d5b18272 100644 (file)
--- a/device.mk
+++ b/device.mk
@@ -14,7 +14,8 @@ PRODUCT_COPY_FILES += \
     $(LOCAL_PATH)/init-files/tee_hdcp.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/tee_hdcp.rc \
     $(LOCAL_PATH)/init-files/tee_key_inject.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/tee_key_inject.rc \
     $(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.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
 
 ## Kernel Modules
 PRODUCT_PACKAGES += \
diff --git a/init-files/init.recovery.sabrina.rc b/init-files/init.recovery.sabrina.rc
new file mode 100644 (file)
index 0000000..10900e3
--- /dev/null
@@ -0,0 +1,4 @@
+service systemcontrol /system/bin/systemcontrol_static /system/etc/mesondisplay.cfg
+    disabled
+    seclabel u:r:recovery:s0
+    override