Files
Tricky-Addon-Update-Target-…/module/uninstall.sh
KOWX712 ff6244b140 Invisible module full implementation
NOT STABLE, not tested on KSU
2024-12-10 22:25:01 +08:00

18 lines
501 B
Bash

MODPATH=${0%/*}
TS="/data/adb/modules/tricky_store"
SCRIPT_DIR="/data/adb/tricky_store"
# Enable back TSupport-A auto update
if [ -f "/storage/emulated/0/stop-tspa-auto-target" ]; then
rm -f "/storage/emulated/0/stop-tspa-auto-target"
fi
# Remove residue and restore aosp keybox.
rm -rf "/data/adb/modules/.TA_utl"
rm -f "/data/adb/boot_hash"
if [ -d "$TS" ]; then
rm -f "$TS/action.sh"
rm -rf "$TS/webroot"
fi
xxd -r -p "$MODPATH/common/.default" | base64 -d > "$SCRIPT_DIR/keybox.xml"