美文网首页
adb 命令

adb 命令

作者: 老初 | 来源:发表于2017-09-01 09:46 被阅读18次

    安装 apk:

    adb install demo.apk
    

    卸载 apk:

    adb uninstall 包名
    

    列出所有应用包名:

    adb shell pm list packages
    

    打开应用,例如:

    // adb shell am start -n 包名/包名.应用名称
    adb shell am start -n com.android.settings/com.android.settings.Settings
    

    强制停止应用:

    adb shell am force-stop 包名
    

    查看串口信息

    // 先进入adb shell
    adb shell 
    // 然后
    ls /dev/tty *
    

    相关文章

      网友评论

          本文标题:adb 命令

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