美文网首页
adb常用命令

adb常用命令

作者: iGalaxy | 来源:发表于2016-03-05 21:57 被阅读0次
    • 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 去感叹号(关闭检测)

    相关文章

      网友评论

          本文标题:adb常用命令

          本文链接:https://www.haomeiwen.com/subject/mqcakttx.html