docker-android icon indicating copy to clipboard operation
docker-android copied to clipboard

Google Play Store missing

Open lddd opened this issue 5 years ago • 14 comments

Hello,

from the docs it says it includes Google Play Store, however i could not find one image yet where Play Store is included, which one is it?

Tested: butomo1989/docker-android-x86-7.0 butomo1989/docker-android-x86-7.1.1 butomo1989/docker-android-x86-8.0 butomo1989/docker-android-x86-9.0

thanks in advance

lddd avatar Nov 20 '18 21:11 lddd

Would like this feature back! any update on the progress?

lsaadeh avatar Feb 06 '19 04:02 lsaadeh

https://github.com/budtmo/docker-android/blob/fcb89f27027059fae5d6b1c35f3c924ef66a762f/docker/Emulator_x86#L128

Not at a PC at the moment but it appears that its still being downloaded at the very least.

billotronic avatar Feb 22 '19 22:02 billotronic

Hey @budtmo thanks for all your work, just wondering if this bug is on your roadmap for the near future? happy to help test!

lsaadeh avatar Feb 27 '19 01:02 lsaadeh

Hi all,

any update on this issue? Maybe emulator should be incorporated by default SDK packages instead of being downloaded from the Internet?

I tried to install "system-images;android-${API_LEVEL};google_apis_playstore;x86" "system-images;android-${API_LEVEL};google_apis_playstore;x86_64" "extras;google;google_play_services"

and add to .ini file PlayStore.enabled=true

but with no luck.

marad9016100 avatar Mar 08 '19 18:03 marad9016100

Hi All, I believe I've found the solution, still have to test it. When I'll be sure about solution I can create the PR.

  1. Do not use applinker, delete those lines https://github.com/budtmo/docker-android/blob/fcb89f27027059fae5d6b1c35f3c924ef66a762f/docker/Emulator_x86#L124-L128

https://github.com/budtmo/docker-android/blob/fcb89f27027059fae5d6b1c35f3c924ef66a762f/docker/Emulator_x86#L124-L128

2)Download playstore and services with SDK, add: "system-images;android-${API_LEVEL};google_apis_playstore;x86" "system-images;android-${API_LEVEL}; "extras;google;google_play_services" Please note that some images are using x64 version.

https://github.com/budtmo/docker-android/blob/fcb89f27027059fae5d6b1c35f3c924ef66a762f/docker/Emulator_x86#L114

  1. avd config.ini is by default created with: image.sysdir.1=system-images/android-{level}/google_apis/x86/

should be changed to image.sysdir.1=system-images/android-{level}/google_apis_playstore/x86/

marad9016100 avatar Mar 11 '19 10:03 marad9016100

@marad9016100 any luck?

lsaadeh avatar Mar 17 '19 02:03 lsaadeh

I did not managed to automate the solution. For now the workaround is to to build modified image locally.

For SDK 8.0 worakoround is:

  1. Modify dockerfile - copy source of the Dockerfile + add one line

FROM butomo1989/docker-android-x86-8.0 (expand this source) RUN yes | sdkmanager --licenses && sdkmanager "system-images;android-26;google_apis_playstore;x86" "extras;google;google_play_services" "system-images;android-26;default;x86"

  1. modify app.py to use google_apis_playstore instead of the google_apis

    creation_cmd = 'avdmanager create avd -f -n {name} -b google_apis_playstore/{sys_img} -k "system-images;android-{api_lvl};'
    'google_apis_playstore;{sys_img}" -d {device} -p {path}'.format(name=avd_name, img_type=IMG_TYPE, sys_img=SYS_IMG, api_lvl=API_LEVEL, device=device_name_bash, path=avd_path)

  2. build image from modifed Dockerfile

marad9016100 avatar Mar 18 '19 08:03 marad9016100

I managed to build modified image basing on https://github.com/budtmo/docker-android/blob/master/docker/Emulator_x86

still it uses Android 5.0.1. I have created image for Android 8.0, still it does not run stable - sometimes my test apps crash.

@budtmo Could you please publish all Dockerfiles or at least Dockerfile for 8.0 or 8.1 version?

marad9016100 avatar Apr 30 '19 09:04 marad9016100

I have only 1 Dockerfile for emulator and you just need to change the value by using build-arg @marad9016100 . it would be great if someone can help to solve this issue.

budtmo avatar May 03 '19 14:05 budtmo

@marad9016100 would you be willing to share what changes you had to make to the Emulator_86 image in order to get this working?

pgerlich avatar Jul 02 '19 05:07 pgerlich

Unfortunately my modifications do not result in creating the same image. There are other issues that do not reproduce on original image. Basically to get playstore all that have to be changed is: google_apis to google_apis**_playstore**

also adding this may be useful google_play_services

marad9016100 avatar Jul 12 '19 10:07 marad9016100

any progress on this one? or any known versions working?

lsaadeh avatar Jun 17 '20 00:06 lsaadeh

Hi, we are currently encountering this issue also as our app also needs playstore in order to run properly. Would like to know there is progress on this issue? or do you have suggestions/workarounds for us to have an emulator with playstore? Thanks

jaysonabilar avatar Jan 13 '21 07:01 jaysonabilar

Having playstore disables "adb root" so appium doesn't work in this case.

zek avatar Apr 10 '22 08:04 zek