Modifying Android `hosts` File
1 min readOct 20, 2017
Make sure to run your emulator as writable, by using the command below:
$ emulator -avd <EMULATORNAME> -writable-system
Then remount the file system:
$ adb root
$ adb remount
$ adb push hosts system/etc/hosts
Note, your machine IP should be 10.0.2.2
.