Rooting with Stock Recovery? - Nexus 5 Q&A, Help & Troubleshooting

Is it possible to root and keep the stock recovery? If so dose any one have a guide?
Can you obtain root without unlocking the boot loader? if not can I lock it after I obtain root?
If i do a full ADB backup can I restore it after I root the phone?

Yes it's possible to root and keep the stock recovery. But you'll have to be unlocked. Put supersu on your device. Then boot, not flash, twrp recovery
fastboot boot twrp.img
When booted into twrp flash supersu
When you reboot your device you'll be rooted with the stock recovery.
Pro tip, I really don't recommend you root with the stock recovery. You can make nandroid backups with a custom recovery and if you screw something up playing with a rooted device you can easily restore it
Likewise, you can lock the device when rooted, but unlocking it will wipe the device if you screw something up.
Sent from my Nexus 5 using XDA Free mobile app

Now that Android will not apply OTA updates if you're rooted there is really no reason to keep the stock recovery. In the past I would use OTA rootkeeper along with a stock recovery to keep root and still have OTA updates work properly but Google ruined that.
You can relock the bootloader any time you want. Unlocking it will wipe your device though.
Not sure about the ADB question. Typically anything you did to your phone would be lost and your phone would return to the state it was in at the time of a backup though. I have never done a backup in ADB to test what it does to the system partition though.

I forgot about the backup function with custom recovery. The last time I rooted an android phone was a Galaxy s2. What is the latest and greatest custom recovery now a days?
with the custom recovery how would I go about updating the OS if say 5.1.1 were to come out without having to do a clean wipe?
jd1639 said:
Yes it's possible to root and keep the stock recovery. But you'll have to be unlocked. Put supersu on your device. Then boot, not flash, twrp recovery
fastboot boot twrp.img
When booted into twrp flash supersu
When you reboot your device you'll be rooted with the stock recovery.
Pro tip, I really don't recommend you root with the stock recovery. You can make nandroid backups with a custom recovery and if you screw something up playing with a rooted device you can easily restore it
Likewise, you can lock the device when rooted, but unlocking it will wipe the device if you screw something up.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse

TheDroidKid said:
I forgot about the backup function with custom recovery. The last time I rooted an android phone was a Galaxy s2. What is the latest and greatest custom recovery now a days?
with the custom recovery how would I go about updating the OS if say 5.1.1 were to come out without having to do a clean wipe?
Click to expand...
Click to collapse
I recommend twrp recovery. Google nexus 5 teamwin.
To up date from a 5.1 to a 5.1.1 I just flash the system, boot, and radio images using fastboot. If it's a bigger version change you'll likely have to flash the whole factory image and deal with the wipe.

Related

Simple root for the i9023 with 4.0.4?

