adb push 上传文件到sdcard文件出现readonly的解决方法

来源:互联网 发布:湖北卡五星麻将源码 编辑:程序博客网 时间:2024/06/05 14:24

在利用adb push上传文件到android模拟器的sdcard文件中可能会出现如下文件:

failed to copy 'sunset.mp3' to '/sdcard//sunset.mp3': Read-only file system

对该问题的解决方法如下:

重新挂载文件系统即可,命令如下:

adb shell mount -o remount rw /adb push sunset.mp3 /sdcard/

来自于:http://www.xdty.org/1197