Restoring Nexus 5 to stock: will it replace TWRP? - Nexus 5 Q&A, Help & Troubleshooting

Hi all,
I have a Nexus 5 that I'm trying to return to stock. I'd like to keep the bootloader unlocked, however. If I follow the instructions here (minus the bootloader lock part): https://developers.google.com/android/nexus/images will I be all good to go with a completely wiped, good-as-new phone? Also, will this overwrite TWRP, which I currently have on the phone?

If you follow the instructions and flash everything, yes it'll go back to stock and replace twrp with stock recovery as well

If you flash the img files individually, you don't have to flash the recovery img if you want to keep twrp tho
Sent from my Nexus 5 using Tapatalk

thephantom said:
If you follow the instructions and flash everything, yes it'll go back to stock and replace twrp with stock recovery as well
Click to expand...
Click to collapse
Thanks! I think I'll just do that, but I'll keep the bootloader unlocked in case I need to flash more things later.

Powered_By_Linux said:
Thanks! I think I'll just do that, but I'll keep the bootloader unlocked in case I need to flash more things later.
Click to expand...
Click to collapse
If you're flashing stock, remember there's a built-in behaviour that checks for stock recovery: if it's not there, it will overwrite whatever is there (twrp, in this case) with stock recovery, on every reboot.
You'll need to take care of this if you want a stock+twrp permanent combo.
Sent from my Nexus 5 using Tapatalk

beekay201 said:
If you're flashing stock, remember there's a built-in behaviour that checks for stock recovery: if it's not there, it will overwrite whatever is there (twrp, in this case) with stock recovery, on every reboot.
You'll need to take care of this if you want a stock+twrp permanent combo.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I never knew that!
Sent from my Nexus 5 using Tapatalk

Ben36 said:
I never knew that!
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
After looking at this guide, it says that you need to do a factory reset in the stock recovery after flashing all the images. Is this outdated information?

Ben36 said:
I never knew that!
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Yep, next time you're on stock checkout /system/install-recovery.sh and /system/recovery-from-boot.p files.
Sent from my Nexus 5 using Tapatalk

Related

Updating to 4.4.2 ?

Hey guys, I've read a lot on updating after being rooted, but just need to confirm before I do mess up anything.
All I have done is Rooted Stock (I have TWRP on the phone), and have flashed volume mod, and also battery percent mod. (Other then that I am running Nova Launcher, Titanium Backup)
Guessing I need to flash the back to stock for volume and battery percent (Correct if I am wrong).
And then how exactly do I go about updating to 4.4.2 and preferably retaining root?
Sorry I know noob question, just making sure as I've always unrooted, and never had any mods when I have done updates in the past.
1) you have to flash back to stock system image since you modded your phone
2) once you either get the OTA or sideload it, you just flash cwm/twrp in fastboot and then flash the supersu.zip
thats all
so in other words go back and unroot completely, go completely back to stock, and redo everything from the beginning?
Just flash the 4.4.2 stock rooted rom in the dev section
sent from my HAMMERHEAD neXus
Or you can flash the Updated Super SU zip right?
Sent from my Nexus 5 using Tapatalk
AndroidRaven said:
so in other words go back and unroot completely, go completely back to stock, and redo everything from the beginning?
Click to expand...
Click to collapse
You are flashing back the stock ROM. If you want to keep data intact, flash only the boot.img, system.img
niv3d said:
Or you can flash the Updated Super SU zip right?
Click to expand...
Click to collapse
that won't help you get back to stock.
I guess I need a tutorial on what you guys are talking about because I still am not understanding..
Would flashing the rooted 4.4.2 work? And if so what do I need to do before I flash this?
How exactly do I go about only flashing only the boot.img and system.img?
Will I loose anything through this process?
Sent from my Nexus 5 using XDA Premium 4 mobile app
AndroidRaven said:
I guess I need a tutorial on what you guys are talking about because I still am not understanding..
Would flashing the rooted 4.4.2 work? And if so what do I need to do before I flash this?
How exactly do I go about only flashing only the boot.img and system.img?
Will I loose anything through this process?
Sent from my Nexus 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Follow this guide --> http://forum.xda-developers.com/showthread.php?t=2523217
Best guide out there, with big thanks to El Daddy
AndroidRaven said:
I guess I need a tutorial on what you guys are talking about because I still am not understanding..
Would flashing the rooted 4.4.2 work? And if so what do I need to do before I flash this?
How exactly do I go about only flashing only the boot.img and system.img?
Will I loose anything through this process?
Sent from my Nexus 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
One safe way to get the OTA, taking into account that you modded your phone, is:
i) flash system.img then flash stock recovery,
ii) once the OTA update is on your phone and you have accepted it (it installed itself) you are back to stock.
iii)flash your custom recovery and re-install your SuperSu to get back your root.
Good luck

Bootlooped and cannot use TWRecovery

