将文件从设备读取到PC 由于权限问题,不能直接pull到电脑磁盘根目录,否则会报错:
adb pull <remote> <local>
eg:
C:\Users\admin>adb pull /sdcard/server.log C:\Users\admin\Desktop
/sdcard/server.log: 1 file pulled. 0.1 MB/s (196 bytes in 0.003s)
查看文件
注意:由于权限问题,不能直接pull到电脑磁盘根目录,否则会报错:
C:\Users\Shuqing>adb pull /sdcard/server.log D:\\
adb: error: cannot create file/directory 'D:\\': No such file or directory
屏幕截图
C:\Users\admin>adb shell screencap /sdcard/kao.png
C:\Users\admin>adb pull /sdcard/kao.png C:\Users\admin\Desktop
/sdcard/kao.png: 1 file pulled. 4.0 MB/s (58467 bytes in 0.014s)
adb命令—02_adb: error: cannot create file/directory-CSDN博客