KeyEvent Display

Alexandros Schillings

KeyEvent Display

Tools
  • 3.00
(166 votes)

Free Install

10000

app installs

minimal version

With ads

advertisement

23.12.2010

release date

Recent changes:

* v1.0.0: Redesign, added Android TV support.

Description:

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.

This application is open source. The code can be found here: https://github.com/alt236/KeyEvent-Display---Android

Alexandros Schillings other Apps

USB Device Info

USB Device Info

Alexandros Schillings
  • 3.18
KeyEvent Display

KeyEvent Display

Alexandros Schillings
  • 3.00
Under the Hood

Under the Hood

Alexandros Schillings
  • 4.83
Bluetooth LE Scanner

Bluetooth LE Scanner

Alexandros Schillings
  • 3.28
Reflective Drawable Loader

Reflective Drawable Loader

Alexandros Schillings
  • 0.00
Network Info II

Network Info II

Alexandros Schillings
  • 4.34
WiFi Key Recovery (needs root)

WiFi Key Recovery (needs root)

Alexandros Schillings
  • 2.97
USB VEN/DEV Database

USB VEN/DEV Database

Alexandros Schillings
  • 0.00
Hex2Bin

Hex2Bin

Alexandros Schillings
  • 0.00
Network Port Database

Network Port Database

Alexandros Schillings
  • 0.00
Download