Web view system install

1,907 views
Skip to first unread message

Shrish Dutta Dwivedi

unread,
Mar 28, 2024, 10:08:57 AM3/28/24
to android-w...@chromium.org
Sir,

Kindly install web view system in my mobile app . My mobile no.is 8779067209. By mistake I have disabled it. I can't send mail from my phone. I am using alternate phone number.

Regards,

Shrish Dutta Dwivedi 

Nate Fischer

unread,
Mar 29, 2024, 1:45:07 PM3/29/24
to Shrish Dutta Dwivedi, android-w...@chromium.org
Sorry to hear that you're having issues. Are you able to re-enable the WebView package? You should be able to find this by going into Settings > apps & notifications > all apps > Android System WebView > enable. The app should already be installed, you just need to enable it again.

If you're still having issues after that, try enabling developer settings by following these instructions. Then go into developer settings > WebView implementation > and check which options are available. If you get stuck, https://chromium.googlesource.com/chromium/src/+/master/android_webview/docs/prerelease.md#trichrome-dev has more detailed instructions. If some of the options in that menu are grayed out, can you please let us know which one?

Nate Fischer | Software Engineer | ntf...@google.com



--
You received this message because you are subscribed to the Google Groups "android-webview-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-webview...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/android-webview-dev/CAP6-oK1yrubXLFC3X8Ox%3D%3DdW6tU1Uf12-5fQ9DoCxZQN5GrkpA%40mail.gmail.com.

Ankit Kiran

unread,
Oct 16, 2024, 10:22:38 AM10/16/24
to android-webview-dev, Nate Fischer, android-w...@chromium.org, Shrish Dutta Dwivedi
Hi, Nate I am facing this exact issue in my device (R), while doing some development I mistakenly ran this command: `adb shell pm uninstall --user 0 com.google.android.webview

and now when I see Developer settings> webview implementation it shows greyed out 
can you please help me with this
thanks.

Screenshot 2024-10-13 at 10.57.05.png

Nate Fischer

unread,
Oct 16, 2024, 12:37:31 PM10/16/24
to Ankit Kiran, android-webview-dev, Shrish Dutta Dwivedi
Not an easy fix. Simplest thing is to give up and reflash the device—it sounds like this is a development device, so hopefully you don't have important user data on there. If reflashing isn't an option, then give this a try:

1. $ adb shell pm dump com.google.android.webview

Read this command output very carefully. You're looking for something that looks like this:
Dexopt state:
  [com.google.android.webview]
    path: /data/app/<something>/com.google.android.webview-<somethingelse>/base.apk
      x86_64: [status=verify] [reason=install] [primary-abi]
        [location is /data/app/<something>/com.google.android.webview-<somethingelse>/oat/x86_64/base.odex]

2. $ adb shell pm install --user 0 /data/app/<something>/com.google.android.webview-<somethingelse>/base.apk

This command will print "Success" if it worked. You need to make sure to replace <something> and <somethingelse> with the appropriate values that are printed by the first command. You should use the "--user 0" flag argument since you said you removed it from user 0, however if other people have the same issue then they'll need to use a different flag argument for the appropriate user number (0 is a common user number, however the secondary profile might have a different number).

3. $ adb shell dumpsys webviewupdate
Current WebView Update Service state
  Multiprocess enabled: true
  Current WebView package (name, version): (com.google.android.webview, 113.0.5672.136)
  Minimum targetSdkVersion: 33
  Minimum WebView version code: 567263637
  Number of relros started: 1
  Number of relros finished: 1
  WebView package dirty: false
  Any WebView package installed: true
  Preferred WebView package (name, version): (com.google.android.webview, 113.0.5672.136)
  WebView packages:
    Valid package com.google.android.webview (versionName: 113.0.5672.136, versionCode: 567263637, targetSdkVersion: 34) is  installed/enabled for all users
    com.google.android.webview.beta is NOT installed.
    com.google.android.webview.dev is NOT installed.
    com.google.android.webview.canary is NOT installed.
    com.google.android.webview.debug is NOT installed.
    com.android.webview is NOT installed.

The command update should look something like this. The key thing to look for is that you want to see "Current WebView package... com.google.android.webview" and "Valid package com.google.android.webview... installed/enabled for all users." If the command output looks unexpected, then you have one more step to do.

$ adb shell cmd webviewupdate set-webview-implementation com.google.android.webview

This should be the final command to get everything back the way it should be. You can repeat the command in step 3 to verify that everything looks good again.
Nate Fischer | Software Engineer | ntf...@google.com

Reply all
Reply to author
Forward
0 new messages