Perihalan KeyEvent Display
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.
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:
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
KeyEvent Display 1.0.26 Kemas kini
KeyEvent Display Tanda
V1.0.26 1.8 MB APK
2020-07-06KeyEvent Display 1.0.26 (26)
Kemaskini pada: 2020-07-06
Dimuat naik oleh: Hatthasin Moukda
Memerlukan Android: Android 4.2+ (Jelly Bean MR1, API 17)
Fail SHA1: a4fa84b51d846b98d2103a803672fae4f9c0df49
Saiz Fail: 1.8 MB
Apa yang terkini:
V0.0.4 53.2 KB APK
2015-09-09KeyEvent Display 0.0.4 (4)
Kemaskini pada: 2015-09-09
Dimuat naik oleh: Eng-Abdel Rahman Mohamed
Memerlukan Android: Android 1.6+ (Donut, API 4)
Fail SHA1: 8a15be8dd098da9157c34cad9bd40a1812725b8a
Saiz Fail: 53.2 KB
Apa yang terkini: