Skip to content

Instantly share code, notes, and snippets.

@SauloSilva
Last active August 29, 2015 14:07
Show Gist options
  • Save SauloSilva/1f3377f4b850af43b748 to your computer and use it in GitHub Desktop.
Save SauloSilva/1f3377f4b850af43b748 to your computer and use it in GitHub Desktop.
host android
# create file adb-hosts
192.168.0.133 adm.dev
192.168.0.133 api.clickjogos.dev
192.168.0.133 clickjogos.dev
192.168.0.133 connect.clickjogos.dev
192.168.0.133 devcenter.dev
192.168.0.133 jdm.dev
192.168.0.133 m.clickjogos.dev
192.168.0.133 sso_example.clickjogos.dev
192.168.0.133 clicktracker.clickjogos.dev
192.168.0.133 clicktracker.nzn.dev
192.168.0.133 joguinhos.dev
192.168.0.133 accounts.dev
192.168.0.133 accounts.gruponzn.dev
192.168.0.133 img.dummy.com
192.168.0.133 api.mobile.dev
# create file push-hosts.sh
#!/usr/bin/env bash
adb remount
adb push adb-hosts /system/etc/hosts
# execute terminal
$ ./push-hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment