adb remount
does not work correctly on api 29 when running from the emulator. The command works fine on all other emulators that have been tried (18, 23, 25, 2
See @KiddTang answer which seems to be an actual solution
This issue is still occurring now even with API 30 (API R)! And even when starting emulator with writable-system option: (emulator -writable-system -avd NAME_OF_DEVICE
)!
I tried following these instructions to disable-verity and reboot before remounting
Note: I am experiencing the current issue when using the emulator with the "AVD" provided "Android Sdk Images". Its possible however that this kind of images are limited somewhat. So it might not occur for other types of Android Images
$ adb root
$ adb disable-verity
$ adb reboot
$ adb wait-for-device
$ adb root
$ adb remount
$ adb shell stop
$ adb sync
$ adb shell start
$ adb reboot
$ adb push
$ adb disable-verity
$ adb reboot
$ adb remount -R
Note: adb remount -R won’t reboot if the device is already in the adb remount state.