Issue
I wonder how I could update host file on a android virtual device? Each time I reopen emulator it appears with defaul hosts file, so I pull hosts file everytime.
what I do now:
- emulator.exe -avd %avd_name% -partition-size 256 -gpu on
- adb.exe wait-for-device
- adb.exe remount
- adb.exe push %avd_root_dir%\hosts /system/etc
but next time when I start the emulator there is default hosts file. How to change hosts file only once?
Solution
Myabe you have to repack system.img
.
It's under sdk/systemimages/android-**/armeabi-v7a
.
Answered By - yjzhang
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.