adb shell input keyevent 82. RAW Paste Data ... By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand . ADB=/usr/bin/adb # If screen is off, turn it on and unlock it (Only works with slide to unlock) if adb shell dumpsys input_method | grep -q mScreenOn=false ; then

The way automation works is mostly using adb touch events (essentially "click on coordinates x y" on a 1920 1080 screen (for example)), and using adb key events (input keyevent 19 = click "up" once (for example), google android keyevents to get a full list, or read on for a link), separated by specified amounts of sleep [seconds] (for example ...