Android 操作文件系统失败: Read-only file system

现象:

$ adb push /d/Aaron/Desktop/libreference-ril-LS.so system/lib

failed to copy 'D:/Aaron/Desktop/libreference-ril-LS.so' to 'system/lib/libreference-ril-LS.so': Read-only file system

 

解决办法(必须有root权限):

$ adb shell

// 修改文件系统为可读写权限

root@xxx:/ # mount -o remount,rw /system

mount -o remount,rw /system

Ctrl+c退出shell命令行

$ adb push /d/Aaron/Desktop/libreference-ril-LS.so system/lib

1519 KB/s (104284 bytes in 0.067s)

// 恢复文件系统为只读权限

root@xxx:/ # mount -o remount,ro /system

mount -o remount,ro /system

 

posted @ 2018-02-06 15:41  LeeAaron  阅读(8138)  评论(0编辑  收藏  举报