Upload files to "/"

This commit is contained in:
Lordify 2024-12-20 10:02:17 +00:00
parent bf28bcf596
commit 89f8ac8447
6 changed files with 123 additions and 0 deletions

12
cromite_action.sh Normal file
View file

@ -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!"

27
customize.sh Normal file
View 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.prop Normal file
View file

@ -0,0 +1,6 @@
id=WVC
name=WebView Changer
version=v1.0
versionCode=10
author=Lordify
description=Another Module to Change Your WebView Implementation.

29
mulch_action.sh Normal file
View file

@ -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

31
uninstall.sh Normal file
View 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

18
vanadium_action.sh Normal file
View file

@ -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!"