1.3.1 initial

This commit is contained in:
KOWX712
2024-10-27 01:06:03 +08:00
parent d48f84e18c
commit 5e790b98f7
8 changed files with 45 additions and 14 deletions

View File

@@ -8,6 +8,10 @@ GitHub release: https://github.com/KOWX712/Tricky-Addon-Update-Target-List/relea
Telegram channel: https://t.me/kowchannel Telegram channel: https://t.me/kowchannel
## Changelog ## Changelog
### v1.3.1
- Added Apatch Next package name to exclude list
- Fix automatic update target script not working issue
### v1.3 ### v1.3
- Minor improvement in code - Minor improvement in code
- Overwrtie protection: won't remove previous setup when updating module - Overwrtie protection: won't remove previous setup when updating module

View File

@@ -3,6 +3,9 @@
- Run with root priviledge - Run with root priviledge
## Changelog ## Changelog
### v1.3.1
- Added Apatch Next package name to exclude list
### v1.3 ### v1.3
- More user friendly exclude and addition list config - More user friendly exclude and addition list config

View File

@@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# by KOW # by KOW
# Tricky Addon Lite: Update Target List Script v1.3 # Tricky Addon Lite: Update Target List Script v1.3.1
# GitHub Repository: https://github.com/KOWX712/Tricky-Addon-Update-Target-List/blob/master/lite-script_only/README.md # GitHub Repository: https://github.com/KOWX712/Tricky-Addon-Update-Target-List/blob/master/lite-script_only/README.md
# Telegram channel: https://t.me/kowchannel # Telegram channel: https://t.me/kowchannel
@@ -13,7 +13,8 @@ EXCLUDE="
oneplus oneplus
coloros coloros
com.android.patch com.android.patch
me.bmax.apatch" me.bmax.apatch
me.garfieldhan.apatch.next"
ADDITION=" ADDITION="
com.google.android.gms com.google.android.gms

View File

@@ -6,4 +6,5 @@
oneplus oneplus
coloros coloros
com.android.patch com.android.patch
me.bmax.apatch me.bmax.apatch
me.garfieldhan.apatch.next

View File

@@ -51,6 +51,27 @@ COMPATH="$MODPATH/common"
CONFIG_DIR="/data/adb/tricky_store/target_list_config" CONFIG_DIR="/data/adb/tricky_store/target_list_config"
SCRIPT_DIR="/data/adb/tricky_store" SCRIPT_DIR="/data/adb/tricky_store"
MODNAME=$(grep '^id=' "$MODPATH/module.prop" | awk -F= '{print $2}' | xargs) MODNAME=$(grep '^id=' "$MODPATH/module.prop" | awk -F= '{print $2}' | xargs)
EXCLUDE=$(grep -vE '^#|^$' "$CONFIG_DIR/EXLUDE")
ADDITION=$(grep -vE '^#|^$' "$CONFIG_DIR/ADDITION")
add_exclude() {
for app in $EXCLUDE; do
if ! grep -qx "$app" $COMPATH/EXCLUDE; then
echo "$app" >> $COMPATH/EXCLUDE
fi
done
mv "$COMPATH/EXCLUDE" "$CONFIG_DIR/EXCLUDE"
}
add_addition() {
for app in $ADDITION; do
if ! grep -qx "$app" $COMPATH/ADDITION; then
echo "$app" >> $COMPATH/ADDITION
fi
done
mv "$COMPATH/ADDITION" "$CONFIG_DIR/ADDITION"
}
for status in normal ninstalled disabled; do for status in normal ninstalled disabled; do
cp "$MODPATH/module.prop" "$COMPATH/$status" cp "$MODPATH/module.prop" "$COMPATH/$status"
done done
@@ -58,6 +79,7 @@ sed -i 's/^description=.*/description=Tricky store is not installed/' "$COMPATH/
sed -i 's/^description=.*/description=Tricky store is disabled/' "$COMPATH/disabled" sed -i 's/^description=.*/description=Tricky store is disabled/' "$COMPATH/disabled"
rm -f "$SCRIPT_DIR/UpdateTargetList.sh" rm -f "$SCRIPT_DIR/UpdateTargetList.sh"
cp "$COMPATH/UpdateTargetList.sh" "$SCRIPT_DIR/UpdateTargetList.sh" cp "$COMPATH/UpdateTargetList.sh" "$SCRIPT_DIR/UpdateTargetList.sh"
if [ ! -d "$CONFIG_DIR" ]; then if [ ! -d "$CONFIG_DIR" ]; then
mkdir -p "$CONFIG_DIR" mkdir -p "$CONFIG_DIR"
mv "$COMPATH/EXCLUDE" "$CONFIG_DIR/EXCLUDE" mv "$COMPATH/EXCLUDE" "$CONFIG_DIR/EXCLUDE"
@@ -68,13 +90,13 @@ elif [ -d "$CONFIG_DIR" ]; then
mv "$COMPATH/ADDITION" "$CONFIG_DIR/ADDITION" mv "$COMPATH/ADDITION" "$CONFIG_DIR/ADDITION"
elif [ ! -f "$CONFIG_DIR/ADDITION" ]; then elif [ ! -f "$CONFIG_DIR/ADDITION" ]; then
mv "$COMPATH/ADDITION" "$CONFIG_DIR/ADDITION" mv "$COMPATH/ADDITION" "$CONFIG_DIR/ADDITION"
rm -f "$COMPATH/EXCLUDE" add_exclude
elif [ ! -f "$CONFIG_DIR/EXCLUDE" ]; then elif [ ! -f "$CONFIG_DIR/EXCLUDE" ]; then
mv "$COMPATH/EXCLUDE" "$CONFIG_DIR/EXCLUDE" mv "$COMPATH/EXCLUDE" "$CONFIG_DIR/EXCLUDE"
rm -f "$COMPATH/ADDITION" add_addition
else else
rm -f "$COMPATH/EXCLUDE" add_exclude
rm -f "$COMPATH/ADDITION" add_addition
fi fi
fi fi

