因开发需要在根目录下创建一目录,但缺省根目录是只读的,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
...
此后就可在根目录下创建自己的目录了