Enter the device configuration file (. IDC File)

Source: Internet
Author: User

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

     

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.