yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] jd1639:
If you used 7-zip or winrar to extract it you should be fine
[Nexus 5 General] BirchBarlow:
What is the error message?
[Nexus 5 General] rosennisha:
Works great in an easy way.. Thank you.. For this amazing tutorial..

Works great in an easy way.. Thank you.. For this amazing tutorial..

:good::good::good::good:
[Nexus 5 General] abaaaabbbb63:
No problem mate ;)
[Nexus 5 General] ronak383:
actually my warranty got over, so i sent it to a repair shop. They said the approximate cost for the repair will be around 3000-4000 rupees or else if i want to change the motherboard, they will charge me 12,500 :| so i got it repaired... everything is working fine till now :silly:
[Nexus 5 General] mrhomiec:
i followed these steps, but when i got to the "Wait for everything to flash." part and it finished, it automatically rebooted into the phone. the further steps were not attempted.

it looks like i'm unrooted (Root Checker apps all say it's not rooted) at least.

but back to stock, how do i tell for sure?

Baseband version: M8974A-2.0.50.1.16

Kernel version: 3.4.0-gd59db4e android-build@vpbs1.mtv.corp.google.com #1

Mon Mar 17 15:16:36 PDT 2014

Build number: KTU84P
[Nexus 5 General] wana7262:
Will flashing the factory image, enable the OTA? will it give u OTA of L?

Sent from my Awesome Nexus 5 using Awesome LiquidSmooth ROM!!!
[Nexus 5 General] :
It certainly should. ?
[Nexus 5 General] idontknow12321:
flash didnt work

hey , so i tried flashing with your first method and it said it failed, i also checked and its still on twrp

and my phone is in a bootloop aswell, so i really need help if you can help me fix this
[Nexus 5 General] jd1639:
Do you have fastboot installed on your pc? When it says failed, what failed?
[Nexus 5 General] idontknow12321:
installing sdk right now

unfortunately i forgot what it said when it failed

is there anything special i need to do with the sdk to reflash the image? i will try again tommorow
[Nexus 5 General] jd1639:
Google 15 second adb install xda. Use that to set up fastboot
[Nexus 5 General] FedExpressJoe:
I did every step. Do i get updates from Google now? For example in a few weeks the Android L update?
[Nexus 5 General] fly23:
Everything worked for me, but these steps didn't

nothing happens if i press VolUp+power when the dead android appears. and now I have still the SuperUser Installer App and can't remove it. And 'Quick Office' too, no option to uninstall.
[Nexus 5 General] jd1639:
Just hit vol up, no power too
[Nexus 5 General] fly23:
yes, found that out in the meantime. took me about an hour -_-

SuperSU Installer is still (or again) there:

what I have done:

- return to stock, locked bootloader

- unlocked again

- booted TWRP with "fastboot boot path/to/TWRP.img"

- selected everything in advanced wipe (data, system, dalvin, ...)

- then installed stock ROM with flash-all.bat

- when I booted at this moment the Superuser SU was removed(or I was blind and didn't noticed it)

- after that I had to relock and set the tamper flag again. (fastboot boot path/to/TWRP.img + installing Nexus BootUnlocker script)

- SuperUser SU Installer is there

edit: aje, at exiting TWRP I can choose between installing SuperUser SU... that was it.
[Nexus 5 General] idontknow12321:
thanks

alright ive installed the sdk

none of the methods worked for me but i did try a video from youtube, and the phone is working just fine

thank you for trying to help anyways
[Nexus 5 General] Boonyard:
Thanks for this tutorial, worked really well.

Unfortunately I made a mistake! In using the helium app, I only backed up to the phones storage, and then copied the phones storage to the desktop. I now can't restore the helium backups even though i've put them in the folder, it's like the app can't see them even though they are there.

Anyone else done this stupid thing?!
[Nexus 5 General] mgf8384:
Excellent tutorial. Phone is completely stock, locked and false :) brilliant work!!!
[Nexus 5 General] Boonyard:
OK... Solved this.

