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!

이 블로그의 인기 게시물

둘 중 누군가 그녀를 죽였다, 범인 해설

[MAC OS X] mds_stores 100% CPU usage

tips more on unity ...