Android开发:设备文件系统遇到“... Read-only file system”的问题

来源:互联网 发布:上网限制软件 编辑:程序博客网 时间:2024/05/21 00:20

操作设备文件系统上的文件结果遇到"... Read-only file system"。


解决办法:

1. 最简单的,adb remount

2. 不行的话,adb shell su之后将文件系统remount为读写权限: mount -o rw,remount /system。出于安全考虑,记得完事后remount回只读: mount -o ro,remount /system

3. 和方法2类似,mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system