Input -- Android input 調試手段

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章