android 模拟器 sdcard权限修改

来源:互联网 发布:小米平板3装windows 编辑:程序博客网 时间:2024/05/17 05:12

mksdcard 1024M c:\sdcard.img (路径随意,大小随意)

执行:adb push D:\aa.jpg sdcard/aa.jpg 报错,说是只读

执行adb shell下,尝试修改属性,失败……

Unable to chmod /sdcard: Read-only file system

google搜索后,有说用 adb remount 可以解决,尝试后依旧不行。。

调出eclipse自带调试工具(other里)DDMS,File Explore,尝试把文件直接拖进去(复制),依旧失败。。。

解决办法 adb shell下

“mount -o remount rw /”

之后便可以通过

“chmod 075 sdcard

原创粉丝点击