Has anyone tried to root their i9023 with 4.0.4 using doomlord's easy rooting toolkit? http://forum.xda-developers.com/showthread.php?t=1321582
I tried it when I had 2.3.6 and it worked perfectly but want to update to 4.0.4 now.
If doomlord's doesn't work, is there any similar one click rooting? Also, when I rooted, it didn't erase my data and apps. Will that be the same? Thanks
I guess not. Been searching and couldn't find a non-destructive one and one as a simple click without needing cwm.
There's none that I am aware of. However, it's not really that complicated to flash the right SU zip, and if you don't want to flash cwm you can simply fastboot boot cwm.img and it will leave stock recovery intact and ready after you flashed everything.
Sent from my Nexus S using XDA
Couple things if you're already rooted on gingerbread do a nandroid back up. Put that and anything else you want to keep on your computer. Unlock the bootloader and restore your backup and update.
Stop messing around and unlock the bootloader.
albundy2010 said:
Couple things if you're already rooted on gingerbread do a nandroid back up. Put that and anything else you want to keep on your computer. Unlock the bootloader and restore your backup and update.
Stop messing around and unlock the bootloader.
Click to expand...
Click to collapse
How can he do a backup if the bootloader is locked = no cwm recovery? He's out of luck. Best thing he can do is backup the SD card and that's it. The rest is lost
Edit: failed to read sorry. Didn't notice the gingerbread part. Anyway if he's on stock and one clicked rooted he still doesn't have cwm so he can't make a nandroid, he can use titanium backup and save apps and data.
Sent from my
( •_•)
( •_•)>⌐■-■
Nexus S
(⌐■_■)
YYYYYYYEEEEEAAAAAAAAAAHHHHHHHHHHHH
If he is stock rooted he can flash cwm in the os. Either through rom manager or terminal
albundy2010 said:
If he is stock rooted he can flash cwm in the os. Either through rom manager or terminal
Click to expand...
Click to collapse
I thought that locked bootloader prevented the flash of any kind of unsigned .img even if you have root.
Guess i was wrong ;D
That's what you get when your first step with an android phone is unlock the bootloader
Not a one size fits all. Some phones all you need is root to flash a custom recovery and roms/kernels.
Others it can be a mess. Like the HTC g2 or even now the one x on att. Got the entire s on/ s off encryption nonsense and so on.
DeuXGod said:
I thought that locked bootloader prevented the flash of any kind of unsigned .img even if you have root.
Guess i was wrong ;D
That's what you get when your first step with an android phone is unlock the bootloader
Click to expand...
Click to collapse
He can flash a new recovery through the OS if he has root access only. Unlocked bootloader only provides fastboot support.
If you are fully stock (bootloader, recovery, no su), the only current way to root 4.0.4 is to have an unlocked bootloader.
albundy2010 said:
Not a one size fits all. Some phones all you need is root to flash a custom recovery and roms/kernels.
Others it can be a mess. Like the HTC g2 or even now the one x on att. Got the entire s on/ s off encryption nonsense and so on.
Click to expand...
Click to collapse
Yeah that's what make my confusion. My old HTC Magic needed unlocked bootloader to flash a recovery.
Harbb said:
He can flash a new recovery through the OS if he has root access only. Unlocked bootloader only provides fastboot support.
If you are fully stock (bootloader, recovery, no su), the only current way to root 4.0.4 is to have an unlocked bootloader.
Click to expand...
Click to collapse
Yeah about that i was pretty sure you needed unlocked bootloader, but about CWM flash i was convinced that you needed also unlocked bootloader, but as stated above, it's just for some devices.
Thank to all that responded. All this talk just flew over my head ... guess that's what I get for using simple one clicks
Let me try to straighten some stuff out.
How would I use titanium backup?
Do I titanium backup while it's still on gingerbread or after I OTA the ics 4.0.4?
Edit: duh! I can't use Ti backup after OTA ics because phone not rooted yet.
After backing up with Ti, I thought any attempt to root will erase all. Does the Ti backup not get erased?
Ti backup only backs up my app and the data to those apps, not how I customize my homescreen's widgets and notification bar, right?
So, I would have to do all that stuff over?
If I don't want to unlock bootloader or install cwm, any way to root and leave stock recovery intact?
Lazer Bear posted "if you don't want to flash cwm you can simply fastboot boot cwm.img and it will leave stock recovery intact and ready after you flashed everything."
Is that possible and how do I do it? Does that erase everything too?
Thanks to all!
bump

[Q] Root without CWM

