yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] benjieb:
Hi, got the file but can't flash it through TWRP...

I am stock LRX21O rooted and custom recovery, but it says I have the wrong fingerprint... Any help welcome
[Nexus 5 General] jd1639:
You can't flash it in twrp. You need to sideload it in the stock recovery. You also have to be stock recovery, system, and kernel and unrooted.

Here we go again!
[Nexus 5 General] c3k:
tried to install 5.0.1 ota on rooted device with twrp removing fingerprint check and install-recovery related lines > bootloop (same on nexus 7 some days ago)

restored by flashing system.img without losing any data

is unroot method working?

maybe just rename install-recovery_orginal.sh?

---------- Post added at 01:02 AM ---------- Previous post was at 01:00 AM ----------

this is the orginal ota without the fingerprint verification:

https://www.dropbox.com/s/t5kia7j9u...mmerhead-LRX22C-from-LRX21O.785a2f7a.zip?dl=0

no warranty, see above (you have to unroot otherwise it still fail)
[Nexus 5 General] benjieb:
This is shocking painful news... Where can i get literature on flashing OTAs?
[Nexus 5 General] jd1639:
Not sure where you can get literature on it. But, you can unroot using the full unroot option in supersu, settings. If you're not stock recovery, system,and kernel you can flash the recovery, system and boot images in fastboot from the 5.0 factory image.
[Nexus 5 General] ddrum2000:
Didn't work for me sideloading in CWM
[Nexus 5 General] c3k:
did you unroot?

error?
[Nexus 5 General] :
Try twrp. cwm is behind the times these days and sorta awful. ?
[Nexus 5 General] jd1639:
Please read a little of this thread before posting. You have to sideload in the stock recovery

Edit, you too Darth, lol
[Nexus 5 General] benjieb:
Thanks for helping.

Ok so anyone willing to have a rooted phone and/or a custome recovery will have to go back to full stock for every android update?
[Nexus 5 General] jd1639:
Yes, android is updating differently than they did before. They're not updating full files but blobs, just the things that changed. So you need to be unrooted and stock recovery, system, and kernel. If the update notices anything that isn't stock it'll fail.
[Nexus 5 General] Wh1t3Rose:
Delete. I had a brain fart
[Nexus 5 General] benjieb:
:fingers-crossed:

:( what a pain! That's a case for remaining 100% stock... Thing is I am not sure I can live with root!
[Nexus 5 General] c3k:
Everyone wrote this, but all update I've seen (nexus 5&7 >=5.0) still update file-by-file
[Nexus 5 General] jd1639:
It's not so bad. Flashing back to stock then taking the ota and re-rooting doesn't take so long once you've done it. You should get proficient with fastboot and not rely on tool kits.
[Nexus 5 General] Germian:
Bare with me but could someone explain what and in which order (including possible reboots of fastboot) I need to flash the files from the stock 5.0 image to get back on stock without losing my existing apps or data? I can pretty much flash a stock image manually (applying every single file, etc) but I'm a little too unsure and I don't wanna mess with my system too much right now. Thanks :)
[Nexus 5 General] jd1639:
Just

fastboot flash recovery recovery.img

fastboot flash boot boot .img

fastboot flash system system.img

Order doesn't matter.

Edit, then in the stock recovery choose the adb sideload option and in a command window on your pc

adb sideload update.zip
[Nexus 5 General] :
Got confused between sideload and push for a minute. ?

---------- Post added at 08:11 PM ---------- Previous post was at 08:10 PM ----------

