[GH-ISSUE #106] Google Play Services #77

Closed
opened 2026-03-01 15:40:02 +03:00 by kerem · 7 comments
Owner

Originally created by @mehrdad-abdoli on GitHub (Aug 4, 2018).
Original GitHub issue: https://github.com/budtmo/docker-android/issues/106

Operating System:
Ubuntu 16.04

Docker Image:
butomo1989/docker-android-x86-8.1

Docker Version:
18.03.0-ce, build 0520e24

Docker-compose version (Only if you use it):
1.20.1, build 5d8c71b

Docker Command to start docker-android:
docker-compose up -d

Expected Behavior

Google play service be updated by utils.sh

Actual Behavior

Google play services can not be updated
here is the log error:
adb: failed to install /root/google_play_services.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.google.android.gms sig natures do not match the previously installed version; ignoring!]

Originally created by @mehrdad-abdoli on GitHub (Aug 4, 2018). Original GitHub issue: https://github.com/budtmo/docker-android/issues/106 Operating System: Ubuntu 16.04 Docker Image: butomo1989/docker-android-x86-8.1 Docker Version: 18.03.0-ce, build 0520e24 Docker-compose version (Only if you use it): 1.20.1, build 5d8c71b Docker Command to start docker-android: docker-compose up -d ## Expected Behavior Google play service be updated by [utils.sh](https://github.com/butomo1989/docker-android/blob/master/src/utils.sh#L29) ## Actual Behavior Google play services can not be updated here is the log error: `adb: failed to install /root/google_play_services.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.google.android.gms sig natures do not match the previously installed version; ignoring!]`
kerem 2026-03-01 15:40:02 +03:00
Author
Owner

@mehrdad-abdoli commented on GitHub (Aug 4, 2018):

@butomo1989
I found the problem it is because IMG_TYPE has been changed to google_apis it must be google_apis_playstore
also with google_apis the appium has serious problem in installing UnicodeIME-debug.apk by setting appium cap unicodeKeyboard=true

WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command '/root/platform-tools/adb -P 5037 -s emulator-5554 install /usr/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk' exited with code 1'; Stderr: 'adb: failed to install /usr/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk: cmd: Can't find service: package'; Code: '1'

<!-- gh-comment-id:410439857 --> @mehrdad-abdoli commented on GitHub (Aug 4, 2018): @butomo1989 I found the problem it is because IMG_TYPE has been changed to google_apis it must be google_apis_playstore also with google_apis the appium has serious problem in installing UnicodeIME-debug.apk by setting appium cap unicodeKeyboard=true > WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command '/root/platform-tools/adb -P 5037 -s emulator-5554 install /usr/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk' exited with code 1'; Stderr: 'adb: failed to install /usr/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk: cmd: Can't find service: package'; Code: '1'
Author
Owner

@budtmo commented on GitHub (Aug 8, 2018):

yes, I need to change to google_apis, because play store image is a production image, so I cannot execute adb root to modify the emulator. could you help me to be able to run both google apks in the new image? @mehrdad-abdoli

<!-- gh-comment-id:411316605 --> @budtmo commented on GitHub (Aug 8, 2018): yes, I need to change to google_apis, because play store image is a production image, so I cannot execute adb root to modify the emulator. could you help me to be able to run both google apks in the new image? @mehrdad-abdoli
Author
Owner

@mehrdad-abdoli commented on GitHub (Aug 11, 2018):

@butomo1989
the script utils.sh works if disable change_language_if_needed
for change language must edit create avd or use appium locale and language caps :http://appium.io/docs/en/writing-running-appium/caps/

<!-- gh-comment-id:412254182 --> @mehrdad-abdoli commented on GitHub (Aug 11, 2018): @butomo1989 the script utils.sh works if disable change_language_if_needed for change language must edit create avd or use appium locale and language caps :http://appium.io/docs/en/writing-running-appium/caps/
Author
Owner

@budtmo commented on GitHub (Aug 11, 2018):

Thank you @mehrdad-abdoli I will take a look of it later.
The inital goal of the project is not only for Appium and I need it for different purpose as well.

<!-- gh-comment-id:412292020 --> @budtmo commented on GitHub (Aug 11, 2018): Thank you @mehrdad-abdoli I will take a look of it later. The inital goal of the project is not only for Appium and I need it for different purpose as well.
Author
Owner

@budtmo commented on GitHub (Aug 13, 2018):

disable that method do not fix the issue. are you sure that it fix the issue @mehrdad-abdoli ? could you retry it and describe the step here?

<!-- gh-comment-id:412511317 --> @budtmo commented on GitHub (Aug 13, 2018): disable that method do not fix the issue. are you sure that it fix the issue @mehrdad-abdoli ? could you retry it and describe the step here?
Author
Owner

@mehrdad-abdoli commented on GitHub (Aug 15, 2018):

@butomo1989 as I said in https://github.com/butomo1989/docker-android/issues/106#issuecomment-410439857 IMG_TYPE must be google_apis_playstore

<!-- gh-comment-id:413102152 --> @mehrdad-abdoli commented on GitHub (Aug 15, 2018): @butomo1989 as I said in https://github.com/butomo1989/docker-android/issues/106#issuecomment-410439857 IMG_TYPE must be **google_apis_playstore**
Author
Owner

@budtmo commented on GitHub (Aug 15, 2018):

then we need to find another way, because that image is production image and I cannot use root access to add other feature @mehrdad-abdoli

<!-- gh-comment-id:413123479 --> @budtmo commented on GitHub (Aug 15, 2018): then we need to find another way, because that image is production image and I cannot use root access to add other feature @mehrdad-abdoli
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-android#77
No description provided.