android : change hosts in emulator
(you need to make an avd (android virtual device) by using eclipse or android tools, here "my_avd".)
1. RUN EMULATOR
in avd folder (for example, "/Users//.android/avd/my_avd.avd" ),
/Applications/android-sdk-mac_86/tools/emulator -avd my_avd -partition-size 128
(if you don't change the partition size, you must meet Out of Memory error during pushing hosts into the emulator.)
2. PULL/PUSH HOSTS
in the folder "/Applications/android-sdk-mac_86/tools",
adb remout
adb pull /system/etc/hosts ./hosts
--> Edit the hosts!
adb push ./hosts /system/etc/hosts
DONE!
1. RUN EMULATOR
in avd folder (for example, "/Users/
/Applications/android-sdk-mac_86/tools/emulator -avd my_avd -partition-size 128
(if you don't change the partition size, you must meet Out of Memory error during pushing hosts into the emulator.)
2. PULL/PUSH HOSTS
in the folder "/Applications/android-sdk-mac_86/tools",
adb remout
adb pull /system/etc/hosts ./hosts
--> Edit the hosts!
adb push ./hosts /system/etc/hosts
DONE!