From 184d50840c86cec2c21df5e46208a059daf6c920 Mon Sep 17 00:00:00 2001 From: KOWX712 Date: Thu, 19 Jun 2025 00:12:37 +0800 Subject: [PATCH] feat: add support for qwq233's tricky store fork GitHub@qwq233/TrickyStore --- module/common/get_extra.sh | 8 +++ module/webui/index.html | 19 +++++- module/webui/scripts/main.js | 18 ++++-- module/webui/scripts/security_patch.js | 81 +++++++++++++++++++++----- 4 files changed, 105 insertions(+), 21 deletions(-) diff --git a/module/common/get_extra.sh b/module/common/get_extra.sh index c6f0955..e4f1e28 100644 --- a/module/common/get_extra.sh +++ b/module/common/get_extra.sh @@ -136,6 +136,14 @@ set_security_patch() { SECURITY_PATCH_FILE="/data/adb/tricky_store/security_patch.txt" printf "system=prop\nboot=%s\nvendor=%s\n" "$security_patch" "$security_patch" > "$SECURITY_PATCH_FILE" chmod 644 "$SECURITY_PATCH_FILE" + # James Clef's TrickyStore fork (GitHub@qwq233/TrickyStore) + elif grep -q "James" "/data/adb/modules/tricky_store/module.prop"; then + SECURITY_PATCH_FILE="/data/adb/tricky_store/devconfig.toml" + if grep -q "^securityPatch" "$SECURITY_PATCH_FILE"; then + sed -i "s/^securityPatch .*/securityPatch = \"$security_patch\"/" "$SECURITY_PATCH_FILE" + else + echo "securityPatch = \"$security_patch\"" >> "$SECURITY_PATCH_FILE" + fi # Other else resetprop ro.vendor.build.security_patch "$security_patch" diff --git a/module/webui/index.html b/module/webui/index.html index 7bb9b31..e570824 100644 --- a/module/webui/index.html +++ b/module/webui/index.html @@ -268,6 +268,7 @@
+
@@ -275,6 +276,7 @@
+ + + + +