Of you have made the same mistake as me, you need to install your apps from market again, then backup using helium, then replace the backups with your old ones. Ridiculous.
[Nexus 5 General] :
Titanium Backup is number one for good reason. ?
[Nexus 5 General] Boonyard:
Well yeah, but I was going back to stock unrooted. SO that wouldn't have helped.
[Nexus 5 General] iamsuper123:
Right now I am running Paranoid ROM on my nexus 5.

I want to install stock image for Android 5.0 as Google released it today: HERE

Which steps I need to follow in order to install factory images?

Steps mentioned by Google ? https://developers.google.com/android/nexus/images

OR

The steps mentioned on the first post here:

★Power off your phone.

★Boot it in fastboot by pressing and holding Power Button + Volume Down at the same time.

★Connect your phone to your PC through your USB cable.

★Execute the flash-all.bat script (for Windows) or flash-all.sh(for MAC and LINUX) in the folder where you extracted the factory images.

**!!** For MAC: You'll have to edit the flash-all.sh, and add "./" before every fastboot command.

★Wait for everything to flash.

★After everything finished, select "Recovery" using the volume buttons.

★When a small dead Android appears, press Power Button + Volume UP.

★Select "Wipe data/factory data reset"

★Reboot. Your phone should be stock.
[Nexus 5 General] Phatsnake:
how to remove twrp

First of all thank you for this amazing guide.

I have a question: after locking the boot loader and resetting the tamper flag, how can I remove twrp? If I flash the stock rom again I'll have to unlock it, probably triggering the temper flag.

Thank you!

Edit: I can't seem to get back to TWRP after resetting the tamper flag. Guess that program / script took care of it for me?
[Nexus 5 General] jwhyte:
When you ran the flash-all script you lost your twrp. Then when you fastboot boot recovery.img you didn't flash it to your device you just ran it with your device it wasn't flashed to your device.
[Nexus 5 General] iamsuper123:
anyone ?
[Nexus 5 General] jd1639:
They're both essentially the same. If you're boot loader is already unlocked just double click on the flash-all.bat. Do a factory reset in the stock recovery after flashing
[Nexus 5 General] dlsygaco:
so i rebooted to recovery and i see a dead android. i press or hold volume up and power button. nothing seems to happen, it just reboots my device sometimes.. did i do anything wrong?
[Nexus 5 General] vin4yak:
Don't begin to hold both keys at the same time. Hold Power first and then immediately hit the volume up button. It can be quite tricky sometimes. But you'll get there eventually [emoji14]

-Sent from a Lollipop'd Hammerhead!

---------- Post added at 10:29 AM ---------- Previous post was at 10:27 AM ----------

I would certainly advise you to flash each img file separately. I've had my own share of issues with the flash-all.bat

-Sent from a Lollipop'd Hammerhead!
[Nexus 5 General] bouncingsoul:
Hey guys,

Do you think its best to go to stock before lollipop is coming? Or will we be able to just flash it like any other rom?
[Nexus 5 General] Primokorn:
No need to go to stock. Flashing the factory images is enough because it will wipe everything.
[Nexus 5 General] jelle2503:
I don't see how you can do a factory reset still in fastboot after using flash-all.bat...

The bat file automatically reboots your phone, so there is not even a way to do this as described in OP.
[Nexus 5 General] jd1639:
Just boot back into the bootloader and go to recovery. Then do the factory reset there
[Nexus 5 General] J.Diogo:
What should I do if I want to follow this tread and have a custom recovery?
[Nexus 5 General] jd1639:
If you want to return to stock, just flash the factory image. It doesn't matter if you have a custom recovery
[Nexus 5 General] J.Diogo:
Thanks for the answer.

