diff --git a/recovery/root/init.recovery.mt6853.rc b/recovery/root/init.recovery.mt6853.rc index 86e9c13..c66b795 100644 --- a/recovery/root/init.recovery.mt6853.rc +++ b/recovery/root/init.recovery.mt6853.rc @@ -1,6 +1,6 @@ # MT6853, remove unncessary supports -import /microtrust.rc +import /microtrust_cannong.rc on init symlink /dev/block/platform/bootdevice /dev/block/bootdevice @@ -58,3 +58,28 @@ service vibrator-1-3 /system/bin/android.hardware.vibrator@1.3-service.mediatek user root group root seclabel u:r:recovery:s0 + +on property:hwservicemanager.ready=true + start keymaster-4-1-beanpod + start gatekeeper-1-0 + +on property:ro.crypto.state=unsupported + stop teei_daemon + stop keymaster-4-1-beanpod + stop gatekeeper-1-0 + stop servicemanager + stop hwservicemanager + +on property:ro.crypto.state=unencrypted + stop teei_daemon + stop keymaster-4-1-beanpod + stop gatekeeper-1-0 + stop servicemanager + stop hwservicemanager + +on property:twrp.decrypt.done=true + stop teei_daemon + stop keymaster-4-1-beanpod + stop gatekeeper-1-0 + stop servicemanager + stop hwservicemanager \ No newline at end of file diff --git a/recovery/root/microtrust.rc b/recovery/root/microtrust_cannong.rc similarity index 100% rename from recovery/root/microtrust.rc rename to recovery/root/microtrust_cannong.rc