Join the club. Lol
[Nexus 5 General] jss2:
OK, here's my question. Why bother to fastboot flash the recovery, boot, and system images for 5.0, if you're immediately going to adb sideload the 5.0.1 OTA update in stock recovery? When in fastboot, why not just fastboot flash the recovery, boot, and system images for 5.0.1 directly? Is there an actual reason? (I know this is an OTA help thread, so maybe people in this thread are just OTA sideload happy?)
[Nexus 5 General] GabbyWC:
It took multiple tries and a few more steps than I expected but I updated my Nexus 5 from Android 5.0 to 5.0.1 earlier today. I had to do a full unroot through SuperSU, then use the Nexus Root Toolkit's advanced utilities menu to flash the Android 5.0 stock recovery, kernel and system images before I was able to successfully sideload the 5.0.1 OTA zip file. I miss the convenience of being able to flash OTA zip files using TWRP but as others mentioned earlier, Android 5.0+ updates differently than previous versions so it requires more work than before.
[Nexus 5 General] jd1639:
You could do the same thing with 5.0.1 and flash all the images except userdata.img which would wipe your device. But as you said, people are ota happy. And actually, many of the images of 5.0.1 are the same as 5.0 and don't need to be flashed
[Nexus 5 General] Germian:
Could it be that the latest TWRP doesn't work for 5.0.1? I can flash the image but when I boot into recovery the twrp logo gets dark and then it reboots into the system again. Just a problem with my setup or a known error?

EDIT: Tried out 2.8.1.0 instead of 2.8.2.0 and it works. Wtf? Tried flashing back to 2.8.2.0 and logo went dark + reboot again...
[Nexus 5 General] GabbyWC:
TWRP v2.8.1.0 is currently the recommended version to use on the Nexus 5 as v2.8.2.0 is known to have issues. I don't think the Android OS version installed on your phone makes any difference in the matter.
[Nexus 5 General] ste71m:
Ota failed

I was trying to upply ota to update from 5 to 5.01 but it failed with an error ' /system/bin/install-recovery.sh has unexpected contents'

My phone is rooted with CF-Auto-Root, unlocked bootloader and before applying ota i reflashed original recovery (i had TWRP)

Any idea?

Thanks
[Nexus 5 General] gialakias:
Fastboot flash system.img and you should be OK.

Sent from my Nexus 5
[Nexus 5 General] ste71m:
Thx..downloading full image right now. So no need to flash radio, boot image ..?
[Nexus 5 General] gialakias:
No, only system because as you saw the mistake is there.

Sent from my Nexus 5
[Nexus 5 General] ironia.:
if we did a complete unroot from supersu app and after sideload ota should work???

tnx
[Nexus 5 General] ste71m:
Well the problem seems to be in recovery from sideload message.

Anyway just flashed system.img thx
[Nexus 5 General] wendroid:
Will This Work for 5.01 Update?

I'm trying to OTA from 5.0 to 5.01 and it isn't taking, gets an error and aborts. I'm rooted/stock/ and I think a kernal or something has changed but don't really know what. I rooted/unlocked the bootloader using Nexus Root Tools Kit. I'm thinking I can download the complete 5.0 Image and the 5.01 update file and use these to get the 5.01 update to take? Or do I use the 5.01 Image file. Thanks for your help. I have TWRP recovery installed. Does this process dirty flash? I'm trying to avoid a system reset wipe.
[Nexus 5 General] 7Bit:
I can't sideload the update, because the volume keys aren't working in recovery. If I boot into recovery, there is the Android laying on it's back with a red exclamation mark and the words "no command". I can't do anything, pressing volume keys or power button does nothing... anybody got this and can help me? :(
[Nexus 5 General] chem20:
when i flash 5.0.1 ota via TWRP this error was occur (executing updater binary in zip)
[Nexus 5 General] Jacktheskipper:
Okay, here is how I did it: 5.0 -> 5.0.1

I came from 5.0, rooted, unlocked bootloader (root & bootloader don't matter!), TWRP 2.8.2.0.

Before you start make sure you have your adb/fastboot/drivers ready and all set up!

I used minimal ADB and Fastboot: http://xdaforums.com/showthread.php?t=2317790

This may be a little bit too complicated (so feel free to correct me) but this worked fine for me.

I'm on 5.0.1 now, rooted with CWM 6.0.4.5 and happy:

01) downloaded 5.0 factory image from https://developers.google.com/android/nexus/images#hammerhead

02) extracted the image and moved recovery.img and system.img to adb folder

03) download Latest SuperSU from http://download.chainfire.eu/supersu

04) put SuperSU.zip on your phone's internal storage

06) download the 5.0.1 OTA update zip from http://android.clients.google.com/p...ed-hammerhead-LRX22C-from-LRX21O.785a2f7a.zip

07) rename it to update.zip and move it to your ADB folder

