dopinder: 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>
Mon, 11 Dec 2023 06:52:28 +0000 (06:52 +0000)
Change-Id: Ia5943a6c68963add1ab41f632d522a15b7108879

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

index da93c184c40f456f924088074f125b6d0111f5f5..00edf879823ffdfe1ffb3fb0dc9bc5b47c85854e 100644 (file)
--- a/device.mk
+++ b/device.mk
@@ -18,7 +18,8 @@ endif
 
 ## Init-Files
 PRODUCT_COPY_FILES += \
-    $(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.dopinder.rc:recovery/root/init.recovery.dopinder.rc
 
 ## Kernel Modules
 PRODUCT_PACKAGES += \
diff --git a/init-files/init.recovery.dopinder.rc b/init-files/init.recovery.dopinder.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