FORUMS

CloudPlayer: DIY HiFi Music Streaming Solution

In our Helpful Guide to Music Streaming Services, we mentioned several different services … more

Optimize Battery Life with This Useful App

Battery life is an important aspect of your smartphone, especially if you use it for more … more

The OnePlus 2 & The Year of Smartphone Compromises

We are very close to entering the last third of 2015, and we have now seen many of … more

OnePlus 2 Teardown, Major Android Vulnerability – XDA TV

The OnePlus 2 has been officially released. That and much more news is … more

Why do people need write protection disabled when they boot into system?

423 posts
Thanks Meter: 93
 
By Cozume, Account currently disabled on 23rd February 2014, 03:55 AM
Post Reply Subscribe to Thread Email Thread
From all I am reading, Android disables write protection when you boot into recovery and any changes that you make in recovery stick when you boot into system. And if you have root access, you can make changes to system in recovery.

So what advantages are there to having write protection disabled when you boot into system? Why can't you make any changes you want while in recovery? Isn't that safer anyhow? Do some apps need write protection disabled to run?
 
 
23rd February 2014, 02:56 PM |#2  
Junior Member
Thanks Meter: 4
 
More
Quote:
Originally Posted by Cozume

From all I am reading, Android disables write protection when you boot into recovery and any changes that you make in recovery stick when you boot into system. And if you have root access, you can make changes to system in recovery.

So what advantages are there to having write protection disabled when you boot into system? Why can't you make any changes you want while in recovery? Isn't that safer anyhow? Do some apps need write protection disabled to run?

I don't have a technical response or even very good response, but I do have an example of why you need access to the write protection.

I use AdAway to block advertising on my phone. (The ethics of doing this are up for debate, but lets leave that to another venue)
AdAway needs root access and the ability to modify the hosts file on the phone, which is a system protected file (for good reason). If write protection is on, then AdAway fails to modify the phone's hosts file and the ad blocking does not take place. With write protection off, AdAway is successful an my browser screen is far less cluttered when surfing.
I set the app to notify me when updates are available, but not to automatically apply the updates. Then I manually reboot to recovery and update my hosts file via AdAway. After I get the successful update I reboot normally and use my phone in the regular non-recovery mode.
23rd February 2014, 05:54 PM |#3  
OP Account currently disabled
Thanks Meter: 93
 
More
Quote:
Originally Posted by _Boondock_

I use AdAway to block advertising on my phone. (The ethics of doing this are up for debate, but lets leave that to another venue)
AdAway needs root access and the ability to modify the hosts file on the phone, which is a system protected file (for good reason). If write protection is on, then AdAway fails to modify the phone's hosts file and the ad blocking does not take place. With write protection off, AdAway is successful an my browser screen is far less cluttered when surfing.

I set the app to notify me when updates are available, but not to automatically apply the updates. Then I manually reboot to recovery and update my hosts file via AdAway. After I get the successful update I reboot normally and use my phone in the regular non-recovery mode.

Ok, but that is my point - you can do it in recovery and in fact it is safer to do it in recovery. Stock android disables write protection when you boot into recovery.
23rd February 2014, 08:08 PM |#4  
Senior Member
Thanks Meter: 113
 
More
So we don't have to boot into recovery everytime we modify system.

Sent from my XT1053 using XDA Premium 4 mobile app
23rd February 2014, 08:56 PM |#5  
OP Account currently disabled
Thanks Meter: 93
 
More
Quote:
Originally Posted by c19932

So we don't have to boot into recovery everytime we modify system.

Right, for convenience sake. But what I am asking is it ever necessary to have write protection disabled when you boot into system? Meaning, is there anything that you would need it for that booting into recovery to make the changes wouldn't work?
23rd February 2014, 09:06 PM |#6  
cartmenicus's Avatar
Recognized Contributor
Flag British columbia
Thanks Meter: 1,971
 
Donate to Me
More
Quote:
Originally Posted by Cozume

Right, for convenience sake. But what I am asking is it ever necessary to have write protection disabled when you boot into system? Meaning, is there anything that you would need it for that booting into recovery to make the changes wouldn't work?

You can't make changes to the system part I on with out write protection being disabled. Jcases method is a hacked recovery that when selected from fastboot boots you into a disabled system and you make your changes then reboot normally.

Sent from my XT1058 using Tapatalk
24th February 2014, 03:29 AM |#7  
Senior Member
Thanks Meter: 183
 
More
The only time I need write protection off is if/when I'm making changes to /system or make changes to or add an Xposed module.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes