2018年2月20日 星期二

dm-verity (device mapper verity)


刷完第三方Recovery(TWRP) 要關掉dm-verity,
否則下次開機內核查核發現第三方Recovery,
會再寫回原始Recovery

LazyFlasher--> disable the dm-verity and force encryption
no-verity-opt-encrypt

TWRP執行此zip擋流程:
1. META-INF\com\google\android\update-binary
-->config.sh
-->boot-patcher.sh
------>patch_ramdisk()
---------->patch.d\01-no-force-encrypt
---------->patch.d\02-no-dm-verity

參考網站:
XDA - LazyFlasher - Download
Android 中的dm-verity
How to decrypt data partition, and re-encrypt data partition on OnePlus 5
A script to disable dm-verity and forced encryption 


MIUI -> Recovery recovery when boot to system
The file: /system/bin/install-recovery.sh present in stock system is responsible for that.
You can simply stop this from happening by deleting it or renaming it to install-recovery.sh.bak using any root explorer or via TWRP (Advanced -> File Manager).

沒有留言:

張貼留言