Invisible module update method, more

New update card for invisible module, refine module visibility logic (better adapt with MMRL). Add active class.
This commit is contained in:
KOWX712
2024-12-07 16:10:13 +08:00
parent 4563a3399d
commit 1b2a1701f4
10 changed files with 116 additions and 30 deletions

View File

@@ -18,6 +18,13 @@ elif [ ! -d "$TSPA" ] && [ -f "/storage/emulated/0/stop-tspa-auto-target" ]; the
rm -f "/storage/emulated/0/stop-tspa-auto-target"
fi
if [ -f "$TS/action.sh" ]; then
rm -f "$TS/action.sh"
fi
if [ -d "$TS/webroot" ]; then
rm -rf "$TS/webroot"
fi
if [ -d "$MODPATH/common/temp" ]; then
if [ "$KSU" ] || [ "$APATCH" ]; then
rm -f "$MODPATH/module.prop"
@@ -29,23 +36,15 @@ if [ -d "$MODPATH/common/temp" ]; then
exit 0
fi
MODPATH="$HIDE_DIR"
if [ -f "$MODPATH/action.sh" ]; then
ln -s "$MODPATH/action.sh" "$TS/action.sh"
fi
ln -s "$MODPATH/webroot" "$TS/webroot"
fi
OUTPUT_APP="$MODPATH/common/applist"
OUTPUT_SKIP="$MODPATH/common/skiplist"
if [ -f "$MODPATH/action.sh" ]; then
if [ -f "$TS/action.sh" ]; then
rm -f "$TS/action.sh"
fi
ln -s "$MODPATH/action.sh" "$TS/action.sh"
else
if [ -d "$TS/webroot" ]; then
rm -rf "$TS/webroot"
fi
ln -s "$MODPATH/webroot" "$TS/webroot"
fi
until [ "$(getprop sys.boot_completed)" = "1" ]; do
sleep 1
done