Hello,
My nexus 5 is currently stuck in a bootloop and TWR is asking for a password to decrypt my data and wipe cache/dalvik. Is there anything i can do to get it out of the loop or is my phone dead?
Thanks for reading, any advice is greatly appreciated.
Does your computer recognizing your device? Can you go into bootloader,if yes,try to go back to stock rom,and flash stock recovery.
Fastboot flash cache cache.img
Sent from my Nexus 5 using Tapatalk
Simonna said:
Does your computer recognizing your device? Can you go into bootloader,if yes,try to go back to stock rom,and flash stock recovery.
Click to expand...
Click to collapse
Thanks dude. Flashed stock rom + recovery and its working fine again.
rootSU said:
Fastboot flash cache cache.img
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Where do you get the cache img from?
Sent from my Nexus 5 using Tapatalk
Ben36 said:
Where do you get the cache img from?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
The factory image, in there is a zip, extract it
I think Ben3.6 knew the answer and he was asking in place of the OP
so, for the OP, here are the factory images. http://forum.xda-developers.com/showthread.php?t=2513701

Help updated 4.4.2

I'm on stock rooted 4.4.2 running Franco kernel. Question is how do I update with out bringing phone to factory settings
SENT FROM MY SM-N900T/NEXUS 5 USING TAPATALK
you make a backup in recovery, then dirty flash, dont wipe a single thing, 444 over it. if alls well after, then perfect. if you have issues, you have that backup in recovery to restore
simms22 said:
you make a backup in recovery, then dirty flash, dont wipe a single thing, 444 over it. if alls well after, then perfect. if you have issues, you have that backup in recovery to restore
Click to expand...
Click to collapse
I downloaded then tried to flash the zip file in twrp .. It says it failed not sure what to do next and is 4.4.4 the latest firmware?
SENT FROM MY SM-N900T/NEXUS 5 USING TAPATALK
ROADKING17 said:
I downloaded then tried to flash the zip file in twrp .. It says it failed not sure what to do next and is 4.4.4 the latest firmware?
SENT FROM MY SM-N900T/NEXUS 5 USING TAPATALK
Click to expand...
Click to collapse
Unfortunately my clairvoyant skills aren't working today
perhaps you could elaborate on the following 2 things
1) what zip are you flashing?
2) what error are you getting?
Sent from my Nexus 5 using Tapatalk
The pop up I get every 3 days for me to update my device to 4.4.3 I believe.. It's located in twrp under cache... When I try flashing it says error in red lettering ... Also I tried Uninstalling Xposed but seems not to change anything
SENT FROM MY SM-N900T/NEXUS 5 USING TAPATALK
ROADKING17 said:
The pop up I get every 3 days for me to update my device to 4.4.3 I believe.. It's located in twrp under cache... When I try flashing it says error in red lettering ... Also I tried Uninstalling Xposed but seems not to change anything
SENT FROM MY SM-N900T/NEXUS 5 USING TAPATALK
Click to expand...
Click to collapse
Don't use OTA updates. Just manually flash a rooted stock ROM via TWRP.
Click the link in my signature and go to the "resources" section. You'll find a full rooted, PURE STOCK 4.4.4 rom there.
Copy it to your /sdcard, take a FULL nandroid backup then flash the ROM.
rootSU said:
Don't use OTA updates. Just manually flash a rooted stock ROM via TWRP.
Click the link in my signature and go to the "resources" section. You'll find a full rooted, PURE STOCK 4.4.4 rom there.
Copy it to your /sdcard, take a FULL nandroid backup then flash the ROM.
Click to expand...
Click to collapse
Will I lose anything on my device and will I be able to dirty flash
SENT FROM MY SM-N900T/NEXUS 5 USING TAPATALK
ROADKING17 said:
Will I lose anything on my device and will I be able to dirty flash
SENT FROM MY SM-N900T/NEXUS 5 USING TAPATALK
Click to expand...
Click to collapse
did you read any of the threads? the answer is in there.
ROADKING17 said:
Will I lose anything on my device and will I be able to dirty flash
SENT FROM MY SM-N900T/NEXUS 5 USING TAPATALK
Click to expand...
Click to collapse
if the dirty flash is successful, you wont lose a thing, except time. if you have to go back and wipe, you will lose your data. so, make a backup in recovery first, before the dirty flash.

Boot recovery.img from phone

