Android System Webview crashes

@PeterLin Can you try this link? khadas - Google Drive

I have downloaded the apk and source code successfully.And I will try to analyze the reason of crash.

1 Like

@Tomas if you have downloaded the vim4 source code,please edit frameworks/base/core/res/res/xml/config_webview_packages.xml to replace webviewproviders packageName to com.google.android.webview.

<webviewproviders>
    <!-- The default WebView implementation -->
    <!--<webviewprovider description="Android WebView" packageName="com.android.webview" availableByDefault="true">
    </webviewprovider> -->
    <webviewprovider description="Android WebView" packageName="com.google.android.webview" availableByDefault="true">
    </webviewprovider>
</webviewproviders>

And then use your newest webview apk to replace external/chromium-webview/prebuilt/arm64/webview.apk.
At last,build Android code.
If you need the firmware,please consult @goenjoy .

2 Likes

@PeterLin Thank you for that solution. I will try that. As a side note, do you know if I can change something in the build process to enable 4K UI on the vim4?

The default code is 4K UI(device/khadas/kvim/kvim4.mk: PRODUCT_SUPPORT_4K_UI := true).

VIM4:/ $ wm size
Physical size: 3840x2160
VIM4:/ $

Hello dear Khadas team, I hope you enjoyed the New Year. I have now bought a Vim4 in addition to a Vim1s, I followed @Tomas instructions to update Webview.
I use the [Fully Kiosk Browser]
(Fully Kiosk Browser Lockdown | Android Kiosk Mode App) to display my Home Assistant dashboard. Unfortunately it freezes every now and then I read errors in logcat Webview. Is there any way to get an image with a new webview version cleanly integrated? With the preinstalled version I can not display my Frigate cameras but with a V108 version works for me. That would be really nice.

@Brot123 You mean to include the firmware modified above, right? Our next version of firmware will be included. If you need it urgently, you can download the firmware in the link below.
image