diff --git a/README.md b/README.md index df1e0ba..8927aa5 100755 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ An addon module for tricky store - ADDITION and EXCLUDE in `/data/adb/tricky_store/target_list_config` - EXCLUDE for removing unnecessary apps - ADDITION for adding back system app excluded by default -- Configuration list with **KSU WebUI** (For KernelSU and Apatch, ) +- Configuration list with **KSU WebUI** (KernelSU & Apatch, For Magisk users: [KSU WebUI standalone](https://github.com/5ec1cff/KsuWebUIStandalone)) ## Instructions ### Automatic update diff --git a/changelog.md b/changelog.md index 61022ec..c99e7e5 100755 --- a/changelog.md +++ b/changelog.md @@ -10,6 +10,15 @@ GitHub release: [Tricky Addon: Update Target List](https://github.com/KOWX712/Tr Telegram channel: [KOW's Little World](https://t.me/kowchannel) ## Changelog +### v2.1 +- Added curl binary to fetch Xposed module package name from LSPosed webside + +**KSU WebUI** +- Added feature to exclude Xposed module package name +- Fixed abnormal color in dark mode +- Combined save config and update target.txt button +- Fixed some more known bugs + ### v2.0 - Added WebUI for configuration diff --git a/lite-script_only/README.md b/lite-script_only/README.md index 30696f9..57dbd87 100644 --- a/lite-script_only/README.md +++ b/lite-script_only/README.md @@ -4,7 +4,7 @@ - Recommend to run with MT manager ## Changelog -### v2.0 +### v2.0, v2.1 - More clarify remark in code - Remove useless code diff --git a/lite-script_only/UpdateTargetList.sh b/lite-script_only/UpdateTargetList.sh index ac3efc9..9a56140 100644 --- a/lite-script_only/UpdateTargetList.sh +++ b/lite-script_only/UpdateTargetList.sh @@ -1,6 +1,6 @@ #!/bin/sh -# Tricky Addon Lite: Update Target List Script v2.0 +# Tricky Addon Lite: Update Target List Script v2.1 # GitHub Repository: https://github.com/KOWX712/Tricky-Addon-Update-Target-List/blob/master/lite-script_only/README.md # Telegram channel: https://t.me/kowchannel diff --git a/module/bin/arm64-v8a/curl b/module/bin/arm64-v8a/curl new file mode 100644 index 0000000..6305598 Binary files /dev/null and b/module/bin/arm64-v8a/curl differ diff --git a/module/bin/armeabi-v7a/curl b/module/bin/armeabi-v7a/curl new file mode 100644 index 0000000..70ad236 Binary files /dev/null and b/module/bin/armeabi-v7a/curl differ diff --git a/module/bin/x86/curl b/module/bin/x86/curl new file mode 100644 index 0000000..549c933 Binary files /dev/null and b/module/bin/x86/curl differ diff --git a/module/bin/x86_64/curl b/module/bin/x86_64/curl new file mode 100644 index 0000000..f4415ca Binary files /dev/null and b/module/bin/x86_64/curl differ diff --git a/module/common/get_xposed.sh b/module/common/get_xposed.sh new file mode 100644 index 0000000..d75b0d0 --- /dev/null +++ b/module/common/get_xposed.sh @@ -0,0 +1,9 @@ +#!/system/bin/sh + +# Get all xposed app package name +MODPATH=${0%/*} +OUTPUT="$MODPATH/xposed-list" + +curl -s "https://modules.lsposed.org/modules.json" | \ + grep -o '"name":"[^"]*","description":' | \ + awk -F'"' '{print $4}' > "$OUTPUT" \ No newline at end of file diff --git a/module/customize.sh b/module/customize.sh index 06e9444..3107484 100644 --- a/module/customize.sh +++ b/module/customize.sh @@ -79,7 +79,18 @@ fi cp "$MODPATH/module.prop" "$COMPATH/module.prop.orig" mv "$COMPATH/UpdateTargetList.sh" "$SCRIPT_DIR/UpdateTargetList.sh" +sed -i "s|\"set-path\"|\"/data/adb/modules/$MODNAME/common/\"|" "$MODPATH/webroot/index.js" || ui_print "! fail to replace path" + +# Curl binary is used to fetch xposed module package name list from https://modules.lsposed.org/modules.json +if [ ! -f "/system/bin/curl" ]; then + mkdir -p "$MODPATH/system/bin" + mv "$MODPATH/bin/$(getprop ro.product.cpu.abi)/curl" "$MODPATH/system/bin/curl" + set_perm "$MODPATH/system/bin/curl" 0 2000 0777 +fi +rm -rf "$MODPATH/bin" + set_perm $SCRIPT_DIR/UpdateTargetList.sh 0 2000 0755 +set_perm $COMPATH/get_xposed.sh 0 2000 0755 if [ -d "$CONFIG_DIR" ]; then if [ ! -f "$CONFIG_DIR/EXCLUDE" ] && [ ! -f "$CONFIG_DIR/ADDITION" ]; then diff --git a/module/module.prop b/module/module.prop index 5057182..388578a 100644 --- a/module/module.prop +++ b/module/module.prop @@ -1,7 +1,7 @@ id=TA_utl name=Tricky Addon - Update Target List -version=v2.0 -versionCode=200 +version=v2.1 +versionCode=210 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.txt. 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 diff --git a/module/webroot/index.html b/module/webroot/index.html index 01bc520..38acbb6 100644 --- a/module/webroot/index.html +++ b/module/webroot/index.html @@ -11,22 +11,25 @@