08) boot into bootloader

09) open command prompt from your ADB folder

10) connect USB cable

11) type 'fastboot devices' to check the connection

12) type 'fastboot flash recovery recovery.img'

13) type 'fastboot flash system system.img'

14) use volume and power buttons to boot into stock recovery

15) hold down power button (!) when the robot with the red triangle appears and while still holding it press volume+ and release it after 1-2 seconds and the recovery options will appear

16) chose "apply update from ADB" from the newly appeared options in the recovery menu

17) go back to command prompt and type: adb sideload update.zip (make sure the update.zip is in the same folder as ADB)

18) chose option "reboot to bootloader" from recovery and let the phone boot back into bootloader

19) download the latest CWM Recovery from https://www.clockworkmod.com/rommanager at the moment that is recovery-clockwork-touch-6.0.4.5-hammerhead.img

20) copy the recovery-clockwork-touch-6.0.4.5-hammerhead.img to adb folder

21) type 'fastboot flash recovery recovery-clockwork-touch-6.0.4.5-hammerhead.img'

22) reboot to CWM recovery

23) install supersu.zip from CWM Recovery

24) reboot system

25) done!

Hope this helps some of you :good::highfive:
[Nexus 5 General] aavvaallooss:
Edited
[Nexus 5 General] robertusIT:
same here and i tried also with twrp 2.8.10 without success.
[Nexus 5 General] NCguy:
Great detailed step by step! Now if people understand all these steps (and they need to) there is a great opportunity IMO for a Kit to fully automate this whole process. Maybe one of the kits will come up with a 5+ apply OTA for rooted devices because this is getting to be a bit much to just apply an OTA.
[Nexus 5 General] EddyOS:
Guys, if you're not 100% stock don't bother trying to apply an OTA update. It'll cause more issues than it's worth (and clearly a lot of people have no idea what they're doing)
[Nexus 5 General] ironia.:
so best is use adb fastboot

flashing straightly 5.0.1

fastboot flash bootloader bootloader-hammerhead-hhz12d.img

fastboot reboot-bootloader

fastboot flash radio radio-hammerhead-m8974a-2.0.50.2.22.img

fastboot reboot-bootloader

fastboot flash system system.img

fastboot reboot-bootloader

fastboot flash recovery recovery.img

fastboot flash boot boot.img

fastboot erase cache

fastboot flash cache cache.img

adjusting 5.0 and then OTA 5.0.1

fastboot flash recovery recovery.img

fastboot flash boot boot .img

fastboot flash system system.img

Order doesn't matter.

and then the stock recovery choose the adb sideload option and in a command window on your pc
[Nexus 5 General] olivercervera:
Got the same issue here on the N5 of a friend

Any advice?
[Nexus 5 General] djsnake81:
I am on 5.0 stock, without root and with trwp.

How i have to do?

I just flash recovery (without boot and system) and then sideload the ota?

Thanks
[Nexus 5 General] Jacktheskipper:
Make sure you have your drivers right, this is a driver problem!

---------- Post added at 12:52 PM ---------- Previous post was at 12:44 PM ----------

You have to hold down the power button (and have to keep holding it), then press volume+ for 1-2 seconds and release it ...
[Nexus 5 General] Peanuts.:
I'm getting an error when trying to flash the 5.0.1 OTA.

I have:

- TWRP

- Franco kernel (I've checked the 2 files that has the ".bak" mentioned by Franco, these have been renamed)

- Camera mic mod (I've flashed it back to stock)

Is there something else I need to do?

Thanks in advance
[Nexus 5 General] Wh1t3Rose:
Omg people please read the OP before posting. I have put all over the OP in big red letters that you must be COMPLETELY stock. This includes the recovery as well. I even was as specific to state recovery issues with 5.0. Please read the OP in its entirety b4 trying anything or posting.

Edit: if anyone sees any conflicting information in the OP please point it out so I can correct it. That way hopefully we won't get the same question every other post :)
[Nexus 5 General] samsaBEAR:
I'm trying to flash the 5.0.1 update. I'm completely stock so I'm doing it via recovery/adb, but for some reason when the little Android comes up, I press Volume Up and the menu doesn't come up, it just keeps showing the Android. It worked 100% fine for me when I went from 4.4.4 to 5.0, so I'm not sure what's happening here. Anyone have any ideas?
[Nexus 5 General] olivercervera:
That worked, thanks.

Anyway the ADB version attached in the first post is not updated, to apply 5.0.1 OTA, ADB 1.0.32 is needed.
[Nexus 5 General] gialakias:
Power + Volume+

Sent from my Nexus 5
[Nexus 5 General] EddyOS:
So much wrong with your setup...

1. You're running 4.4.4 (or at least you are according to your build.prop)

2. You have a custom kernel

3. You're using TWRP

Best go read the OP a bit first ;)
[Nexus 5 General] Jacktheskipper:
Okay everyone, updated my how-to guide on Page 343 with more details and hope this helps some of you out there:

http://xdaforums.com/showpost.php?p=57537387&postcount=3422

If someone wants to put this (or a corrected/edited version) on the first post or whatever, feel free to!
[Nexus 5 General] Lownita:
I am a bit confused. I am on stock rooted, elementalx kernel and TWRP. Since it is the first time I am not running a custom rom, what would be the best way to update to 5.0.1? Flashing stock recovery and sideloading the OTA?
[Nexus 5 General] Jacktheskipper:
Wrote a little guide:

http://xdaforums.com/showpost.php?p=57537387&postcount=3422
[Nexus 5 General] djsnake81:
Thanks for the guide.

Just a question, Jack.

I have 5.0 on, with custom recovery (trwp).No root.

Why i have to flash system too? it ain't enough to flash stock recovery and then sideload adb?
[Nexus 5 General] Jacktheskipper:
Some people (and I myself) ran into errors after just flashing recovery, most common was: "/system/bin/install-recovery.sh" has unexpected contents ...

So this way you go completely stock without losing any data and won't run into trouble.
[Nexus 5 General] djsnake81:
Ok, i understand, and this is not going to wipe my phone.

So, why not? ;)

Thanks a lot again from a newbie of adb and flashing (first time i flashed via command line was lollipop image) :)
[Nexus 5 General] Wh1t3Rose:
If you haven't made any system edits then you don't have to. But if you try to sideload and it fails then you must reflash your system
[Nexus 5 General] djsnake81:
No, i just flashed trwp at the time without rooting the phone. I'll try without flashing the system then. I'll flash it just in case of errors. Thanks to you too sandman
[Nexus 5 General] ironia.:
just done pretty the same procedure (except root and custom recovey) when i finish the sideload i received a strange red message above the screen like 'LRX21O recovery 3e'