Background:
I got myself a second-hand I9020T a couple of days back which had CWM recovery and a 4.0.4 Userdebug testkeys build on it. As circumstances turned out, I flashed the phone to the factory 4.1.2 (from https://developers.google.com/android/nexus/images), but didn't note down the details of the old 4.0.4 ROM.
I rather like stock roms. However, I like stock roms with root even more.
Questions:
I wanted to know if there was any method to root my Nexus S without resorting to using ClockworkMod recovery? I'm hoping for a z4root kind of method which doesn't mess around with the boot loader.
Does such a method even exist.
I'm hoping that I don't have to mess around with the boot loader, yet get root access and all the power to do direct querying of my SMS DB.
Note: I can install CWM recovery, but I'd rather not. It's just the superficial choice I'm making, not a well informed decision.
samveen said:
Background:
I got myself a second-hand I9020T a couple of days back which had CWM recovery and a 4.0.4 Userdebug testkeys build on it. As circumstances turned out, I flashed the phone to the factory 4.1.2 (from https://developers.google.com/android/nexus/images), but didn't note down the details of the old 4.0.4 ROM.
I rather like stock roms. However, I like stock roms with root even more.
Questions:
I wanted to know if there was any method to root my Nexus S without resorting to using ClockworkMod recovery? I'm hoping for a z4root kind of method which doesn't mess around with the boot loader.
Does such a method even exist.
I'm hoping that I don't have to mess around with the boot loader, yet get root access and all the power to do direct querying of my SMS DB.
Note: I can install CWM recovery, but I'd rather not. It's just the superficial choice I'm making, not a well informed decision.
Click to expand...
Click to collapse
You don't have to mess with the bootloader itself, just the recovery.
And no, you will need a custom recovery to flash chainsDD superuser or chainfire SuperSU. There's TWRP also available and popular, if you simply do not like CWM.
polobunny said:
You don't have to mess with the bootloader itself, just the recovery.
And no, you will need a custom recovery to flash chainsDD superuser or chainfire SuperSU. There's TWRP also available and popular, if you simply do not like CWM.
Click to expand...
Click to collapse
Is is possible to install the SU update (whichever of the 2) and go back to the stock recovery?
samveen said:
Is is possible to install the SU update (whichever of the 2) and go back to the stock recovery?
Click to expand...
Click to collapse
Yes. I don't see why would one want to do that, but that's possible.
Once you're done with your flashing, you can flash stock Jellybean recovery from here:
http://forum.xda-developers.com/showthread.php?t=2032337

[Q] Only Stock Recovery Works!

I recently updated my HTC One SV (K2_CL) to 4.2.2. I did what I would usually do; restore a stock rom (without root) and re-flash the stock recovery. Then I update from there. Now I want to install root. However, after I flash TWRP recovery to flash root from there, when I try going into recovery mode it just stays at the HTC splash screen with the red text at the bottom.
What I would like to know is if the new update somehow added a security feature, because after I re-flash the stock recovery, I am successfully able to boot into recovery (which there is no point in doing so).
Make sure, you use a recovery for boost from here.
old.splatterhand said:
Make sure, you use a recovery for boost from here.
Click to expand...
Click to collapse
Thank You soooo much!:laugh: I never would have thought that I needed a new version of TWRP. I have successfully booted into TWRP and will begin restoring my data.

[HELP] Root motorola XT925 with 4.4.2 OTA update

Hello it's been several days i can't find a solution to my problem. I flash official RTFR 4.1.2 via RDS Lite and then i upgrade to Kitkat 4.4.2 via OTA update.
When my phone reboot i have The Unlocked Bootloader Warning logo on the screen, but i lost the root.
This is the version i have: 180.46.127.XT925.CEE-Retail.en.EU.
I did install a recovery (Philz Touch, CWM,) but when i reboot to recovery it was not working and i had the google Droid with a red triangle.
I'd like to know if it is possible to root my phone in order to flash the CM12 ROM? Or with this official update i'm stuck with 4.4.2 and won't be able to root?
Thanks for your help.
When you install a custom recovery after taking the OTA, the recovery will usually ask you to disable stock recovery restore. If you don't, then the stock recovery will be reinstated upon next boot. Once you've got a custom recovery installed and disabled the stock recovery, you should be able to root it from there. Most modern recoveries will handle both the disabling of stock recovery restoration and install root (su) for you.
I know the one I use does.
CWGSM3VO said:
When you install a custom recovery after taking the OTA, the recovery will usually ask you to disable stock recovery restore. If you don't, then the stock recovery will be reinstated upon next boot. Once you've got a custom recovery installed and disabled the stock recovery, you should be able to root it from there. Most modern recoveries will handle both the disabling of stock recovery restoration and install root (su) for you.
I know the one I use does.
Click to expand...
Click to collapse
When i installed the recovery it didn't ask me to disable stock recovery restore. Where do i get that request, on my phone or on my PC? Which custom recovery that allow me to disable the stock recovery do you recommand?
After you install recovery, immediately power off your phone, boot straight back into recovery (not the OS, otherwise stock recovery will over ride the aftermarket recovery), once in recovery the update script will complete and the installation will be complete. Once in the recovery, you can choose the option that CW mentioned.
RikRong said:
After you install recovery, immediately power off your phone, boot straight back into recovery (not the OS, otherwise stock recovery will over ride the aftermarket recovery), once in recovery the update script will complete and the installation will be complete. Once in the recovery, you can choose the option that CW mentioned.
Click to expand...
Click to collapse
Thanks for you help!!!!! It did work!!! My phone is rooted now and i installed cyanogen 11. Getting ready to try CM12.
Thanks a lot
sjcbboy said:
Thanks for you help!!!!! It did work!!! My phone is rooted now and i installed cyanogen 11. Getting ready to try CM12.
Thanks a lot
Click to expand...
Click to collapse
Yay!
Sent from my HTC6525LVW using Tapatalk

Uninstalling TWRP to default recovery?

I need some root functions temporarily then would like to go back to stock without doing a full wipe. I know I can remove magisk and root but I would like TWRP removed as well because it may cause issues with future app updates that I use.
Is there a way to uninstall TWRP or install the default recovery over TWRP?
Thanks.
Flash stock boot image
magistrateee said:
I need some root functions temporarily then would like to go back to stock without doing a full wipe. I know I can remove magisk and root but I would like TWRP removed as well because it may cause issues with future app updates that I use.
Is there a way to uninstall TWRP or install the default recovery over TWRP?
Click to expand...
Click to collapse
Not clear whether you actually installed TWRP and rooted yet, or not. But if not, you don't actually need to install TWRP to root the phone. There are 2 main root methods, neither of which requires TWRP to be installed:
1) Flash patched boot.img to root. This method doesn't touch recovery.
2) TWRP method. For this method, you need to fastboot boot TWRP.img, which is just a temporary "remote" boot of the TWRP image that resides on your computer. TWRP is not actually flashed to the phone when you do this. Installing TWRP to the phone involves (after booting TWRP as mentioned) then flashing the TWRP installer zip, which is purely optional. You can actually skip that step, and just (while booted TWRP) flash the Magisk zip to obtain root. if you do it that way, you have root (with Magisk) but not TWRP (still stock recovery).
In either case, you can use the fastboot stock ROMs to return the boot.img partition to stock using the fastboot stock ROM (as the previous reply also suggested):
https://forum.xda-developers.com/oneplus-7-pro/how-to/rom-stock-fastboot-roms-oneplus-7-pro-t3931424
Be aware, that you can't just flash a stock recovery (by itself) on this device. For A/B partition devices like the 7 Pro, there is no discrete recovery partition. Recovery is a part of the boot.img partition. You therefore need to flash the stock boot.img partition to get back to stock recovery (this should also unroot the phone).
magistrateee said:
I need some root functions temporarily then would like to go back to stock without doing a full wipe. I know I can remove magisk and root but I would like TWRP removed as well because it may cause issues with future app updates that I use.
Is there a way to uninstall TWRP or install the default recovery over TWRP?
Thanks.
Click to expand...
Click to collapse
Keep the stock boot image around along with the image that has TWRP and Magisk.
You can swap back and forth just by flashing the boot image.
Thanks for the reply.
redpoint73 said:
Not clear whether you actually installed TWRP and rooted yet, or not. But if not, you don't actually need to install TWRP to root the phone. There are 2 main root methods, neither of which requires TWRP to be installed:
1) Flash patched boot.img to root. This method doesn't touch recovery.
2) TWRP method. For this method, you need to fastboot boot TWRP.img, which is just a temporary "remote" boot of the TWRP image that resides on your computer. TWRP is not actually flashed to the phone when you do this. Installing TWRP to the phone involves (after booting TWRP as mentioned) then flashing the TWRP installer zip, which is purely optional. You can actually skip that step, and just (while booted TWRP) flash the Magisk zip to obtain root. if you do it that way, you have root (with Magisk) but not TWRP (still stock recovery).
In either case, you can use the fastboot stock ROMs to return the boot.img partition to stock using the fastboot stock ROM (as the previous reply also suggested):
https://forum.xda-developers.com/oneplus-7-pro/how-to/rom-stock-fastboot-roms-oneplus-7-pro-t3931424
Be aware, that you can't just flash a stock recovery (by itself) on this device. For A/B partition devices like the 7 Pro, there is no discrete recovery partition. Recovery is a part of the boot.img partition. You therefore need to flash the stock boot.img partition to get back to stock recovery (this should also unroot the phone).
Click to expand...
Click to collapse
In method 2) Does this mean it only temporarily installs twrp. Does this mean after boot TWRP is actually gone and if I boot anytime into recovery or "adb boot recovery" then it will bring me back to the original recovery of oneplus?
For example say I install TWRP via method 2, install magisk and root. Do all my root things I want, uninstall root and magisk, and reboot that means everything is as if I didn't install a recovery or root?
tech_head said:
Keep the stock boot image around along with the image that has TWRP and Magisk.
You can swap back and forth just by flashing the boot image.
Click to expand...
Click to collapse
Do I have to pull my stock recovery image or use one of the ones linked?
I have a T-Mobile which I unlocked the bootloader and installed an international firmware. I would like to return to this and not the original T-Mobile firmware.
Thanks again.
magistrateee said:
In method 2) Does this mean it only temporarily installs twrp. Does this mean after boot TWRP is actually gone and if I boot anytime into recovery or "adb boot recovery" then it will bring me back to the original recovery of oneplus?
For example say I install TWRP via method 2, install magisk and root. Do all my root things I want, uninstall root and magisk, and reboot that means everything is as if I didn't install a recovery or root?
Click to expand...
Click to collapse
Probably better not to think of if as "temporary" installing TWRP. You either install it, or you don't.
If you only do fastboot boot TWRP, and flash Magisk, you haven't installed TWRP at all. It remotely boots/runs the TWRP image that is located on your computer. Nothing is installed TWRP-wise (temporary or not) to the phone when you run this command.
So if you fastboot boot TWRP, and flash Magisk, you will be rooted, but still be on stock recovery.
magistrateee said:
For example say I install TWRP via method 2, install magisk and root. Do all my root things I want, uninstall root and magisk, and reboot that means everything is as if I didn't install a recovery or root?
Click to expand...
Click to collapse
Be careful when you say "uninstall root and Magisk" since that doesn't specify how you intend to do that. If you mean flashing the stock boot.img, you will remove root and revert to stock recovery. So it is somewhat irrelevant whether you installed TWRP or not.
You will probably also need to delete the Magisk Manager app (to remove all traces of root), as this resides on the data partition, and won't be affected by flashing back to the stock boot.img partition. Keep in mind that this is just an app for managing Magisk. Deleting this does not in itself unroot the phone (some folks get this confused).
magistrateee said:
Do I have to pull my stock recovery image or use one of the ones linked?
I have a T-Mobile which I unlocked the bootloader and installed an international firmware. I would like to return to this and not the original T-Mobile firmware.
Click to expand...
Click to collapse
To remove root (and TWRP is applicable), you want to flash the boot.img which corresponds to whatever stock ROM when you rooted it. So in your case, the international (unbranded) boot.img, which you can get in the link I posted previously.
redpoint73 said:
Probably better not to think of if as "temporary" installing TWRP. You either install it, or you don't.
Be careful when you say "uninstall root and Magisk" since that doesn't specify how you intend to do that. If you mean flashing the stock boot.img, you will remove root and revert to stock recovery. So it is somewhat irrelevant whether you installed TWRP or not.
You will probably also need to delete the Magisk Manager app (to remove all traces of root), as this resides on the data partition, and won't be affected by flashing back to the stock boot.img partition. Keep in mind that this is just an app for managing Magisk. Deleting this does not in itself unroot the phone (some folks get this confused).
To remove root (and TWRP is applicable), you want to flash the boot.img which corresponds to whatever stock ROM when you rooted it. So in your case, the international (unbranded) boot.img, which you can get in the link I posted previously.
Click to expand...
Click to collapse
By uninstalling I meant uninstalling the app and flashing the uninstall Magisk zip. I was thinking when I do everything I want then fastboot boot TWRP, then flash the Magisk uninstall zip.
Would this work or do I have to flash the boot.img no matter what? or can I also restore the boot section which I will initially backup in TWRP?
magistrateee said:
By uninstalling I meant uninstalling the app and flashing the uninstall Magisk zip. I was thinking when I do everything I want then fastboot boot TWRP, then flash the Magisk uninstall zip.
Click to expand...
Click to collapse
That should work. Can't say from experience. I've never uninstalled Magisk personally!
Not to say that whatever changes you made under root will remain. That is a whole different thing, that I can't answer.
magistrateee said:
or can I also restore the boot section which I will initially backup in TWRP?
Click to expand...
Click to collapse
Should have the same result as flashing stock boot.img.

Categories

Resources