Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

To find the device name for DEVICE_NAME.kl

According to http://source.android.com/devices/tech/input/key-layout-files.html, android consults key layout files in the following order.

The following paths are consulted in order.

/system/usr/keylayout/Vendor_XXXX_Product_XXXX_Version_XXXX.kl /system/usr/keylayout/Vendor_XXXX_Product_XXXX.kl /system/usr/keylayout/DEVICE_NAME.kl /data/system/devices/keylayout/Vendor_XXXX_Product_XXXX_Version_XXXX.kl /data/system/devices/keylayout/Vendor_XXXX_Product_XXXX.kl /data/system/devices/keylayout/DEVICE_NAME.kl /system/usr/keylayout/Generic.kl /data/system/devices/keylayout/Generic.kl

How do I know an input device name (DEVICE_NAME)? How to list input device names in adb shell?

like image 769
robertchen Avatar asked Nov 06 '25 16:11

robertchen


1 Answers

cat /proc/bus/input/devices

Lists all input devices. Find your keyboard in the list to get the vendor and product ID like:

Bus=0003 Vendor=062a Product=2901 Version=0110
like image 71
dthomasen Avatar answered Nov 09 '25 09:11

dthomasen