Obsah

Instalace marketu do emulátoru

Android 4

Download Google apps (GoogleLoginService.apk , GoogleServicesFramework.apk , Phonesky.apk) from http://wiki.rootzwiki.com/Google_Apps#Universal_Packages_2

Start your emulator:

emulator -avd VM_NAME_HERE -partition-size 500 -no-audio -no-boot-anim

Then use the following commands:

# Remount in rw mode
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system

# Allow writing to app directory on system partition
adb shell chmod 777 /system/app

# Install following apk
adb push GoogleLoginService.apk /system/app/.
adb push GoogleServicesFramework.apk /system/app/.
adb push Phonesky.apk /system/app/. # Vending.apk in older versions
adb shell rm /system/app/SdkSetup*

Zdroj: http://stackoverflow.com/questions/11154222/google-play-on-android-4-0-emulator

Android 2.2

Pomocné soubory

  1. Create an avd running 2.2 (froyo,plenty of places explain how to do this so I won't)
  2. Download the file (attached below, root files included)
  3. Unzip to a location that's easy to remember and find.
  4. Load your emulated phone (allow it to load fully)
  5. enter this command in a command prompt/terminal window (make sure you „cd“ to the directory where you extracted the files)
    adb pull /system/build.prop
  6. Remove or comment „ro.config.nocheckin=yes“ (no quotes, might be able to just change it to „no“ but I haven't tried it that way)
  7. enter these commands
adb remount
adb push build.prop /system/build.prop
adb install GoogleServicesFramework.apk
adb install Vending.apk
adb install Gmail.apk (optional but sometimes signing in here lets the market sign in)
adb shell rm /system/app/SdkSetup.apk

rootnutí emulátoru

Rooting the standard android image on the emulator

  1. Open a command prompt (cd to the directoy where you extracted the files)
  2. enter these commands
adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system
adb push su /system/xbin/su
adb shell chmod 06755 /system
adb shell chmod 06755 /system/xbin/su
adb install superuser.apk

zdroj: