因开发需要在根目录下创建一目录,但缺省根目录是只读的,google了一下,使用remount方式使根目录可写。
参考博文:http://www.sofee.cn/blog/category/technical/android-technical/ 中的部分内容
步骤如下:
adb shell连接系统后
#mount
mount
rootfs / rootfs ro 0 0
...
# mount -o remount,rw rootfs /
#mount
mount
rootfs / rootfs rw 0 0
...
此后就可在根目录下创建自己的目录了
本文介绍了一种在Android系统中使根目录从只读变为可写的解决方案。通过使用adb shell命令进行mount操作并重新挂载(rootfs/)为读写模式,从而实现根目录的写入功能。
553

被折叠的 条评论
为什么被折叠?



