yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] jd1639:
Flash the 4.4.4 factory image in fastboot
[Nexus 5 General] mezo91:
Is there a problem downgrading bootloader too? Can i downgrade and upgrade any time i want or will there be consiquenses?
[Nexus 5 General] jd1639:
You can downgrade and upgrade anything you want. It's a nexus device:)
[Nexus 5 General] Paschfire:
nexus 5 flashed factory images for Lollipop LRX21O via fastboot with the flash-all.bat, it was previously unlocked bootloader as I was running PA, anyways I did not factory reset after all flashed i just booted up, all is working flawlessly but I noticed when using Titanium backup it says my current system partition has 1.05Gb used for the Rom/Os with 45mb free space, with only adding superSU as a system app is this normal? or is this to do with ART now and the system rom and apps are taking more space on the system partition? I would like to know if i need to wipe and start over again. thanks in advance.
[Nexus 5 General] jcsww:
You need to wipe data and factory reset in recovery to correct that.
[Nexus 5 General] Paschfire:
so are you telling me this is not correct? that it should not show 1.05gb used?
[Nexus 5 General] jcsww:
Oh, sorry! You should show about 26GB left if your flash went fine. Some of us, like me, had it come up as only 16GB instead of 32GB. That's what I thought you meant.
[Nexus 5 General] Paschfire:
ill try to clarify, my nexus 5 is a 32gb model, yes it has the correct storage available 26.4xGb of space, when i enter Titanium back up at the bottom it shows the amount of usage of the system partition that previously displayed somewhere around 700mb of use with about 300+mb of free space for 4.4.4 kitkat rom plus a few other system apps I had installed, now on Lollipop 5.0 it show that the system rom is 1.05gb used for 5.0 Lollipop with about 43mb of free space left. i just wanted to know if anyone else can confirm this for me.
[Nexus 5 General] jd1639:
Don't worry about the system usage. The system partition is fixed in size. 5.0 uses more than 4.4.4. my n5 shows 47 free
[Nexus 5 General] CODENEX:
ALERT: BOOTLOOP :crying::crying::crying:

Followed everything the guide said, until I didn't find an option to select "Wipe Data/Factory Reset" after that little android appeared. Everything till before went like charm and was, though the CMD window showed up all went positive. I've tried pressing Vol UP + POWER but didn't went through the recovery mode. Now struck to the wonderful lollipop boot screen.

Please Help!

THE ISSUE IS SOLVED NOW! :D YOU GOT TO PRESS THE VOL UP AND DOWN + POWER FOR A FEW SHOTS AND THEN IT TAKES TO STOCK RECOVERY! WIPED AND DID A FACTORY RESET. I'M IN SWEET AND SACCHARINE LOLLIPOP! :highfive:
[Nexus 5 General] coolek33:
It won't make factory reset while volume up + power press. This combo brings recovery menu. Keep pressing them until it will popup. Then use volume keys no navigate and power to choose wipe data.
[Nexus 5 General] CODENEX:
Thanks mate, Figured it up and issue been solved ;)
[Nexus 5 General] Rolo42:
You don't have to keep mashing it; you press and hold power button and tap VolUP once to get the stock factory recovery menu to display.

cf. http://www.android.gs/how-to-boot-recovery-mode-for-google-nexus-5/
[Nexus 5 General] Dakeent:
Ok guys so after flashing 4.4.4, my camera, gallery, and google playstore services always crash. Also, there is no service at all, even when I eject the sim and put it back in. What did I do wrong?

Thanks
[Nexus 5 General] vbz89:
Just thought I'd let you guys know, I am having some problem with my power button so I was trying to lock my bootloader to show it to the service center.

Flashing the latest TWRP 2.8.2.0 does not work for some reason. TWRP splash screen shows up and the phone starts booting after that. I redownloaded and tried but still got the same result. I repeated the procedure with TWRP 2.8.1.0 and it worked perfectly as mentioned by OP.
[Nexus 5 General] lubrycant:
This also happened to me. Can someone help us?

