Can't install OTA update... - Nexus 5 Q&A, Help & Troubleshooting

So I had my phone rooted, with TWRP recovery, and today I've received a notification for 5.1 update, and when I pressed Install and reboot, it rebooted directly into TWRP, so I can't update it (or didn't find a way). Is there any way to update it now without wiping data?

There's a whole thread on the ota process in the general forum. You should read it. The ota will not work with a custom recovery. You need the stock recovery which you can install using fastboot. There are other requirements too. You have to be 100% stock system, kernel and recovery.
Sent from my Nexus 5 using XDA Free mobile app

Just flash the ota zip via twrp you will loose all root and your system modifiactions which are reversible!

bhavstech said:
Just flash the ota zip via twrp you will loose all root and your system modifiactions which are reversible!
Click to expand...
Click to collapse
It won't work with 5.x. You need the stock recovery.
Sent from my Nexus 5 using XDA Free mobile app

jd1639 said:
it won't work with 5.x. You need the stock recovery.
Sent from my nexus 5 using xda free mobile app
Click to expand...
Click to collapse
oh i didnt know that thanks!

AlexSRB said:
So I had my phone rooted, with TWRP recovery, and today I've received a notification for 5.1 update, and when I pressed Install and reboot, it rebooted directly into TWRP, so I can't update it (or didn't find a way). Is there any way to update it now without wiping data?
Click to expand...
Click to collapse
See quote below.
Elluel said:
download new factory images
fastboot flash system system.img
fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash radio radio.img
fastboot flash bootloader bootloader.img
boot into custom recovery
then flash SuperSU/other stuff if desired
Click to expand...
Click to collapse

Related

[Q] Can I re-root without losing all my data?

My nexus was bootloader unlocked and rooted while on 4.4.2.
I OTA updated to 4.4.3 and lost my root.
Is there a way to re-root the phone without losing all my data or having to wipe?
Thanks in advance for the info.
Yes, flash a custom recovery or just boot into it and flash the supersu.zip.
vin4yak said:
Yes, flash a custom recovery or just boot into it and flash the supersu.zip.
Click to expand...
Click to collapse
Unless you flash Philz recovery where you can just root from within the recovery menu
rootSU said:
Unless you flash Philz recovery where you can just root from within the recovery menu
Click to expand...
Click to collapse
Yeah Philz for life! lol.
Well it seems like for some reason it reverted back to stock android recovery.
Could I still flash a custom recovery and go from there?
bloodletting284 said:
Well it seems like for some reason it reverted back to stock android recovery.
Could I still flash a custom recovery and go from there?
Click to expand...
Click to collapse
The reason is the OTA contained a recovery. You have to flash a recovery as already mentioned earlier in the thread
Sent from my Nexus 5 using Tapatalk

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

[Q] Manually install 5.0.1 update without adb?

I have the download link (the official .zip) for the update from google's servers but don't have access to adb. Can I download the update myself and then just boot into recovery or something and load it from there?
leaveone said:
I have the download link (the official .zip) for the update from google's servers but don't have access to adb. Can I download the update myself and then just boot into recovery or something and load it from there?
Click to expand...
Click to collapse
You can manually flash the factory image files with fastboot. If you don't have fastboot Google 15 second adb install xda, try not to use the dev host download site. It's bad.
Sent from my Nexus 5 using XDA Free mobile app
Doesn't flashing a factory image erase data? I'm trying to apply the OTA update without factory resetting my phone.
leaveone said:
Doesn't flashing a factory image erase data? I'm trying to apply the OTA update without factory resetting my phone.
Click to expand...
Click to collapse
Don't flash the userdata.img and it won't wipe your device. If you're going from 5.0 to 5.0.1 you should get by with just flashing the radio, boot, and system images. But as always, backup first off the device just in case.
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
Don't flash the userdata.img and it won't wipe your device. If you're going from 5.0 to 5.0.1 you should get by with just flashing the radio, boot, and system images. But as always, backup first off the device just in case.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
I successfully used the adb sideload method last night. I was just curious if there was a way to apply the update without needing adb, like I have on other phones use CWM to apply an update from zip. Thanks for the help!

Going to 5.0.1 while rooted and custom recovery

Can I just grab the system, boot, and radio images and flash them in fastboot?
Will this retain root and update to 5.0.1?
Sent from my Nexus 5 using XDA Free mobile app
Yes, flash then re-root.
rootSU said:
Yes, flash then re-root.
Click to expand...
Click to collapse
It will take root away I guess?
Sent from my Nexus 5 using XDA Free mobile app
joho5 said:
It will take root away I guess?
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Re-root
rootSU said:
Re-root
Click to expand...
Click to collapse
Will i lose custom recovery flashing the system?
Sent from my SAMSUNG-SM-G900A using XDA Free mobile app
joho5 said:
Will i lose custom recovery flashing the system?
Sent from my SAMSUNG-SM-G900A using XDA Free mobile app
Click to expand...
Click to collapse
recovery will be borked. Just flag the twrp image in fastboot
Sent from my Nexus 9 using XDA Free mobile app
jd1639 said:
recovery will be borked. Just flag the twrp image in fastboot
Sent from my Nexus 9 using XDA Free mobile app
Click to expand...
Click to collapse
Don't think so.
AFAIK, /system/install-recovery.sh and /system/recovery-from-boot.p only exist when OS has gone through an OTA.
If you use a factory image, either to update or reflash /system, those 2 files won't be there - we get to keep our currently installed recovery anyways.
I even go further - when flashing a factory image.. I just skip stick twrp.img in the zip, overwriting recovery.img. Then I use flash-all.sh.
Tip: if you edit the flash-all script and remove the `-w` argument from the `fastboot update filename.zip`, it won't flash user data.img.
This what I did. Download Google factory 5.0.1 image. Unzip. Edit flash-all.bat and remove the "-w" flag for the one command it's found for. Run the edited .bat file. It'll lose root, twrp, but it'll retain data so just flash the recovery over again after the initial flash finishes, then go into twrp to flash SuperSU again and custom kernel if wanted
Sent From Lollipopified Bacon Goodness!
Make sure you flash SU B4 boot or you will loose root.
howard bamber said:
Make sure you flash SU B4 boot or you will loose root.
Click to expand...
Click to collapse
You can just flash it later.
Can you validate/comment on my process?
Looking at this thread, I should be able to perform an update with the factory image without having to return to stock. Can those with a little more experience validate the steps I have below or recommend slight modifications? I was hoping to just flash a rooted/flashable Factory 5.0.1 image, but I don't think anyone has created one yet (if I just missed the ROM, please point me in the right direction).
Steps to Update to 5.0.1 while keeping Files/Root/TWRP
1 - Download Factory Image
2 - Modify flash-all.bat and remove the -w option
3 - Add twrp.img to the Factory image
4 - Fastboot Flash flash-all.bat
6 - Boot system
7 - Possibly have to re-flash SU from TWRP (this isn't a big deal either way)
As always, thanks for all the help here!
BigKenW said:
Looking at this thread, I should be able to perform an update with the factory image without having to return to stock. Can those with a little more experience validate the steps I have below or recommend slight modifications? I was hoping to just flash a rooted/flashable Factory 5.0.1 image, but I don't think anyone has created one yet (if I just missed the ROM, please point me in the right direction).
Steps to Update to 5.0.1 while keeping Files/Root/TWRP
1 - Download Factory Image
2 - Modify flash-all.bat and remove the -w option
3 - Add twrp.img to the Factory image
4 - Fastboot Flash flash-all.bat
6 - Boot system
7 - Possibly have to re-flash SU from TWRP (this isn't a big deal either way)
As always, thanks for all the help here!
Click to expand...
Click to collapse
Give it a try. I'm not sure that the twrp image is going to work. But the worst case is you'll still have the stock recovery after you boot. You'll lose root in any case and will have to flash supersu in the custom recovery
Sent from my Nexus 9 using XDA Free mobile app
BigKenW said:
Looking at this thread, I should be able to perform an update with the factory image without having to return to stock. Can those with a little more experience validate the steps I have below or recommend slight modifications? I was hoping to just flash a rooted/flashable Factory 5.0.1 image, but I don't think anyone has created one yet (if I just missed the ROM, please point me in the right direction).
Steps to Update to 5.0.1 while keeping Files/Root/TWRP
1 - Download Factory Image
2 - Modify flash-all.bat and remove the -w option
3 - Add twrp.img to the Factory image
4 - Fastboot Flash flash-all.bat
6 - Boot system
7 - Possibly have to re-flash SU from TWRP (this isn't a big deal either way)
As always, thanks for all the help here!
Click to expand...
Click to collapse
Just to make sure you understand what you're saying.
At step 3..
The twrp img file you download from their website needs to be renamed recovery.img and placed inside the update-rest-of-filename.zip, overwriting the one that's there already (yep, the stock recovery).
You got everything else right.
a maguro wrote this.
Or just type "fastboot flash recovery twrp.img" once you do the rest but skip step 3 cuz that is done with the command I wrote at the end of the process before you boot up.
1. Edit flash-all.bat to remove -w option
2. Run it to flash everything.
3. "Fastboot flash recovery twrp.img" (rename the twrp file you download to match twrp.img cuz it'll be a long name when you download it
4. In fastboot scroll to recovery, boot into it, it will boot into twrp
5. Flash SuperSU latest version from twrp (so make sure u have this on ur sdcard somewhere like in the downloads folder for example before u begin process
6. Clear dalvik and cache and reboot into lollipop. First boot may take a few min like 5 to 10
Sent From Lollipopified Bacon Goodness!
Didn't try it
I appreciate the tips. Just before I was about to attempt this, I saw Vomer posted a flashable image. I decided to go that route. Looks good so far.
BigKenW said:
I appreciate the tips. Just before I was about to attempt this, I saw Vomer posted a flashable image. I decided to go that route. Looks good so far.
Click to expand...
Click to collapse
And we were all in suspense to see how it worked out
Sent from my Nexus 9 using XDA Free mobile app

[Q]Can I update too 2.2?

So Just received my 2.2 Update, and was going to install it when I remembered, "Wait! I am rooted!"
My question is can I update too 2.2 and not have anything "bad" happen.(Root Lost, System Boot Loop, etc)
I am running Stock Update 2.1 with Root.
EDIT: I have CWM set as my recovery.
Another user did it in general forum and it doesnt flash because of mismatch
Just like the last Lollipop update, if you're rooted, you'll need to return to stock.
Otherwise, wait until the full rom .zip is available and then download it and flash it in your custom recovery followed by re-flashing the latest SuperSU .zip.
Sent from my SHIELD Tablet using XDA Free mobile app
An Droid said:
Just like the last Lollipop update, if you're rooted, you'll need to return to stock.
Otherwise, wait until the full rom .zip is available and then download it and flash it in your custom recovery followed by re-flashing the latest SuperSU .zip.
Sent from my SHIELD Tablet using XDA Free mobile app
Click to expand...
Click to collapse
Im on Philz
Can I flash recovery image via "fastboot flash recovery recovery.img", then reboot the tablet, install the OTA and then with Flashify flash Philz again?
EDIT: I just re-read what I posted. Can I use flashify to flash stock recovery, updating with OTA and then reflash Philz?
NaminatoR1254jaime.sier said:
Im on Philz
Can I flash recovery image via "fastboot flash recovery recovery.img", then reboot the tablet, install the OTA and then with Flashify flash Philz again?
EDIT: I just re-read what I posted. Can I use flashify to flash stock recovery, updating with OTA and then reflash Philz?
Click to expand...
Click to collapse
The "full" 2.2 OTAs are available everywhere on xda right now...Just flash the appropriate one, reflash recovery (if you have to) and then reflash supersu.
ailima said:
The "full" 2.2 OTAs are available everywhere on xda right now...Just flash the appropriate one, reflash recovery (if you have to) and then reflash supersu.
Click to expand...
Click to collapse
I already updated hahaha, I didnt remember this post. Thanks anyway!!

Categories

Resources