Update Android System WebView on SDK Emulator
Asked Answered
G

1

18

I have a problem with my cordova app after the latest Android System WebView update (44.0.2403.39) on Android 5.x devices.

I would like to update the replicate the problem on the SDK Emulator. But the standard image of Android 5.1 comes with the WebView version 39.

Is there any way to update this component on the emulator?

I've found the APK for the update here but after installing it shows two entries on the App list on System Settings and it's not updating. So I can't replicate the problem.

Two System WebView

The first one is the view that comes with the emulator v39 and the second one is the v44

  • Also is there any way to modify the system files on the emulator to update it manually?
  • Or a programatically way to change Webview with adb shell?
Godard answered 11/6, 2015 at 15:32 Comment(0)
L
10

Did you try the M preview SDK? It contains WebView 44.

And while we are here, some more background:

  • WebView in Android AOSP (which comes with the SDK) and WebView in Android GMS (Google-branded devices) are different packages, and the OS is wired to use the corresponding package. Thus, even though it's possible to install these apks criss-cross on a different OS flavour, they will not work there.

  • WebView is updated via Play Store, which only exists on GMS devices, not on the emulator. So the AOSP version can only be updated manually.

  • But besides these package name differences, both WebView AOSP and WebView GMS are essentially the same.

  • You can even build WebView AOSP yourself. Although, this will require a beefy Linux machine to pull out.

Lamb answered 14/6, 2015 at 20:19 Comment(3)
Thanks for the info I will check Android M SDKGodard
Though it seems that Android AOSP SDKs have a way too old WebView version also in the latest SDKs.Amphisbaena
In case anyone ends up here and is wondering how to actually reinstall the AOSP version, that's answered on this question.Rosenberger

© 2022 - 2024 — McMap. All rights reserved.