-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathuninstall.sh
More file actions
29 lines (29 loc) · 821 Bytes
/
uninstall.sh
File metadata and controls
29 lines (29 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# shellcheck shell=ash
# Don't modify anything after this
if [ -f "$INFO" ]; then
while read -r 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")
# shellcheck disable=SC2015
[ "$(ls -A "$LINE" 2>/dev/null)" ] && break 1 || rm -rf "$LINE"
done
fi
done <"$INFO"
rm -f "$INFO"
fi
echo "# FontManager Cleanup Script
while test \"$(getprop sys.boot_completed)\" != \"1\" && test ! -d /storage/emulated/0/Android ;
do sleep 2;
done
rm -rf /storage/emulated/0/FontManager
rm -rf /data/adb/service.d/fm-cleanup.sh
exit 0" >/data/adb/service.d/fm-cleanup.sh
chmod 755 /data/adb/service.d/fm-cleanup.sh
sync && sleep 1
reboot