Modifying Android `hosts` File

Aditya Purwa
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.

--

--

Aditya Purwa

Building Playtune (https://playtune.app) - Software engineer, writer, designer, and artist.