You are here:
< Back

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 superuser 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. Install the downloaded webview application with adb (‘adb install <path of your downloaded apk>’).
  9. Find the installed application’s folder. (It is usually in the /data/app folder).
  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/<your webview> /system/app’)
  12. Rename the folder to webview (with the ‘mv <old directory name> 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 <old apk name> webview.apk’ ) and set its permissions to 644. (‘chmod 644 webview.apk’)
  14. Reboot your device.

 

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