KeyEvent Display

KeyEvent Display

5,000 - 10,000 downloads

Add this app to your lists
View bigger - KeyEvent Display for Android screenshot
View bigger - KeyEvent Display for Android screenshot
View bigger - KeyEvent Display for Android screenshot
Once, I was 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. It will print out the following:

KeyEvents: The KeyEvents as Android understands them (KeyUp, KeyDown, KeyLongPress, KeyMultiple)

LogCat: Any relevant messages in logcat. Its filtered based on keywords declared in arrays.xml

Kernel: Any relevant messages in the kernel log. Its filtered based on keywords declared in arrays.xml. Kernel log parsing needs root.

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

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

No Ads.

Notes
--------------
While the application is running, the only "hard" keys which should work is "Home" and power. All others will produce their keycodes.

The SU request is to read the kernel log, so I can check if any keyevents are thrown by the kernel.

The location of keylayout files in Android is /system/usr/keylayout.

Kernel log parsing needs root

Both logcat and kernel log monitoring will only display lines containing words from two arrays in arrays.xml (i.e. you need to recompile the app to change them at the moment)

Currently the filters are:

Logcat:
|-HwGPIOE->GPDA
|-keycode
|-keycharacter

Kernel:
|-HwGPIOE->GPDA
|-keycode
|-keycharacter

Permissions
--------------
READ_LOGS: Used to access the Logcat log.
WRITE_EXTERNAL_STORAGE: Used to write the exported data to the SD card.

Tags: keyevent, key event, keyevent checkbox, keyevent code, how to use key event, share keyboard keyevent, home key event, how to use keyevent, keyeventdisplay, keyevent codes.

Recently changed in this version

v0.0.1 First public release.
v0.0.2 Improved stability, added Exit button.
v0.0.3 Code updates.
v0.0.4 Changed drawables, added sharing, added more info in export text.


Comments and ratings for KeyEvent Display
  • (74 stars)

    by david a. delagarza on 31/10/2013

    Thank you!!

  • (74 stars)

    by Ardi Ferdiansyah on 06/09/2013

    Very usefull for remaping

  • (74 stars)

    by T Turner on 14/02/2013

    Fantastic work, glad to have found such a inconspicuous application.

  • (74 stars)

    by A Google User on 08/08/2012

    "080812...try out...thanks..."

  • (74 stars)

    by Rich on 02/01/2012

    Does exactly what it needs to do.

  • (74 stars)

    by Dan on 16/12/2011

    Author responded quickly to review comments and emails, too!

  • (74 stars)

    by Oldarney on 02/07/2011

    would be great if it worked witm softvare keyboards, good app anyways.