Skip to content

Instantly share code, notes, and snippets.

@carwin
Created December 1, 2014 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carwin/f8a265ff16eb096e2333 to your computer and use it in GitHub Desktop.
Save carwin/f8a265ff16eb096e2333 to your computer and use it in GitHub Desktop.
Update Android emulator hosts file
adb pull /system/etc/hosts /tmp/hosts
echo "192.168.57.1 test.example.com" >> /tmp/hosts
adb remount
adb push /tmp/hosts /system/etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment