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%/*}
|
MODDIR=${0%/*}
|
||||||
|
|
||||||
# Uninstall WebView User App
|
source $MODDIR/debloat.sh
|
||||||
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
|
|
||||||
|
|
||||||
# Delete WebView User Data
|
# Wait for Boot Completed
|
||||||
for WVD in "com.android.webview" "org.axpos.aosmium_wv" "app.vanadium.trichromelibrary" "app.vanadium.webview"; do
|
waitUntilBootCompleted() {
|
||||||
if [ -d /data/data/"$WVD" ]; then
|
resetprop -w sys.boot_completed 0 && return
|
||||||
rm -rf /data/data/$WVD
|
while [[ $(getprop sys.boot_completed) -eq 0 ]]; do
|
||||||
fi
|
sleep 10
|
||||||
done
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
# Uninstall Updates and Data of WebView
|
||||||
|
(
|
||||||
|
waitUntilBootCompleted
|
||||||
|
sleep 3
|
||||||
|
pm uninstall $WV1
|
||||||
|
pm uninstall $WV2
|
||||||
|
) &
|
Reference in a new issue