View File

@@ -1,7 +1,7 @@
id=TA_utl id=TA_utl
name=Tricky Addon: Update Target List name=Tricky Addon: Update Target List
version=v1.3 version=v1.3.1
versionCode=13 versionCode=131
author=KOWX712 author=KOWX712
description=Update tricky store target list with action button. Custom config: ADDITION and EXCLUDE in /data/adb/tricky_store/target_list_config description=Update tricky store target list with action button. Custom config: ADDITION and EXCLUDE in /data/adb/tricky_store/target_list_config
updateJson=https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/refs/heads/master/update.json updateJson=https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/refs/heads/master/update.json

View File

@@ -4,7 +4,7 @@ TS="/data/adb/modules/tricky_store"
if [ ! -f "$COMPATH/ninstalled" ] || [ ! -f "$COMPATH/disabled" ] || [ ! -f "$COMPATH/normal" ]; then if [ ! -f "$COMPATH/ninstalled" ] || [ ! -f "$COMPATH/disabled" ] || [ ! -f "$COMPATH/normal" ]; then
sed -i 's/^description=.*/description=Module is corrupted, please reinstall module./' "$MODDIR/module.prop" sed -i 's/^description=.*/description=Module is corrupted, please reinstall module./' "$MODDIR/module.prop"
abort exit 1
fi fi
if [ ! -d "$TS" ]; then if [ ! -d "$TS" ]; then
@@ -16,5 +16,5 @@ else
until [ "$(getprop sys.boot_completed)" = "1" ]; do until [ "$(getprop sys.boot_completed)" = "1" ]; do
sleep 1 sleep 1
done done
. "$COMPATH/common/UpdateTargetList.sh" . "$COMPATH/UpdateTargetList.sh"
fi fi

View File

@@ -1,6 +1,6 @@
{ {
"version": "v1.2", "version": "v1.3",
"versionCode": 12, "versionCode": 13,
"zipUrl": "https://github.com/KOWX712/Tricky-Addon-Update-Target-List/releases/download/v1.2/TrickyAddonModule_UpdateTargetList-v1.2.zip", "zipUrl": "https://github.com/KOWX712/Tricky-Addon-Update-Target-List/releases/download/v1.3/TrickyAddonModule_UpdateTargetList-v1.3.zip",
"changelog": "https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/refs/heads/master/changelog.md" "changelog": "https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/refs/heads/master/changelog.md"
} }