1. What is IDC?
IDC (input device configuration) is the input device configuration file, which contains the specific configuration properties of the device, which affect the behavior of the input device. For touch screen devices, an IDC File is always required to define their behavior.
Android detects and configures the capabilities of most input devices based on the event types and attributes reported by the input device driver. However, some categories are ambiguous. For example, both multi-touch screen and touch pad support ev_abs event types and abs_mt_position_x and abs_mt_postion_y events, however, the use of these two types of devices is different and cannot be automatically determined. Therefore, additional information is required to indicate the true meaning of the pressrue and size information reported by the device. Because Touch devices, especially embedded touch
Screen, usually need IDC files.
2. IDC example
The IDC File of my touch screen device is located in the/system/usr/IDC directory. The file name is vendor_5697_product_0008.idc. The content of the file is as follows:
# Filename:Vendor_5697_Product_0008.idc# My TouchScreen Device configuration file.#touch.deviceType = touchScreentouch.orientationAware = 1keyboard.layout = Vendor_5697_Product_0008keyboard.orientationAware = 1cursor.mode = navigationcursor.orientationAware = 1
Of course, in the driver, the driver name is: vendor_5697_product_0008, that is, the name Member value of the input_dev structure is: vendor_5697_product_0008.
3. IDC access path and file name rules
The following paths are accessed in sequence:
/system/usr/idc/Vendor_XXXX_Product_XXXX_Version_XXXX.idc
/system/usr/idc/Vendor_XXXX_Product_XXXX.idc
/system/usr/idc/DEVICE_NAME.idc
/data/system/devices/idc/Vendor_XXXX_Product_XXXX_Version_XXXX.idc
/data/system/devices/idc/Vendor_XXXX_Product_XXXX.idc
/data/system/devices/idc/DEVICE_NAME.idc
Reference: http://source.android.com/tech/input/input-device-configuration-files.html
Http://source.android.com/tech/input/touch-devices.html