例如:device\amlogic\f02ref目录下.idc文件
1,开机之后,在串口中输入 dumpsys window 这个命令,得到如下信息
WINDOW MANAGER INPUT (dumpsys window input)
Event Hub State:
BuiltInKeyboardId: -1
Devices:
1: Goodix TouchScreen of Guitar
Classes: 0x00000014
Path: /dev/input/event4
Location: input/ts)
UniqueId:
Identifier: bus=0x0018, vendor=0xdead, product=0xbeef, version=0x28bb
KeyLayoutFile:
KeyCharacterMapFile:
ConfigurationFile:
Identifier中得参数如果不为零,就用Vendor_dead_Product_beef.idc,这个命名是根据打印出来的信息更改;如果它的参数全部为零就更改为Goodix TouchScreen of Guitar.idc ( Goodix TouchScreen of Guitar 这个是触摸屏驱动中的name信息,不要有空格)
注意:idc文件要重新编code烧进去才行,直接考进去用不了
注意:touch driver里的name要是有空格的话,就要用转义符
$(LOCAL_PATH)/Vendor_dead_Product_beef.idc:system/usr/idc/Vendor_dead_Product_beef.idc
1: TouchScreen
Classes: 0x00000155
Path: /dev/input/event5
Location: I2C
UniqueId:
Identifier: bus=0x0018, vendor=0x0000, product=0x0000, version=0x0000
KeyLayoutFile: /system/usr/keylayout/Generic.kl
KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
ConfigurationFile: