Back to Top
KeyEvent Display Screenshot 0
KeyEvent Display Screenshot 1
KeyEvent Display Screenshot 2
KeyEvent Display Screenshot 3
Free website generator for mobile apps; privacy policy, app-ads.txt support and more... AppPage.net

About KeyEvent Display

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

Similar Apps

Network Info II

Network Info II

4.3

2.1+ version of "Network Info"Donate version available, buy me a coffee :)Shows...

Bluetooth LE Scanner

Bluetooth LE Scanner

3.9

This is a demo application to show the use of the Bluetooth...

USB Device Info

USB Device Info

3.9

Android 3.1 introduced USB hostmode which allows the user to plug USB...

WiFi Key Recovery (needs root)

WiFi Key Recovery (needs root)

3.9

** You need root to use this application.** You need to have...

Floating Info

Floating Info

0.0

Fun fact: Since Android Nougat apps cannot get the PID of other...

Reflective Drawable Loader

Reflective Drawable Loader

0.0

This is a sample project demonstrating the use of the Reflective Drawable...

Frequently Asked Questions(FAQ)

What does the KeyEvent Display application do?

The KeyEvent Display application detects key events and prints them out. It also displays relevant messages from the LogCat and kernel logs, which can be filtered based on keywords declared in arrays.xml.
author
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.
Peter Nguyen
author
Super!!!
Dimitris Rigas
author
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 na...
Puspam Adak
author
Needs some errors fixed but other than that it's good
Hashim Mohammad
author
Definitely what I need and shows well.
Hugwalk
author
21APR19: Awesome. Found my hardware key mapping easily with this app. No advertising. Brilliant.
Neo Beum