ALSO, when i flash 5.0, my nexus gets stuck on bootloop even after doing the wipe in recovery(i followed every step in page 1)

Thanks in advance guys :)
[Nexus 5 General] gee2012:
Did you guys alo erase and flash userdata.img? If not do a data factory reset after the flash.
[Nexus 5 General] jd1639:
I would recommend you try flashing again using method 2. Also, after the first fastboot reboot-bootloader add the command, fastboot -w
[Nexus 5 General] vivekict:
Not able to start phone

I had rooted Nexus 5 with android 4.4.4. Wanted to unroot the phone. So followed your 2nd Method. Everything went smooth.

After running all the command on CMD, finally after going to Recovery Mode and pressing Power Button + Volume UP, my phone as stuck on start screen of 4 balls type revolving around themselves. I could not go to your step of 'Select "Wipe data/factory data reset'.

In factory images i downloaded the link of Android 5 although i had initially android 4.4.4 in my nexus 5.

In you video it says start up screen will take around 5 mins, but here its taking for than 4 hours.

I'm really tensed. Kindly help in this matter.

---------- Post added at 05:59 PM ---------- Previous post was at 05:53 PM ----------

I have the same problem what you had. Can you please help me out in this?
[Nexus 5 General] lubrycant:
Nothing new happened. 4.4.4 still has no signal and camera, gallery and playstore still stops. 5.0 still in bootloop.

Will try 4.4.3 and 4.4.2 later after school
[Nexus 5 General] Jstram:
Thanks it is very helpfull. I need my phone back to stock status
[Nexus 5 General] pcphobic:
[MENTION=6204187]vivekict[/MENTION]

[MENTION=4753285]CODENEX[/MENTION]

[MENTION=6203978]lubrycant[/MENTION]

Not sure if my guide will help or not? I wrote this for a bunch of my friends who have flashed stock factory image Lollipop to their Nexus 5 bcs they could not wait for OTA.

https://app.box.com/s/dhxfju0dimql3vvz0rb8
[Nexus 5 General] new-noob:
hi All,

hope some of you can advsie me

I tried to follow steps posted by OP to revert back to factory image but every time I go to CMD in windows I get :

"waiting on device"

no matter if that is adb commands or fastboot commads!

while I am in bootloader, the options looks like:

- fastboot mode

- product name - hammerhead

- secure boot - enabled

- lock state - unlocked

now quick story about today, installed (successfuly) Lollipop but wanted to try lollipop cataclysm so downloaded zip file and installed, however downloaded 12.12.2013 file (android 4.4.2)

so, connected phone to PC copied lollipop again, noticed that only 2GB is free in device, so wiped went to recovery and format system, format data, then tried to install the zip but zip was gone and of course no ROM installed so can not put anything in the Downloads folder....

now, I am concerned that installing fresh android did not enabled usb debugging therefore adb wont work ?

please advise if there is any other option I can install image on my nexus 5 ???

thanks!
[Nexus 5 General] jd1639:
Just install the factory image with fastboot. Adb debugging doesn't have to be on. Adb and fastboot are two different things. Fastboot works when your booted into the bootloader and adb works when you're booted in recovery or the device
[Nexus 5 General] new-noob:
hi jd1639, that is last thing I tried doing before I replayed to the threat.

in both cases ( in recovery mode and in bootloader ) when I issue the commands :

#fastboot flash bootloader C:.....path...to...iso...img

I am getting <waiting for device > message
[Nexus 5 General] gee2012:
Your usb drivers are probably not installed correctly or your device isn`t authorized atm. BTW the right command is: fastboot flash bootloader bootloader-hammerhead-hhz12d.img. All fastboot img`s need to be placed in the platform-tools folder.
[Nexus 5 General] vikram66778:
Hi, I hav a doubt.. If i root my Nexus 5 (4.4.4) with CF Auto-root n be on stock rom without unlocking bootloader, do i hav to unlock my bootloader in case i want to loose root & flash 4.4.4 (to get OTA):confused::confused:
[Nexus 5 General] new-noob:
yes, that was it, after updating drivers now bootloader commands works,

