-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathuninstall.sh
More file actions
20 lines (20 loc) · 665 Bytes
/
uninstall.sh
File metadata and controls
20 lines (20 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/system/bin/sh
OL="org.androidacy.WebviewOverlay"
LIST="/data/system/overlays.xml"
rm -rf /data/resource-cache/*
rm -rf /data/dalvik-cache/*
rm -rf /cache/dalvik-cache/*
rm -rf /data/*/com.android.webview*
rm -rf /data/*/org.bromite.webview*
rm -rf /data/system/package_cache/*
sed -i "/item packageName=\"${OL}\"/d" $LIST
echo "# Webview Switcher Cleanup Script
while test \"$(getprop sys.boot_completed)\" != \"1\" && test ! -d /storage/emulated/0/Android ;
do sleep 2;
done
rm -rf /storage/emulated/0/WebviewManager
rm -rf /data/adb/service.d/ws-cleanup.sh
exit 0" >/data/adb/service.d/ws-cleanup.sh
chmod 755 /data/adb/service.d/ws-cleanup.sh
sleep 1
reboot