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
v1.6
This commit is contained in:
@@ -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)
|
Telegram channel: [KOW's Little World](https://t.me/kowchannel)
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
### v1.6
|
||||||
|
- Updated something
|
||||||
|
|
||||||
### v1.5
|
### v1.5
|
||||||
- Fixed some known issue
|
- Fixed some known issue
|
||||||
- Updated something
|
- Updated something
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
- Recommend to run with MT manager
|
- Recommend to run with MT manager
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
### v1.6
|
||||||
|
- Remain same with v1.5
|
||||||
|
|
||||||
### v1.5
|
### v1.5
|
||||||
- Reduced size
|
- Reduced size
|
||||||
- Removed useless code
|
- Removed useless code
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# by KOW
|
# 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
|
# 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
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/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
|
# 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"
|
MODDIR="/data/adb/tricky_store/target_list_config"
|
||||||
|
|
||||||
echo "- Checking config files..."
|
echo "- Checking config files..."
|
||||||
@@ -39,7 +36,7 @@ echo "- Adding addition app... "
|
|||||||
echo " "
|
echo " "
|
||||||
for app in $ADDITION; do
|
for app in $ADDITION; do
|
||||||
app=$(echo "$app" | tr -d '[:space:]')
|
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
|
echo "$app" >> /data/adb/tricky_store/target.txt
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -18,8 +18,7 @@ TS="/data/adb/tricky_store"
|
|||||||
CONFIG_DIR="$TS/target_list_config"
|
CONFIG_DIR="$TS/target_list_config"
|
||||||
MODNAME=$(grep '^id=' "$MODPATH/module.prop" | awk -F= '{print $2}' | xargs)
|
MODNAME=$(grep '^id=' "$MODPATH/module.prop" | awk -F= '{print $2}' | xargs)
|
||||||
ORG_DIR="/data/adb/modules/$MODNAME"
|
ORG_DIR="/data/adb/modules/$MODNAME"
|
||||||
EXCLUDE=$(grep -vE '^[[:space:]]*#|^[[:space:]]*$' "$CONFIG_DIR/EXCLUDE")
|
kb="$COMPATH/.default"
|
||||||
ADDITION=$(grep -vE '^[[:space:]]*#|^[[:space:]]*$' "$CONFIG_DIR/ADDITION")
|
|
||||||
|
|
||||||
if [ -d "$TS" ]; then
|
if [ -d "$TS" ]; then
|
||||||
ui_print "- Tricky store module installed"
|
ui_print "- Tricky store module installed"
|
||||||
@@ -50,6 +49,7 @@ key_check() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
add_exclude() {
|
add_exclude() {
|
||||||
|
EXCLUDE=$(grep -vE '^[[:space:]]*#|^[[:space:]]*$' "$CONFIG_DIR/EXCLUDE")
|
||||||
for app in $EXCLUDE; do
|
for app in $EXCLUDE; do
|
||||||
app=$(echo "$app" | tr -d '[:space:]')
|
app=$(echo "$app" | tr -d '[:space:]')
|
||||||
if ! grep -Fq "$app" $COMPATH/EXCLUDE; then
|
if ! grep -Fq "$app" $COMPATH/EXCLUDE; then
|
||||||
@@ -60,6 +60,7 @@ add_exclude() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
add_addition() {
|
add_addition() {
|
||||||
|
ADDITION=$(grep -vE '^[[:space:]]*#|^[[:space:]]*$' "$CONFIG_DIR/ADDITION")
|
||||||
for app in $ADDITION; do
|
for app in $ADDITION; do
|
||||||
app=$(echo "$app" | tr -d '[:space:]')
|
app=$(echo "$app" | tr -d '[:space:]')
|
||||||
if ! grep -Fq "$app" $COMPATH/ADDITION; then
|
if ! grep -Fq "$app" $COMPATH/ADDITION; then
|
||||||
@@ -114,7 +115,6 @@ if [ -f "$ORG_DIR/system.prop" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
kb="$COMPATH/.default"
|
|
||||||
ui_print "*********************************************"
|
ui_print "*********************************************"
|
||||||
ui_print "- Do you want to replace tricky store keybox?"
|
ui_print "- Do you want to replace tricky store keybox?"
|
||||||
ui_print " VOL [+]: YES"
|
ui_print " VOL [+]: YES"
|
||||||
@@ -126,13 +126,11 @@ if [[ "$keycheck" == "KEY_VOLUMEUP" ]]; then
|
|||||||
ui_print "- Backing up original keybox..."
|
ui_print "- Backing up original keybox..."
|
||||||
ui_print "- Replacing keybox..."
|
ui_print "- Replacing keybox..."
|
||||||
ui_print "*********************************************"
|
ui_print "*********************************************"
|
||||||
|
|
||||||
if [ -f "$ORG_DIR/common/origkeybox" ]; then
|
if [ -f "$ORG_DIR/common/origkeybox" ]; then
|
||||||
mv "$ORG_DIR/common/origkeybox" "$COMPATH/origkeybox"
|
mv "$ORG_DIR/common/origkeybox" "$COMPATH/origkeybox"
|
||||||
else
|
else
|
||||||
mv "$TS/keybox.xml" "$COMPATH/origkeybox"
|
mv "$TS/keybox.xml" "$COMPATH/origkeybox"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mv "$kb" "$TS/keybox.xml"
|
mv "$kb" "$TS/keybox.xml"
|
||||||
else
|
else
|
||||||
if [ -f "$ORG_DIR/common/origkeybox" ]; then
|
if [ -f "$ORG_DIR/common/origkeybox" ]; then
|
||||||
@@ -144,4 +142,4 @@ fi
|
|||||||
|
|
||||||
ui_print " "
|
ui_print " "
|
||||||
ui_print "- Installation completed successfully! "
|
ui_print "- Installation completed successfully! "
|
||||||
ui_print " "
|
ui_print " "
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
id=TA_utl
|
id=TA_utl
|
||||||
name=Tricky Addon: Update Target List
|
name=Tricky Addon: Update Target List
|
||||||
version=v1.5
|
version=v1.6
|
||||||
versionCode=150
|
versionCode=160
|
||||||
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/master/update.json
|
updateJson=https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/master/update.json
|
||||||
Reference in New Issue
Block a user