Reputation: 1955
I have created a Virtual Device with the Android flavor I want (Android 7.0) but it has a version of Chrome that I'd like to update to a specific version. How would I go about doing that?
Upvotes: 6
Views: 13677
Reputation: 1955
Having run into this and bashed thru a few useful sites, it turns out this is rather easy BUT you have to make sure you get the right APK. With thanks to https://www.inflectra.com/support/knowledgebase/kb276.aspx
First start your emulator in writable mode. Put your virtual device name after -avd parameter.
Step 1: In Terminal execute this command:
$ $ANDROID_HOME/emulator/emulator -avd Samsung_Galaxy_S7_API_24 -writable-system
Your android emulator should now be open.
Step 2: Download the apk you want from https://www.apkmirror.com/apk/google-inc/chrome/
Mine was https://www.apkmirror.com/apk/google-inc/chrome/chrome-64-0-3282-123-release/#downloads
Step 3:
Once it downloads, drag and drop that .apk
file onto your emulator.
Wait a few minutes and then open Chrome on that device. It should be the new version.
You can confirm that by going to https://www.whatsmyua.info/
Upvotes: 4
Reputation: 2443
For me it was simple steps:
$ adb devices
(It will give you the Android emulator device name, e.g: emulator-5554)$ adb install /path/to/downloaded/chrome/apk
NOTE: Make sure no other emulator or real Android device is connected,
$ adb devices
should return you the single connected device
Above command must return Success
Open Chrome browser on Android device and check the version, it must match with the downloaded chrome version.
Upvotes: 7