any suggestion??

tnx
[Nexus 5 General] Jacktheskipper:
So you made sure you are back to stock recovery & system by now?
[Nexus 5 General] ironia.:
from 5.0 image I take and fastboot these files:

fastboot flash recovery recovery.img

fastboot flash boot boot.img

fastboot flash system system.img

than reboot the whole system

than adb sideload

when i finished, before reboot i receive

a screen like thes

e but with LRX21O

I'm in hurry and I select reboot and everything boot up fine.
[Nexus 5 General] TR2N:
Here is the way i did it to upgrade to 5.0.1 with my rooted 5.0 and installed franco.Kernel:

- Make sure you get latest(!) Google USB drivers and ADB/Fastboot executable

- Download the 5.0(!) Stock Image, https://dl.google.com/dl/android/aosp/hammerhead-lrx21o-factory-01315e08.tgz

- Download the OTA-file (5.0 --> 5.0.1), http://android.clients.google.com/p...ed-hammerhead-LRX22C-from-LRX21O.785a2f7a.zip

- If using SuperSU, unroot your Nexus 5 from inside the app

- Extract the 5.0 Stock Image with WinRAR or equal

- Unzip the inlcuded .zip-file

- Use Fastboot to flash boot.img, system.img and recovery.img

- Reboot to Fastboot after flashing, start Recovery with the volume buttons and power button

- Long hold power button, press volume up to open Recovery options

- Do an ADB sideload of the OTA .zip-file

* Optional: Reboot to Fastboot and flash TWRP Recovery, franco.Kernel boot.img etc.

