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

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