How to update Chrome in Android emulator?

Hi,

I’m trying to automate E2E test cases of a hybrid app using the Ubuntu & Docker, on Ubuntu 20.04 stack and the available Android emulators (I’m using the AVD Manager step) but the Chrome version in the emulator (Pixel, Android API Level 30) seems to be very old (83.0.4103.106):

[0-0] 2022-08-11T13:40:07.136Z WARN webdriver: Request failed with status 500 due to An unknown server-side error occurred while processing the command. Original error: A new session could not be created. Details: session not created: This version of ChromeDriver only supports Chrome version 104
[0-0] Current browser version is 83.0.4103.106 with package name com.android.chrome

How can I update Chrome in the emulator?

Thank you for your attention

Can anyone assist me here please? Thank you

Steps are given below-:

Open Android emulator from AVD (Mine was Google Pixel 2 - v9.0),
Ensure Android emulator has opened successfully by $ adb devices(It will give you the Android emulator device name, e.g: emulator-5554)
Now download the Google Chrome apk from apkmirror, Mine was Version: 76.0.3809.111 (380911115) x86
Now use this command to install the downloaded Google chrome apk to the opened Android emulator: $ adb install /path/to/downloaded/chrome/apk

Above command must return Success

Open Chrome browser on Android device and check the version, it must match with the downloaded chrome version.

Done.

Regards,
Rachel Gomez

Hi Rachel,

Thanks for the reply.
I’ve tried that but when I try to download the .apk by doing
wget https://www.apkmirror.com/apk/google-inc/chrome/chrome-104-0-5112-97-release/google-chrome-fast-secure-104-0-5112-97-3-android-apk-download/download/?key=47a525bafa3a6ca33ff568f0d27aaff8c04bc442&forcebaseapk=true

I get
ERROR 503: Service Temporarily Unavailable.

How did you download the Chrome .apk to Bitrise?

This is an expiring download link. If you open it in a browser you will see an error message

The download link you clicked on has expired, please try again.

You can upload the file to the Generic File Storage on Bitrise.

Hi Damien,
Thanks for the tip. However, I cannot use Generic File Storage because it exceeds the 5MB limit.
In addition, I couldn’t find a better link yet.

Hi :slight_smile:

found two chrome apk that could be download via wget

https://r2-static-assets.androidapksfree.com/sdata/02e10eec8859e2b850ec11874a315238/com.android.chrome_v104.0.5112.97-511209710_Android-6.0.apk

https://d-01.aabstatic.com/0722/google_chrome_104.0.5112.97_androidapksbox.apk

and you could run adb install *.apk after downloaded

hope that helps :smiley:

1 Like

Hi Yi Te Lu,

Thank you so much! This worked :wink: well, worked for one device and failed for the other, but I’m checking why.

+ adb -s emulator-5554 install google_chrome_104.0.5112.97_androidapksbox.apk

Performing Streamed Install

Success

+ adb -s emulator-5556 install google_chrome_104.0.5112.97_androidapksbox.apk

adb: failed to install google_chrome_104.0.5112.97_androidapksbox.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]

Performing Streamed Install

The important thing is that there’s a way to install the Chrome version I need :slight_smile:
I won’t be able to reply to this thread in the next week but I’ll come back with the conclusion of this later error analysis.

Have a good weekend!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.