I am trying to upload a hosts file to my android emulator, and I have followed and Google'd everywhere, but I cannot get my emulator to go into rw
mode so I can upload my hosts file to it.
First I startup my Emulator so it shows up in the device list.
Next I log into the shell from the commandline:
$ adb.exe shell
Next I run the following command:
root@generic_x86:/ # mount -o rw,remount /system
I then get the following message:
mount: Read-only file system
Why can I not change the settings?
This is what I was following: https://end0tknr.wordpress.com/2015/07/19/edit-hosts-file-via-android-device-monitor-in-android-studio-and-adb-shell/
try changing the settings by opening the emulator from command prompt in writable system mode
sdkpath/emulator -avd -writable-system
and then follow root, remount,shell....
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.