1.Download Android market apk
$ wget http://goo.gl/dz3ZB2.Create froyo AVD
$ android create avd --target 8 --name froyo3.Start emulator
$ emulator -avd froyo -partition-size 963.Modified build.prop and comment "ro.config.nocheckin=yes"
$ adb pull /system/build.prop
$ vim build.prop
#ro.config.nocheckin=yes4.Restore to system
$ adb remount /system5.Remove SdkSetup.apk
$ adb push build.prop /system
$ adb shell rm /system/app/SdkSetup.apk6.Shut down the emulator
$ adb push GoogleServicesFramework.apk /system/app
$ adb push Vending.apk /system/app
$ adb reboot7.Remove emulator image
$ cd /path/to/avd8.Restart emulator
$ rm userdata-qemu.img userdata.img cache.img
使用自己編出來的system.img:
1.直接安裝Vending.apk和GoogleServicesFramework.apk就好了
$ adb install GoogleServicesFramework.apk2.Restart emulator
$ adb install Vending.apk
reference:
* [Android]在SDK 2.2模擬器中安裝Market
沒有留言:
張貼留言