I ask these because in the guide it says to after flash is done select recovery, and as I have a custom recovery I was afraid it wouldn't do the right thing.
[Nexus 5 General] jd1639:
When you flash the factory image it will replace your custom recovery with the stock recovery
[Nexus 5 General] abaaaabbbb63:
So new Android 5.0 factory images released for the N5. Happy flashing, guys!
[Nexus 5 General] MarlX:
im still not seeing it.lol

Sent from my Nexus 5
[Nexus 5 General] Primokorn:
Yep only N9 for the moment.

EDIT: [MENTION=4135622]MarlX[/MENTION] there are unofficial factory imgs: http://xdaforums.com/google-nexus-5/development/rom-fastboot-flashable-native-lollipop-t2929179
[Nexus 5 General] Apoorv AR:
If the code about temper flag says false then I got my warranty right??
[Nexus 5 General] Primokorn:
All stock partitions with locked BL and tamper flag set to 'false'. Everything is already well explained...
[Nexus 5 General] abaaaabbbb63:
Oh... oops... sorry. My bad
[Nexus 5 General] cee-ach:
OK so I just want to get this straight before trying it. I want to flash the stock rom WITHOUT unrooting. So I would follow method 1 or 2 and NOT lock the bootloader+reset tamper flag after, is that right? and in this case, would I still get OTA updates? if not, I'm assuming I have to manually flash it so would I need to wipe/factory reset every time I flash a new stock rom or would a "dirty flash" work since I'm staying on the stock roms?
[Nexus 5 General] coolek33:
If U flash stock you'll loose root.
[Nexus 5 General] :
Rooting again takes three minutes. ?
[Nexus 5 General] sampathkumar2811:
SuperSU app removal

Iam having SUper SU app presintalled after doing the flag reset process.Can I know how to remove it?
[Nexus 5 General] vin4yak:
Go to SuperSU settings and select 'Full Unroot'.

-Sent from a Lollipop'd Hammerhead!
[Nexus 5 General] sampathkumar2811:
Thank you

:)
[Nexus 5 General] J.Diogo:
Why do we need to select recovery after flashing?

And why did the dead Android appear?
[Nexus 5 General] jd1639:
You generally need to do a factory reset in the recovery to avoid a bootloop. The dead android is the stock recovery, when you see it just press vol up
[Nexus 5 General] J.Diogo:
OK thanks. I thought it was something related to having a custom recovery priori to the flash.
[Nexus 5 General] sampathkumar2811:
issue after startup

After going back to stock using the above tutorial,I am facing an issue.After the phone boot up completely (nearly it takes 30 to 35 seconds),when I press the power button,it is not locking the screen().But holding the power button ,it is giving the regular options(power off).This wierd behaviour is for around 20seconds.Then normal.I hav tried in safemode also.No change at all.I have done factory settings.Repeated the above method 2nd time also.No change.Can you help please?
[Nexus 5 General] :
Unless someone has other ideas, since you returned to stock twice.... Sounds like a hardware issue. It's not registering your quick presses, only a long one.

You could flash any rom and see if it's the same.

---------- Post added at 12:12 PM ---------- Previous post was at 12:09 PM ----------

Disregard. Just noticed the normal after 20 seconds part. Lol

Probably normal, things are loading still.

I don't have an N5 anymore to test.
[Nexus 5 General] sampathkumar2811:
ok......Thank You.....Is there any difference between fastboot flashing and by lg service center ?
[Nexus 5 General] :
I wouldn't know. I'm sure they use something more advanced that fastboot. Just a guess.
[Nexus 5 General] arnarhelgi:
Awesome tutorial and really in depth!
[Nexus 5 General] xda6969:
I am rooted using Clockwork Superuser. I no longer need root and want to unroot without returning to stock. It's easy enough to uninstall Superuser but what do I need to do to unroot after that and remove any other files that are no longer needed without returning to stock? Normally after an OTA update, I re-flash superuser.zip to root again. Would just uninstalling Superuser and then taking the next OTA remove everything that rooting may have left behind?
[Nexus 5 General] jd1639:
If the ota works, yes.
[Nexus 5 General] :
You don't need to unroot. As long as you're stock, no system changes and have stock recovery, you should get the Ota.

