KeyEvent Display

KeyEvent Display

Outils | Alexandros Schillings

Jouez sur PC avec BlueStacks - la plate-forme de jeu Android, approuvée par + 500M de joueurs.

Page Modifiée le: 21 février 2012

Play KeyEvent Display on PC

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.

Jouez à KeyEvent Display sur PC. C'est facile de commencer.

  • Téléchargez et installez BlueStacks sur votre PC

  • Connectez-vous à Google pour accéder au Play Store ou faites-le plus tard

  • Recherchez KeyEvent Display dans la barre de recherche dans le coin supérieur droit

  • Cliquez pour installer KeyEvent Display à partir des résultats de la recherche

  • Connectez-vous à Google (si vous avez ignoré l'étape 2) pour installer KeyEvent Display

  • Cliquez sur l'icône KeyEvent Display sur l'écran d'accueil pour commencer à jouer

Regarder la Vidéo