Created
February 26, 2015 12:38
-
-
Save ivandoric/322d04863f41a7377148 to your computer and use it in GitHub Desktop.
android: Using Android Emulator with virtual hosts
This file contains 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
1. Copy /etc/hosts somewhere etc. /Users/username/AndroidHosts | |
2. Change copied hosts file so that you have 10.0.2.2 instead of 127.0.0.1 for every one of your virtual hosts | |
3. Start your emulator from Google SDK | |
4. When Emulator starts execute these commands | |
$ adb remount | |
$ adb push /Users/username/AndroidHosts/hosts /system/etc/ | |
Virtual hosts should work now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment