FORUMS
Post Reply Subscribe to Thread Email Thread
Hello all,

I have been trying to gain root on a Android 4.0.4 device and was able to, but I can't seem to keep system rw long term.

I run the following command

mount -o remount,rw /system
or
adb remount (from a PC)

the mount command will then show that system is in rw mode. However, if I attempt to copy any data into /system, the first file copy fails and the system then reports read only. To make things even more odd, commands like chmod on a file in /system work just fine.

It seems to me that there is something that detects something writing to /system, and then forces the mount back to ro.

Does anyone have any ideas about this? Is this a common technique manufactures use?
The closest thing I could find on XDA is a reference to Sony Xperia devices having a watchdog service that doesn't something like this, but this device is a Kenwood Head unit and not a Sony device.

Thanks!
27th April 2014, 02:48 AM |#2  
Senior Member
Thanks Meter: 642
 
Donate to Me
More
Quote:
Originally Posted by chris.davis925

Hello all,

I have been trying to gain root on a Android 4.0.4 device and was able to, but I can't seem to keep system rw long term.

I run the following command

mount -o remount,rw /system
or
adb remount (from a PC)

the mount command will then show that system is in rw mode. However, if I attempt to copy any data into /system, the first file copy fails and the system then reports read only. To make things even more odd, commands like chmod on a file in /system work just fine.

It seems to me that there is something that detects something writing to /system, and then forces the mount back to ro.

Does anyone have any ideas about this? Is this a common technique manufactures use?
The closest thing I could find on XDA is a reference to Sony Xperia devices having a watchdog service that doesn't something like this, but this device is a Kenwood Head unit and not a Sony device.

Thanks!

I would think that you might need to run a script to remount on boot perhaps, such as one along this idea http://www.3c71.com/android/?q=node/466. Like via init.d or if that isn't possible on this then maybe something like this could do it http://forum.xda-developers.com/show....php?t=2378274 ?


Just spit balling ideas.
28th April 2014, 09:30 PM |#3  
OP Senior Member
Thanks Meter: 27
 
Donate to Me
More
Correct me if I am wrong, but it seems to me that I wouldn't be able to do those options since system doesn't actually stay rw?
28th April 2014, 09:50 PM |#4  
Senior Member
Thanks Meter: 642
 
Donate to Me
More
Really depends on the phone. Sometimes you can slip a script in during boot that will keep the system open. Sometimes you need to have a special module too such as this: http://forum.xda-developers.com/show....php?t=2230341 Sometimes the kernel doesn't allow it. I would think on 4.0.4 it shouldn't be near as hard as some of the newer JB and KK things. What do you have?
29th April 2014, 05:35 PM |#5  
OP Senior Member
Thanks Meter: 27
 
Donate to Me
More
It is the Kenwood DNN990HD running Android 4.0.4.

I will try and run the binary tool you linked.
Thanks!
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes