Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update Android System WebView on SDK Emulator

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?
like image 616
Carlos487 Avatar asked Jun 11 '15 15:06

Carlos487


People also ask

How do I force Android System WebView to update?

How to Fix Chrome and Android System Webview not getting updated? You can reboot your device, check your internet connection, stop auto-updating all apps, clear Google Playstore cache, and storage, leave the beta testing program, and manually update the software.

How do I update my Android emulator?

Open the Preferences window by clicking File > Settings (on Mac, Android Studio > Preferences). In the left panel, click Appearance & Behavior > System Settings > Updates. Be sure that Automatically check for updates is checked, then select a channel from the drop-down list (see figure 1). Click Apply or OK.

Is it okay to update Android System WebView?

If you have Chrome disabled and are using another browser, it's beneficial to keep the Android System WebView app since you won't have Chrome's WebView functionality. If you're really concerned, disable it. If you don't notice any issues with the apps you use, then you're fine.

How do I reinstall Android System WebView?

To do so, launch the Play store, scroll the apps on your home and locate Android System WebView. Click on Open, and now you see the disabled button, click on Enable.


1 Answers

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.

like image 174
Mikhail Naganov Avatar answered Sep 23 '22 19:09

Mikhail Naganov