android-查找DEVICE_NAME.kl的设备名称
作者:互联网
根据http://source.android.com/devices/tech/input/key-layout-files.html,android按以下顺序查询键布局文件.
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
我如何知道输入设备名称(DEVICE_NAME)?如何在adb shell中列出输入设备名称?
解决方法:
cat /proc/bus/input/devices
列出所有输入设备.
在列表中找到键盘,以获取供应商和产品ID,例如:
Bus=0003 Vendor=062a Product=2901 Version=0110
标签:android-source,android 来源: https://codeday.me/bug/20191029/1959378.html