Lewati ke konten

KeyEvent Display

Alexandros Schillings
  • Rating 3+Batasan usia
  • Alat Kategori
  • 5/7/2020Diperbarui
  • GratisHarga

Tertaut ke halaman resmi aws.apps.keyeventdisplay di Google Play. Terakhir diperiksa pada 24/11/2026.

Tangkapan layar

  • Tangkapan layar KeyEvent Display 1
  • Tangkapan layar KeyEvent Display 2
  • Tangkapan layar KeyEvent Display 3
  • Tangkapan layar KeyEvent Display 4

Tentang aplikasi ini

Terjemahan otomatis oleh Google. Bahasa asli: Inggris (Amerika Serikat).

Gunakan aplikasi ini untuk memeriksa / debug keycodes tombol perangkat fisik.

Suatu kali, saya bermain dengan sejumlah tablet China dan mencoba ROM yang berbeda pada mereka karena secara teknis perangkat keras yang sama (varian HSG X5A).

Saya memiliki beberapa masalah dalam membuat tombol-tombol sulit berfungsi, jadi saya menulis aplikasi ini untuk mendeteksi peristiwa-peristiwa penting dan mencetaknya. Ini akan mencetak yang berikut:

KeyEvents: The KeyEvents sebagai Android memahaminya (KeyUp, KeyDown, KeyLongPress, KeyMultiple)

LogCat: Semua pesan yang relevan di logcat. Ini difilter berdasarkan kata kunci yang dinyatakan dalam arrays.xml

Kernel: Semua pesan yang relevan di log kernel. Ini difilter berdasarkan kata kunci yang dinyatakan dalam arrays.xml. Kernel log parsing membutuhkan root.

Tiga kotak centang di bagian atas mengontrol informasi apa yang akan ditampilkan.

Ini adalah alat debug pribadi, tapi saya harap ini akan berguna bagi orang lain.

Tanpa iklan.

Catatan
--------------
Saat aplikasi sedang berjalan, satu-satunya kunci "keras" yang harus berfungsi adalah "Rumah" dan daya. Semua yang lain akan menghasilkan kode kunci mereka.

Permintaan SU adalah untuk membaca log kernel, jadi saya dapat memeriksa apakah ada keyevents yang dilemparkan oleh kernel.

Lokasi file keylayout di Android adalah / system / usr / keylayout.

Kernel log parsing membutuhkan root

Logcat dan pemantauan log kernel hanya akan menampilkan baris yang berisi kata-kata dari dua array di arrays.xml (mis. Anda perlu mengkompilasi ulang aplikasi untuk mengubahnya saat ini)

Saat ini filternya adalah:

Logcat:
| -HwGPIOE-> GPDA
| -kunci kode
| -kunci karakter

Inti:
| -HwGPIOE-> GPDA
| -kunci kode
| -kunci karakter

Izin
--------------
READ_LOGS: Digunakan untuk mengakses log Logcat.
WRITE_EXTERNAL_STORAGE: Digunakan untuk menulis data yang diekspor ke kartu SD.

Aplikasi ini bersifat open source. Kode dapat ditemukan di sini: https://github.com/alt236/KeyEvent-Display---Android
Tampilkan teks asli
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

Keamanan data

Yang dinyatakan Alexandros Schillings di Google Play tentang data yang dikumpulkan dan dibagikan aplikasi ini.

  • Tidak ada data yang dibagikan kepada pihak ketigaPelajari lebih lanjut cara developer menyatakan pembagian data
  • Tidak ada data yang dikumpulkanPelajari lebih lanjut cara developer menyatakan pengumpulan data

Yang baru

5/7/2020

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

Informasi

Ditawarkan oleh
Alexandros Schillings
Kategori
Alat
Diperbarui
5/7/2020
Dirilis
23/12/2010
Batasan usia
Rating 3+
Harga
Gratis
Nama paket
aws.apps.keyeventdisplay