Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

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

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

Thanks

share|improve this question

migrated from stackoverflow.com May 15 '11 at 7:20

This question came from our site for professional and enthusiast programmers.

add comment

1 Answer 1

up vote 0 down vote accepted

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

share|improve this answer
    
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 '11 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? –  Chris Stratton May 15 '11 at 14:28
    
ps | grep sh http://pastebin.com/Q1PR2W3r –  POMATu May 15 '11 at 15:02
    
mount | grep system /dev/block/mtdblock4 /system cramfs ro 0 0 –  POMATu May 15 '11 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? –  Chris Stratton May 15 '11 at 15:10
show 6 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.