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
- Create an avd running 2.2 (froyo,plenty of places explain how to do this so I won't)
- Download the file (attached below, root files included)
- Unzip to a location that's easy to remember and find.
- Load your emulated phone (allow it to load fully)
- 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
- 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)
- 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
- Open a command prompt (cd to the directoy where you extracted the files)
- 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:
android/instalace-marketu.txt · Poslední úprava: 17.03.2013 23:00 autor: wladik