And yes, that will completely unroot you. ?

---------- Post added at 04:48 PM ---------- Previous post was at 04:45 PM ----------

Oh, whether or not it removes every single unwanted file.... I don't know. But you won't know either. ?

A completely 100% clean device does come from wiping and clean flashing stock.

To me, OTA's are like dirty flashing a rom. So I don't do OTA's. I like a clean slate with a new update. Especially a major one like 5.0.

Just my opinion though.
[Nexus 5 General] miguepereira77:
+1 I don't remember the last time I installed an OTA, I always install factory images with fastboot instead
[Nexus 5 General] shizkoff777:
Can anyone upload and share the cache.IMG file with me I have terrible WiFi and it takes forever
[Nexus 5 General] jd1639:
Just extract it out of the factory image. Inside the image is a zip file extract that, in there you'll find the cache.img
[Nexus 5 General] shizkoff777:
Thanks I finally got it
[Nexus 5 General] abaaaabbbb63:
Okay, now the image is live for sure.

Happy flashing!
[Nexus 5 General] Ev1L4o:
Guys after I flashed it automatically booted. I had to restart it and go to recovery to wipe data/factory. Now how long do I have to wait on the dancing dots before I assume it is bricked ?
[Nexus 5 General] Tylog:
There is nothing Bricked :) First Boot can take 10 minutes
[Nexus 5 General] t0p8uzz:
Edit
[Nexus 5 General] samsaBEAR:
Probably a stupid question, but considering Lollipop is on it's way I thought I'd ask. All I've done with my phone is install ClockworkMod, rooted and installed Xposed. If I uninstall Xposed, uninstall SuperSU, flash the stock recovery and then relock the bootloader will I get the OTA? I basically want to avoid a complete wipe, because Google's app backup stuff never works for me so I always lose all my app data, as well as having to manually download them all again. Is it possible to do so, or will I have to bite the bullet and just completely wipe it?
[Nexus 5 General] moelli1812:
No stock recovery running Lollipop

Hello everyone! :)

I just flashed the Lollipop-image on my Nexus 5. It is really great except that one thing. :confused: :D

My device says, that it only has 16GB of storage, but it is a 32GB-Model. When i boot into fastboot it says 32GB.

I already tried the 2 methods mentioned. But when i press the vol+ button when the android with the red triangle appears, nothing happens.

Because of that I tried the second method. Flashing everything again. I did it exactly as mentioned. But even after that my device "has" only 16GB. :(

I also searched if the key-combination has changed with Lollipop, but nothing.

Any suggestions or anyone who has the same issue?

Thanks for your help in advance and have a nice day. :)
[Nexus 5 General] jd1639:
Get the boot.img out of the factory image then:

fastboot format cache

fastboot flash boot boot.img

Then boot into recovery and do a factory reset
[Nexus 5 General] moelli1812:
Thank you for your quick reply. :)

I did it as described. I extracted the image-hammerhead-lrx21o, put the phone into fastboot, typed in fastboot format cache, fastboot flash boot boot.img, but when i want to boot into recovery i get stuck at the lying android again. Vol+ does'nt do anything. :(

EDIT: by pressing the vol+ vol- and power button like hell, i finally got into the recovery. For me pressing vol- and power for about 15 times worked.
[Nexus 5 General] SmashBrother:
Nevermind. Fixed my issue.

Delete post please
[Nexus 5 General] afraaa:
Mine give this error "nexus 5 android 5 : fail to allocate 1005154516" using flash-all !!

archive doesn't ontain ' boot.sig'

update package missing ... and other in picture !

I don't flash manually because previous time i flaesh and there was no internal storage n my phone after i manually flashed ... should i do manually ?
[Nexus 5 General] Endoran:
Method one gave me errors but method two worked great! Lollipop on my N5! Thank you for the guide!
[Nexus 5 General] afraaa:
same error as me ? method 2 worked well ? u can see internal ?

