You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf5b4d458d | ||
|
|
dc85dfbe10 | ||
|
|
c89b112d98 | ||
|
|
5e790b98f7 | ||
|
|
bd3362646f | ||
|
|
35f481c626 |
@@ -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
|
||||||
- Overwrite protection: won't remove previous setup when updating module
|
- Overwrite protection: won't remove previous setup when updating module
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -6,4 +6,4 @@
|
|||||||
com.google.android.gms
|
com.google.android.gms
|
||||||
io.github.vvb2060.keyattestation
|
io.github.vvb2060.keyattestation
|
||||||
io.github.vvb2060.mahoshojo
|
io.github.vvb2060.mahoshojo
|
||||||
icu.nullptr.nativetest
|
icu.nullptr.nativetest
|
||||||
|
|||||||
@@ -6,4 +6,5 @@
|
|||||||
oneplus
|
oneplus
|
||||||
coloros
|
coloros
|
||||||
com.android.patch
|
com.android.patch
|
||||||
me.bmax.apatch
|
me.bmax.apatch
|
||||||
|
me.garfieldhan.apatch.next
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ fi
|
|||||||
|
|
||||||
# Read exclution and addition config
|
# Read exclution and addition config
|
||||||
EXCLUDE=$(grep -vE '^#|^$' "$MODDIR/EXCLUDE" | tr '\n' '|' | sed 's/|$//')
|
EXCLUDE=$(grep -vE '^#|^$' "$MODDIR/EXCLUDE" | tr '\n' '|' | sed 's/|$//')
|
||||||
ADDITION=$(grep -vE '^#|^$' "$MODDIR/ADDITION")
|
ADDITION=$(grep -vE '^[[:space:]]*#|^[[:space:]]*$' "$MODDIR/ADDITION")
|
||||||
|
|
||||||
# Create or overwrite the target.txt file
|
# Create or overwrite the target.txt file
|
||||||
echo "- Overwritting target.txt"
|
echo "- Overwritting target.txt"
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|
||||||
|
add_exclude() {
|
||||||
|
EXCLUDE=$(grep -vE '^#|^$' "$CONFIG_DIR/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() {
|
||||||
|
ADDITION=$(grep -vE '^#|^$' "$CONFIG_DIR/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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -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
|
||||||
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user