* Optional: Reboot to Recovery (TWRP) and flash SuperSU .zip-file

- Reboot to Recovery (if not already there) and wipe caches

- Reboot phone, you are done! :)
[Nexus 5 General] ironia.:
if you have ONLY custom recovery, take the stock recovery from 5.0 image

and from fastboot

fastboot flash recovery recovery.img

and then adb sideload
[Nexus 5 General] mertzi:
I think if you have to download a whole factory image it's better to download 5.0.1 and flash everything in fastboot except userdata. Then proceed with rooting and custom recovery and whatnot. Less steps. That's how I did it with my nexus 7 2013. Haven't tried it yet in my nexus 5 so not sure if it works.
[Nexus 5 General] Jacktheskipper:
Totally right, but since this is the OTA Thread and people were asking, I thought I'd provide my solution.

Went the OTA way, since I was curious, too ...
[Nexus 5 General] WettbackMartyr:
Yup!!!! But this thread is about using the OTA update method... And judging from the questions on the last few pages... It's probably better for most peeps this way.

Sent from my Nexus 5
[Nexus 5 General] ironia.:
same result:o
[Nexus 5 General] djsnake81:
Finally, i flashed 5.0 recovery and then the OTA file via sideload.

It is normal that the boot screen stay for a long time?
[Nexus 5 General] Wh1t3Rose:
I'd say no longer then 15 minutes. If it takes longer then I would fastboot the 5.0.1 boot, system, cache and recovery images individually. You won't lose any data unless you factory Reset
[Nexus 5 General] djsnake81:
Ok, i will wait a little bit more then and then flash all
[Nexus 5 General] Wh1t3Rose:
Do NOT fastboot the Userdata.IMG or run the flashall.bat unless you want to lose your data including SD card contents.
[Nexus 5 General] djsnake81:
Gotcha ;)

---------- Post added at 04:39 PM ---------- Previous post was at 04:25 PM ----------

i flashed all files (except for userdata.img) and rebooted.

It is on the boot screen again from 6 minutes. I will wait again, i hope it is normal
[Nexus 5 General] Wh1t3Rose:
At this time of my post it's been 12 minutes. If it's still booting it's definitely your data partition. Something isn't right. I would use ADB to backup your SD Card and then fastboot the UserData.img. then factory reset in recovery
[Nexus 5 General] djsnake81:
Yep, it's still stuck :(

So, could you please explain me what do you mean by using ADB to backup? i'm a newbie
[Nexus 5 General] CAL7:
I'm on KTU84P, stock except for TWRP recovery. Can I flash just the stock recovery and proceed with the adb sideload? If it fails [probably because I'm not as stock as I think - seems that I never am :) ], then flash the system.img?
[Nexus 5 General] jd1639:
You won't be able to update to 5.0.1 from 4.4.4.by sideloading the update. You'll have to update to 5.0 first
[Nexus 5 General] Wh1t3Rose:
You got it :). Easy Peasy
[Nexus 5 General] bgrimm:
Thanx for the Tutorial.

If i use sideload to update the update.zip i get an error like this:

error in /sideload/package.zip (Status 7)

Was on rooted 5.0.
[Nexus 5 General] CAL7:
Thanks, Sandman and jd1639. Can I sideload the 5.0 update immediately followed by 5.0.1? Or should I allow 5.0 to boot up then install 5.0.1?
[Nexus 5 General] jd1639:
Did your have a custom kernel? If yes, you'll have to flash the boot.img with fastboot too
[Nexus 5 General] Wh1t3Rose:
Stock recovery right? Might be a corrupt download
[Nexus 5 General] Wh1t3Rose:
Personally I'd boot up first to make sure cache gets created and all files get loaded. Then update again.
[Nexus 5 General] djsnake81:
Maybe i'm out of the tunnel...

I installed cwm recovery before trying the data format suggested, and i gave "flash cache", then rebooted.

Apparently, is now on the "android upgrade" popup step.

It's strange, because when i sideloaded ota, and even when i flashed whole 5.0.1 (without userdata.img), at the end i always gave "fastboot erase cache"

Anyway, it seems working now
[Nexus 5 General] davizera:
Perfect!!!

