I tried to mount -o remount,rw /vendor on android P with user-debug build, and I got the feedback 'failed to mount /vendor, /dev/block/dm-5 is read only'.
I searched and it looks like dm-verity is in effect, so I tried the following cmd:
adb root
adb disable-verity //if this cmd failed, you need try 'adb reboot bootloader->fastboot flashing unlock'
adb reboot
adb disable-verity
adb reboot
Now, it still didn't work.
Then I tried to disable selinux in uboot. It worked.
解决Android P dm-verity问题
本文详细介绍了在Android P设备上遇到dm-verity导致无法读写vendor分区的问题及解决方案。作者尝试了adb disable-verity命令,但在某些情况下需要进入fastboot模式解锁设备。最终通过在u-boot中禁用SELinux成功解决了问题。
1万+

被折叠的 条评论
为什么被折叠?



