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