Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution: How to extract position on the phone #10

Open
Moosphan opened this issue Feb 19, 2022 · 0 comments
Open

Solution: How to extract position on the phone #10

Moosphan opened this issue Feb 19, 2022 · 0 comments
Labels
question Further information is requested solutions

Comments

@Moosphan
Copy link
Collaborator

Use command:

> adb shell getevent -c 10 | grep -e 0035 -e 0036

And you will see:

/dev/input/event4: 0003 0035 0000003e
/dev/input/event4: 0003 0036 000006d6

First-line reparents position X and the other means Y.
Even we use -c to realize print given number of events then exit, But it still stays at the current step without exiting the input.
We need to tap another time to return with:

> abd shell input tap 0 0
@Moosphan Moosphan added question Further information is requested solutions labels Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested solutions
Projects
None yet
Development

No branches or pull requests

1 participant