怎样在Android L版本添加新Key?
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
L版本添加新key的方法
[SOLUTION]
1、Modify keypad_YuSu.cmp
alps/kernel-3.10/tools/dct/
alps/bootable/bootloader/lk/scripts/dct/
alps/bootable/bootloader/preloader/tools/dct/
alps/vendor/mediatek/proprietary/factory/dct/
Add new define key
2、Choose New Key In DCT Tool,thenSave to codegen.dws file
3、Modify file kpd.calps/kernel-3.10/drivers/misc/mediatek/keypad/
4、Modify file input.halps\kernel-3.10\include\uapi\linux
5、Modify file xxx.kl文件
6、修改Java识别keycode
7、修改Java 键盘事件
8、修改XML文件描述符
9、buildmake -j24 2>&1 | tee build.log
project 全部build