您的位置:首页 > 移动开发 > Android开发

Write on the Android Read-only file system

2011-01-06 00:01 706 查看

http://www.pocketmagic.net/?p=757

Write on the Android Read-only file system

By Radu Motisan Posted on May 14th, 2009

Most of Android partitions are mounted as read only.
For eg. /system where most of the libs and other system components are stored, including the permissions.xml file.

You can temporary re-mount the /system partition to read write and load your new files to that partition!

using adb shell or the android terminal with root privileges, do the following:

See the currently mounted partitions:
# mount


Then re-mount to read-write the partition you are interested in , eg. /system:
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3
# chmod 777 /system


Check the result with mount.




You can also:
mount -o rw,remount -t rootfs /


Sweet!

Radu Motisan
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: