adb 命令:push & push 文件读取与写入

将文件从PC写入到设备
adb push
eg:

adb push C:\Users\Shuqing\Desktop\kyb.txt /sdcard
C:\Users\Shuqing\Desktop\kyb.txt: 1 file pushed. 0.1 MB/s (462 bytes in 0.005s)

将文件从设备读取到PC
adb pull
eg:

adb pull /sdcard/server.log C:\Users\Shuqing\Desktop
/sdcard/server.log: 1 file pulled. 0.0 MB/s (196 bytes in 0.004s)

注意:由于权限问题,不能直接pull到电脑磁盘根目录,否则会报错:

C:\Users\Shuqing>adb pull /sdcard/server.log D:\
adb: error: cannot create file/directory ‘D:\’: No such file or directory

你可能感兴趣的:(adb命令)