...following steps from Method_2, hoppefully will have my nexus back working again :)

edit: followed all steps, restarted phone and see (lollypop) dancing dots but nothing happens for last 10min
[Nexus 5 General] Pagozzi:
Please, there's anyone who can help me with the problem I've posted in the previous page
[Nexus 5 General] gee2012:
Type in cmd: `flash-all` (without the `off course) with the phone in fastboot and connected to the pc and the images in the platform-tools folder.
[Nexus 5 General] cobyman7035:
Nice… this? works if I'm currently on franco kernel? Andro4.3 still

Via my NeXus™ 6 on Tapatalk⁴
[Nexus 5 General] jd1639:
It'll work no matter what you're on
[Nexus 5 General] abaaaabbbb63:
Except drugs. Never do drugs, kids
[Nexus 5 General] doctor_droid:
Only prescribed ones :p
[Nexus 5 General] vikram66778:
Can plz someone clarify my doubts posted in my previous post...
[Nexus 5 General] chem20:
after flash ota update 5.0.1 via sideload ota update in nexus root toolit 1.9.9 all thing is well and don but when phone rebote dont boot after goolge animation and lolipop dont start
[Nexus 5 General] Primokorn:
Everything about OTA is already explained in the OTA help-desk thread.
[Nexus 5 General] aavvaallooss:
http://xdaforums.com/google-nexus-5/general/info-nexus-5-ota-help-desk-t2523217
[Nexus 5 General] vikram66778:
Oh Thanks.... I hav one more doubt, can i directly flash 5.0.1 update without prior flashing of 5.0... Am on 4.4.4 release 2(KTU84Q), indian version..
[Nexus 5 General] aavvaallooss:
No. You can´t apply OTA 5.0.1 from 4.4.4 directly. But you can flash factory image:

https://developers.google.com/android/nexus/images
[Nexus 5 General] vikram66778:
K, thanks... But I hav a problem with installing drivers. I tried to install them from this thread

http://xdaforums.com/showthread.php?t=2588979

But during installation it is asking me to install Samsung drivers

I hav aiready unistalled all previously installed drivers before installing these drivers:crying:
[Nexus 5 General] aavvaallooss:
Accept Samsung drivers. No problem with them in my case
[Nexus 5 General] apache04:
Is wipe necessary?

i am currently all stock 5.0 not rooted

I want to flash 5.0.1 factory image.

my boot loader is already unlocked. do i still need to do a clean wipe after flashing the factory image? Any help would be greatly appreciated.
[Nexus 5 General] jd1639:
It's a small update. You should get by just flashing the radio, system and boot
[Nexus 5 General] AndroidMark:
Curious about this as well except I'm rooted on 5.0. I'm going to flash the factory image but skip the userdata.img step cause I want to keep my apps /data. Do I also skip 'Wipe data/factory data reset' at the end as well?
[Nexus 5 General] vikram66778:
I hav tried that but after connecting my Nexus 5 it has been detected as samsung android device..
[Nexus 5 General] jd1639:
That's fine. It'll work no problem
[Nexus 5 General] peach007:
i tried flashing factory 5.0.1 and i cannot activate my cell service. i tried doing everything step-by-step. i even went back to 5.0 and i cant get service. anybody have any idea as to why? i get a baseband unavailable in settings if i skip
[Nexus 5 General] trustinhate:
I'm trying to return my phone to stock, reset the tamper flag and all that. I'm doing everything that I'm supposed to do and every time i try to boot into twrp to install the bootunlocker, the twrp screen comes up for a moment and then it just goes back to booting like normal. I tried with the stock 5.0.1 images first 4 times, then I tried on 4.4.4 to see if there was an issue with lollipop or something... I can't get it to work. Am I doing something wrong?

Edit: Nevermind!

I missed your post while searching through the thread originally after trying with 2.8.2.0 like 500 hundred times. Thank you!

Maybe OP should put something about this in the initial post? Just a suggestion to save somebody from future headaches!
[Nexus 5 General] abaaaabbbb63:
Wait.. So the latest TWRP doesn't work?

I'll modify the op then. Anyone got a reason for this?
[Nexus 5 General] trustinhate:
It didn't work for me. Tried the version before the latest and worked like a charm.
[Nexus 5 General] kumarshah:
After I reboot into bootloader ADB no longer recognizes that a device is attached.

Any ideas?
[Nexus 5 General] Pagozzi:
I've tried the "fastboot flashall" command too......still doesn't work...I've flashed even the single component one by one but, again, I've got error message: for example flashing bootloader.img gave me this:

" C:\User\etc...........\adb>fastboot flash bootloader.img

unknown partition 'bootloader.img'

error: cannot determine image filename for 'bootloader.img' "

Have you got some others ideas about what's going on and why the flashall.bat doesn't work(like the single .img flash) in this case giving me this kind of error ?!:eek:
[Nexus 5 General] gee2012:
Did you type in cmd: flash-all? Not fastboot flash-all.

Did you place the following files in the fastboot folder before the flash:

- image-hammerhead-lrx22c.zip

- radio-hammerhead-m8974a-2.0.50.2.22.img

- bootloader-hammerhead-hhz12d.img

- flash-all.sh

- flash-all.batt

- flash-base.sh
[Nexus 5 General] musclehead84:
Anyone having trouble downloading the stock files from Google? I've been trying to download the 5.0 file since last night and it fails everytime once it gets around 100 mb.
[Nexus 5 General] Tech_Savvy:
use idm (internet download manage) google it....i started using it and its the only way to download anything over 20mb
[Nexus 5 General] remixkilla:
I'm having this same problem
[Nexus 5 General] abaaaabbbb63:
ADB doesn't work in bootloader. Fastboot does.
[Nexus 5 General] Pagozzi:
Yes all the files you mentioned are in my archive and even the flash-all command(before I've typed fastboot flashall) doesn't work(it's not a known command for the cmd).......

I know that for returning stock I'll try from another pc, but anyway I'd like to know what's wrong with mine...maybe an installation that goes in conflict or an update of the platform-tools from sdk....I don't know:confused:
[Nexus 5 General] cobyman7035:
can someone please confirm if u have to flash the cache again after u erase it to prevent bootloop? i know you had to do this on the nexus 6 to prevent bootloops....thankx
[Nexus 5 General] cobyman7035:
Followed tutorial… worked great.. Only real problem comes wen u need to press power ? + volume up in stock recovery… u need to combo press it like 5times lol

Looks like imin bootloop? Stuck on 4 floating dots? Do I need to flash cache after reading.

I just power ? and down volume.. Got out of bootloop

Via my NeXus™ 7FHD on XDA Premium app
[Nexus 5 General] le_prof:
I also had to flash cache.img for it to work. Otherwise, It would get into a bootloop. I found that by pure coïncidence and a bit of logic.
[Nexus 5 General] jacknicholson:
As it stands, 2.8.2.0 will fail to boot if MTP is enabled. The current 'workaround' is to flash 2.8.1.0 and disable MTP from TWRP's mount menu, before flashing 2.8.2.0. MTP can be re-enabled once 2.8.2.0 is successfully booted, so long as it's disabled again before leaving recovery.

---------- Post added at 08:04 PM ---------- Previous post was at 07:58 PM ----------

Erasing cache seems to go fine for a lot of people, but it's always given me trouble.

fastboot format cache

has proven far more reliable in my experience, but your mileage may vary.

(That said, flashing cache.img after erasing should serve a similar purpose.)
[Nexus 5 General] valtersbi:
Hello! Just flashed my nexus and now it has lost its imei. I didn't make a efs backup. What should i do?
[Nexus 5 General] jd1639:
What did you flash to it?
[Nexus 5 General] valtersbi:
I flashed it to the factory image 4.4 (KRT16M). The phone had 5.0.1 before i flashed it
[Nexus 5 General] jd1639:
That's a pretty old version. Flash 4.4.4
[Nexus 5 General] valtersbi:
But could it fix the imei problem?
[Nexus 5 General] jd1639:
maybe,idk
[Nexus 5 General] valtersbi:
Is there any way to flash the imei code in?
[Nexus 5 General] coolek33:
If flashing factory image with fastboot won't help you can try flashing with LG flash tool. But that's the last step you should take.

http://xdaforums.com/showthread.php?p=47202262
[Nexus 5 General] abaaaabbbb63:
I had the same IMEI problem a while ago. Fixed it by flashing the latest factory image numerous times, until it worked.

Try completely wiping from recovery, or from fastboot.
[Nexus 5 General] nutnub:
"Cannot generate image" error?

Have you ever seen something like this happen? Trying to get LRX21o to work... pretty safe to try script again? Input would be appreciated

c:\adb>flash-all.bat
sending 'bootloader' (2579 KB)...
OKAY [ 0.292s]
writing 'bootloader'...
OKAY [ 0.484s]
finished. total time: 0.777s
rebooting into bootloader...
OKAY [ 0.124s]
finished. total time: 0.124s
target reported max download size of 1073741824 bytes
sending 'radio' (45521 KB)...
OKAY [ 1.606s]
writing 'radio'...
OKAY [ 3.132s]
finished. total time: 4.739s
rebooting into bootloader...
OKAY [ 0.115s]
finished. total time: 0.115s
target reported max download size of 1073741824 bytes
archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
archive does not contain 'system.sig'
--------------------------------------------
Bootloader Version...: HHZ12d
Baseband Version.....: M8974A-2.0.50.2.21
Serial Number........: 03066730d021183e
--------------------------------------------
checking product...
OKAY [ 0.101s]
checking version-bootloader...
OKAY [ 0.098s]
checking version-baseband...
OKAY [ 0.100s]
sending 'boot' (8852 KB)...
OKAY [ 0.490s]
writing 'boot'...
OKAY [ 0.762s]
sending 'recovery' (9552 KB)...
OKAY [ 0.548s]
writing 'recovery'...
OKAY [ 0.801s]
erasing 'system'...
OKAY [ 1.069s]
sending 'system' (981596 KB)...
OKAY [ 30.985s]
writing 'system'...
OKAY [ 66.403s]
erasing 'userdata'...
OKAY [ 23.462s]
formatting 'userdata' partition...
Creating filesystem with parameters:
Size: 29236371456
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 32768
Label:
Blocks: 7137786
Block groups: 218
Reserved block group size: 1024
Created filesystem with 11/1785856 inodes and 156120/7137786 blocks
malloc: Not enough space
Cannot generate image.
FAILED ()
finished. total time: 1617.154s
Press any key to exit...

My initial thought is a hardware issue perhaps? Is "malloc" referring to my computer? Thanks in advance
[Nexus 5 General] jd1639:
It looks like the system.img is failing. Try flashing just that image. How much ram do you have on your pc? Try to close as many programs as you can and if you have antivirus turn that off
[Nexus 5 General] sn0r:
Big thanks! Used the guides (incl. bootlocker guide) to flash my N5 to 5.0.1 Stock. :good:
[Nexus 5 General] anshumangoyal:
I am on custom ROM and returning back to stock as I am having hard time with GPS. My phone is unable to receive GPS signal and some one recommended me to move to stock ROM and see if this works. Has any one tried or faced such issue and after that it got fixed? Please-Please-Please help me. I am having Nexus 5 32 GB with Euphoria Custom ROM and now going to try Stock ROM.
[Nexus 5 General] limyuyang:
Hi guys, I want to sideload stock Lollipop to my device, but my device is on PA 4.6 KK.

So do I need to flash back to stock 4.4 KK ? Then, I flash stock Lollipop ?

Or, I can just skip the "back to stock" step, straight away sideload stock Lollipop from PA 4.6?

Thanks in advance. :)
[Nexus 5 General] Ryanrioz:
Just Straight forward to flash :) no harm.. but better backup photos, Songs, SMS and contact before u proceed :)...

Edited : download the factory image from google, unpack .tgz and flash it via fastboot else refer 1st page [emoji16] [emoji16] [emoji16]
[Nexus 5 General] RajRockyBalboa:
Hey I tried multiple times from FlashAll Script...IMEI is "0"...can you suggest any more steps if you remember :confused:
[Nexus 5 General] abaaaabbbb63:
So i had the whole phone already wiped. I just tried the manual method and easy method from the OP several times, and I had luck. After each attempt, I would boot in recovery and do a full wipe.
[Nexus 5 General] DC_Erok:
Is there a way to copy the zip onto the internal memory if we can't boot up android? My phone won't boot past the boot animation screen. I had previously never roots or unlocked the bootloader and magically one day it started doing this. Since then, I unlocked the bootloader and tried to reload the factory image thinking the original image was corrupted. I have spent 6 hours trying to get the phone to work and am throwing in the towel, but now my phone shows the tamper flag set to true. I don't care method I use, I just want to set my tamper flag back to false so I can make a warranty claim.
[Nexus 5 General] BirchBarlow:
Can you access the bootloader? If so, you can live boot TWRP and copy the zip using ABD or MTP.
[Nexus 5 General] Nexus-T:
Flashing 5.0.1

I'm kinda new to all this flashing stuff and I need some help. So I have a rooted Nexus 5 with Android 5.0, which I did by flashing the nexus factory image, and an unlocked boot loader. I also have elementalx kernel. Do I have to do anything, such as unroot, flash stock kernel or reset my phone, to flash 5.0.1 or can I just flash it with my phone the way it already is? My phone also has a notification saying I can update to 5.0.1, can I update OTA or do I have to flash? Any help is appreciate!

edit: I use ClockworkMod 6.0.4.5

I rooted my phone using cf auto root.
[Nexus 5 General] DC_Erok:
Yes I can get to the bootloader and I can live boot to twrp; however I do not know how to copy the zip using ABD or MTP. I will start Googling how to do that until someone provides directions. Once I figure it out, I will post back stating I got it to work.

---------- Post added at 11:46 PM ---------- Previous post was at 10:51 PM ----------

I loaded into TWRP but haven't figured out how to install directly from my computer. One thing I find that is odd. If I click "Mount" at the bottom it says Storage: Internal Storage (0MB)

should that be 0?

Below that is a button for Enable MTP but it doesn't seem to do anything if I press it.
[Nexus 5 General] BirchBarlow:
You have to flash the 5.0.1 factory image. You can flash the system and radio partition without formatting the data by flashing manually. As of Lollipop, OTA's only work on 100% stock devices (including recovery).

Try using sideload. Press sideload in TWRP then type adb sideload bootunlock.zip (or whatever it's called) from your desktop.
[Nexus 5 General] Nexus-T:
when I flashed to 5.0, I used the flash all command, can I do that again or do I have to flash the system and radio partition separately? And does that mean I can flash my phone the way it is, rooted, custom kernel, and ClockworkMod recovery, etc.?
[Nexus 5 General] BirchBarlow:
You can, but just be aware it will erase and format your data. I suggested flashing system and radio seperately to avoid erasing your data, but if you don't mind, by all means use flash-all. BTW I would ditch CWM and use TWRP instead. CWM is practically ancient and no longer supported.
[Nexus 5 General] Nexus-T:
how do I flash system and radio separately?
[Nexus 5 General] jd1639:
Fastboot flash system system.img

Fastboot flash radio radio.img (use the full file name of the radio image)
[Nexus 5 General] Ryanrioz:
yes, of course ...

just flash the stock IMG,

fresh boot

and flash root and flash custom recovery

done [emoji16]

---------- Post added at 08:13 AM ---------- Previous post was at 08:11 AM ----------

system.IMG sometimes may ruin up your boot.. (just 2 cents)

just try to command this

fastboot update image-hammerhead-lrx22c.zip*

edited: typo
[Nexus 5 General] jd1639:
That'll flash the entire image, not just the system and radio