Upload files to "Module"
This commit is contained in:
parent
77d6f7f24f
commit
7a1a1a92d2
3 changed files with 64 additions and 0 deletions
27
Module/customize.sh
Normal file
27
Module/customize.sh
Normal file
|
@ -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
|
6
Module/module.prop
Normal file
6
Module/module.prop
Normal file
|
@ -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.
|
31
Module/uninstall.sh
Normal file
31
Module/uninstall.sh
Normal file
|
@ -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
|
Loading…
Reference in a new issue