Show / Hide Table of Contents

    How to repair webview replace fail

    How to repair device after WebView replace failed

    If the WebView replace failed on your device then you have to follow these steps:
    1. Open a command prompt on your PC, and connect to your device via ADB. (https://developer.android.com/studio/command-line/adb/)
    2. Once you are connected, use the ‘adb shell’ command to access the terminal on your device.
    3. First, type ‘su’ to have super user privileges.
    4. Then move to the webview application folder (‘cd /system/app’).
    5. Here check if there is a folder called webview (‘ls -l’).
    6. If you find the webview folder then remove it (‘rm -rf webview’). Now the webview is permanently deleted from the device.
    7. Download the latest webview application from here: https://www.bromite.org/
    8. Exit from the shell with the ‘exit’ command (sometimes you have to use it twice to exit fully), and install the downloaded webview application with adb (‘adb install ’).
    9. Open the shell again (2. And 3. step), and find the installed application’s folder (‘cd /data/app/’), and if the install was successful then the com.android.webview folder will be there.
    10. Remount the device’s system partition with the ‘mount -o rw,remount /system’ command (If your device’s Android version is 9.0 or higher then use this command: ‘mount -o rw,remount /’)
    11. Go to the /system/app folder and move the installed webview application from the /data/app folder to the /system/app folder (‘mv /data/app/ /system/app’)
    12. Rename the folder to webview (with the ‘mv <old directory name (which you have just moved here in the previous step)> webview’ and set its owner and group to root, and its permission to 755 (‘chown -R root:root webview/’, ‘chmod -R 755 webview/’)
    13. Move into the webview folder with the ‘cd webview’ command, and rename the .apk file to apk (‘mv webview.apk’ ) and set its permissions to 644. (‘chmod 644 webview.apk’)
    14. Reboot your device.
    15. After the reboot clear the application data. (Settings -> Apps -> -> Clear data)

    If all the steps are done correctly then if you start the application it will start normally.

    Sorry, your browser does not support inline SVG. article updatedarticle updated5/13/2022 9:55:28 AM (UTC)5/13/2022 9:55:28 AM (UTC)
    Feedback     Back to top Copyright © Geomant