Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xposed-modules-repo/com.thinkdifferent.anywebview
AnyWebView / Any WebView is OK!
https://github.com/xposed-modules-repo/com.thinkdifferent.anywebview
android webview xposed xposed-module
Last synced: about 9 hours ago
JSON representation
AnyWebView / Any WebView is OK!
- Host: GitHub
- URL: https://github.com/xposed-modules-repo/com.thinkdifferent.anywebview
- Owner: Xposed-Modules-Repo
- License: mit
- Created: 2022-05-19T11:57:18.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-21T09:03:30.000Z (about 2 years ago)
- Last Synced: 2023-03-04T17:08:15.539Z (over 1 year ago)
- Topics: android, webview, xposed, xposed-module
- Homepage: https://github.com/neoblackxt/AnyWebView/issues
- Size: 345 KB
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AnyWebView
Any WebView is OK!
### Feature
It tries to detect all system webviews and add them to the developer options -> WebView implementation list.
![preview](https://raw.githubusercontent.com/neoblackxt/AnyWebView/master/.github/webviews.jpg)
### Usage
Android Framework should be selected in LSPosed.
A webview app must be installed for all users (or in all spaces, so-called Dual app, Second space, etc.) to be selectable. Maybe deleting redundant users is alternative.
adb command:Enable "[redundant packages](https://chromium.googlesource.com/chromium/src/+/HEAD/android_webview/docs/quick-start.md#valid-package-is-not-installed_enabled-for-all-users)" (Maybe it won't work, but that's OK.):
`adb shell cmd webviewupdate enable-redundant-packages`
Get USER_ID list:
`adb shell pm list users`
Each user entry is as follow: UserInfo{USER_ID:USERNAME:INT} , USER_ID 0 is the main user.
Install apk for specific USER_ID:
`adb install --user USER_ID PATH/TO/APK/ON/COMPUTER`
or
`adb shell pm install-existing --user USER_ID PACKAGE.NAME.OF.APK` (for apks already installed for one user)
or
`adb push PATH/TO/APK/ON/COMPUTER PATH/TO/APK/ON/PHONE` (copy an apk file to phone from computer)
`adb shell pm install --user USER_ID PATH/TO/APK/ON/PHONE`
Delete a user (NOT RECOMENDED, be careful, you may lose important data):
`adb shell pm remove-user USER_ID`
All the `adb shell pm ...` commands above can be run in an Android terminal simulator(root access granted) as `pm ...`
Reboot to take effect.
### FAQ
Can I set Chrome as the system webview implementation?
Only supported on Android 8-9, not supported on Android 10+. It is Google's policy that Google Chrome app is no longer the WebView provider in Android 10. Even though it is listed in the WebView implementation, it does not work on Android 10+. Related discussion: [AnyWebView#12](https://github.com/neoblackxt/AnyWebView/issues/12#issuecomment-1644258502)
Is Bromite/Mulch/Vanadium etc. system webview supported?
Yes.
### Learn More (For Developers)
[WebView quick start](https://chromium.googlesource.com/chromium/src/+/HEAD/android_webview/docs/quick-start.md)
[WebView for AOSP system integrators](https://chromium.googlesource.com/chromium/src/+/HEAD/android_webview/docs/aosp-system-integration.md)
[WebView Architecture](https://chromium.googlesource.com/chromium/src/+/HEAD/android_webview/docs/architecture.md)
[Installing SystemWebView](https://github.com/bromite/bromite/wiki/Installing-SystemWebView)
[android_webview/nonembedded](https://chromium.googlesource.com/chromium/src/+/HEAD/android_webview/nonembedded/)
[WebView Providers](https://chromium.googlesource.com/chromium/src/+/HEAD/android_webview/docs/webview-providers.md)
[WebViewFactory.java](https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/webkit/WebViewFactory.java)