最近入手G1,按玩智能机的惯常,熟悉一下就要开刷的。
机器是德版,也就是传说中的qwertz键盘。
刷机前是按键盘上的键位来的,还颇不习惯,刷完机成qwerty键位了,更不习惯了,符号对不上了。
于是研究了下键位的事情。参考原文如下。
http://forum.xda-developers.com/archive/index.php/t-504710.html
USB连上进入调试模式的机器
adb remount adb shell # getprop | grep keyboard [hw.keyboards.0.devname]: [trout-keypad-v3] [hw.keyboards.65540.devname]: [h2w headset] # cd /system/usr/keychars # cp trout-keypad-qwertz.kcm.bin trout-keypad-v3.kcm.bin # cd ../keylayout # cp trout-keypad-qwertz.kl trout-keypad-v3.kl # exit adb reboot
注意上面getprop,可以看到我的键盘用的是trout-keypad-v3,所以用qwertz的文件换掉相应文件就好了。
补充说明,我自己打五笔习惯了qwerty,所以把keylayout里的qwertz的文件里Y和Z换了下。这样YZ和键盘对不上,但是符号是对应的。
[2010-05-07 update]
其实只需要一个命令就可以了。
adb shell # setprop hw.keyboards.0.devname trout-keypad-qwertz]