How to get touch position coordinates (x, y) from android using adb command

0

I was using dumpsys command to get touch position from android. But in the latest android Q version.

Software Information --> Android security patch level > February 2020. It seems pointers are being stopped printing. Is there any other way I can get the (X, Y) positions from the latest android.

adb shell dumpsys input 

Q OS Android security patch level > February 2020 (pointers=[0: (335.0, 1465.0)] removed)

RecentQueue: length=10

MotionEvent, age=7761.0ms
MotionEvent, age=7744.0ms
MotionEvent, age=7727.3ms
MotionEvent, age=7701.7ms
MotionEvent, age=7685.5ms
MotionEvent, age=7668.1ms
MotionEvent, age=7601.0ms
MotionEvent, age=7568.1ms
MotionEvent, age=7560.1ms
MotionEvent, age=7526.3ms

Q OS Android security patch level < February 2020 (pointers=[0: (335.0, 1465.0)] available)

RecentQueue: length=10

MotionEvent(deviceId=4, source=0x00001002, action=2, flags=0x00000000, metaState=0x00000000, buttonState=0x00000000, edgeFlags=0x00000000, xPrecision=1.0, yPrecision=1.0, displayId=0, pointers=[0: (335.0, 1465.0)]), policyFlags=0x62000000, age=217264.0ms
MotionEvent(deviceId=4, source=0x00001002, action=1, flags=0x00000000, metaState=0x00000000, buttonState=0x00000000, edgeFlags=0x00000000, xPrecision=1.0, yPrecision=1.0, displayId=0, pointers=[0: (335.0, 1465.0)]), policyFlags=0x62000000, age=217255.7ms
MotionEvent(deviceId=4, source=0x00001002, action=0, flags=0x00000000, metaState=0x00000000, buttonState=0x00000000, edgeFlags=0x00000000, xPrecision=1.0, yPrecision=1.0, displayId=0, pointers=[0: (330.0, 1283.0)]), policyFlags=0x62000000, age=216805.0ms
android
adb
dumpsys

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0