adb shell常用命令
时间:2021-07-01 10:21:17
帮助过:6人阅读
按下OK键 device.press(‘KEYCODE_DPAD_CENTER‘,‘DOWN_AND_UP‘)
长按某个按键: device.drag((236,440),(236,440),2,10)
相应的按键对应的名称如下:
home键:KEYCODE_HOME
back键:KEYCODE_BACK
send键:KEYCODE_CALL
End键: KEYCODE_ENDCALL
上导航键:KEYCODE_DPAD_UP
下导航键:KEYCODE_DPAD_DOWN
左导航 :KEYCODE_DPAD_LEFT
右导航键:KEYCODE_DPAD_RIGHT
OK键 :KEYCODE_DPAD_CENTER
上音量键:KEYCODE_VOLUME_UP
下音量键:KEYCODE_VOLUME_DOWN
power键 :KEYCODE_POWER
camera键:KEYCODE_CAMERA
meun键 :KEYCODE_MENU
adb shell常用命令
标签: