Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I have installed Android Market on Android Emulator successfully using steps mention in [How to] Install Android market on Emulator

Market is installed without any issue but after emulator reboot Market is gone.

Can anyone help me in solving this problem?

SPECS

  • OS=Ubuntu 10.04
  • Android-SDK=2.3.3(API Level 10)
  • Eclipse Indigo

AVD Details:

Name: AVD

CPU/ABI: ARM(armeabi)

Path: /home/ma/.android/AVD.avd

Target: Android 2.3.3 (API level 10)

Skin: HVGA

SD Card: 512M

hw.lcd.density: 160

vm.heapSize: 24

hw.ramSize: 256

share|improve this question
    
Can show the details of your emulator? –  JPM Oct 19 '11 at 20:33
    
@JPM: Added Details. –  MA1 Oct 20 '11 at 8:15
add comment

3 Answers 3

The Android emulator is resetting the system image when rebooting. You can find the changed version of the system.img in your /tmp here:

/tmp/android-username/

It usually has a name like emulator-*. Copy that file before shutting down the emulator.

share|improve this answer
add comment

When you restart the emulator make sure that "Wipe use data" is not checked. Also update the SDK to the latest. Not sure but I remember some issues with the emulator and user data on older versions.

share|improve this answer
    
"Wipe use data" is not checked. –  MA1 Oct 20 '11 at 8:16
    
What revision # is your SDK Tools and SDK Platform tools? –  JPM Oct 20 '11 at 15:11
    
android-sdk_r13-linux_x86 –  MA1 Oct 21 '11 at 7:50
add comment

Installing the market in the emulator is not that simple because by default the system partition is resettet on every reboot of the emulator.

If you want to make the changes permanent you have to delete the file /system/app/SdkSetup.apk

If you copy afterwards the two necessary files GoogleServicesFramework.apk and Vending.apk to /system/app/ you will have an working market inside the emulator.

Hence, using the adb shell you have to execute the following commands:

mount -o remount rw /system
rm /system/app/SdkSetup.apk
adb push Vending.apk /system/app/
adb push GoogleServicesFramework.apk /system/app/

BTW: The necessary APKs can be found here: CyanogenMod Wiki Latest Version/Google Apps

share|improve this answer
3  
I already did that, but no effect. Removed the SdkSetup.apk but on reboot everything all the changes reverted back. –  MA1 Oct 20 '11 at 13:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.