This commit is contained in:
KOWX712
2024-10-16 05:03:20 +08:00
committed by GitHub
parent 13886dabd8
commit 565bbeb75f
15 changed files with 280 additions and 123 deletions
+18
View File
@@ -0,0 +1,18 @@
MODDIR=${0%/*}
COMPATH="$MODDIR/common"
# Check pm command functionality
sleep 10
until pm list packages > /dev/null 2>&1; do
sleep 1
done
# Check tricky store status
TS="/data/adb/modules/tricky_store"
if [ -f "$TS/disable" ]; then
cat "$COMPATH/disabled" > "$MODDIR/module.prop"
elif [ ! -d "$TS" ]; then
cat "$COMPATH/ninstalled" > "$MODDIR/module.prop"
else
cat "$COMPATH/normal" > "$MODDIR/module.prop"
sh "$MODDIR"/common/UpdateTargetList.sh || true
fi