Compare commits

21 Commits
v3.1 ... v3.3

Author SHA1 Message Date
KOWX712
d9a00b9540 v3.3 release
changelog: fix typo
2025-02-07 14:35:19 +08:00
KOWX712
ed77c72a79 update with tricky store 1.2.1 2025-02-07 14:27:42 +08:00
KOWX712
b5370ad088 script opt 2025-02-07 10:55:54 +08:00
KOWX712
bb7573f5dd add denylist to target on boot
choose "Select from DenyList" in WebUI once to enable this feature
2025-02-06 22:32:36 +08:00
KOWX712
ccffd2eaed update username 2025-02-05 22:23:44 +08:00
KOWX712
d9c1cdc11d Update README.md 2025-02-05 14:57:01 +08:00
KOWX712
e1f9c8904a Update .extra 2025-02-05 14:49:43 +08:00
KOWX712
3b98a88c77 typo 2025-02-02 13:03:36 +08:00
KOWX712
0b8dcd4503 v3.2 release 2025-02-02 13:00:56 +08:00
KOWX712
913118ac60 handle vendor patch
set `ro.vendor.build.security_patch` same with `ro.build.version.security_patch`
2025-02-02 12:49:20 +08:00
KOWX712
cb4276643a add android and com.android.vending by default
make compatible with latest pif inject a4086509f9
https://github.com/5ec1cff/TrickyStore/pull/83
2025-02-01 11:51:32 +08:00
Berk Mirsat
0087575117 A13 check package name (#13) 2025-01-29 18:30:15 +08:00
KOWX712
5f01b4fed1 Update .extra 2025-01-29 13:44:10 +07:00
berkmirsat
1f7a4c174b add Turkish translation 2025-01-29 06:36:17 +07:00
KOWX712
19f6b156f6 wait for next 2025-01-23 07:35:29 +08:00
KOWX712
63874eeb8b Update README.md 2025-01-22 23:58:29 +08:00
KOWX712
2c5082acbc check json format on pull request 2025-01-19 22:23:02 +08:00
Re*Index. (ot_inc)
1cb810405a Update ja-JP.json 2025-01-19 18:59:40 +08:00
KOWX712
142dfdbe81 fix gsf app name missing 2025-01-19 16:29:13 +08:00
KOWX712
5ef6293924 v3.1 release 2025-01-19 15:38:22 +08:00
KOWX712
a6b35e8d85 fix update issue 2025-01-19 15:38:22 +08:00
17 changed files with 258 additions and 67 deletions

2
.extra

File diff suppressed because one or more lines are too long

3
.gitattributes vendored
View File

@@ -3,8 +3,9 @@
*.prop text eol=lf
*.md text eol=lf
*.xml text eol=lf
*.json text eol=lf
.extra text eol=lf
META-INF/** text eol=lf
# Denote all files that are truly binary and should not be modified.
common/addon/**/tools/** binary
module/bin/**/** binary

31
.github/workflows/json-lint.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: pr_jsonlint
on:
pull_request:
paths:
- 'module/webui/locales/*.json'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install JSON linter
run: npm install -g jsonlint
- name: Lint JSON files
run: |
for file in $(find module/webui/locales -name "*.json"); do
echo "Checking $file"
if ! jsonlint "$file"; then
echo "Error in $file"
exit 1
fi
done

View File

@@ -16,22 +16,22 @@ Configure Tricky Store target.txt with KSU WebUI.
### Magisk
- Action button to open WebUI
- Support KSUWebUIStandalone and latest MMRL
- Automatic install [KSUWebUIStandalone](https://github.com/5ec1cff/KsuWebUIStandalone) if none of them are installed.
- Support [KSUWebUIStandalone](https://github.com/5ec1cff/KsuWebUIStandalone) and [MMRL](https://github.com/MMRLApp/MMRL)
- Automatic KSUWebUIStandalone install if none of them are installed.
### What Can This Module Do
| Feature | Status |
|:---|:---:|
| Configure target.txt with app name display | ✅ |
| Long press to choose `!` or `?` mode for the app. [Auto](https://github.com/5ec1cff/TrickyStore/releases/tag/1.1.0)<br>Use this only when the app cannot work without this. | |
| Select apps from Magisk DenyList `optional` | ✅ |
| Deselect [unnecessary apps](https://github.com/KOWX712/Tricky-Addon-Update-Target-List/blob/main/more-exclude.json) `optional` | ✅ |
| Set verifiedBootHash `optional` | ✅ |
| Provide AOSP Keybox `optional` | ✅ |
| Valid Keybox `not guaranteed` | ❌ |
| Shamiko Whitelist switch. [Why?](https://github.com/rushizgithub/shamiko?tab=readme-ov-file#whitelist) | ❌ |
| Periodically add all app to target.txt | ❌ |
| Add system apps `GMS added by default` | ❌ |
| Feature | Status |
| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----: |
| Configure target.txt with app name display | ✅ |
| Long press to choose `!` or `?` mode for the app. [Auto](https://github.com/5ec1cff/TrickyStore/releases/tag/1.1.0)<br>Use this only when the app cannot work without this. | |
| Select apps from Magisk DenyList `optional` | ✅ |
| Deselect [unnecessary apps](https://github.com/KOWX712/Tricky-Addon-Update-Target-List/blob/main/more-exclude.json) `optional` | ✅ |
| Set verifiedBootHash `optional` | ✅ |
| Provide AOSP Keybox `optional` | ✅ |
| Valid Keybox `not guaranteed` | ❌ |
| Shamiko Whitelist switch. [Why?](https://github.com/rushizgithub/shamiko?tab=readme-ov-file#whitelist) | ❌ |
| Periodically add all app to target.txt | ❌ |
| Add system apps `GMS added by default` | ❌ |
## Localization
- Read [Translation Guide](https://github.com/KOWX712/Tricky-Addon-Update-Target-List/blob/main/module/webui/locales/A-translate.md)

View File

@@ -8,6 +8,24 @@ GitHub release: [Tricky Addon: Update Target List](https://github.com/KOWX712/Tr
Telegram channel: [KOW's Little World](https://t.me/kowchannel)
## Changelog
### v3.3
- Support auto config `security_patch.txt` for Tricky Store v1.2.1 or higher.
- No longer need to add `!` to Play Store for devices that have security patch older than one year to get strong integrity in new A13+ check.
- **Magisk:** automatically add apps from DenyList to `target.txt` on boot. To enable this feature, click "Select from DenyList" once in WebUI after update.
### v3.2
- Add `android` and `com.android.vending` by default.
- Handle `ro.vendor.build.security_patch` if the value is different.
- Updated Japanese translation (#11, @reindex-ot)
- Added Turkish translation (@berkmirsatk)
### v3.1
- Added `com.google.android.gsf` and `com.android.vending` into WebUI app list. (#10, @ChiseWaguri)
- Fixed multiple instances of GMS appeared in the app list when GMS isn't a system app.
- Added auto backup `keybox.xml` to `keybox.xml.bak` before replacing it.
- Minor animation improvements and code optimizations.
- [Markdown support](https://github.com/markedjs/marked) for future update changelog in WebUI.
### v3.0
- Animation improvement: new checkbox animation, new touch ripple animation, and more.
- Adjust save button and prompt position in MMRL.
@@ -21,7 +39,7 @@ Telegram channel: [KOW's Little World](https://t.me/kowchannel)
- Optimized scripts, thanks to @backslashxx.
- Fixed freeze in weak connection.
- Added Spanish, thanks to @Keinta15.
- Removed rescriction on installation but module will still be removed if tricky store is not found after reboot.
- Removed restriction on installation but module will still be removed if Tricky Store is not found after reboot.
### v2.8
- Fixed all KSUWebUIStandalone freeze issue, removed visible option.
@@ -39,7 +57,7 @@ Telegram channel: [KOW's Little World](https://t.me/kowchannel)
- Press any position of app card to select/deselct.
### v2.6
- Invisible module, intergrate action button & webui on tricky store card. You can stil use visible option if you found any issue with invisble module. Thanks for idea from @backslashxx.
- Invisible module, integrate action button & WebUI on Tricky Store card. You can still use visible option if you found any issue with invisible module. Thanks for idea from @backslashxx.
- To uninstall invisble module, scroll down to the bottom of WebUI and press Uninstall WebUI.
- Add update prompt if found new version in webui, and show module if found an update. (invisible)
- Reduced WebUI loading time

View File

@@ -21,6 +21,8 @@ me.garfieldhan.apatch.next"
ADDITION="
com.google.android.gms
com.google.android.gsf
com.android.vending
io.github.vvb2060.keyattestation
io.github.vvb2060.mahoshojo
icu.nullptr.nativetest"

View File

@@ -14,22 +14,22 @@ abort() {
}
download() {
local type=${1#--}
local url=$2
local output=$3
download_type=${1#--}
download_url=$2
download_output=$3
PATH=/data/adb/magisk:/data/data/com.termux/files/usr/bin:$PATH
if command -v curl >/dev/null 2>&1; then
if [ "$type" = "output" ]; then
timeout 10 curl -Lo "$output" "$url"
if [ "$download_type" = "output" ]; then
timeout 10 curl -Lo "$download_output" "$download_url"
else
timeout 2 curl -s "$url"
timeout 2 curl -s "$download_url"
fi
else
if [ "$type" = "output" ]; then
timeout 10 busybox wget --no-check-certificate -qO "$output" "$url"
if [ "$download_type" = "output" ]; then
timeout 10 busybox wget --no-check-certificate -qO "$download_output" "$download_url"
else
timeout 2 busybox wget --no-check-certificate -qO- "$url"
timeout 2 busybox wget --no-check-certificate -qO- "$download_url"
fi
fi
PATH="$ORG_PATH"

View File

@@ -5,28 +5,35 @@ SKIPLIST="$MODPATH/tmp/skiplist"
OUTPUT="$MODPATH/tmp/exclude-list"
KBOUTPUT="$MODPATH/tmp/.extra"
if [ "$MODPATH" = "/data/adb/modules/.TA_utl/common" ]; then
MODDIR="/data/adb/modules/.TA_utl"
MAGISK="true"
else
MODDIR="/data/adb/modules/TA_utl"
fi
aapt() { "$MODPATH/aapt" "$@"; }
# probe for downloaders
# wget = low pref, no ssl.
# curl, has ssl on android, we use it if found
download() {
local type=${1#--}
local url=$2
local output=$3
download_type=${1#--}
download_url=$2
download_output=$3
PATH=/data/adb/ap/bin:/data/adb/ksu/bin:/data/adb/magisk:/data/data/com.termux/files/usr/bin:$PATH
if command -v curl >/dev/null 2>&1; then
if [ "$type" = "output" ]; then
timeout 10 curl -Lo "$output" "$url"
if [ "$download_type" = "output" ]; then
timeout 10 curl -Lo "$download_output" "$download_url"
else
timeout 3 curl -s "$url"
timeout 3 curl -s "$download_url"
fi
else
if [ "$type" = "output" ]; then
timeout 10 busybox wget --no-check-certificate -qO "$output" "$url"
if [ "$download_type" = "output" ]; then
timeout 10 busybox wget --no-check-certificate -qO "$download_output" "$download_url"
else
timeout 3 busybox wget --no-check-certificate -qO- "$url"
timeout 3 busybox wget --no-check-certificate -qO- "$download_url"
fi
fi
PATH="$ORG_PATH"
@@ -57,11 +64,12 @@ get_unnecessary() {
}
check_update() {
[ -f "$MODDIR/disable" ] && rm -f "$MODDIR/disable"
JSON=$(download --fetch "https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/main/update.json") || exit 1
REMOTE_VERSION=$(echo "$JSON" | grep -o '"versionCode": *[0-9]*' | awk -F: '{print $2}' | tr -d ' ')
LOCAL_VERSION=$(grep -o 'versionCode=[0-9]*' "$MODPATH/update/module.prop" | awk -F= '{print $2}')
if [ "$REMOTE_VERSION" -gt "$LOCAL_VERSION" ] && [ ! -f "/data/adb/modules/TA_utl/update" ]; then
if [ "$MODPATH" = "/data/adb/modules/.TA_utl/common" ]; then
if [ "$MAGISK" = "true" ]; then
[ -d "/data/adb/modules/TA_utl" ] && rm -rf "/data/adb/modules/TA_utl"
cp -rf "$MODPATH/update" "/data/adb/modules/TA_utl"
else
@@ -72,8 +80,7 @@ check_update() {
}
uninstall() {
if [ "$MODPATH" = "/data/adb/modules/.TA_utl/common" ]; then
[ -d "/data/adb/modules/TA_utl" ] && rm -rf "/data/adb/modules/TA_utl"
if [ "$MAGISK" = "true" ]; then
cp -rf "$MODPATH/update" "/data/adb/modules/TA_utl"
else
cp -f "$MODPATH/update/module.prop" "/data/adb/modules/TA_utl/module.prop"
@@ -90,15 +97,14 @@ get_update() {
}
install_update() {
if command -v magisk >/dev/null 2>&1; then
command -v magisk >/dev/null 2>&1 && {
magisk --install-module "$MODPATH/tmp/module.zip"
elif command -v apd >/dev/null 2>&1; then
} || command -v apd >/dev/null 2>&1 && {
apd module install "$MODPATH/tmp/module.zip"
elif command -v ksud >/dev/null 2>&1; then
} || command -v ksud >/dev/null 2>&1 && {
ksud module install "$MODPATH/tmp/module.zip"
else
exit 1
fi
} || exit 1
rm -f "$MODPATH/tmp/module.zip"
rm -f "$MODPATH/tmp/changelog.md"
}

View File

@@ -1,7 +1,7 @@
id=TA_utl
name=Tricky Addon - Update Target List
version=v3.0
versionCode=300
version=v3.3
versionCode=330
author=KOWX712
description=A WebUI to conifgure tricky store target.txt
updateJson=https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/main/update.json

View File

@@ -1,17 +1,46 @@
MODPATH=${0%/*}
HIDE_DIR="/data/adb/modules/.TA_utl"
TS="/data/adb/modules/tricky_store"
SCRIPT_DIR="/data/adb/tricky_store"
TARGET_DIR="/data/adb/tricky_store"
TSPA="/data/adb/modules/tsupport-advance"
aapt() { "$MODPATH/common/aapt" "$@"; }
add_denylist_to_target() {
exclamation_target=$(grep '!' "/data/adb/tricky_store/target.txt" | sed 's/!$//')
question_target=$(grep '?' "/data/adb/tricky_store/target.txt" | sed 's/?$//')
target=$(sed 's/[!?]$//' /data/adb/tricky_store/target.txt)
denylist=$(magisk --denylist ls 2>/dev/null | awk -F'|' '{print $1}' | grep -v "isolated")
printf "%s\n" "$target" "$denylist" | sort -u > "/data/adb/tricky_store/target.txt"
for target in $exclamation_target; do
sed -i "s/^$target$/$target!/" "/data/adb/tricky_store/target.txt"
done
for target in $question_target; do
sed -i "s/^$target$/$target?/" "/data/adb/tricky_store/target.txt"
done
}
# Reset verified Boot Hash
hash_value=$(grep -v '^#' "/data/adb/boot_hash" | tr -d '[:space:]')
if [ -n "$hash_value" ]; then
resetprop -n ro.boot.vbmeta.digest "$hash_value"
fi
# Reset vendor patch if different with security patch
security_patch=$(getprop ro.build.version.security_patch)
vendor_patch=$(getprop ro.vendor.build.security_patch)
if [ "$vendor_patch" != "$security_patch" ]; then
TS_version=$(grep "versionCode=" "$TS/module.prop" | cut -d'=' -f2)
if [ "$TS_version" -lt 158 ]; then
resetprop -n ro.vendor.build.security_patch "$security_patch"
else
printf "boot=%s\nvendor=%s\n" "$security_patch" "$security_patch" > "$TARGET_DIR/security_patch.txt"
fi
fi
# Disable TSupport-A auto update target to prevent overwrite
if [ -d "$TSPA" ]; then
touch "/storage/emulated/0/stop-tspa-auto-target"
@@ -19,16 +48,23 @@ elif [ ! -d "$TSPA" ] && [ -f "/storage/emulated/0/stop-tspa-auto-target" ]; the
rm -f "/storage/emulated/0/stop-tspa-auto-target"
fi
# Hide module
# Magisk operation
if [ -f "$MODPATH/action.sh" ]; then
# Hide module from Magisk manager
if [ "$MODPATH" != "$HIDE_DIR" ]; then
rm -rf "$HIDE_DIR"
mv "$MODPATH" "$HIDE_DIR"
fi
MODPATH="$HIDE_DIR"
elif [ -d "$HIDE_DIR" ]; then
rm -rf "$HIDE_DIR"
# Add target from denylist
# To trigger this, choose "Select from DenyList" in WebUI once
[ -f "/data/adb/tricky_store/target_from_denylist" ] && add_denylist_to_target
else
[ -d "$HIDE_DIR" ] && rm -rf "$HIDE_DIR"
fi
# Hide module from APatch, KernelSU, KSUWebUIStandalone, MMRL
rm -f "$MODPATH/module.prop"
# Symlink tricky store
@@ -42,31 +78,41 @@ fi
# Optimization
OUTPUT_APP="$MODPATH/common/tmp/applist"
OUTPUT_SKIP="$MODPATH/common/tmp/skiplist"
OUTPUT_TMP="$MODPATH/common/tmp/tmp_applist"
until [ "$(getprop sys.boot_completed)" = "1" ]; do
sleep 1
done
# Create temporary directory
mkdir -p "$MODPATH/common/tmp"
pm list packages -3 2>/dev/null | awk -F: '{print $2}' > "$OUTPUT_TMP"
# Additional system apps
SYSTEM_APP="com.google.android.gms|com.google.android.gsf|com.android.vending"
pm list package -s | awk -F: '{print $2}' | grep -Ex "$SYSTEM_APP" >> "$OUTPUT_TMP"
# Initialize cache files to save app list and skip list
echo "# This file is generated from service.sh to speed up load time" > "$OUTPUT_APP"
echo "# This file is generated from service.sh to speed up load time" > "$OUTPUT_SKIP"
cat "$OUTPUT_TMP" | while read -r PACKAGE; do
# Get list of third party apps and specific system apps, then cache app name
# Check Xposed module
{
pm list packages -3 2>/dev/null
pm list package -s | grep -E "$SYSTEM_APP"
} | awk -F: '{print $2}' | while read -r PACKAGE; do
# Get APK path for the package
APK_PATH=$(pm path "$PACKAGE" 2>/dev/null | grep "base.apk" | awk -F: '{print $2}' | tr -d '\r')
[ -z "$APK_PATH" ] && APK_PATH=$(pm path "$PACKAGE" 2>/dev/null | grep ".apk" | awk -F: '{print $2}' | tr -d '\r')
if [ -n "$APK_PATH" ]; then
# Extract app name and save package info
APP_NAME=$(aapt dump badging "$APK_PATH" 2>/dev/null | grep "application-label:" | sed "s/application-label://g; s/'//g")
echo "app-name: $APP_NAME, package-name: $PACKAGE" >> "$OUTPUT_APP"
else
echo "app-name: Unknown App package-name: $PACKAGE" >> "$OUTPUT_APP"
fi
# Check if app is Xposed module and add to skip list if not
if ! aapt dump xmltree "$APK_PATH" AndroidManifest.xml 2>/dev/null | grep -qE "xposed.category|xposeddescription"; then
echo "$PACKAGE" >> "$OUTPUT_SKIP"
fi
done
rm -f "$OUTPUT_TMP"

View File

@@ -10,6 +10,7 @@ fi
# Remove residue and restore aosp keybox.
rm -rf "/data/adb/modules/.TA_utl"
rm -f "/data/adb/boot_hash"
rm -f "/data/adb/tricky_store/target_from_denylist"
if [ -d "$TS" ]; then
[ -L "$TS/webroot" ] && rm -f "$TS/webroot"
[ -L "$TS/action.sh" ] && rm -f "$TS/action.sh"

View File

@@ -54,7 +54,7 @@
},
"about": {
"module_name_line1": "Tricky Addon",
"module_name_line2": "Update Target List",
"module_name_line2": "ターゲットリストを更新",
"by": "開発者: ",
"telegram_channel": "Telegram チャンネル",
"github": "GitHub",
@@ -83,4 +83,4 @@
"rebooting": "再起動中...",
"reboot_fail": "再起動に失敗しました。手動で再起動してください。"
}
}
}

View File

@@ -0,0 +1,86 @@
{
"language": "Türkçe",
"header": {
"title": "Tricky Addon"
},
"help": {
"help_instructions": "Talimatlar",
"save_and_update": "Kaydet",
"save_and_update_description": "Mevcut yapılandırmayı target.txt dosyasına kaydet.",
"refresh": "Yenile",
"refresh_description": "Uygulama ve hariç tutma listesini yenile.",
"select_deselect": "Tümünü Seç & Seçimi Kaldır",
"select_description": "Mevcut arayüzdeki tüm uygulamaları seç veya seçimini kaldır.",
"select_denylist": "Reddetme Listesinden Seç",
"select_denylist_description": "Yalnızca Magiskte mevcut, Reddetme Listesindeki uygulamaları seç. Tavsiye edilir.",
"deselect_unnecessary": "Gereksizleri Seçme",
"deselect_unnecessary_description": "Gereksiz kategori: Xposed modülü, root yöneticisi, root ile ilgili uygulamalar ve asla bootloader durumunu kontrol etmeyen genel uygulamalar. Bu seçenek internet bağlantısı gerektirir.",
"set_keybox": "AOSP & Geçerli Keybox Ayarla",
"set_keybox_description": "Tricky Store'daki keybox.xml dosyasını değiştirir. Eğer geçerli bir keybox yoksa AOSP keybox ile değiştirilecektir. Geçerli keybox seçeneği internet bağlantısı gerektirir.",
"set_verified_boot_hash": "Doğrulanmış Boot Hash Ayarla",
"set_verified_boot_hash_description": "Key Attestation Demodan verifiedBootHash değerini alın. Abnormal boot durumunu ro.boot.vbmeta.digesti sıfırlayarak düzeltin."
},
"update": {
"update_available": "Yeni bir sürüm hazır",
"redirect_to_release": "Son sürümü indirmek için dokunun",
"changelog": "Değişiklik Günlüğü",
"install": "Yükle",
"reboot": "Yeniden Başlat"
},
"search_bar": {
"search_placeholder": "Ara"
},
"functional_button": {
"save_and_update_button": "Kaydet",
"uninstall_webui": "WebUIı Kaldır"
},
"loading": {
"loading": "Yükleniyor..."
},
"menu": {
"refresh": "Yenile",
"select_all": "Tümünü Seç",
"deselect_all": "Tüm Seçimleri Kaldır",
"select_denylist": "Reddetme Listesinden Seç",
"deselect_unnecessary": "Gereksizleri Seçme",
"set_aosp_keybox": "AOSP Keybox Ayarla",
"set_valid_keybox": "Geçerli Keybox Ayarla",
"set_verified_boot_hash": "Doğrulanmış Boot Hash Ayarla",
"about": "Hakkında"
},
"reset_vbmeta": {
"boot_hash_input_placeholder": "Doğrulanmış Boot Hashinizi buraya yapıştırın",
"boot_hash_save_button": "Kaydet"
},
"about": {
"module_name_line1": "Tricky Addon",
"module_name_line2": "Target List'i Güncelle",
"by": "tarafından",
"telegram_channel": "Telegram Kanalı",
"github": "GitHub",
"disclaimer": "Bu modül, Tricky Store modülünün bir parçası değildir. Herhangi bir sorun yaşarsanız, lütfen bunu Tricky Storea rapor etmeyin.",
"acknowledgment": "Teşekkür"
},
"prompt": {
"no_internet": "Lütfen internet bağlantınızı kontrol edin",
"aosp_key_set": "AOSP keybox başarıyla ayarlandı",
"key_set_error": "Keybox güncellenemedi",
"valid_key_set": "Geçerli keybox başarıyla ayarlandı",
"no_valid_fallback": "Geçerli keybox bulunamadı, AOSP keybox ile değiştirildi.",
"boot_hash_set": "Doğrulanmış Boot Hash başarıyla kaydedildi",
"boot_hash_set_error": "Doğrulanmış Boot Hash güncellenemedi",
"saved_target": "Yapılandırma target.txt dosyasına kaydedildi",
"save_error": "Yapılandırma kaydedilemedi",
"uninstall_prompt": "WebUI yeniden başlatma sonrasında kaldırılacak",
"uninstall_failed": "WebUI kaldırılamadı",
"new_update": "Yeni bir güncelleme mevcut!",
"downloading": "Yeni güncelleme indiriliyor...",
"downloaded": "İndirme tamamlandı",
"download_fail": "Güncelleme indirilemedi",
"installing": "Güncelleme yükleniyor...",
"installed": "Başarıyla yüklendi, şimdi yeniden başlatın.",
"install_fail": "Yükleme başarısız oldu, lütfen manuel olarak güncelleyin",
"rebooting": "Yeniden başlatılıyor...",
"reboot_fail": "Yeniden başlatma başarısız, lütfen manuel olarak yeniden başlatın"
}
}

View File

@@ -18,7 +18,7 @@ export const floatingBtn = document.querySelector('.floating-btn');
export const basePath = "set-path";
export const appsWithExclamation = [];
export const appsWithQuestion = [];
const ADDITIONAL_APPS = [ "com.google.android.gms", "io.github.vvb2060.keyattestation", "io.github.vvb2060.mahoshojo", "icu.nullptr.nativetest" ]; // Always keep default apps in target.txt
const ADDITIONAL_APPS = [ "android", "com.android.vending", "com.google.android.gms", "io.github.vvb2060.keyattestation", "io.github.vvb2060.mahoshojo", "icu.nullptr.nativetest" ]; // Always keep default apps in target.txt
const rippleClasses = ['.language-option', '.menu-button', '.menu-options li', '.search-card', '.card', '.update-card', '.link-icon', '.floating-btn', '.uninstall-container', '.boot-hash-save-button', '.boot-hash-value', '.reboot', '.install'];
// Variables
@@ -132,7 +132,7 @@ document.getElementById("save").addEventListener("click", async () => {
return app;
});
const updatedTargetContent = modifiedAppsList.join("\n");
await execCommand(`echo "${updatedTargetContent}" > /data/adb/tricky_store/target.txt`);
await execCommand(`echo "${updatedTargetContent}" | sort -u > /data/adb/tricky_store/target.txt`);
console.log("target.txt updated successfully.");
showPrompt("prompt.saved_target");
for (const app of appsWithExclamation) {

View File

@@ -18,10 +18,9 @@ document.getElementById("deselect-all").addEventListener("click", () => toggleCh
// Function to read the denylist and check corresponding apps
document.getElementById("select-denylist").addEventListener("click", async () => {
try {
const result = await execCommand(`magisk --denylist ls 2>/dev/null | awk -F'|' '{print $1}' | grep -v "isolated" | sort | uniq`);
const result = await execCommand(`magisk --denylist ls 2>/dev/null | awk -F'|' '{print $1}' | grep -v "isolated" | sort -u`);
const denylistApps = result.split("\n").map(app => app.trim()).filter(Boolean);
const apps = document.querySelectorAll(".card");
toggleCheckboxes(false);
apps.forEach(app => {
const contentElement = app.querySelector(".content");
const packageName = contentElement.getAttribute("data-package");
@@ -30,6 +29,7 @@ document.getElementById("select-denylist").addEventListener("click", async () =>
checkbox.checked = true;
}
});
await execCommand('touch "/data/adb/tricky_store/target_from_denylist"');
console.log("Denylist apps selected successfully.");
} catch (error) {
toast("Failed to read DenyList!");

View File

@@ -89,7 +89,7 @@ function setupUpdateMenu() {
try {
showPrompt("prompt.installing");
setTimeout(async () => {
await execCommand(`sh ${basePath}common/get_extra.sh --install-update`);
await execCommand(`su -c 'sh ${basePath}common/get_extra.sh --install-update'`);
showPrompt("prompt.installed");
installButton.style.display = "none";
rebootButton.style.display = "flex";

View File

@@ -1,6 +1,6 @@
{
"versionCode": 300,
"version": "v3.0",
"zipUrl": "https://github.com/KOWX712/Tricky-Addon-Update-Target-List/releases/download/v3.0/TrickyAddonModule-v3.0.zip",
"versionCode": 330,
"version": "v3.3",
"zipUrl": "https://github.com/KOWX712/Tricky-Addon-Update-Target-List/releases/download/v3.3/TrickyAddonModule-v3.3.zip",
"changelog": "https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/main/changelog.md"
}