Rewritten from zero...
This commit is contained in:
parent
fdf05c5313
commit
d29f719e0a
1 changed files with 16 additions and 13 deletions
29
uninstall.sh
29
uninstall.sh
|
@ -1,16 +1,19 @@
|
|||
MODDIR=${0%/*}
|
||||
|
||||
# Uninstall WebView User App
|
||||
for WVUA in "com.android.webview" "org.axpos.aosmium_wv" "app.vanadium.trichromelibrary" "app.vanadium.webview"; do
|
||||
WVUP=$(pm dump "$WVUA" | grep "codePath=/data" | grep -o "/.*")
|
||||
if [[ -d "$WVUP" ]]; then
|
||||
pm uninstall $WVUA
|
||||
fi
|
||||
done
|
||||
source $MODDIR/debloat.sh
|
||||
|
||||
# Delete WebView User Data
|
||||
for WVD in "com.android.webview" "org.axpos.aosmium_wv" "app.vanadium.trichromelibrary" "app.vanadium.webview"; do
|
||||
if [ -d /data/data/"$WVD" ]; then
|
||||
rm -rf /data/data/$WVD
|
||||
fi
|
||||
done
|
||||
# Wait for Boot Completed
|
||||
waitUntilBootCompleted() {
|
||||
resetprop -w sys.boot_completed 0 && return
|
||||
while [[ $(getprop sys.boot_completed) -eq 0 ]]; do
|
||||
sleep 10
|
||||
done
|
||||
}
|
||||
|
||||
# Uninstall Updates and Data of WebView
|
||||
(
|
||||
waitUntilBootCompleted
|
||||
sleep 3
|
||||
pm uninstall $WV1
|
||||
pm uninstall $WV2
|
||||
) &
|
Reference in a new issue