From 89f8ac8447afa4be1dedb311a7a72b25e74b111a Mon Sep 17 00:00:00 2001 From: Lordify Date: Fri, 20 Dec 2024 10:02:17 +0000 Subject: [PATCH] Upload files to "/" --- cromite_action.sh | 12 ++++++++++++ customize.sh | 27 +++++++++++++++++++++++++++ module.prop | 6 ++++++ mulch_action.sh | 29 +++++++++++++++++++++++++++++ uninstall.sh | 31 +++++++++++++++++++++++++++++++ vanadium_action.sh | 18 ++++++++++++++++++ 6 files changed, 123 insertions(+) create mode 100644 cromite_action.sh create mode 100644 customize.sh create mode 100644 module.prop create mode 100644 mulch_action.sh create mode 100644 uninstall.sh create mode 100644 vanadium_action.sh diff --git a/cromite_action.sh b/cromite_action.sh new file mode 100644 index 0000000..15acef2 --- /dev/null +++ b/cromite_action.sh @@ -0,0 +1,12 @@ +#!/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 +sleep 1 +echo "Installing Update..." +su -c pm install --install-location 1 /data/local/tmp/CromiteWebView.apk +sleep 1 +echo "Cleaning Up..." +su -c rm -rf /data/local/tmp/CromiteWebView.apk +sleep 1 +echo "Update Done!" diff --git a/customize.sh b/customize.sh new file mode 100644 index 0000000..3ce089a --- /dev/null +++ b/customize.sh @@ -0,0 +1,27 @@ +########################################################################################## +# +# MMT Extended Config Script +# +########################################################################################## + +########################################################################################## +# Config Flags +########################################################################################## + +# Uncomment and change 'MINAPI' and 'MAXAPI' to the minimum and maximum android version for your mod +# Uncomment DYNLIB if you want libs installed to vendor for oreo+ and system for anything older +# Uncomment PARTOVER if you have a workaround in place for extra partitions in regular magisk install (can mount them yourself - you will need to do this each boot as well). If unsure, keep commented +# Uncomment PARTITIONS and list additional partitions you will be modifying (other than system and vendor), for example: PARTITIONS="/odm /product /system_ext" +MINAPI=28 +#MAXAPI=25 +#DYNLIB=true +#PARTOVER=true +#PARTITIONS="" + +########################################################################################## +# MMT Extended Logic - Don't modify anything after this +########################################################################################## + +SKIPUNZIP=1 +unzip -qjo "$ZIPFILE" 'common/functions.sh' -d $TMPDIR >&2 +. $TMPDIR/functions.sh diff --git a/module.prop b/module.prop new file mode 100644 index 0000000..b121e12 --- /dev/null +++ b/module.prop @@ -0,0 +1,6 @@ +id=WVC +name=WebView Changer +version=v1.0 +versionCode=10 +author=Lordify +description=Another Module to Change Your WebView Implementation. diff --git a/mulch_action.sh b/mulch_action.sh new file mode 100644 index 0000000..fe87560 --- /dev/null +++ b/mulch_action.sh @@ -0,0 +1,29 @@ +#!/system/bin/sh + +# Variables +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 + sleep 1 + echo "Installing Update..." + su -c pm install --install-location 1 /data/local/tmp/MulchWebView.apk + sleep 1 + echo "Cleaning Up..." + su -c rm -rf /data/local/tmp/MulchWebView.apk + sleep 1 + 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 + sleep 1 + echo "Installing Update..." + su -c pm install --install-location 1 /data/local/tmp/MulchWebView.apk + sleep 1 + echo "Cleaning Up..." + su -c rm -rf /data/local/tmp/MulchWebView.apk + sleep 1 + echo "Update Done!" +fi diff --git a/uninstall.sh b/uninstall.sh new file mode 100644 index 0000000..f64a5b5 --- /dev/null +++ b/uninstall.sh @@ -0,0 +1,31 @@ +WVAD=$(for WVA in ".com.android.webview" ".us.spotco.mulch_wv" ".com.thorium.webview" ".app.vanadium.trichromelibrary" ".app.vanadium.webview"; do ls -R /data/app/ | grep -E -m 1 "$WVA"; done) + +# Delete WebView User Data +if [[ ! -d $WVAD ]]; then + rm -rf "${WVAD%?}" +fi + +# Delete WebView User Data +for WVD in "com.android.webview" "us.spotco.mulch_wv" "com.thorium.webview" "app.vanadium.trichromelibrary" "app.vanadium.webview"; do + if [ -d "/data/data/$WVD" ]; then + rm -rf /data/data/$WVD + fi +done + +# Don't modify anything after this +if [ -f $INFO ]; then + while read LINE; do + if [ "$(echo -n $LINE | tail -c 1)" == "~" ]; then + continue + elif [ -f "$LINE~" ]; then + mv -f $LINE~ $LINE + else + rm -f $LINE + while true; do + LINE=$(dirname $LINE) + [ "$(ls -A $LINE 2>/dev/null)" ] && break 1 || rm -rf $LINE + done + fi + done < $INFO + rm -f $INFO +fi diff --git a/vanadium_action.sh b/vanadium_action.sh new file mode 100644 index 0000000..e891d6a --- /dev/null +++ b/vanadium_action.sh @@ -0,0 +1,18 @@ +#!/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 +sleep 1 +curl -o /data/local/tmp/VanadiumWebView.apk https://gitlab.com/grapheneos/platform_external_vanadium/-/raw/14/prebuilt/arm64/TrichromeWebView.apk +sleep 1 +echo "Installing Update..." +su -c pm install --install-location 1 /data/local/tmp/VanadiumTrichromeLibrary.apk +sleep 1 +su -c pm install --install-location 1 /data/local/tmp/VanadiumWebView.apk +sleep 1 +echo "Cleaning Up..." +su -c rm -rf /data/local/tmp/VanadiumTrichromeLibrary.apk +sleep 1 +su -c rm -rf /data/local/tmp/VanadiumWebView.apk +sleep 1 +echo "Update Done!"