Answer the question
In order to leave comments, you need to log in
Continuous swipe adb, how?
Hello!
I need to emulate two continuous swipes on android
adb shell input swipe 0 0 1000 500 500
adb shell input swipe 1000 500 1000 500 500
Coordinates of course are always different. The problem is that if you do a quick swipe, then the application thinks that I have flipped and scrolls the content with a slide. And if you set the time in terms of distance so that it does not slip, then there are situations when the swipe lasts 30 seconds, which is very long.
Therefore, I want to quickly get to the right place and wait a little without releasing the touch.
Everything I could google on the topic is concentrated here https://stackoverflow.com/questions/25500567/is-it...
At first I tried the option with sending commands through &, but the android starts to behave inappropriately, either does not respond, or swipes to a random place, draws on the screen several times (debugging with the swipe display is enabled) an angle filled with dashes (as if embroidered with satin xD) , but didn't work.
Then I tried through setevent, but the android did not react at all. Adb gives no errors, but there is no result at all.
There was an option with recording and replaying actions - but it does not fit due to the fact that my coordinates are almost always different.
Maybe there are some nuances of using these commands? I looked at the vidos where it works, entered exactly the same commands, but I didn’t get the result as in the video.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question