Alon Shalev Alon Shalev - 3 months ago 136
Android Question

How can I scroll an application using adb?

I am looking for a way to scroll up or down with

adb
for different types of apps.

How can I scroll apps like Facebook or CNN using an
adb
command?

Answer

Scroll up:

adb shell input swipe 300 300 500 1000 

Scroll down:

adb shell input swipe 500 1000 300 300 

You could adjust coords if you need more precise swipe.