连接设备 adb devices
设备详细详细信息 adb ddevices -l
进入安卓系统 adb shell
本地文件推送到Android系统 adb push 本地绝对路径 /安卓系统文件存放路径
安卓系统文件拉到本地 adb pull 安卓系统文件存放路径 本地绝对路径
安装应用程序 adb install 安装包绝对路径
-r 强制安装 多个设备-d IMEI 指定设备-s IMEI
卸载应用程序 adb uninstall package adb uninstall -k package(卸载软件清空缓存和配置数据)
获取包名(package) adb logcat | findstr Activity win(finstr) mac/Linux(grep) 找到cmp
获取所有包名 adb shell pm list packages
获取第三方包名 adb shell pm list packages -3
模拟点击 adb shell input tap x y
输入内容 adb shell input text "文本内容"
滑动 adb shell input swipe x1 y1 x2 y2 time
截屏 adb shell screencap /sdcard/aa.png(路径是指手机的路径)
录屏 adb shell screenrecord --time-limit 10 /sdcard/dome.mp4
一、连接夜神模拟器(单开)
adb connect 127.0.0.1:62001