---------- Post added at 05:45 AM ---------- Previous post was at 05:35 AM ----------

tried method 2 without userimage .. see if it load up
[Nexus 5 General] dijit4l:
When you are in recovery, the Vol Up + Power combo does nothing to bring up the screen where you can select factory reset.

UPDATE: Press all the buttons, including Vol Down.
[Nexus 5 General] afraaa:
Bro u should test it more than once and try it like crazy try volume up and the n power+vol up do it much more than one with combination of your hand :))) it is hard ass recovery !

If u unlocked u can flash twrp 2.8.0.1 and flash it as normal stock recovery and then do factory reset and you are goog to go because without factory reset seems go to bootloop . after factory reset mine loaded up

screen should flash once in boot ,(full brightness ) other than that it is bootloop

---------- Post added at 06:08 AM ---------- Previous post was at 06:06 AM ----------

Ps mine didn't even did factory reset and hung in wiping i flashed twrp and every thing was awesome .. recommended to you is twrp if u are unlocked ! IF U have BOOTLOADER UNLOCKED :) just for attention
[Nexus 5 General] fly23:
Just flashed Lillipop on OSX with this tutorial. It's not very easy if you do this only every 6 months and most of the time in windows.

But I think the tutorial is wrong for mac users.

I did this:

but if I started this:

I only got:

I had to copy my "fastboot" from my adb-fastboot folder to the folder of the factory image. The tutorial doesn't say this.
[Nexus 5 General] afraaa:
press vol up + power togather 5 or 6 time and u will see it . i tested it now
[Nexus 5 General] iamhacked:
deleted
[Nexus 5 General] coolek33:
So you're getting back to stock and didn't flash stock user data?

Keep waiting.
[Nexus 5 General] fly23:
same here, over 20min, still waiting.
[Nexus 5 General] gamer.11:
Quick question, will the same bootloader re-locking method work in 5.0? I don't like leaving my bootloader open.
[Nexus 5 General] afraaa:
Restart your phone if screen didnt flashed at full brightness ( same boot animation with full brighness) you are in bootloop . if not u are good to go . if you are in bootloap should do factiry reset as i told above

---------- Post added at 07:05 AM ---------- Previous post was at 07:02 AM ----------

check out what i said 20 minutes is bootloop . phone change screen brightness in healthy boot during the boot

---------- Post added at 07:06 AM ---------- Previous post was at 07:05 AM ----------

are u talking to me ?

---------- Post added at 07:07 AM ---------- Previous post was at 07:06 AM ----------

90 percent yeah becuase bootloader commands didn't changed since 5 . but u should check it for yoursefl because mine is always open until phone grave ! :D

---------- Post added at 07:10 AM ---------- Previous post was at 07:07 AM ----------

you are in bootloop for sure ;) it will not take more than 10 minutes

---------- Post added at 07:12 AM ---------- Previous post was at 07:10 AM ----------

that's ridiculous.. going to download file again !
[Nexus 5 General] vickysud:
Flashed factory image and now how to flash binaries for nexus 5 ?
[Nexus 5 General] fly23:
Same errors as you:

And now?
[Nexus 5 General] arctia:
For the folks who are stuck in 20+ min bootloop, make sure you Wipe data/Factory Reset after flash is completed.

- Hold Volume Down + Power to enter fastboot.

- Press Volume Up or Down until you select Recovery, press power to enter Recovery. You should see a dead android with red exclamation mark.

- Hold Power and press Volume Up once, that should bring up menu. You should know what to do from here.

After data wipe, the next boot should have your screen changing brightness, then you know you're in the right spot.
[Nexus 5 General] afraaa:
U should flash manually all imaged as method 2 . its okay and no hard work , i should go sleep it 6 am and i didnt sleep .
[Nexus 5 General] iamhacked:
I flashed everything again, this time with cache.img and it worked. Booted up in a minute, then Android optimized some apps.
[Nexus 5 General] Harley101:
".......backup apps and data using this app before you unlock the bootloader. No root required.

