Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install android market on emulator for all api's

How can I install android market and other apk's on the android emulator. I tried some solutions, but they don't seem to work, or are unclear.

like image 355
user804736 Avatar asked Dec 22 '11 15:12

user804736


People also ask

Can I install APK on Android emulator?

Step to install APK in Emulator : Step 1 -> Run the emulator step 2-> Paste the apk in SDK manager tools and platform-tools folders. Step 3->Run this command adb install AppNaem. APK . Wait for 2 min it's show Success Message.

Can drag and drop APK to emulator?

This method is much simpler than 1st method. We just need the APK file to install it in the Emulator. First of all, we still have to open the Emulator and after that drag, your APK file and drop it in the emulator anywhere and that's it it will simply install that app in the Emulator.

Can I download app in emulator?

Now, as soon as your emulator restarts you should be able to see the Google Play Store icon in the apps drawer. You can use it to download apps in the emulator or test any other functionality that you require.

Can we install android emulator without Android Studio?

This is the step-by-step note that answering the question: How to install and launch Android emulator without installing Android Studio itself. Set JAVA_HOME variable. or use Start -> Edit the system environment variables -> Environment variables...


Video Answer


1 Answers

As the person above says, it is not available, but you could extract the apk from the file explorer.

I used this method to install market on api 4 and 8:

If you are using windows, change the "/" to "\" and just type "android" instead of "./android"

1) go to android sdk path and create a new machine:
    * type this in terminal:
        cd "/home/<username>/.eclipse/android-sdk/tools"
    * then this  
        ./android
    * then click on Tools -> Manage AVDs...
    * create a new machine

2) start the machine and set the partition size
    * go to this path:
        cd "/home/<username>/.eclipse/android-sdk/tools"
    * open the machine (keep the terminal open)
        ./emulator @<machine name> -partition-size 96

3) modify some files, root and install apps
    * go to this path:
        cd "/home/<username>/.eclipse/android-sdk/platform-tools"
    * pull the 'build.prop' file in the platform-tools folder
        ./adb pull /system/build.prop
    * remove this line: 'ro.config.nocheckin=yes' and save
    * mount the partition to that we can write to it
        ./adb remount
    * replace the edited file
        ./adb push build.prop /system/build.prop
    * install the apps
        ./adb install "/home/<username>/Emulator files/GoogleServicesFramework.apk"
        ./adb install "/home/<username>/Emulator files/Gmail.apk"
        ./adb install "/home/<username>/Emulator files/Vending.apk"

4) root the phone
    * go to this path:
        cd "/home/<username>/.eclipse/android-sdk/platform-tools"   
    * mout system files
        ./adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system 
    * put script for su in system
        ./adb push "/home/<username>/Emulator files/su" /system/xbin/su
    * make system folder writeble
        ./adb shell chmod 06755 /system
        ./adb shell chmod 06755 /system/xbin/su
    * install super user app to manage permissions
        ./adb install superuser.apk 

5) if apps are not showing in the market:
    * go to applications -> manage applications in the emulator
    * click on google services framework -> force stop and delete cache 
    * click on market -> force stop and delete data + cache
    * restart device
like image 152
Sfawjp Awfipfawjp Avatar answered Nov 15 '22 13:11

Sfawjp Awfipfawjp