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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With