Advertisement
metalx1000

Get the Name of Input Devices on Android

Dec 30th, 2024 (edited)
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. #!/system/bin/sh
  2. # get the name of each input device on Android
  3. # ROOT NEEDED
  4.  
  5. ls /sys/class/input/event*/device/name|
  6. while read d;
  7. do
  8.   echo -en "$d\t"
  9.   cat $d
  10. done| sed 's|/sys/class/input/||g;s|/device/name||g'  #|sort -V #sorting is slow
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement