I'm trying to edit the hosts file on the Marshmallow emulator, but I can't do it. I use ADB tool:
I start emulator using emulator.exe
adb mount
adb pull /system/etc/hosts c:\temp
Then I edit
hosts
fileADB push c:\temp\hosts /system/etc
(this step doesn't work, because I get error - "read-only file system").
Also, I tried to do adb shell
and then SU
commands and then mount -o rw,remount /system
. But every time when I try to edit hosts file, I get the error that file system is read only.
Any ideas?