在linux环境下输入getevent命令
遥控器按一个键,出现的第二行,第二个数,就是这个键对应的16进制,
转成10进制之后放入system\usr\keylayout\Vendor_2389_Product_00a8_Version_0200.kl文件中,
然后让这个键对应1,2,DPAD_UP,CHANNEL_UP等或自定义为F9(电视,需捕获之后自己跳转),F2(电影需捕获之后自己跳转)
如果是全局都可以用的按钮,则还需要在在system\etc\hotkey.xml中进行跳转
不同的遥控器要配合不同的.kl文件
在linux环境下输入getevent -v 命令
130|root@n302:/ # getevent -v
add device 4: /dev/input/event2 //kl文件的命名规则Vendor_0c45_Product_1109_Version_0100.kl
bus: 0003
vendor 0c45
product 1109
version 0100
name: "coocaa Device coocaa Wireless Device"
location: "usb-lm2-1/input0"
id: ""
version: 1.0.1
add device 5: /dev/input/event0
bus: 0010
vendor 0001
product 0001
version 0100
name: "aml_keypad"
locatio