diff --git a/README.md b/README.md index c253ba6..9a4d4e9 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,16 @@ What is this project? -A Magisk module, that changes your WebView Implementation. + A Magisk module, that changes your WebView Implementation. What is a WebView? -An APK that responsible for displaying Web based content. Usually most of the Android phone comes with Chrome (+ TrichromeLibrary) or Google's Android System WebView. + An APK that responsible for displaying Web based content. + Usually most of the Android phone comes with Chrome (+ TrichromeLibrary) or Google's Android System WebView. Prerequisite: Android phone with at least 28 API (Android 9) - Magisk installed + Magisk or KernelSU installed Internet Connection Choosable WebViews: @@ -20,13 +21,16 @@ Choosable WebViews: How to install: - Download a release with the desired/compatible WebView. - Flash in Magisk. - Run action button in Magisk app to update the installed WebView. + Download the desired WebView implementation from release page. + If you are on KernelSU, then you must flash magic_overlayfs module first (Reboot is needed!). + Flash the downloaded release and reboot. + Use the action button in Magisk/KernelSU app to update the actual WebView. Credits: topjonwhu for Magisk + Tiann for KernelSU Zackptg5 for MMT-Extended F3FFO for Open WebView module + HuskyDG for magic_overlayfs module RavePriest1 Community (mainly Nippy) for the private Forgejo \ No newline at end of file diff --git a/cromite_action.sh b/cromite_action.sh index 15acef2..a551056 100644 --- a/cromite_action.sh +++ b/cromite_action.sh @@ -1,7 +1,7 @@ #!/system/bin/sh echo "Downloading Update..." -curl -L -o /data/local/tmp/CromiteWebView.apk https://github.com/uazo/cromite/releases/latest/download/arm64_SystemWebView64.apk +curl --dns-servers 1.1.1.1,1.0.0.1 -L -o /data/local/tmp/CromiteWebView.apk https://github.com/uazo/cromite/releases/latest/download/arm64_SystemWebView64.apk sleep 1 echo "Installing Update..." su -c pm install --install-location 1 /data/local/tmp/CromiteWebView.apk diff --git a/customize.sh b/customize.sh index 3ce089a..7d58435 100644 --- a/customize.sh +++ b/customize.sh @@ -25,3 +25,14 @@ MINAPI=28 SKIPUNZIP=1 unzip -qjo "$ZIPFILE" 'common/functions.sh' -d $TMPDIR >&2 . $TMPDIR/functions.sh + +OVERLAY_IMAGE_EXTRA=0 # number of kb need to be added to overlay.img +OVERLAY_IMAGE_SHRINK=true # shrink overlay.img or not? + +# Only use OverlayFS if Magisk_OverlayFS is installed +if [ -f "/data/adb/modules/magisk_overlayfs/util_functions.sh" ] && \ + /data/adb/modules/magisk_overlayfs/overlayfs_system --test; then + ui_print "- Add support for overlayfs" + . /data/adb/modules/magisk_overlayfs/util_functions.sh + support_overlayfs && rm -rf "$MODPATH"/system +fi \ No newline at end of file diff --git a/mulch_action.sh b/mulch_action.sh index fe87560..dcc3848 100644 --- a/mulch_action.sh +++ b/mulch_action.sh @@ -6,7 +6,7 @@ ARCH=$(getprop ro.product.cpu.abi) # Updater if [[ "$ARCH" = "armeabi-v7a" ]]; then echo "Downloading Update..." - curl -o /data/local/tmp/MulchWebView.apk https://gitlab.com/divested-mobile/mulch/-/raw/master/prebuilt/arm/webview.apk + curl --dns-servers 1.1.1.1,1.0.0.1 -o /data/local/tmp/MulchWebView.apk https://gitlab.com/divested-mobile/mulch/-/raw/master/prebuilt/arm/webview.apk sleep 1 echo "Installing Update..." su -c pm install --install-location 1 /data/local/tmp/MulchWebView.apk @@ -17,7 +17,7 @@ if [[ "$ARCH" = "armeabi-v7a" ]]; then echo "Update Done!" else echo "Downloading Update..." - curl -o /data/local/tmp/MulchWebView.apk https://gitlab.com/divested-mobile/mulch/-/raw/master/prebuilt/arm64/webview.apk + curl --dns-servers 1.1.1.1,1.0.0.1 -o /data/local/tmp/MulchWebView.apk https://gitlab.com/divested-mobile/mulch/-/raw/master/prebuilt/arm64/webview.apk sleep 1 echo "Installing Update..." su -c pm install --install-location 1 /data/local/tmp/MulchWebView.apk diff --git a/vanadium_action.sh b/vanadium_action.sh index e891d6a..561c352 100644 --- a/vanadium_action.sh +++ b/vanadium_action.sh @@ -1,9 +1,9 @@ #!/system/bin/sh echo "Downloading Update..." -curl -o /data/local/tmp/VanadiumTrichromeLibrary.apk https://gitlab.com/grapheneos/platform_external_vanadium/-/raw/14/prebuilt/arm64/TrichromeLibrary.apk +curl --dns-servers 1.1.1.1,1.0.0.1 -o /data/local/tmp/VanadiumTrichromeLibrary.apk https://gitlab.com/grapheneos/platform_external_vanadium/-/raw/15/prebuilt/arm64/TrichromeLibrary.apk sleep 1 -curl -o /data/local/tmp/VanadiumWebView.apk https://gitlab.com/grapheneos/platform_external_vanadium/-/raw/14/prebuilt/arm64/TrichromeWebView.apk +curl --dns-servers 1.1.1.1,1.0.0.1 -o /data/local/tmp/VanadiumWebView.apk https://gitlab.com/grapheneos/platform_external_vanadium/-/raw/15/prebuilt/arm64/TrichromeWebView.apk sleep 1 echo "Installing Update..." su -c pm install --install-location 1 /data/local/tmp/VanadiumTrichromeLibrary.apk