红外遥控器适配(remote*.conf)
1.getevent -l //查看适配的遥控器及对应的event
2.dumpsys input //查看每套遥控器对应的kl文件
3.cat /proc/kmsg //查看物理键值(红外键值)
4.根据物理键值结合remote*.conf文件找到Linux键值
5.logcat -vtime|grep keycode //查看Android键值
蓝牙遥控器适配(hid-input.c/input.h)
1.lsusb //查看本机的USB设备列表及其详细信息—针对外置蓝牙Dongle,设备ID【vendor id : product id】
2.dumpsys input结合【vendor id : product id】找到对应的kl文件
3.07类型,根据蓝牙键值(物理键值),纵向横向(0~F)数hid_keyboard[256],找到位置即为Linux键值,搜索Linux键值在input.h中对应的按键名称,然后修改kl文件
4.0c类型,在hid-input.c文件的HID_UP_CONSUMER中寻找,case后面的值为对应的蓝牙键值,map_key_clear内的值为对应的按键名称,如果没有就添加映射,