-
adb start-server
开启服务 -
adb kill-server
关闭服务 -
adb devices
设备列表 -
adb connect IP[:5555]
网络调试
-
adb install xx.apk
安装app -
adb uninstall com.xx.xx
卸载app -
adb push <local> <remote>
e.g.adb push ~/Desktop/a.apk /sdcard/
传到手机 -
adb pull <remote> <local>
e.g.adb push /sdcard/a.apk ~/Desktop/
复制到PC
adb shell
-
input tap <x> <y>
e.g.adb shell input tap 128 128
模拟点击 -
input swipe <x1> <y1> <x2> <y2> [<time>]
模拟滑动/长按 -
input keyevent <keycode>
Keycode List 模拟按键 -
settings put global captive_portal_server www.example.com
去感叹号(更换国内服务器) -
settings put global captive_portal_detection_enabled 0
去感叹号(关闭检测)
网友评论