From 7a1a1a92d2b10f75c86a56f2bba52784fcb10d81 Mon Sep 17 00:00:00 2001 From: Lordify Date: Tue, 5 Nov 2024 07:22:32 +0000 Subject: [PATCH] Upload files to "Module" --- Module/customize.sh | 27 +++++++++++++++++++++++++++ Module/module.prop | 6 ++++++ Module/uninstall.sh | 31 +++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 Module/customize.sh create mode 100644 Module/module.prop create mode 100644 Module/uninstall.sh diff --git a/Module/customize.sh b/Module/customize.sh new file mode 100644 index 0000000..3ce089a --- /dev/null +++ b/Module/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/module.prop b/Module/module.prop new file mode 100644 index 0000000..57e5884 --- /dev/null +++ b/Module/module.prop @@ -0,0 +1,6 @@ +id=WVC +name=WebView Changer +version=v7.5 +versionCode=75 +author=Lordify +description=Change Your WebView Implementation to Mulch, Thorium or Vanadium, Pending on Your Device. diff --git a/Module/uninstall.sh b/Module/uninstall.sh new file mode 100644 index 0000000..a1f3773 --- /dev/null +++ b/Module/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 \ No newline at end of file