This commit is contained in:
KOWX712
2024-11-02 17:58:09 +08:00
parent 3fe5853a7d
commit 52e10335dc
6 changed files with 14 additions and 13 deletions

View File

@@ -10,6 +10,9 @@ GitHub release: [Tricky Addon: Update Target List](https://github.com/KOWX712/Tr
Telegram channel: [KOW's Little World](https://t.me/kowchannel)
## Changelog
### v1.6
- Updated something
### v1.5
- Fixed some known issue
- Updated something

View File

@@ -4,6 +4,9 @@
- Recommend to run with MT manager
## Changelog
### v1.6
- Remain same with v1.5
### v1.5
- Reduced size
- Removed useless code

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# by KOW
# Tricky Addon Lite: Update Target List Script v1.5
# Tricky Addon Lite: Update Target List Script v1.6 (v1.5)
# GitHub Repository: https://github.com/KOWX712/Tricky-Addon-Update-Target-List/blob/master/lite-script_only/README.md
# Telegram channel: https://t.me/kowchannel

View File

@@ -1,9 +1,6 @@
#!/bin/sh
# by KOW, telegram channel: https://t.me/kowchannel
# This script will put all non-system app into /data/adb/tricky_store/target.txt
# Using module to put normal app into system app may exclude corresponding app from this script too, please disable it if you found this script doesn't work.
MODDIR="/data/adb/tricky_store/target_list_config"
echo "- Checking config files..."
@@ -39,7 +36,7 @@ echo "- Adding addition app... "
echo " "
for app in $ADDITION; do
app=$(echo "$app" | tr -d '[:space:]')
if ! grep -Fxq "$app" /data/adb/tricky_store/target.txt; then
if ! grep -Fq "$app" /data/adb/tricky_store/target.txt; then
echo "$app" >> /data/adb/tricky_store/target.txt
fi
done

View File

@@ -18,8 +18,7 @@ TS="/data/adb/tricky_store"
CONFIG_DIR="$TS/target_list_config"
MODNAME=$(grep '^id=' "$MODPATH/module.prop" | awk -F= '{print $2}' | xargs)
ORG_DIR="/data/adb/modules/$MODNAME"
EXCLUDE=$(grep -vE '^[[:space:]]*#|^[[:space:]]*$' "$CONFIG_DIR/EXCLUDE")
ADDITION=$(grep -vE '^[[:space:]]*#|^[[:space:]]*$' "$CONFIG_DIR/ADDITION")
kb="$COMPATH/.default"
if [ -d "$TS" ]; then
ui_print "- Tricky store module installed"
@@ -50,6 +49,7 @@ key_check() {
}
add_exclude() {
EXCLUDE=$(grep -vE '^[[:space:]]*#|^[[:space:]]*$' "$CONFIG_DIR/EXCLUDE")
for app in $EXCLUDE; do
app=$(echo "$app" | tr -d '[:space:]')
if ! grep -Fq "$app" $COMPATH/EXCLUDE; then
@@ -60,6 +60,7 @@ add_exclude() {
}
add_addition() {
ADDITION=$(grep -vE '^[[:space:]]*#|^[[:space:]]*$' "$CONFIG_DIR/ADDITION")
for app in $ADDITION; do
app=$(echo "$app" | tr -d '[:space:]')
if ! grep -Fq "$app" $COMPATH/ADDITION; then
@@ -114,7 +115,6 @@ if [ -f "$ORG_DIR/system.prop" ]; then
fi
fi
kb="$COMPATH/.default"
ui_print "*********************************************"
ui_print "- Do you want to replace tricky store keybox?"
ui_print " VOL [+]: YES"
@@ -126,13 +126,11 @@ if [[ "$keycheck" == "KEY_VOLUMEUP" ]]; then
ui_print "- Backing up original keybox..."
ui_print "- Replacing keybox..."
ui_print "*********************************************"
if [ -f "$ORG_DIR/common/origkeybox" ]; then
mv "$ORG_DIR/common/origkeybox" "$COMPATH/origkeybox"
else
mv "$TS/keybox.xml" "$COMPATH/origkeybox"
fi
mv "$kb" "$TS/keybox.xml"
else
if [ -f "$ORG_DIR/common/origkeybox" ]; then
@@ -144,4 +142,4 @@ fi
ui_print " "
ui_print "- Installation completed successfully! "
ui_print " "
ui_print " "

View File

@@ -1,7 +1,7 @@
id=TA_utl
name=Tricky Addon: Update Target List
version=v1.5
versionCode=150
version=v1.6
versionCode=160
author=KOWX712
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/master/update.json