adb命令模擬按鍵事件 KeyCode
//這條命令相當於按了設備的Home鍵
adb shell input keyevent 3
//這條命令相當於按了設備的Back鍵
adb shell input keyevent 4
//可以解鎖屏幕
adb shell input keyevent 82
//在屏幕上做劃屏操作,前四個數爲座標點,後面是滑動的時間(單位毫秒)
adb shell input swipe 50 250 250 250 500
//在屏幕上點擊座標點x=50 y=250的位置。
adb shell input tap 50 250