#!/bin/bash adb shell input keyevent KEYCODE_POWER sleep $1 # in second adb shell input keyevent KEYCODE_SLEEP