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

发布了81 篇原创文章 · 获赞 31 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/xiaosaerjt/article/details/105772305