From a12651d60fc3b50486f38afc46aa9673a008f099 Mon Sep 17 00:00:00 2001 From: WeiguangTWK Date: Mon, 30 Mar 2026 17:16:40 +0800 Subject: [PATCH] MainActivity: Add dialogue to inform that Patcher is now unavailable --- app/src/main/assets/xposed_init | 1 - .../io/github/chinosk/gakumas/localify/MainActivity.kt | 7 +++++-- app/src/main/res/values-ja/strings.xml | 2 ++ app/src/main/res/values-zh-rCN/strings.xml | 4 +++- app/src/main/res/values/strings.xml | 4 +++- 5 files changed, 13 insertions(+), 5 deletions(-) delete mode 100644 app/src/main/assets/xposed_init diff --git a/app/src/main/assets/xposed_init b/app/src/main/assets/xposed_init deleted file mode 100644 index 2df42b3..0000000 --- a/app/src/main/assets/xposed_init +++ /dev/null @@ -1 +0,0 @@ -io.github.chinosk.gakumas.localify.GakumasHookMain \ No newline at end of file diff --git a/app/src/main/java/io/github/chinosk/gakumas/localify/MainActivity.kt b/app/src/main/java/io/github/chinosk/gakumas/localify/MainActivity.kt index 1740d76..7aeb105 100644 --- a/app/src/main/java/io/github/chinosk/gakumas/localify/MainActivity.kt +++ b/app/src/main/java/io/github/chinosk/gakumas/localify/MainActivity.kt @@ -48,8 +48,11 @@ class MainActivity : ComponentActivity(), ConfigUpdateListener, IConfigurableAct } fun gotoPatchActivity() { - val intent = Intent(this, PatchActivity::class.java) - startActivity(intent) + mainUIConfirmStatUpdate( + isShow = true, + title = getString(R.string.patcher_unavailable_title), + content = getString(R.string.patcher_unavailable_content) + ) } override fun saveConfig() { diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 1f3a5e0..408cd1f 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -299,6 +299,8 @@ Xposed スコープは再パッチなしで動的に変更が可能です。 アンインストールをしてもよろしいですか? "署名が異なるため、パッチをインストールする前に元となるアプリをアンインストールする必要があります。 個人データのバックアップを設定済みであることを確認してください。" + Patcher は利用できません + このモジュールは新しい Xposed API に移行したため、埋め込みパッチモードは現在サポートしていません。 M12,4.5C7,4.5 2.73,7.61 1,12c1.73,4.39 6,7.5 11,7.5s9.27,-3.11 11,-7.5c-1.73,-4.39 -6,-7.5 -11,-7.5zM12,17c-2.76,0 -5,-2.24 -5,-5s2.24,-5 5,-5 5,2.24 5,5 -2.24,5 -5,5zM12,9c-1.66,0 -3,1.34 -3,3s1.34,3 3,3 3,-1.34 3,-3 -1.34,-3 -3,-3z M2,4.27 L19.73,22 L22.27,19.46 L4.54,1.73 L4.54,1 L23,1 L23,23 L1,23 L1,4.27 Z M2,4.27 L2,4.27 L4.54,1.73 L4.54,1.73 L4.54,1 L23,1 L23,23 L1,23 L1,4.27 Z diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index f83377e..4f40980 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -102,7 +102,9 @@ 由于签名不同,安装修补的应用前需要先卸载原应用。\n确保您已备份好个人数据。 您确定要卸载吗 修补完成,是否开始安装? + Patcher 暂不可用 + 该模块已迁移到新版 Xposed API,暂不支持内嵌修补模式。 about_contributors_zh_cn.json https://uma.chinosk6.cn/api/gkms_trans_data - \ No newline at end of file + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 7b5b5e6..e97a363 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -102,7 +102,9 @@ Due to different signatures, you need to uninstall the original app before installing the patched one.\nMake sure you have backed up personal data. Are you sure you want to uninstall? Patch finished. Start installing? + Patcher Unavailable + This module has migrated to the modern Xposed API. Embedded patch mode is temporarily unsupported. about_contributors_en.json https://api.github.com/repos/NatsumeLS/Gakumas-Translation-Data-EN/releases/latest - \ No newline at end of file +