How to add dock keyboard function key support for AOSP (for developers)
I have added support for the dock keyboard function keys (Wireless, Bluetooth, Touchpad, etc). This required adding support for the non-standard Asus keycode labels (this was the easy part) and adding code to the framework to send the related keyevents to the Asus keyboard service.
Attached is a zip file with the updated source files. In addition you will need to have the Asus Keyboard.apk app resigned with a AOSP cert. You need to either resign it yourself or you can extract it from the zip attached to this post, http://forum.xda-developers.com/show....php?t=1542502.
Also some ROMs have switched to using the keylayout and keychar files from the above post. DO NOT use these going forward! The entries for the function keys were remarked out of these files to prevent issues which no longer exist now that the Asus keycodes are supported. The function keys will not work if you use these files. You should use the original keylayout and keychar files shipped by Asus.
I have no plans to submit these myself to any of the AOSP projects. If you maintain the TF101 port for any AOSP ROMs feel free to submit the patches to your project.
|