Android emulator stuck on reboot after `adb disable-verity` or `adb remount`

Viewed 1366

I'm trying to enable write access to an android emulator in order to modify its hosts file but I can't get it working. Whenever the adb command (remount or disable-verity) ran successfully the reboot command makes the emulator hangs. Without executing these commands, the reboot command works as expected. Can someone help me fix this? Thanks.

1 Answers

I had exactly the same problem and solution provided here solved it:

adb root
adb shell avbctl disable-verification
adb reboot
adb root
adb remount 
Related