Skip to content

Instantly share code, notes, and snippets.

@tagrudev
Created April 19, 2012 07:42
Show Gist options
  • Save tagrudev/2419453 to your computer and use it in GitHub Desktop.
Save tagrudev/2419453 to your computer and use it in GitHub Desktop.
Editing Android hosts file
# 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