Make updating Android (System)Webview possible

You can install Android System Webview. You can do this via Aurora Store.
The latest versions of Android System Webview require trichromelibrary. The current version of Aurora Store should install it automatically when you select an app requiring it, although it does not warn you, but rather shows the three flashing balls which might lead you to think that something has gone wrong. Instead, it is downloading the library (it is very big, about 100 MB) and when it’s done you will be presented with a requester asking to install it. Remember, this can take many minutes.
If installing Android System Webview does not work straight away, try installing Google Chrome first. It will download and install thrichromelibrary. As before, you will not be warned, so wait patiently looking at the flashing balls.

1 Like

Yes you can install it, I even tried this a while ago. But I was not able to activate it in the developer settings because it didn’t show up. So you can’t use it.

1 Like

Not trying to be rude, but did you even read my post?
You can install other webviews like bromite or Google canary or beta webview. However, those aren’t allowed by (jolla’s) Android configuration(those should be added to a configuration file in the Android image) to be used as a system webview, so they only take up space and won’t do anything. Other apps can only use the many years old default webview.

More info: https://github.com/chromium/chromium/blob/main/android_webview/docs/prerelease.md

1 Like

I am not telling to install another webview, I am telling to install the regular Android System Webview. Since I did it, many apps which were working badly now appear to be working fine. Webview on Android 11 is based on trichromelibrary, therefore updating trichromelibrary you should get updated functionality.

You can install trichromelibrary and exact same version of ‘a’ webview. You still won’t be able to USE that webview for other apps.
If you did, as you say, upgrade the default system webview, please verify it in android developer settings(that it is not version 83) or install FOSS browser from example F-droid a go to a browser check page like https://www.whatismybrowser.com/

1 Like

I just tried to add a line to config_webview_package.xml inside the framework_res.apk:

<webviewprovider availableByDefault="true" description="Google Android WebView" packageName="com.google.android.webview" />

And re-generate the squashfs for the system.img; unfortunately it didn’t load properly (the android support didn’t start any more). I guess I used wrong signing for the apk. I wonder if it is the default platform key from the android 11 sdk that should be used or something else?

DId anyone manage to update the webview?

1 Like

Nice question. Tried to update on Chromium Webview (from LineageOS) - because in AppSupport of Sailfish built in Chromium Webview, not Android System Webview.

But - install fails. Not installed. Tried to off built in 83.0.4103.120 and install new version of Chromium Webview - same, not installed. Intuition feeling says that may be try to delete with root rights built-in Chromium Webview 83.xx… and install after new version of 103.0.5060.71 (for example).

If success - tell us please)

I wonder if the Webview is custom and not possible to be replaced because of the chooser that pops up when you click on the link that allows you to choose native SFOS browser. And if we installed Android’s default Webview this optipn would be gone?

You have this option also when using a link in any other app, there seems to be some “android app” that redirects the link to the sfos browser.

I think I’m affected by this with Epassi app. When trying to sign in there is a friendlycaptcha.eu that does not work.

The next 4.6.0 release will update the Android webview to version 119.

18 Likes

Sweet! Maybe this also enables Notion app.

Hello,

Nextcloud apps (I tested Nextcloud and Talk) are not working (button to connect is disabled) and the cause is likely the webview not being up to date.

Is another update of this component planned?

Or does anyone know a sailfish alternative for Nextcloud Talk? I did not find any.

Thanks

See two posts up. It isn’t released yet though.

Oh right, the update did not occur yet. I checked and the last version 4.6.0.13 came out in June. I will wait then, thanks

I use Nextcloud talk on 4.6.0.13 I don’t have any problems. When connect button is disabled you probably don’t have the certificates of your Nextcloud server in your phone. Copy the certificates on your phone and run afterwards as root the command : update-ca-trust

It was the webview. Works fine on 4.6.0.15.

Confirmed, Notion app also works on 4.6.0.15!

With apps successfully running with a modern WebView, can this bug be closed, or is the topic of self-updatable still open (but is it even reachable)?

1 Like

@ikraav, it’s good now, however it would be great if Jolla updates webview on a regular basis. It seems it’s now known how to do so :slight_smile:

1 Like