play.google.com/store/apps/d...ikdutta.backup ........ "

Hello, referring to instructions above given on page 1. When I went to download the recommended backup app. - Helium, the app description says "Helium will not work with the Android L Preview. adb backup is broken...."

Is there any other safe and tested back up app that I can use in lieu of Helium when upgrading to Lollipop?
[Nexus 5 General] coolek33:
Not talking to you [MENTION=4239836]afraaa[/MENTION]. [MENTION=4965471]iamhacked[/MENTION] deleted his post.
[Nexus 5 General] fly23:
5 am here
[Nexus 5 General] mongoosepanda:
So I did method 2 and flashed everything manually but been stuck in the lollipop bootloop animation with the spinning dots. Should I just flash back to 4.4.4 and wait for the OTA? Since the flash-all.bat method kept giving me missing system.img error
[Nexus 5 General] fly23:
method2 worked for me on a MAC, thanks.

Maybe this steps alone work for you:

I didnt tried that before doing method2 as a whole
[Nexus 5 General] jugen.g18:
I have a question... Will I receive OTAs if I rooted my device- flashed a stock Lollipop image- again unrooted my device- locked da bootloader. Is it possible to receive OTA in such case?
[Nexus 5 General] mongoosepanda:
Hmm I forgot that step completely thanks! I kept getting failed to mount cache but the wipe data/factory reset did the trick! Now I'm enjoying Lollipop :D
[Nexus 5 General] abaaaabbbb63:
You used a toolkit, didn't you?

God dammit...

The Dangers of Tool Kits and One Click Root Methods
[Nexus 5 General] joshthewaster:
yep :(

I didnt see commands to do it by hand on a mac so I did use a toolkit, never done that before wont do it again.

Edit: So yeah if you know how I can fix it I'd be happy to paypal you a few bucks for your time.

Edit 2: got my phone to show up when I type adb devices
[Nexus 5 General] abaaaabbbb63:
No need for paypal. I do this because I love helping people.

Now, press and hold Power + Both volume buttons. When the phone shuts down, release the buttons, then press Power + Volume Down. You should get in fastboot.

Download the factory images. Extract the images somewhere easy to access.

Then, flash system and boot this way (Change paths if you must)

./fastboot flash system system.img

./fastboot flash boot boot.img

then try to boot.

If it does not boot, boot in recovery, and wipe your data, then try again.
[Nexus 5 General] joshthewaster:
cool trying to boot now

---------- Post added at 10:21 PM ---------- Previous post was at 09:26 PM ----------

Thanks for your help, I'm rooted and running fine now!
[Nexus 5 General] abaaaabbbb63:
Good!

Now, never use toolkits again. :p
[Nexus 5 General] joshthewaster:
Hahaha ok!
[Nexus 5 General] teoha:
hi my friends!

i hear suggetions about flashing the factory image having or not any problem or bug.. do you suggest that? if the phone is just fine do you suggest to flash the factory image for sure or to keep going with the factory image? Also i hear about the battery life after flashing the factory image becomes incredible than before. why is that?

thanks in advance.
[Nexus 5 General] abaaaabbbb63:
That tutorial is also in the OP.

" Don't try to fix what ain't broke. "

If you don't need to flash the factory images, then don't. You will wipe your entire phone for no reason.

Battery life doesn't magically get better, but a full wipe will always help with battery life (due to the fact that you get rid of all your apps). So no, don't flash the factory images without reason.
[Nexus 5 General] cobyman7035:
Thx Easy flashing thank you

Via my NeXus 5 on Tapatalk⁴
[Nexus 5 General] appro77:
I've followed these instructions to the letter but I'm obviously doing something wrong. When I try to run "flash-all.bat" I get the following message at the command prompt: "fastboot is not recognised as an internal or external command". Help please.