3

I try to mount /system in Android O to RW using the command mount -o rw,remount /system, and i got this feedback on terminal dev/block/dm-0 is read-only *Already in adb root

Any idea? Thanks

  • Looks like dm-verity is in effect, which by the way can only be disabled by modifying the kernel if the OS is not a debug build. – Andy Yan Nov 20 '17 at 8:59
  • @AndyYan Hmmm, i tried disable-verity and it mounted successfully – Jeff Pang Nov 20 '17 at 9:04
  • 1
    You should then put it as an answer. I do doubt that your build is a debug one though, you should probably look inside /system/build.prop. – Andy Yan Nov 20 '17 at 10:12
  • @JeffPang I agree with Andy. When setting up your answer, please include a short step-by-step guide – not everybody is familiar with that verity stuff :) – Izzy Nov 20 '17 at 10:17
  • Don't forget to accept your own answer :) – Andy Yan Nov 22 '17 at 1:18
8

For debug build, user have to disable-verity at first.

adb root
adb disable-verity
adb reboot
adb remount
adb shell
mount -o rw,remount /system

In order to know build type of your android, in adb shell enter the following command

cat /system/build.prop | grep build.type
  • after the adb reboot you will have to adb root again. Apart from that, works fine – Krystian Sep 10 at 5:34
  • It should be: “only on debug build, user can disable-verity. – Irfan Latif Sep 10 at 6:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.