First of all, I would like to thank the author of the original article.TipztvInstall the Google market Android Market on the simulator,
It is very useful for me personally.It's really hard to say what it means and what it means.
Therefore, I would like to express my gratitude and hope that the translation will help my friends who encounter the same problem.
Original Author:Tipztv
Address: http://www.tech-recipes.com/rx/10004/accessing-android-market-from-android-sdk/
This article requires some basic dos knowledge, as well as the installation and use of the android SDK.
Although the android SDK is very useful to developers, it lacks an important feature: Android Market support.
Through this article, you will learn how to install Android Market on the simulator. In this way, in the latest SDK Version 2.3, you can download and try those free games and applications through the e-market.
1. download and install the SDK. Create a new simulator.
2. Go to the SDK installation directory....... /Android-sdk_r08-windows/Android-SDK-Windows/platforms/Android-9/Images(This isSDK platform Android 2.3, API 9, Revision 1The default path after installation), copySystem. imgAnd paste itC:/users/username/. Android/AVD/emulator's name. AVD
Note: here you must use your own SDK installation path, your own user documentation (and pay attention to the differences between Windows 7 and XP user documentation), your own simulator name, and I will not repeat it later)
3. download the following files
Vending.apk,Googleservicesframework.apkAndAdb.zip(This file needs to be decompressed after being downloaded)
Then, put all these files....... /Android-sdk_r08-windows/Android-SDK-Windows/tools
These files will be used later.
(In the Android 2.3 SDK, the Abd file is deleted, so we need to download it. If you are using the Android 2.2 SDK, you do not need to download ADB. Zip .)
3. PressWinkey + R, InputCMDThenEnterIn the command line window, CD changes the directory....... /Android-sdk_r08-windows/Android-SDK-Windows/tools(I used the default path to install the SDK, so here is my CD. You can modify it based on your installation of the SDK ).
4. Enter the following command:Emulator-AVD tech-recipes-partition-size 100ThenEnter(Replace it with the name of your self-built simulator.Tech-recipesPart). This command will start the simulator. Do not use SDK manager to start the simulator. Otherwise, it will be difficult.
5. Open another command line window and change the directory to CD........ /Android-sdk_r08-windows/Android-SDK-Windows/tools,Input:ADB-s emulator-5554 ShellThenEnter(Make sure that the simulator has been fully started. Check that there is a serial number at the top of your simulator window and replace it with the serial number in this command.5554Part), enterMountThenEnterThe. Command Line window is displayed as shown in. Check whether the following line can be found:/Dev/block/mtdblock0/system yaffs2 Ro 00.
6. Now, enter:Mount-O remount, RW-T yaffs2/dev/block/mtdblock0/SystemThenEnter. This will be remounted./SystemTo the read/write mode. We will copy some files/System/APPDirectory, so we must change this directory to a readable directory. How can we change it to a readable directory? Run the following command:Chmod 777/system/APP, And thenEnterAfter you have finished the operation, you can exit. EnterExit, And thenEnter. The entire process looks as follows:
7. In this stepVending.apkAndGoogleservicesframework.apkCopy the two files/System/APP. How to do it ?, In the second CLI window we opened, enter:ADB-s emulator-5554 push vending.apk/system/APP /.ThenEnter. Similarly, copying the next file is input:ADB-s emulator-5554 push googleservicesframework.apk/system/APP /.,ThenEnter. If successful, as shown in:
8. Now, you needSdksetup.apkFile from/System/APPDirectory (if you do not delete it, the SDK will restore everything in the next use). In the second command line window, enter:ADB shell RM/system/APP/sdksetup.apk,ThenEnter.
9. Close the simulator window.
10. ComingC:/users/username/. Android/AVD/emulator's name. AVDDelete the following two files::Userdata-qemu.imgAndCache. IMG.
Now everything is okay. Start the simulator as usual. For example, start the simulator from eclipse. You can see the Android Market in the Application List!
Note: Some games and applications may not work properly because they need real hardware. Such as YouTube and angry birds.
When using them, you can only hear the sound, but cannot see any images.
Transcript: Original AuthorTipztvIt is well written, well organized, illustrated, detailed, and even meticulous. I think it is a little tedious. It is very suitable for beginners and beginners to see it. For those who have basic knowledge of DOS and Unix/Linux, the entire process will soon be completed. It takes about five minutes for me to complete the process. If you are not familiar with the command line, please take a closer look at the images provided by the original author and follow the steps to explain them in detail.
Thanks again to the original authorTipztvTHX a lot!