Cyngn, OnePlus, Micromax – The Legal Battle

Recently, a battle has been waging in India over the rights to distribute the commercial … more

Lean Mean Battery Power Saving App Review

We talk a lot about battery topics here at XDA TV. We talk about everything from Power Banks to USB … more

Android 5.1 Possibly Coming February 2015

Google released Android 5.0 just over a month ago, and since then Lollipop has been trying to … more

Double Tap to Wake on the Nexus 6 Without Root

A few weeks ago, we featured an app which allowed the Nexus 6 to regain the double tap to wake … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] What it takes to unroot?

OP Casteel

22nd March 2014, 06:57 PM   |  #1  
OP Junior Member
Thanks Meter: 1
 
18 posts
Join Date:Joined: Mar 2014
Hey guys,

Last time, I asked you about some technical details of rooting.
Now, I have some little questions about unrooting

Lets say I have rooted my device with CF-Auto-Root (which is great by the way...)
so now I have SuperSu and the su binary in /system/xbin, stock ROM and recovery, and unlocked bootloader.
Now I wish to unroot without loosing any data.

1. If I manually delete su, does it enough to say I have unrooted my phone? Or any other actions are required?
2. What does the unroot option in SuperSu actually do?
3. If I flash stock recovery (even though I already have it), will it unroot my device?
4. How does the survival mode of SuperSu keep me rooted in case of OTA update?

Thanks,
Casteel.
22nd March 2014, 07:13 PM   |  #2  
rootSU's Avatar
Senior Member
Flag Oxenhope, West Yorkshire, UK
Thanks Meter: 13,797
 
24,973 posts
Join Date:Joined: Aug 2010
More
There are existing threads that can help you.

Please read:

Q&A - all you need to know about android
General - how to flash factory images
General - ota help-desk

Sent from my Nexus 5 using Tapatalk
22nd March 2014, 07:15 PM   |  #3  
El Daddy's Avatar
Forum Moderator
Flag Roseville, MN
Thanks Meter: 4,558
 
3,944 posts
Join Date:Joined: May 2008
More
Quote:
Originally Posted by Casteel

Hey guys,

Last time, I asked you about some technical details of rooting.
Now, I have some little questions about unrooting

Lets say I have rooted my device with CF-Auto-Root (which is great by the way...)
so now I have SuperSu and the su binary in /system/xbin, stock ROM and recovery, and unlocked bootloader.
Now I wish to unroot without loosing any data.

1. If I manually delete su, does it enough to say I have unrooted my phone? Or any other actions are required?
2. What does the unroot option in SuperSu actually do?
3. If I flash stock recovery (even though I already have it), will it unroot my device?
4. How does the survival mode of SuperSu keep me rooted in case of OTA update?

Thanks,
Casteel.

1. If you remove the binary, you are essentially unrooted.
2. The unroot option does the same thing as above.
3. Flashing stock recovery alone, will not remove root permissions.
4. I'm not certain on the technical aspects of Survival mode, but I believe, it runs a script after the OTA to retain root.
The Following 2 Users Say Thank You to El Daddy For This Useful Post: [ View ]
22nd March 2014, 07:47 PM   |  #4  
OP Junior Member
Thanks Meter: 1
 
18 posts
Join Date:Joined: Mar 2014
Quote:
Originally Posted by El Daddy

1. If you remove the binary, you are essentially unrooted.
2. The unroot option does the same thing as above.
3. Flashing stock recovery alone, will not remove root permissions.
4. I'm not certain on the technical aspects of Survival mode, but I believe, it runs a script after the OTA to retain root.

Cool. Thanks.
Why flashing stock recovery won't remove root, but OTA update will?
What's the difference between these processes?
22nd March 2014, 07:50 PM   |  #5  
El Daddy's Avatar
Forum Moderator
Flag Roseville, MN
Thanks Meter: 4,558
 
3,944 posts
Join Date:Joined: May 2008
More
Quote:
Originally Posted by Casteel

Cool. Thanks.
Why flashing stock recovery won't remove root, but OTA update will?
What's the difference between these processes?

The reason why is because recovery is on a separate partition. It does not effect anything on /system/ where the su binary lies.

OTA's patch and update files on /system/ causing SU to be removed in most cases. In some cases having root may cause the OTA to fail, requiring removal of the binary before continuing with the OTA.

Click the link in my signature for the Nexus 5 OTA Help-Desk for more info on OTA's
The Following User Says Thank You to El Daddy For This Useful Post: [ View ]
22nd March 2014, 07:56 PM   |  #6  
OP Junior Member
Thanks Meter: 1
 
18 posts
Join Date:Joined: Mar 2014
Quote:
Originally Posted by El Daddy

The reason why is because recovery is on a separate partition. It does not effect anything on /system/ where the su binary lies.

OTA's patch and update files on /system/ causing SU to be removed in most cases. In some cases having root may cause the OTA to fail, requiring removal of the binary before continuing with the OTA.

Click the link in my signature for the Nexus 5 OTA Help-Desk for more info on OTA's

Great, thank you very much
And thanks for referring to the links, looks useful indeed.
22nd March 2014, 11:21 PM   |  #7  
BirchBarlow's Avatar
Senior Member
Flag Philadelphia
Thanks Meter: 132
 
380 posts
Join Date:Joined: Oct 2013
More
Deleting SuperSU or unrooting will prevent apps from gaining root access, but it won't return your phone to stock. The only way to return to stock is to reflash the factory image.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes