1:写入文件
adb push 源文件路径 目标路径(安卓路径)
2:连接adb方式
方式一:adb devices
方式二:
(1)adb connect 127.0.0.1:7555 网易安卓模拟器 (MuMu模拟器)
(2)adb connect 127.0.0.1:62001 夜神模拟器
方式三:当有多个手机时,adb -s deviceid
3: 打印日记
adb logcat
adb logcat | grep matchstr
adb logcat -v time>C:\Users\Administrator\Desktop\log.txt 输出日志到指定文件
4: 断开adb连接
adb disconnect