From fce01949e0c8dc20fae86110a79d11e6ad8dcfa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=80=E6=BC=93=E4=B8=A8Sevtinge?= Date: Tue, 7 Nov 2023 08:35:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E6=B5=8F=E8=A7=88?= =?UTF-8?q?=E5=99=A8-=E8=A7=A3=E9=94=81=E5=BC=80=E5=8F=91=E8=80=85?= =?UTF-8?q?=E9=80=89=E9=A1=B9=EF=BC=88=E6=B2=A1=E6=9C=89=E5=85=A5=E5=8F=A3?= =?UTF-8?q?=EF=BC=8C=E4=BD=86=E6=98=AF=E8=A7=A3=E9=94=81=EF=BC=8C=E5=8F=AF?= =?UTF-8?q?=E7=94=A8=E4=BA=8E=E5=8E=BB=E9=99=A4=E4=B8=8B=E8=BD=BD=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E5=B9=BF=E5=91=8A=E7=AD=89=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hyperceiler/module/hook/browser/DebugMode.kt | 15 +++++++++++++++ app/src/main/res/values-ja-rJP/strings.xml | 1 - app/src/main/res/values-pt-rBR/strings.xml | 1 - app/src/main/res/values-ru-rRU/strings.xml | 1 - app/src/main/res/values-vi-rVN/strings.xml | 1 - app/src/main/res/values-zh-rCN/strings.xml | 2 +- app/src/main/res/values-zh-rHK/strings.xml | 1 - app/src/main/res/values-zh-rTW/strings.xml | 1 - app/src/main/res/values/strings.xml | 2 +- 9 files changed, 17 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/com/sevtinge/hyperceiler/module/hook/browser/DebugMode.kt b/app/src/main/java/com/sevtinge/hyperceiler/module/hook/browser/DebugMode.kt index af90258219..b6fb3d4bd7 100644 --- a/app/src/main/java/com/sevtinge/hyperceiler/module/hook/browser/DebugMode.kt +++ b/app/src/main/java/com/sevtinge/hyperceiler/module/hook/browser/DebugMode.kt @@ -61,6 +61,21 @@ object DebugMode : BaseHook() { } }*/ initDexKit(lpparam) + + dexKitBridge.findMethod { + matcher { + addUsingStringsEquals("environment_flag") + returnType = "java.lang.String" + } + }.forEach { + val environmentFlag = it.getMethodInstance(lpparam.classLoader) + logI(TAG, this.lpparam.packageName, "environmentFlag method is $environmentFlag") + XposedBridge.hookMethod( + environmentFlag, + XC_MethodReplacement.returnConstant("1") + ) + } + dexKitBridge.findMethod { matcher { addUsingStringsEquals("pref_key_debug_mode_new") diff --git a/app/src/main/res/values-ja-rJP/strings.xml b/app/src/main/res/values-ja-rJP/strings.xml index 24f2be8d3e..7ceac4fad5 100644 --- a/app/src/main/res/values-ja-rJP/strings.xml +++ b/app/src/main/res/values-ja-rJP/strings.xml @@ -312,7 +312,6 @@ ブラウザー 開発者オプションの有効化 - 17.5.xxxxx 以降はサポートされていません カメラ AI の透かしをアンロック diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index 47801c2ecb..f0c2077b1c 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -313,7 +313,6 @@ Navegador Desbloquear opções do desenvolvedor - 17.5.xxxxx e acima não são suportados Câmera Desbloquear Marca d\'água inteligente diff --git a/app/src/main/res/values-ru-rRU/strings.xml b/app/src/main/res/values-ru-rRU/strings.xml index 06d22b927b..8bbc08c801 100644 --- a/app/src/main/res/values-ru-rRU/strings.xml +++ b/app/src/main/res/values-ru-rRU/strings.xml @@ -254,7 +254,6 @@ Браузер Параметры разработчика - 17.5.xxxxx и выше не поддерживается Камера Умный водяной знак diff --git a/app/src/main/res/values-vi-rVN/strings.xml b/app/src/main/res/values-vi-rVN/strings.xml index fcb4782bbf..2fb380fbae 100644 --- a/app/src/main/res/values-vi-rVN/strings.xml +++ b/app/src/main/res/values-vi-rVN/strings.xml @@ -315,7 +315,6 @@ Chức năng này là chức năng thử nghiệm có độ ổn định cao Trình duyệt Tùy chọn nhà phát triển - 17.5.xxxxx trở lên không được hỗ trợ Máy ảnh Mở khóa Dấu chìm AI diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index f6025d38b9..a6ad3bf4ad 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -344,7 +344,7 @@ 浏览器 解锁开发者选项 - 不支持 17.5.xxxxx 及以上版本 + 17.5.xxxxx 及以上版本没有入口 相机 解锁 AI 水印 diff --git a/app/src/main/res/values-zh-rHK/strings.xml b/app/src/main/res/values-zh-rHK/strings.xml index 2bf3772137..e990d3722d 100644 --- a/app/src/main/res/values-zh-rHK/strings.xml +++ b/app/src/main/res/values-zh-rHK/strings.xml @@ -313,7 +313,6 @@ 瀏覽器 開發者選項 - 不支援 17.5.xxxxx 及以上版本 相機 解鎖 AI 浮水印 diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index 76b159da82..b8bd2270d8 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -313,7 +313,6 @@ 瀏覽器 開發者選項 - 不支援 17.5.xxxxx 及以上版本 相機 解鎖 AI 浮水印 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index e1c8bc678d..6953fbf4d5 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -342,7 +342,7 @@ Browser Unlock developer options - 17.5.xxxxx and above are not supported + 17.5.xxxxx and above are no entry Camera Unlock AI watermark