基本命令
adb 模拟按键输入的命令主要通过 input 进行
Usage: input [] [...]
The sources are:
mouse
keyboard
joystick
touchnavigation
touchpad
trackball
stylus
dpad
gesture
touchscreen
gamepad
The commandsanddefault sources are:
text(Default: touchscreen)
keyevent [--longpress] ... (Default: keyboard)
tap(Default: touchscreen)
swipe[duration(ms)] (Default: touchscreen)
press (Default: trackball)
roll (Default: trackball)
参数解释
常用命令
物理键: