linux - Universal System Mount on Android -
i've written app modifies file system contents. 1 of requirements mounting system read-write. here , other sources, i've found accepted command this:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
i'm hoping can better explain how works. understood mean we're working yaffs2 file system , going mount directory /dev/block/mtdblock3 /system. when issue mount command on phone though, /system listed ext3, not yaffs2 (if substitute ext3 yaffs2 command works equally well). also, /dev/block/mtdblock3 not existing directory.
this may more of linux question android, i'm sure knows this. importantly, how universal command? i'm planning on releasing huge variety of devices, need accomodate other file systems? or "just work"?
the location of device corresponding /system
partition device-specific, filesystem in use; there no single standard command. moreover, there no guarantee filesystem mutable @ all; it's possible root fs on cramfs, or on type of flash that's not randomly overwritten. phones may enough check /proc/mounts
actual device , fs-type corresponding /system
; others may not able remount read-write.
Comments
Post a Comment