From 82c0e5a318839f700d0f362d5eb83b7d90acc539 Mon Sep 17 00:00:00 2001 From: HappyZ Date: Wed, 28 Nov 2018 01:10:40 -0600 Subject: [PATCH 1/2] Update README.md --- README.md | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 53 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4cee980..fe41cc7 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ Now we can enter diagnosis mode thanks to shankerzhiwu and his/her friend, we ca - [x] Enabling ADB in normal Android mode - [ ] Allowing self-signed pkg (fw package) to flash - [x] System language -- [ ] Launcher modification +- [x] Launcher modification (commandline figured) - [ ] Third-party app font size issue fix ### Methods @@ -103,7 +103,7 @@ Now we can enter diagnosis mode thanks to shankerzhiwu and his/her friend, we ca # Other tips -## Open settings via commandline +### Open settings via commandline ``` adb shell am start -a android.settings.SETTINGS @@ -117,6 +117,57 @@ Only three are supported: Chinese, English, and Japanese adb shell am start -a android.settings.LOCALE_SETTINGS ``` +### Switch input method + +``` +adb shell am start -a android.settings.INPUT_METHOD_SETTINGS +``` + +If you saw error dialog `Unfortunately, the iWnn IME keyboard has stopped`, this is (potentially) due to the language switch that enables an extra input method. Just go in the `Keyboard & input methods` and only enable `iWnnkbd IME`. + +### Launcher app + +DPT Launcher is funny. It uses `ExtensionManagerService` that scans through `/etc/dp_extensions`. Ideally we shall have an automated tool to add/remove icons (not a plan), but for now, a commandline approach is the following: + +Re-mount your system to be writable (requiring sudo), and then use `NoteCreator` as a template: + +``` +> adb shell +$ su +# mount -o rw,remount /system +# cd /etc/dp_extensions +# cp -R NoteCreator MyTemplate +``` + +Then we need to change the filenames: +``` +mv NoteCreator_extension.xml MyTemplate_extension.xml +mv NoteCreator_strings-en.xml MyTemplate_strings-en.xml +mv NoteCreator_strings-ja.xml MyTemplate_strings-ja.xml +mv NoteCreator_strings-zh_CN.xml MyTemplate_strings-zh_CN.xml +mv ic_homemenu_createnote.png ic_homemenu_mytemplate.png +``` + +Finally, we need to edit each file (use `busybox vi file/path/filename`): +1. For MyTemplate_extension.xml (`****` is the Android app intent name, e.g., `com.android.browser/.BrowserActivity`): +``` + + + + + +``` +2. For each `_strings-en.xml`: +``` + + + MyTemplate + +``` +3. You can upload a different png for icon `ic_homemenu_mytemplate.png` +4. Reboot + + # 0xF Mission Impossible Well, to bypass pkg validation, you can also try to decrypt the RSA key and generate corresponding private key, when we actually have enough computation resources and time to do it lol: From 86bf9d54696cfaa88c401ce766f6e00367d5940e Mon Sep 17 00:00:00 2001 From: HappyZ Date: Wed, 28 Nov 2018 01:11:53 -0600 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fe41cc7..6df77d5 100644 --- a/README.md +++ b/README.md @@ -157,7 +157,7 @@ Finally, we need to edit each file (use `busybox vi file/path/filename`): ``` -2. For each `_strings-en.xml`: +2. For each `****_strings-****.xml`: ```