【FAQ18076】Android 6.0 M版本默認會打開system verified boot,即在userdebug和user版本會把system映射到dm-0設備,然后再掛載。掛載前會檢查system分區數據完整性,如果system分區被惡意修改了則不允許掛載system。
userdebug版本如果需要remount system分區來push文件debug,不需要重新編譯版本disable dm-verity,只需要執行以下adb命令即可。
adb root
adb disable-verity
adb reboot
重新啟動后再執行:
adb remount即可把system分區remount成rw。
向system分區push文件后,請不要再adb enable-verity,否則就會無法開機,因此push文件后,system分區數據就發生了變化。
adb disable-verity/enable-verity 命令只能在userdebug模式下使用。user版本不支持關閉dm-verity。
如果adb不支持adb disable-verity命令,請更新android sdk platform-tools到最新版本。或直接到以下的link下載最新版的獨立adb tool。
http://forum.xda-developers.com/showthread.php?t=2317790
其他相關信息請參考https://source.android.com/security/verifiedboot/index.html
