alt236 Development

[Home] [Android] [KeyEvent Display]

KeyEvent Display


Lately I've been playing with a number of Chinese tablets and trying different ROMs on them as they are technically the same hardware (HSG X5A variants).

I've had some problems getting the hard buttons to work though, so I wrote this application to detect key events and print them out.

The three checkboxes at the top control what information will be displayed.

  • KeyEvents: The KeyEvents as Android understands them (KeyUp, KeyDown, KeyLongPress, KeyMultiple).
  • LogCat: Will display any messages KeyCharacterMap writes reports in Logcat.
  • Kernel: Any relevant messages in the kernel log. This currently displays lines containing the word 'keycode' and 'HwGPIOE->GPDA'. If you need anything else, let me know.

This is a personal debug tool, but I hope it will be of some use to someone else.

No Ads.


drawables screenshot 1


drawables screenshot 2


  • While the application is running, the only "hard" keys which should work is "Home" and power. All others will produce their keycodes.\n
  • The SU request is to read the kernel log, so I can check if any keyevents are thrown by the kernel.\n
    Kernel monitoring is currently limited only to lines which contain "keycode" or "HwGPIOE->GPDA". Email me if you need anything more.
  • The location of keylayout files in Android is "/system/usr/keylayout".


  • v0.1: First public release.



 To download the application you'll need to go to the Android Market and search for "KeyEvent Display".

Alternatively, use an application like Barcode Scanner to scan the QR code below (or click on it from your Android device):


Home   Contact   Blog   Curriculum Vitae   Disclaimer

Mobile and Web Analytics