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.7
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# **Tricky Addon: Update Target List**
|
# **Tricky Addon - Update Target List**
|
||||||
An addon module for tricky store
|
An addon module for tricky store
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -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.7
|
||||||
|
- Fixed update issue (Will start to work in next update)
|
||||||
|
|
||||||
### v1.6
|
### v1.6
|
||||||
- Updated something
|
- Updated something
|
||||||
|
|
||||||
|
|||||||
@@ -4,17 +4,14 @@
|
|||||||
- Recommend to run with MT manager
|
- Recommend to run with MT manager
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
### v1.6
|
### v1.6, v1.7
|
||||||
- Remain same with v1.5
|
- Remain same with v1.5
|
||||||
|
|
||||||
### v1.5
|
### v1.5
|
||||||
- Reduced size
|
- Reduced size
|
||||||
- Removed useless code
|
- Removed useless code
|
||||||
|
|
||||||
### v1.4.1
|
### v1.4, v1.4.1
|
||||||
- Remain same with v1.3.1
|
|
||||||
|
|
||||||
### v1.4
|
|
||||||
- Remain same with v1.3.1
|
- Remain same with v1.3.1
|
||||||
|
|
||||||
### v1.3.1
|
### v1.3.1
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# by KOW
|
# by KOW
|
||||||
# Tricky Addon Lite: Update Target List Script v1.6 (v1.5)
|
# Tricky Addon Lite: Update Target List Script v1.7 (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,14 +1,15 @@
|
|||||||
TS="/data/adb/tricky_store"
|
SCRIPT_DIR="/data/adb/tricky_store"
|
||||||
|
|
||||||
echo "**********************************************"
|
echo "**********************************************"
|
||||||
echo "- Staring script..."
|
echo "- Staring script..."
|
||||||
echo " "
|
echo " "
|
||||||
|
|
||||||
if [ ! -f "$TS/UpdateTargetList.sh" ]; then
|
if [ ! -f "$SCRIPT_DIR/UpdateTargetList.sh" ]; then
|
||||||
echo "! Script missing, please install module again"
|
echo "! Script missing, please install module again"
|
||||||
echo "**********************************************"
|
echo "**********************************************"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
. "$TS/UpdateTargetList.sh"
|
. "$SCRIPT_DIR/UpdateTargetList.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "**********************************************"
|
echo "**********************************************"
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
SKIPUNZIP=0
|
SKIPUNZIP=0
|
||||||
DEBUG=false
|
DEBUG=false
|
||||||
|
|
||||||
ui_print " ";
|
ui_print " ";
|
||||||
if [ "$APATCH" ]; then
|
if [ "$APATCH" ]; then
|
||||||
ui_print "- APatch:$APATCH_VER│$APATCH_VER_CODE"
|
ui_print "- APatch:$APATCH_VER│$APATCH_VER_CODE"
|
||||||
@@ -14,8 +15,9 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
COMPATH="$MODPATH/common"
|
COMPATH="$MODPATH/common"
|
||||||
TS="/data/adb/tricky_store"
|
TS="/data/adb/modules/tricky_store"
|
||||||
CONFIG_DIR="$TS/target_list_config"
|
SCRIPT_DIR="/data/adb/tricky_store"
|
||||||
|
CONFIG_DIR="$SCRIPT_DIR/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"
|
||||||
kb="$COMPATH/.default"
|
kb="$COMPATH/.default"
|
||||||
@@ -72,10 +74,10 @@ add_addition() {
|
|||||||
|
|
||||||
ui_print "- Installing..."
|
ui_print "- Installing..."
|
||||||
|
|
||||||
if [ -f "$TS/UpdateTargetList.sh" ]; then
|
if [ -f "$SCRIPT_DIR/UpdateTargetList.sh" ]; then
|
||||||
rm -f "$TS/UpdateTargetList.sh"
|
rm -f "$SCRIPT_DIR/UpdateTargetList.sh"
|
||||||
fi
|
fi
|
||||||
mv "$COMPATH/UpdateTargetList.sh" "$TS/UpdateTargetList.sh"
|
mv "$COMPATH/UpdateTargetList.sh" "$SCRIPT_DIR/UpdateTargetList.sh"
|
||||||
cp "$MODPATH/module.prop" "$COMPATH/module.prop.orig"
|
cp "$MODPATH/module.prop" "$COMPATH/module.prop.orig"
|
||||||
|
|
||||||
if [ -d "$CONFIG_DIR" ]; then
|
if [ -d "$CONFIG_DIR" ]; then
|
||||||
@@ -129,9 +131,9 @@ if [[ "$keycheck" == "KEY_VOLUMEUP" ]]; then
|
|||||||
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 "$SCRIPT_DIR/keybox.xml" "$COMPATH/origkeybox"
|
||||||
fi
|
fi
|
||||||
mv "$kb" "$TS/keybox.xml"
|
mv "$kb" "$SCRIPT_DIR/keybox.xml"
|
||||||
else
|
else
|
||||||
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"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
id=TA_utl
|
id=TA_utl
|
||||||
name=Tricky Addon - Update Target List
|
name=Tricky Addon - Update Target List
|
||||||
version=v1.6
|
version=v1.7
|
||||||
versionCode=160
|
versionCode=170
|
||||||
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
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
MODPATH=${0%/*}
|
MODPATH=${0%/*}
|
||||||
TS="/data/adb/modules/tricky_store"
|
TS="/data/adb/modules/tricky_store"
|
||||||
|
SCRIPT_DIR="/data/adb/tricky_store"
|
||||||
|
|
||||||
hash_value=$(grep -v '^#' "$MODPATH/boot_hash" | tr -d '[:space:]')
|
hash_value=$(grep -v '^#' "$MODPATH/boot_hash" | tr -d '[:space:]')
|
||||||
if [ -n "$hash_value" ]; then
|
if [ -n "$hash_value" ]; then
|
||||||
@@ -18,10 +19,13 @@ if [ ! -d "$TS" ]; then
|
|||||||
elif [ -f "$TS/disable" ]; then
|
elif [ -f "$TS/disable" ]; then
|
||||||
sed -i 's/^description=.*/description=Tricky store is disabled/' "$MODPATH/module.prop"
|
sed -i 's/^description=.*/description=Tricky store is disabled/' "$MODPATH/module.prop"
|
||||||
touch "$MODPATH/disable"
|
touch "$MODPATH/disable"
|
||||||
|
elif [ ! -f "$SCRIPT_DIR/UpdateTargetList.sh" ]; then
|
||||||
|
sed -i 's/^description=.*/description=Script missing, please install module again/' "$MODPATH/module.prop"
|
||||||
|
touch "$MODPATH/disable"
|
||||||
else
|
else
|
||||||
cat "$MODPATH/common/module.prop.orig" > "$MODPATH/module.prop"
|
cat "$MODPATH/common/module.prop.orig" > "$MODPATH/module.prop"
|
||||||
until [ "$(getprop sys.boot_completed)" = "1" ]; do
|
until [ "$(getprop sys.boot_completed)" = "1" ]; do
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
. "$TS/UpdateTargetList.sh"
|
. "$SCRIPT_DIR/UpdateTargetList.sh"
|
||||||
fi
|
fi
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
MODPATH=${0%/*}
|
MODPATH=${0%/*}
|
||||||
TS="/data/adb/tricky_store"
|
SCRIPT_DIR="/data/adb/tricky_store"
|
||||||
|
|
||||||
# Remove residue and restore original keybox.
|
# Remove residue and restore original keybox.
|
||||||
rm -rf "$TS/target_list_config"
|
rm -rf "$SCRIPT_DIR/target_list_config"
|
||||||
rm -f "$TS/UpdateTargetList.sh"
|
rm -f "$SCRIPT_DIR/UpdateTargetList.sh"
|
||||||
if [ -f "$MODPATH/common/origkeybox" ]; then
|
if [ -f "$MODPATH/common/origkeybox" ]; then
|
||||||
rm -f "$TS/keybox.xml"
|
rm -f "$SCRIPT_DIR/keybox.xml"
|
||||||
mv "$MODPATH/common/origkeybox" "$TS/keybox.xml"
|
mv "$MODPATH/common/origkeybox" "$SCRIPT_DIR/keybox.xml"
|
||||||
fi
|
fi
|
||||||
Reference in New Issue
Block a user