Created
April 19, 2012 07:42
-
-
Save tagrudev/2419453 to your computer and use it in GitHub Desktop.
Editing Android hosts file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You need an emulator running | |
adb remount | |
# this will get the current host file | |
adb pull /system/etc/host . | |
# open it and edit it as you wish | |
# then push it | |
adb push hosts /system/etc | |
# don't forget that once you restart the emulator the hosts file will be reset to default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment