Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
Fix not booting issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
cd-Crypton committed Nov 19, 2022
1 parent 6a011a8 commit bd87e33
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 38 deletions.
3 changes: 1 addition & 2 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,14 @@ TW_RECOVERY_ADDITIONAL_RELINK_LIBRARY_FILES += \
PLATFORM_SECURITY_PATCH := 2099-12-31
VENDOR_SECURITY_PATCH := 2099-12-31
PLATFORM_VERSION := 99.87.36
PLATFORM_VERSION_LAST_STABLE := $(PLATFORM_VERSION)

# TWRP Configuration
TW_THEME := portrait_hdpi
#TW_Y_OFFSET := 100
#TW_H_OFFSET := -100
RECOVERY_SDCARD_ON_DATA := true
TW_INCLUDE_RESETPROP := true
#TW_INCLUDE_CRYPTO := true
TW_INCLUDE_CRYPTO := true
TW_INCLUDE_CRYPTO_FBE := true
TW_EXCLUDE_DEFAULT_USB_INIT := true
TW_EXTRA_LANGUAGES := true
Expand Down
Binary file modified prebuilt/Image.gz
Binary file not shown.
Binary file modified prebuilt/dtbo.img
Binary file not shown.
37 changes: 1 addition & 36 deletions recovery/root/init.recovery.mt6853.rc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ service keystore /system/bin/keystore /tmp/misc/keystore
disabled
seclabel u:r:recovery:s0

service keymaster-4-1-beanpod /system/bin/android.hardware.keymaster@4.1-service.beanpod
service keymaster-4-1 /system/bin/android.hardware.keymaster@4.1-service.beanpod
interface android.hardware.keymaster@4.0::IKeymasterDevice default
interface android.hardware.keymaster@4.1::IKeymasterDevice default
user root
Expand All @@ -52,44 +52,9 @@ service gatekeeper-1-0 /system/bin/android.hardware.gatekeeper@1.0-service
disabled
seclabel u:r:recovery:s0

on property:hwservicemanager.ready=true
write /proc/bootprof "start teei_daemon (on fs)"
start teei_daemon
write /proc/bootprof "start teei_daemon end (on fs)"
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

service vibrator-1-3 /system/bin/android.hardware.vibrator@1.3-service.mediatek
class hal
disabled
user root
group root
seclabel u:r:recovery:s0

service thh-2-0 /system/bin/vendor.microtrust.hardware.thh@2.0-service
class hal
disabled
user root
group root
seclabel u:r:recovery:s0
3 changes: 3 additions & 0 deletions recovery/root/microtrust.rc
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ on fs
chown system system /dev/emmcrpmb0
chown system system /dev/utr_tui
chmod 0660 /dev/utr_tui
write /proc/bootprof "start teei_daemon (on fs)"
start teei_daemon
write /proc/bootprof "start teei_daemon end (on fs)"

on property:vendor.crypto.fake_encrypt=1 && property:vold.post_fs_data_done=1
setprop vendor.soter.teei.crypto.state unencrypted
Expand Down
Binary file not shown.

0 comments on commit bd87e33

Please sign in to comment.