adb push&pull

来源:互联网 发布:java enum状态机 编辑:程序博客网 时间:2024/05/21 22:58

进入DOC后,使用命令:adb push D:\file.txt  /system/temp/

意思是将Windows下D盘根目录下的file.txt文件拷贝到小机(手机或者平板)的/system/temp/目录下。

你在运行这条命令时,可能会遇到failed to copy  'D:\file.xtxt' to '/system/temp/' : Read-only file system 的报错信息。

怎么解决呢?很简单,使用下面这条命令:

先退出adb,再remount!!!

adb remount

它的意思是将设备改为可读可写。

 adb remount    - remounts the /system partition on the device read-write

看到remount succeeded后,就可以再次执行:adb push D:\file.txt  /system/temp/  这样就可以成功了,就可以在小机的/system/temp/目录下看到file.txt文件了。



adb pull /sdcard/mine.jpg ~/Desktop/     #将sdcard中的一个mine.jpg 拷贝到我PC的桌面上。

有时候只能pull到根目录. 

0 0
原创粉丝点击