After some quality time with the AOSP source and a hex editor today, I've come up with modified keymap files for the G2 that make the keyboard a bit more useful. It's gone through three iterations now, and I think it covers every key you can type on a normal keyboard now. Here it is.
Changes in version 0.3 (relative to the keymap in 0.1 below):
- left softkey is now "\"/"|"/"`"
- right softkeys are now "["/"{"/"<" and "]"/"}"/">"
- alt-z is now "^", since .com is tab now
Changes in version 0.2:
- modifications to the tools used in dumping keymaps and regenerating them
Changes in version 0.1:
- make ".com" a TAB key, as it ought to be
- make first right soft key "\" (shifted is "|")
- make second right soft key "<" (shifted is ">")
Installation instructions:
NOTE: I have not tested this on the Desire Z. I have no idea what its keycharmap and keylayout files look like.
FURTHER NOTE: Use at your own risk, etc, etc. I've included the original keymap files in the .zip as (filename).orig, but it can't hurt to take your own backups
FURTHER FURTHER NOTE: I've only tested version 0.3 on Cyanogenmod 6.1-RC1 on my G2, but there's no reason it shouldn't work on stock or an alternate ROM, since the keycodes I'm actually using should be the same.
PREREQUISITES: S-OFF G2, /system mounted read-write, root, busybox for 'cp'
- download file
- unzip g2-keymap-0.3.zip
- $ adb push vision-keypad.kl /sdcard
- $ adb push vision-keypad.kcm.bin /sdcard
- $ adb shell
- $ su # (if you don't have ro.secure turned off)
- # cp -f /sdcard/vision-keypad.kl /system/usr/keylayout/
- # cp -f /sdcard/vision-keypad.kcm.bin /system/usr/keychars/
- # reboot
To uninstall, just copy the .orig files back into place (so, copy vision-keypad.kl.orig to /system/usr/keylayout/vision-keypad.kl and vision-keypad.kcm.bin.orig to /system/usr/keychars/vision-keypad.kcm.bin
Hope you find this useful!
You can find the tools I used for dumping keymaps and the keymap files themselves with history on my github at https://github.com/aglasgall/g2-keymap
Changes in version 0.3 (relative to the keymap in 0.1 below):
- left softkey is now "\"/"|"/"`"
- right softkeys are now "["/"{"/"<" and "]"/"}"/">"
- alt-z is now "^", since .com is tab now
Changes in version 0.2:
- modifications to the tools used in dumping keymaps and regenerating them
Changes in version 0.1:
- make ".com" a TAB key, as it ought to be
- make first right soft key "\" (shifted is "|")
- make second right soft key "<" (shifted is ">")
Installation instructions:
NOTE: I have not tested this on the Desire Z. I have no idea what its keycharmap and keylayout files look like.
FURTHER NOTE: Use at your own risk, etc, etc. I've included the original keymap files in the .zip as (filename).orig, but it can't hurt to take your own backups
FURTHER FURTHER NOTE: I've only tested version 0.3 on Cyanogenmod 6.1-RC1 on my G2, but there's no reason it shouldn't work on stock or an alternate ROM, since the keycodes I'm actually using should be the same.
PREREQUISITES: S-OFF G2, /system mounted read-write, root, busybox for 'cp'
- download file
- unzip g2-keymap-0.3.zip
- $ adb push vision-keypad.kl /sdcard
- $ adb push vision-keypad.kcm.bin /sdcard
- $ adb shell
- $ su # (if you don't have ro.secure turned off)
- # cp -f /sdcard/vision-keypad.kl /system/usr/keylayout/
- # cp -f /sdcard/vision-keypad.kcm.bin /system/usr/keychars/
- # reboot
To uninstall, just copy the .orig files back into place (so, copy vision-keypad.kl.orig to /system/usr/keylayout/vision-keypad.kl and vision-keypad.kcm.bin.orig to /system/usr/keychars/vision-keypad.kcm.bin
Hope you find this useful!
You can find the tools I used for dumping keymaps and the keymap files themselves with history on my github at https://github.com/aglasgall/g2-keymap
Attachments
Last edited: