9

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

5
  • 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, 2017 at 8:59
  • @AndyYan Hmmm, i tried disable-verity and it mounted successfully
    – Jeff Pang
    Nov 20, 2017 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, 2017 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, 2017 at 10:17
  • Don't forget to accept your own answer :)
    – Andy Yan
    Nov 22, 2017 at 1:18

1 Answer 1

15

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
6
  • after the adb reboot you will have to adb root again. Apart from that, works fine
    – Krystian
    Sep 10, 2019 at 5:34
  • 3
    It should be: “only on debug build, user can disable-verity. Sep 10, 2019 at 6:11
  • 2
    When I run adb reboot, the emulator goes offline permanently :( I can only restart it manually. Apr 12, 2020 at 23:06
  • same issue as user3738870 ...
    – Gizmo
    Aug 16, 2020 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, 2020 at 18:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .