Wednesday, December 21, 2011

How to use Android Market on Android Emulator 2.2

After some digging, finally I got android market working on Android emulator 2.2 running on Windows Vista. Here is the steps,:
  • Start SDK Setup.exe and create an AVD - android-2.2
  • Copy system.img coming with the SDK platform to the newly created AVD.
cd c:\Users\dliu\.android\avd\android-2.2.avd
copy c:\labs\android-sdk-windows\platforms\android-8\images\system.img .
  • Start the emulator by using command line:
c:\labs\android-sdk-windows\tools>emulator -avd android-2.2 -partition-size 96
  • Pull build.prop from the emulator for editing:
c:\labs\android-sdk-windows\tools>adb.exe pull /system/build.prop .
  • Comment out ro.config.nocheckin=yes line from the build.prop file just pulled out from the emulator.
  • Push back the updated build.prop file to the emuloator
C:\labs\android-sdk-windows\tools>adb.exe remount
C:\labs\android-sdk-windows\tools>adb.exe push build.prop /system/build.prop
C:\labs\android-sdk-windows\tools>adb.exe push c:\labs\r21-update-nexusone-modacocustomcustomrom-withadditions-chinese-signed\system\app\GoogleServicesFramework.apk /system/app
C:\labs\android-sdk-windows\tools>adb.exe push c:\labs\r21-update-nexusone-modacocustomcustomrom-withadditions-chinese-signed\system\app\Vending.apk /
system/app
C:\labs\android-sdk-windows\tools>adb shell rm /system/app/SdkSetup.apk
  • Stop the emulator and delete the files: userdata-qemu.img, userdata.img, cache.img
  • start the emulator by using command line again, you should get the Android Market in your emulator.

8 comments:

  1. This is one of the significant post.Your blog is bringing very useful post.I like your post detail.
    Android app developers

    ReplyDelete
  2. Interesting blog and i really enjoyed to visit your blog and i think most of the peoples are likes your entertainment blog because they get good enjoyment to read your information.

    ReplyDelete
  3. Excellent pieces. Keep posting such kind of information on your blog. I really impressed by your blog.
    SEO tools

    ReplyDelete
  4. can you tell me is there any problem when installing android market on window 7.

    I have followed all the steps but still there is no android market, then i try to use system.image post by other (for emulator 2.2). I got android market but there are no social applications, like twitter
    Actually i want to install twitter client that has been recently announced by android

    ReplyDelete
  5. I followed to your step and finally got the GoogleServicesFramework.apk. At first my market application didn't show up but later on trying it again it was in my emulator. This worked perfectly with windows XP.

    ReplyDelete
  6. Got problem with connection to google...

    ReplyDelete
  7. When I run the emulator, it seems that the whole image was reset. I am not able to see the market, sdksetup was still there. the build.prop was reset to original file. before closing the emulator, i have checked that build.prop was proper, sdksetup was removed. but still no luck. any ideas?

    ReplyDelete
  8. You completely match our expectation and the variety of our information.
    rooting android phone

    ReplyDelete