Skip to content

Instantly share code, notes, and snippets.

@etaf
Created March 17, 2020 06:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save etaf/727ec4601774941bfc555f759bc379be to your computer and use it in GitHub Desktop.
Save etaf/727ec4601774941bfc555f759bc379be to your computer and use it in GitHub Desktop.
android_get_touch_coordinate
adb shell getevent | awk '{print $0,strtonum("0x" $NF)}'
# or
adb shell getevent | awk '{ if($3 == "0035" || $3 == "0036" ) print $0,strtonum("0x" $4)}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment