Thursday, May 4, 2017

Install Google Play Store on Android emulator (using Mac)

After successfully setting up Android Studio and creating a virtual device(android emulator), follow below steps:

A. Download Gapps make selection according to your selected device.
                                                       Ex: using Nexus 6 - API 25 - x86
1. Extract files
$unzip open_gapps-x86-7.1-micro-20170504.zip

$cd Core

2. Install lzip
$brew install lzip

3. Inside /Core extrat files from vending-all.tar.lz
$lzip vending-all.tar.lz

4. Copy Phonesky.apk to home directory
$cp vending-all/240-320-480/priv-app/Phonesky/Phonesky.apk ~/


B. Now Start emulator to push the above Phonesky.apk
1. Start your Android emulator
$./android-sdk/tools/emulator @YourDeviceName -writable-system

2. Open new terminal
$cd ~/android-sdk/platfrom-tools

3. Enter to device's shell
$adb shell
$su

4. Check where directory is mounted
$cat /proc/mounts|grep system

5. Remount
$mount -o rw,remount /dev/block/vda /system
logout shell by clicking Ctrl+d (twice)

6. Push apk
$adb root
$adb push ~/Phonesky.apk /system/priv-app/


7. Restart emulator
./adb shell stop
./adb shell start

Done, now open Google Play Store on your emulator and sign-in.




Reference:
http://linuxoidchannel.blogspot.com/2017/01/how-to-install-google-play-store-on.html

2 comments:

  1. I think you can install Play Store version on Apkpure, apptogame, ... using very quality. Less error.

    ReplyDelete
  2. Nice blog man;
    Read more about Youtube vanced apk; youtube vanced apk

    ReplyDelete