Thank you very much!!!

I just added one step in the fastboot and it was solved

fastboot flash boot boot.img
[Nexus 5 General] mr93:
I still get "status 7" from this method
[Nexus 5 General] jd1639:
Did you have a custom kernel? If so you also have to flash the boot image in fastboot
[Nexus 5 General] mr93:
I flashed system.img, boot.img and recovery.img. Reboot the bootloader, go into recovery to sideload, status 7
[Nexus 5 General] jd1639:
Have you ever changed the radio? You might have to flash that too
[Nexus 5 General] mr93:
I don't remember changing the radio. From kitkat I just flashed system.img, userdata.img, boot.img, recovery.img, cache.img. I had root access. But now unrooted and returned to stock recovery. I didn't flash any radio.img when updating to lollipop. Is radio-hammerhead-m8974a-2.0.50.2.21.img the correct radio file?

This is the error:

http://i.imgur.com/NwJFQqd.png
[Nexus 5 General] kaushikd:
I am getting 'Status 7' error. All stock, rooted.

Do I need to unroot before sideloading update.zip?
[Nexus 5 General] jd1639:
Yes, you need to be unrooted.

---------- Post added at 12:24 PM ---------- Previous post was at 12:08 PM ----------

You're on kk, 4.4.4? You can't update to 5.0.1 from there. You'll have to update to 5.0 first. You're going to want to flash the system, boot, recovery and radio from 4.4.4 now and then update to 5.0. You'll then be able to update to 5.0.1. But I'd recommend you backup your device to your pc first. You might have to flash the entire 5.0.1 factory image at this point.
[Nexus 5 General] kaushikd:
Even after unrooting, I am getting the same 'Status 7' error. :confused:
[Nexus 5 General] jd1639:
After you unroot you need to flash the system.img
[Nexus 5 General] bmoblli:
Looks like a radio problem.

Since the OTA is from 5.0 to 5.0.1 you'll need the full 5.0.

Fastboot flash radio-hammerhead-m8974a-2.0.50.2.21.img and try sideloading the OTA again.
[Nexus 5 General] Lownita:
Modem was updated, bootloader wasn't, right?
[Nexus 5 General] mr93:
You misunderstood me. I was from kitkat. Now on 5.0. And now successfully updated to 5.0.1

Thanks
[Nexus 5 General] kaushikd:
now I am unable to flash system.img! :eek: I am now getting error while flashing it in fastboot mode.
[Nexus 5 General] jd1639:
What error are you getting? Did you type everything correctly?
[Nexus 5 General] kaushikd:
Do I need to flash only system.img only?
[Nexus 5 General] neo2306:
i am having " Installation aborted" whrn i tried to sideload the update !! its saying adb version is old.
[Nexus 5 General] jd1639:
Android 5 needs the latest version of adb and fastboot. Google 15 second adb install xda. That'll setup the latest on your pc.
[Nexus 5 General] neo2306:
got it !! thanx
[Nexus 5 General] Peanuts.:
1. I'm on 5.0 LRX210

2. Was on Franco kernel as mentioned however this was put back to stock

3. Yes. Although, I'm not aware of any other way on flashing a .zip file

*Edit: I've read other people's guide after my post and I'll give it a go. I already have the latest adb drivers and factory 5.0 image on my PC.
[Nexus 5 General] EddyOS:
1. The error you're getting would suggest otherwise

2. Read the OP, it clearly states that from Android 5.0 onwards you HAVE to have the stock recovery to apply an OTA - no exceptions
[Nexus 5 General] FilipeMoritz:
5.0.1 has only 13,3 mb, is that right?
[Nexus 5 General] GabbyWC:
Yes, the OTA zip file for the Nexus 5 Android 5.0 > 5.0.1 update is a small one at only 13.27 MB.
[Nexus 5 General] bgrimm:
Yes, thats it. On 5.0.1 now!

Thank you!
[Nexus 5 General] Mindspin_311:
So I flashed the factory 4.4.4 image in hopes of getting OTA notification for 5.0/5.0.1. How long can I expect before that notification comes through? Phone says it has checked and no update. I am on Tmo, only unlocked bootloader, nothing else.