Is it possible to boot a recovery image from the phone without flashing? If not is it ok to reflash backups of stock recovery? Tnx
and313 said:
Is it possible to boot a recovery image from the phone without flashing? If not is it ok to reflash backups of stock recovery? Tnx
Click to expand...
Click to collapse
It is possible via android sdk. You can use command: fastboot boot twrp.img
where twrp.img is the name of the recovery that you downloaded and not twrp.img
Alexandar92zr said:
It is possible via android sdk. You can use command: fastboot boot twrp.img
where twrp.img is the name of the recovery that you downloaded and not twrp.img
Click to expand...
Click to collapse
Yes i know but i would like to do it from the phone... There are tons of flash recovery apps but no boot recovery apps
ROM manager used to do it years ago until people got into trouble with it and it was removed.
If you intend on flashing things AMD backing up, flash a recovery. If you're not willing to flash a recovery, don't modify your phone
Sent from my Nexus 5 using Tapatalk
and313 said:
Yes i know but i would like to do it from the phone... There are tons of flash recovery apps but no boot recovery apps
Click to expand...
Click to collapse
Try flashify
AndreIrawan97 said:
Try flashify
Click to expand...
Click to collapse
That flashes recovery. Clue is in the name.
Sent from my Nexus 5 using Tapatalk
rootSU said:
ROM manager used to do it years ago until people got into trouble with it and it was removed.
If you intend on flashing things AMD backing up, flash a recovery. If you're not willing to flash a recovery, don't modify your phone
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
The problem with flashing is that you loose the ota update ability. That's why i would like to keep the stock recovery and just boot into cwm when i need it... But i guess i can restore the stock recovery via flashify before the ota is being installed so thats a solution... I just dont like flashing this stuff via apps
and313 said:
The problem with flashing is that you loose the ota update ability. That's why i would like to keep the stock recovery and just boot into cwm when i need it... But i guess i can restore the stock recovery via flashify before the ota is being installed so thats a solution... I just dont like flashing this stuff via apps
Click to expand...
Click to collapse
1) you do not lose OTA update ability with custom recovery. Read "OTA help-desk" available via my signature
2] what's the big deal about OTA? Its the worst way of updating available to everyone. Why bother? If you rely on OTA, remain unrooted, unmodified. Rooting is not for you.
Sent from my Nexus 5 using Tapatalk
Ugh lol OK, so worried about the ota? No worries, flash whatever recovery you want twrp,cwm,philz whatever floats your boat. Then when your ota comes out use Rashr to reflash stock recovery so you can update(you have to be on stock obviously).
I've done this numerous times, works every time.
Sent from my Nexus 5 using XDA Free mobile app
todorcim said:
Ugh lol OK, so worried about the ota? No worries, flash whatever recovery you want twrp,cwm,philz whatever floats your boat. Then when your ota comes out use Rashr to reflash stock recovery so you can update(you have to be on stock obviously).
I've done this numerous times, works every time.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
One of the problems with OTA is the slow delivery and partial nature.
If I wasn't rooted, i'd always update using factory images. But since I am, the best way is for flash a pre-rooted stock ROM via recovery. They're usually available within an hour of the factory image becoming available
Sent from my Nexus 5 using Tapatalk
rootSU said:
One of the problems with OTA is the slow delivery and partial nature.
If I wasn't rooted, i'd always update using factory images. But since I am, the best way is for flash a pre-rooted stock ROM via recovery. They're usually available within an hour of the factory image becoming available
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Agreed 100%, I normally stay rooted,this most recent preview though I'm staying stock. After running L for the last couple months its hard to go back to KitKat(I've tried several times). I have no intention of flashing another rom atm, I'll worry about root after the 3rd.
As for buddy worrying about the ota, really you have two choices.
#1 root and flash a recovery then wait for someone to post a root stock ROM
#2 wait for the ota
The only real benefit I see in waiting for the ota is you will probably get to keep all your apps on your phone. Me personally? I'd just fastboot the preview and wait till the 3rd.
Materialized From The DarkSide

Marshmallow upgrade

Can I update my phone to marshmallow by flashing stock recovery unrooting my and relocking my bootloader by an app from playstore.because I don't have a pc available at the moment.and also can I root my phone again after updating it to marshmallow?
Sent from my Nexus 5 using Tapatalk
abdullah.ejaz123 said:
Can I update my phone to marshmallow by flashing stock recovery unrooting my and relocking my bootloader by an app from playstore.because I don't have a pc available at the moment.and also can I root my phone again after updating it to marshmallow?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
1) Yes, see below.
2) You could to flash the exact recovery image of the build you are running now (which should be LMY48M), but save this step for last.
3) If I'm thinking correctly, unrooting will also restore some system files back, and IIRC, some of these might be install-recovery.sh and recovery-from-boot.p. What these will do is to restore stock recovery if, on a reboot, it catches something else on the recovery partition. Going by this perspective, you wouldn't even need to manually flash stock recovery.
4) You don't need to relock the bootloader to successfully install an OTA.
Don't rush this, take your time.
Sent from my Nexus 10 using Tapatalk
beekay201 said:
1) Yes, see below.
2) You could to flash the exact recovery image of the build you are running now (which should be LMY48M), but save this step for last.
3) If I'm thinking correctly, unrooting will also restore some system files back, and IIRC, some of these might be install-recovery.sh and recovery-from-boot.p. What these will do is to restore stock recovery if, on a reboot, it catches something else on the recovery partition. Going by this perspective, you wouldn't even need to manually flash stock recovery.
4) You don't need to relock the bootloader to successfully install an OTA.
Don't rush this, take your time.
Sent from my Nexus 10 using Tapatalk
Click to expand...
Click to collapse
And what if unrooting didn't restore stock recovery?
Sent from my Nexus 5 using Tapatalk
abdullah.ejaz123 said:
And what if unrooting didn't restore stock recovery?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Then you'll need to do 2).
Sent from my Nexus 5 using Tapatalk

Categories

Resources