From 1f1c197c37d0891a42e6f14c3e6a57231dbdcd5b Mon Sep 17 00:00:00 2001 From: Carlo Dee Date: Sun, 20 Nov 2022 06:41:51 +0800 Subject: [PATCH] Fix not booting issue. TODO: Fix Decryption issue. --- recovery/root/init.recovery.mt6853.rc | 27 ++++++++++++++++++- .../{microtrust.rc => microtrust_cannong.rc} | 0 2 files changed, 26 insertions(+), 1 deletion(-) rename recovery/root/{microtrust.rc => microtrust_cannong.rc} (100%) 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