1.connect device连接设备:
adb devices
#return:
List of devices attached
0123456789ABCDEF device
2.连接终端
adb shell
- 从设备拷贝文件到本地
adb pull <remote> [local]
如: adb pull /sdcard/demo.txt e:\
- 从到本地拷贝文件到设备
adb push <local> <remote>
如:adb push d:\test.txt /sdcard
- 打印日志
adb logcat [option] [filter-specs]
- 打印系统信息,如 adb shell dumpsys
adb shell dumpsys [options]
- 以root身份重新进入adb
adb root