From 75490e312a07c86840552c7b944908942a0eb3e5 Mon Sep 17 00:00:00 2001 From: xiaoleGun <1592501605@qq.com> Date: Mon, 17 Jul 2023 11:46:09 +0800 Subject: [PATCH] patches: treble_app: Sync with latest sources of Treble App Signed-off-by: xiaoleGun <1592501605@qq.com> --- .../0001-res-Support-multiple-languages.patch | 88 ++++++------------- ...s-Add-support-for-simplified-Chinese.patch | 21 ++--- .../0003-res-Add-support-for-Japanese-1.patch | 2 +- 3 files changed, 34 insertions(+), 77 deletions(-) diff --git a/patches/personal/treble_app/0001-res-Support-multiple-languages.patch b/patches/personal/treble_app/0001-res-Support-multiple-languages.patch index 4ae9182..ab10ae7 100644 --- a/patches/personal/treble_app/0001-res-Support-multiple-languages.patch +++ b/patches/personal/treble_app/0001-res-Support-multiple-languages.patch @@ -1,4 +1,4 @@ -From f9185460e962aa6f2775fef8b74b1395e79843cc Mon Sep 17 00:00:00 2001 +From cb67a9f6fb041ac86329d7cb09a2f2bcf18a86b2 Mon Sep 17 00:00:00 2001 From: xiaoleGun <1592501605@qq.com> Date: Tue, 8 Feb 2022 16:40:33 +0800 Subject: [PATCH 1/3] res: Support multiple languages @@ -7,39 +7,32 @@ Migrate all descriptions to strings.xml Signed-off-by: xiaoleGun <1592501605@qq.com> --- - app/src/main/res/values/strings.xml | 145 +++++++++++++++++++++++++ - app/src/main/res/xml/pref_asus.xml | 14 +-- - app/src/main/res/xml/pref_custom.xml | 18 +-- - app/src/main/res/xml/pref_doze.xml | 6 +- - app/src/main/res/xml/pref_headers.xml | 32 +++--- + app/src/main/res/values/strings.xml | 139 +++++++++++++++++++++++++ + app/src/main/res/xml/pref_custom.xml | 18 ++-- + app/src/main/res/xml/pref_doze.xml | 8 +- + app/src/main/res/xml/pref_headers.xml | 30 +++--- app/src/main/res/xml/pref_huawei.xml | 14 +-- app/src/main/res/xml/pref_ims.xml | 8 +- app/src/main/res/xml/pref_lenovo.xml | 4 +- app/src/main/res/xml/pref_misc.xml | 92 ++++++++-------- app/src/main/res/xml/pref_mydevice.xml | 6 +- - app/src/main/res/xml/pref_nubia.xml | 24 ++-- - app/src/main/res/xml/pref_oneplus.xml | 12 +- - app/src/main/res/xml/pref_oppo.xml | 12 +- + app/src/main/res/xml/pref_nubia.xml | 24 ++--- + app/src/main/res/xml/pref_oneplus.xml | 12 +-- + app/src/main/res/xml/pref_oppo.xml | 12 +-- app/src/main/res/xml/pref_qualcomm.xml | 14 +-- app/src/main/res/xml/pref_samsung.xml | 44 ++++---- app/src/main/res/xml/pref_vsmart.xml | 4 +- app/src/main/res/xml/pref_xiaomi.xml | 6 +- - 17 files changed, 300 insertions(+), 155 deletions(-) + 16 files changed, 287 insertions(+), 148 deletions(-) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml -index d6f6e83..2863f5d 100644 +index d6f6e83..4ef8f91 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml -@@ -27,4 +27,149 @@ +@@ -27,4 +27,143 @@ Magisk was detected! If you proceed with the update you may lose Magisk or the installation may fail! Delete OTA files Take in consideration that you may lose your userdata if you proceed!\nTo prevent this, cancel this dialog, reboot and flash the latest update on fastboot mode.\nDo you want to proceed anyway? -+ -+ Enable glove mode -+ Enable double tap to wake -+ Enable fingerprint wake -+ Requires a reboot -+ USB port picker + + System UI Tuner + UI @@ -53,6 +46,7 @@ index d6f6e83..2863f5d 100644 + Doze + Enable Handwave gesture + Enable out-of-pocket gesture ++ Enable Chop Chop gesture + + Audio + Camera @@ -78,7 +72,6 @@ index d6f6e83..2863f5d 100644 + Lenovo features + Xiaomi features + OPPO features -+ Asus features + Doze features + Misc features + IMS features @@ -180,44 +173,6 @@ index d6f6e83..2863f5d 100644 + + Disable Sunlight Mode -diff --git a/app/src/main/res/xml/pref_asus.xml b/app/src/main/res/xml/pref_asus.xml -index 89bc590..e02594a 100644 ---- a/app/src/main/res/xml/pref_asus.xml -+++ b/app/src/main/res/xml/pref_asus.xml -@@ -1,26 +1,26 @@ - - -- -+ - -+ android:title="@string/asus_glove_mode" /> - -+ android:title="@string/asus_dt2w" /> - -- -+ - -+ android:title="asus_fp_wake" /> - -+ android:summary="@string/asus_usb_port_picker_summary" -+ android:title="@string/asus_usb_port_picker" /> - - diff --git a/app/src/main/res/xml/pref_custom.xml b/app/src/main/res/xml/pref_custom.xml index b39d167..93ec1be 100644 --- a/app/src/main/res/xml/pref_custom.xml @@ -278,12 +233,13 @@ index b39d167..93ec1be 100644 diff --git a/app/src/main/res/xml/pref_doze.xml b/app/src/main/res/xml/pref_doze.xml -index 5835325..ae479ed 100644 +index 3f8d1c1..e08e319 100644 --- a/app/src/main/res/xml/pref_doze.xml +++ b/app/src/main/res/xml/pref_doze.xml -@@ -1,13 +1,13 @@ +@@ -1,20 +1,20 @@ - + - + + android:title="@string/doze_pocket" /> + ++ android:title="@string/doze_chopchop" /> diff --git a/app/src/main/res/xml/pref_headers.xml b/app/src/main/res/xml/pref_headers.xml -index 5c54ed8..7db9aba 100644 +index 5c54ed8..5c6bdf5 100644 --- a/app/src/main/res/xml/pref_headers.xml +++ b/app/src/main/res/xml/pref_headers.xml @@ -1,52 +1,52 @@ @@ -346,8 +309,7 @@ index 5c54ed8..7db9aba 100644 + android:title="@string/oppo_features" />
-+ android:title="@string/asus_features" /> + android:title="Asus features" />
diff --git a/patches/personal/treble_app/0002-res-Add-support-for-simplified-Chinese.patch b/patches/personal/treble_app/0002-res-Add-support-for-simplified-Chinese.patch index 683b78b..f5f97d0 100644 --- a/patches/personal/treble_app/0002-res-Add-support-for-simplified-Chinese.patch +++ b/patches/personal/treble_app/0002-res-Add-support-for-simplified-Chinese.patch @@ -1,18 +1,18 @@ -From 0990611bd471540211582f709b6953f841708b86 Mon Sep 17 00:00:00 2001 +From a0beab2f03095bb2504c737899e6aa6dd39cc656 Mon Sep 17 00:00:00 2001 From: xiaoleGun <1592501605@qq.com> Date: Wed, 9 Feb 2022 14:16:06 +0800 Subject: [PATCH 2/3] res: Add support for simplified Chinese Signed-off-by: xiaoleGun <1592501605@qq.com> --- - .../main/res/values-zh-rCH/pref_custom.xml | 30 +++ + .../main/res/values-zh-rCH/pref_custom.xml | 30 ++++ .../main/res/values-zh-rCH/pref_huawei.xml | 13 ++ - app/src/main/res/values-zh-rCH/pref_misc.xml | 70 +++++++ + app/src/main/res/values-zh-rCH/pref_misc.xml | 70 ++++++++ app/src/main/res/values-zh-rCH/pref_nubia.xml | 75 ++++++++ .../main/res/values-zh-rCH/pref_oneplus.xml | 29 +++ .../main/res/values-zh-rCH/pref_samsung.xml | 17 ++ - app/src/main/res/values-zh-rCH/strings.xml | 174 ++++++++++++++++++ - 7 files changed, 408 insertions(+) + app/src/main/res/values-zh-rCH/strings.xml | 169 ++++++++++++++++++ + 7 files changed, 403 insertions(+) create mode 100644 app/src/main/res/values-zh-rCH/pref_custom.xml create mode 100644 app/src/main/res/values-zh-rCH/pref_huawei.xml create mode 100644 app/src/main/res/values-zh-rCH/pref_misc.xml @@ -293,10 +293,10 @@ index 0000000..f3b12e2 + diff --git a/app/src/main/res/values-zh-rCH/strings.xml b/app/src/main/res/values-zh-rCH/strings.xml new file mode 100644 -index 0000000..89cbc8a +index 0000000..7402e30 --- /dev/null +++ b/app/src/main/res/values-zh-rCH/strings.xml -@@ -0,0 +1,174 @@ +@@ -0,0 +1,169 @@ + + PhhTrebleApp + 设置 @@ -326,12 +326,6 @@ index 0000000..89cbc8a + 本设备已经安装Magisk,如果继续更新,可能会丢失Magisk或安装失败! + 删除更新包 + 请注意,如果继续操作,可能会丢失用户数据!\n要防止出现这种情况,请取消此对话框,重新启动并在fastboot模式下刷入更新。\n你想继续吗? -+ -+ 启用手套模式 -+ 启用双击唤醒 -+ 启用指纹唤醒 -+ 需要重启 -+ USB端口选择器 + + 系统用户界面设置 + 用户界面 @@ -345,6 +339,7 @@ index 0000000..89cbc8a + 休眠 + 启用实体手势按键 + 启用“拿出口袋”手势 ++ 启用“Chop Chop”手势(快速开/关闪光灯) + + 音频 + 相机 diff --git a/patches/personal/treble_app/0003-res-Add-support-for-Japanese-1.patch b/patches/personal/treble_app/0003-res-Add-support-for-Japanese-1.patch index b86f1cb..f26c5c7 100644 --- a/patches/personal/treble_app/0003-res-Add-support-for-Japanese-1.patch +++ b/patches/personal/treble_app/0003-res-Add-support-for-Japanese-1.patch @@ -1,4 +1,4 @@ -From 0551de0e4eaabcf5463a34fbe088bf5873972600 Mon Sep 17 00:00:00 2001 +From cf517c6052fbeddfaa57b942b7e09cd197546c64 Mon Sep 17 00:00:00 2001 From: "Re*Index. (ot_inc)" <32851879+reindex-ot@users.noreply.github.com> Date: Thu, 25 May 2023 21:21:15 +0900 Subject: [PATCH 3/3] res: Add support for Japanese (#1)