adb shell – generate input events to browse applications / menu

Following are the adb shell commands for generating input events which can help us to browse the applications or go to menu using adb.

Swipe Up

$ adb shell input swipe 100 100 0 0

Swipe Horizontal

 $ adb shell input swipe 200 200 0 0 

Go to Home Menu

 $ adb shell input keyevent 3 

Key event for Swipe Up / Up

adb shell input keyevent 19

Key event for Swipe down / down

adb shell input keyevent 19

Key event for enter / Touch to Select

adb shell input keyevent 23
Follow Lynxbee

Leave a Reply / Ask Question