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

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 '19 at 5:34
  • 2
    It should be: “only on debug build, user can disable-verity. Sep 10 '19 at 6:11
  • 2
    When I run adb reboot, the emulator goes offline permanently :( I can only restart it manually. Apr 12 '20 at 23:06
  • same issue as user3738870 ...
    – Gizmo
    Aug 16 '20 at 17:48
  • 2
    since android 10/11 it's not possible, you have to create a tmpfs: medium.com/@anthony.f.tannous/…
    – Gizmo
    Aug 16 '20 at 18:24

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.