0

I can edit firmware, how can I make my firmware rooted?

I tried changing all ro in init.rc to rw, but after boot they are mounted in ro. I guess the problem is there. Also I can't remount in adb. It says no errors but doesn't do the job. So all one-click root apps can't root, because they can't remount. How can I root or make partitions rw?

Thanks

1 Answer 1

0

Usually a bug is exploited to temporarily get a chosen process running as root, that is used to remount the file system read write, either startup scripts are changed and/or suid binaries added, then the file systems are synced and remounted read only again and likely the device is rebooted.

You don't normally want to have the system partition writable on an android device, even when rooted - you only make it writable on the rare occasions when you are changing it.

EDIT-Summary of comments: It appears that /system on this device is cramfs, an inherently read-only compressed file system. Likely a modified image would need to be generated on a PC and then flashed.

Search result for dealing with this problem on rockchip based devices:

http://www.androidtablets.net/forum/rockchip-based/439-how-unpack-repack-custom-firmwares-rockchip-rk28xx.html

11
  • I want to have partiton rw. Temporary or permanent - I dont care. But I cant remount even when I root. I edited init script, changed all ro mount to rw, flashed and nothing changes (I checked script it has my changes but they dont work) How can I get partition mounted as rw?
    – POMATu
    May 15, 2011 at 13:04
  • Please obtain a shell that you believe is running as root and post the output of 'ps | grep sh' and 'mount | grep system' Also, which script file did you edit and what device are you working on? May 15, 2011 at 14:28
  • ps | grep sh http://pastebin.com/Q1PR2W3r
    – POMATu
    May 15, 2011 at 15:02
  • mount | grep system /dev/block/mtdblock4 /system cramfs ro 0 0
    – POMATu
    May 15, 2011 at 15:05
  • Well that explains your problem - cramfs is inherently read only (see en.wikipedia.org/wiki/Cramfs ). You'll probably need to make your modifications on a PC and flash a new image for system or initrd(which is normally glued onto the kernel, but who knows in your case). What device is this? May 15, 2011 at 15:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .