Adb 常用命令

1)获取设备列表

     adb devices

2)获取包名和activity

     adb shell dumpsys window|grep mCurrentFocus

3)解决adb链接多台设备问题

     adb -s <设备名> shell——指定device来执行adb shell。

     adb -s <设备名> <指令>——在指定设备执行指令 

4)通过usb 安装apk 

     进入终端 adb install (apk文件拖进来)

posted @ 2021-03-05 16:25  akihi2325  阅读(45)  评论(0编辑  收藏  举报