KeyEvent Display

4.2
166 reviews
10K+
Downloads
Content rating
Everyone
Screenshot image
Screenshot image
Screenshot image
Screenshot image

About this app

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
Updated on
Jul 5, 2020

Data safety

Safety starts with understanding how developers collect and share your data. Data privacy and security practices may vary based on your use, region, and age. The developer provided this information and may update it over time.
No data shared with third parties
Learn more about how developers declare sharing
No data collected
Learn more about how developers declare collection

Ratings and reviews

4.2
158 reviews
A Google user
August 24, 2019
As a developer, this app is indeed very useful to me. But, the ability to change font size should be included. Also, it displays only the key codes, without the names. It would have been better if the key names could be displayed.
11 people found this review helpful
Did you find this helpful?
A Google user
November 8, 2018
It does the job perfectly. It helped me determine specific button keycodes so that I could customize the buttons I'm Tasker and various other apps.
6 people found this review helpful
Did you find this helpful?
A Google user
April 21, 2019
21APR19: Awesome. Found my hardware key mapping easily with this app. No advertising. Brilliant.
4 people found this review helpful
Did you find this helpful?

What's new

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