yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] Stay Frosty:
Stupid question, but does the unlock icon on the Google screen when you start up the phone mean that the bootloader is unlocked?
[Nexus 5 General] Stay Frosty:
I followed these steps up to "Wait for everything to flash". Once that finished, Android booted up. I wasn't brought to a recovery screen as the steps suggest. So am I good, or do I still have to run the rest of the steps somehow?
[Nexus 5 General] jd1639:
If everything booted up your fine. Sometimes you'll get a bootloop and that's when you need to do the factory reset
[Nexus 5 General] Stay Frosty:
Cool, thanks. One more problem. Since the flash my device doesn't seem to be recognized in bootloader mode anymore. I'm connected via USB and running "adb devices" returns nothing. It works fine once I boot the system up though. I verified that I have the latest USB drivers in the SDK manager. There's no yellow exclamations in device manager or anything like that. Any suggestions?
[Nexus 5 General] jd1639:
If you're in bootloader you need to use fastboot devices. Not adb
[Nexus 5 General] v13tx:
Hello I had the problem like described in the 2nd post.

I returned back to Stock Rom but in the end I had 16 GB instead of 32 GB.

When I try to boot into STOCK Recovery by choosing Recovery Mode and then Volume Up + Power only the "Google" Signs appears.

How should I clear my cache then?

Edit: IMEI is away now as well..
[Nexus 5 General] jd1639:
Boot into bootloader. Then use the vol keys to toggle to recovery. When recovery shows use the power button to select it
[Nexus 5 General] hongnagtl1:
Ok Thanks!
[Nexus 5 General] gpvecchi:
I had to restore, bacause of showing 16Gb insthead of 32. May I restore a backup after or I'll be back in previous situations?

Urgent, please... ;)
[Nexus 5 General] abaaaabbbb63:
It depends how your phone was in that state. The backup will restore the /data, /system, and boot image that you had at the time of the backup.
[Nexus 5 General] DarkiKun:
This might be very useful in the future if something goes wrong with my n5 and i need to RMA it, thanks =P bookmarked
[Nexus 5 General] rudolf11:
hi,

i did it with method 1 and everything was ok until it is hanging at this point:

nothing happens at this point! any ideas?

thx
[Nexus 5 General] jd1639:
Try it again. When it hangs, how long do you give it? System could take a couple of minutes
[Nexus 5 General] rudolf11:
about 15 minutes.

i stopped it and booted. seems like everything is ok?!?

i did not try again.

before, i had the problem that cm11 did not boot after installation. it hangs in the circle boot screen. i tried this with several cm11 roms. all the same problem.
[Nexus 5 General] jd1639:
What recovery and version are you using to flash cm11?
[Nexus 5 General] rudolf11:
CWM:

recovery-clockwork-6.0.4.4-hammerhead.img
[Nexus 5 General] jd1639:
And you're wiping data, system, and the caches before flashing?
[Nexus 5 General] rudolf11:
Jop!
[Nexus 5 General] remixkilla:
Noob question but if I just want to unroot and relock bootloader do I still need to flash stock image?
[Nexus 5 General] jd1639:
Why do you want to do that?
[Nexus 5 General] remixkilla:
I was just asking. In case I wanted to trade in my device. Is it possible?
[Nexus 5 General] jd1639:
If you want to trade in your device I'd flash the factory image then lock the bootloader
[Nexus 5 General] :
Hello all i had a nice gap b/w the screen and bezel on the bottom and 3 dead pixels , so i went for RMA (here in india u have send the device in first then they will send u a new one) the courier guy came the very same day to pick my phone up and i was not ready .. So in hurry i just wiped everything except /system .. I was running stock rooted and left the boot loader unlocked and sent it .. would it be a issue? if they return it ,i will just revert to stock and call them again . imo they should honor the warranty as unlocked bootloader did not cause 3 pixels to die or forced the bezel to create a gap b/w it and screen
[Nexus 5 General] abaaaabbbb63:
They should, in theory. Good luck!
[Nexus 5 General] :
i called google play support and they said it wont be an issue :highfive:
[Nexus 5 General] SamEkinci:
Thank you for this guide. I am about to exchange my phone due to rattling buttons so I need to do this pronto.
[Nexus 5 General] smetke:
when i try to flash system i get this.. error: cannot load 'C:\image-hammerhead-krt16m\system.img'

please help

edit:also get this error: cannot determine image filename for 'system.img'

EDIT: i unzip factory image with 7zip and now its working. thanks anyway.
[Nexus 5 General] gil80:
Kernel

Hi,

Is it possible to obtain stock kernel only?

Thanks.
[Nexus 5 General] abaaaabbbb63:
Yes. Only extract the boot.img, and flash it through fastboot.
[Nexus 5 General] gil80:
Thanks for the reply. If I may, I have the following questions:

When you mean the "boot.img" you refer to the bootloader-hammerhead-HZZ1d.img file?

If the above is correct, do I need to rename it to boot.img?

Do I loose the TWRP and Root and the Unlock of the device?

Thank you!
[Nexus 5 General] MersauX:
That is not the boot image, the boot image is inside the zip file, I don't remember the name quite, I'm on my phone, but when you extract the stock file you downloaded from Google you get a bootloader, a radio image, flash-all files and another zip. Extract that other zip and inside you will have boot.img, system.img, recovery. Img, useedata.img.

As far as your second question goes, you shouldn't lose root and custom recovery (but I'm not 100% sure on that).
[Nexus 5 General] abaaaabbbb63:
No, you won't lose anything other than your current kernel.
[Nexus 5 General] Rycon33:
Alright guys, quick Q, I'm not new to Android but this is the first device that I'm going to have that has 2 models, I'm going to receive my N5 tomorrow and it's a D821 model(rest of the world).

Am I correct to understand(double confirming:D) that the factory image for both D820 and D821 models are the same?

So basically both models can flash the same factory image available regardless of model number right?

TIA:)
[Nexus 5 General] jd1639:
You are correct.
[Nexus 5 General] Rycon33:
Thanks for the quick response mate, I'm quite relieved now.?

Coz I was initially confuse about it. And I don't want to mess up my soon to be Nexus 5 as it's imported from Korea and warranties are like almost void or most likely troublesome to RMA at the most.

Tapatalked from my N4
[Nexus 5 General] aavvaallooss:
There is any Nexus 5 not made in Korea??? I mean... LG is a South Korean company.
[Nexus 5 General] nooploop:
Hi,

My nexus is at 4.4.2, and I've tried flash navibar using CWM but it bring my nexus in bootloop.

After that I have read and tried to follow the method-1 in post with 4.4.2 image but fails with log below

Following to method-2 in post but something wrong, because the line in my laptop cmd stop in writting 'system'...
[Nexus 5 General] jd1639:
Re- download the factory image. Use 7-zip to extract it.
[Nexus 5 General] nooploop:
many thank to your quick reply,

i've tried with your post, but the problem still the same with method-1.

About method-2, i did command "fastboot -w update C:\nexus5\image-hammerhead-kot49h.zip" then "fastboot flash system C:/nexus5/system.img" problem in my first post didnt happen again, it passed system image step.

But the command line now stopping in "writing userdata"
[Nexus 5 General] jd1639:
Try flashing just userdata again
[Nexus 5 General] dr.eXntriK:
Question

How is this supposed to enable my phone for warranty exchange in my country I of I have purchased it from another.
[Nexus 5 General] KillaHurtz:
To the above poster it won't matter since all the images are the same.

On another note I flashed this fine using my mac with adb and fastboot installed.
[Nexus 5 General] andregenereux:
thanks

helped me alot thanks for the post
[Nexus 5 General] ozg33k:
An easy way is download Wugs Nexus Root Toolkit. You can flash to stockevenona brick along as you got fastboot.
[Nexus 5 General] abaaaabbbb63:
Blasphemy!! Why would you want to hurt a kitten? :(

It's always better to do it manually. With a toolkit, one can brick their phone very easily.
[Nexus 5 General] brenmi:
Nexus 5 4.4.2

Hi, basically i just want to install the 4.4.2 update, I'm stock rooted with TWRP and some mods, nav bar, lock ring etc. But having trouble installing, should i return to stock? If backed up to Titanium, is that all i need to do?
[Nexus 5 General] jd1639:
You made some mods so the update won't work with your current configuration. You could fastboot flash the 4.4 system and boot images then take the ota. Or you could fastboot flash all the images except userdata.img from the 4.4.2 factory image. You shouldn't lose anything, except some of your mods, doing either.
[Nexus 5 General] Caebron:
If I wanted to flash back to stock, do I use the 4.4 (KRT16M) or 4.4.2 (KOT49H) from here? I'm assuming KOT49H but I have no real reason to think that other than that I *think* that's the right one.
[Nexus 5 General] abaaaabbbb63:
Yup. Use the 4.4.2 one.
[Nexus 5 General] Vercion3:
What will happen if i didn't do the "Wipe data/factory data reset" part?

And after i unroot it, my phone says no service even though it has the micro SIM card in it. WHat seems to be the problem?

Also, some system apps like camera and play store keep on force closing :((
[Nexus 5 General] abaaaabbbb63:
This happens:
[Nexus 5 General] Vercion3:
Crap... so should i unlock the bootloader and unroot it again? D:

Or unlocking bootloader and rooting it will fix it?

What should i do?
[Nexus 5 General] jd1639:
Just do a factory reset in recovery.
[Nexus 5 General] Vercion3:
I can;t do a factory reset in setting

WHen i press Erase everything, nothing happens

Edit: got it into recovery mode. Thanks!

Just curious [MENTION=4346614]abaaaabbbb63[/MENTION] [MENTION=4858937]jd1639[/MENTION] why can't my phone receive signals and not able to open certain system apps if i didnt wipe data and cache?
[Nexus 5 General] j-seven:
thanks
[Nexus 5 General] jd1639:
Are you on the stock firmware or have you flashed a rom? If you're having all these problems you might consider flashing the factory image and starting all over again.
[Nexus 5 General] Vercion3:
I was in stock. But I got to boot into recovery mode and wipe data and cache its fine now. Thanks!
[Nexus 5 General] CarpeNivem:
Awesome. Thanks, guys!

I went to http://www.redmondpie.com/how-to-set-up-android-adb-and-fastboot-on-windows-tutorial/ and did all of that.

Then I went back to the beginning of this thread, and lo-and-behold, now all of that works. Yay!

My phone just finished rebooting correctly, factory fresh! :good:
[Nexus 5 General] Petrovski80:
This one should be a sticky.

[update] Great, thanks mods!
[Nexus 5 General] :
[MENTION=4346614]abaaaabbbb63[/MENTION] Wow, thanks man ;) Just saw your post.. And I even made to the credit section.. ;) Great work man!
[Nexus 5 General] jd1639:
+1. Oh, lol it is
[Nexus 5 General] mdandashly:
How is the process different on Mac. Just change fastboot to ./fastboot?
[Nexus 5 General] silv3rkn1ght:
After flashing the factory image on my nexus 5, I have 12,5Gb available now, but I have the 32Gb version.

How can I make it recognize correctly. Do I need to wipe the partition ?
[Nexus 5 General] abaaaabbbb63:
Boot in recovery (Stock one), clear cache and factory reset.

If that didn't work, boot in fastboot and write the following commands:

fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata

Then proceed by using the "flash-all.bat" in the factory images again.

Edit: Added fix to post #2.
[Nexus 5 General] abaaaabbbb63:
Oops
[Nexus 5 General] om22:
Ran out of thanks today. So here is my thanks post.

Thank you for the great guide!:cyclops:
[Nexus 5 General] dsarch21:
well, I followed the directions 3x....I still can't get the factory wipe screen to show up.

it just reboots but has all kinds of errors (hangouts stopped, camera stopped etc)

I also don't have any sprint signal.

Not sure what else to try. Any suggestions? I used method 2 since method 1 wouldn't connect when i ran the flash bat file.

seems odd my signal is lost?

any help would be appreciated.

thanks
[Nexus 5 General] abaaaabbbb63:
A factory reset would help. What do you mean by not being able to bring up the recovery menu? Did you press Power + Volume UP?
[Nexus 5 General] silv3rkn1ght:
Thank you !

I actually did that after I posted yesterday. All working now.
[Nexus 5 General] dsarch21:
yes, i did volume up plus power...howver, I used another method and it worked.

thanks for the reply.
[Nexus 5 General] Yakandu:
Sorry if this is already written, but if I only had flashed TWRP, what should I flash to go stock? Flashing recovery.img should be enough? Because i can unistall manually SuperSU, flash the original recovery and lock bootloader and everything would be Stock.... Right?

Thanks a lot :D
[Nexus 5 General] netring1:
Hey guys, im feeling kind of stupid here, this isnt my first phone ive rooted and flashed back to stock. After i go into fastboot mode, volume up,volume up to get to recovery, then power. The alien comes up. Then i press volume up and nothing happens. What am i doing wrong?
[Nexus 5 General] abaaaabbbb63:
Yes, it's enough. You can only flash recovery.

fastboot flash recovery recovery.img

It's Power + Volume UP
[Nexus 5 General] mrro82:
NM GZot it
[Nexus 5 General] jd1639:
Get 7-zip to extract it. It's a rar file.
[Nexus 5 General] mrro82:
I tried running the bat file but it ives me this: cannot open 'radio-hammerhead-M8974A-1.0.25.0.17.img. Then it reboots into the bootloader and another error of: failed to load "image-hammerhead-krt16m.zip no such file or directory

Please tell me I didn't kill my phone.

---------- Post added at 01:39 PM ---------- Previous post was at 01:32 PM ----------

Bootloader is showing none for carrier info. Everything else has something for it. I also can't access SD card in my root browser for some reason.
[Nexus 5 General] abaaaabbbb63:
Is the bat file in the same folder as the rest of the files?

The "None" at carrier info is normal. It's an unbranded phone.
[Nexus 5 General] ywt474000158:
help

I use method 2.

And Everything is alright till 'erasing 'cache'...'

At the same time my nexus 5 appear 'erasing...' on the bottom.

Then there is no response.
[Nexus 5 General] abaaaabbbb63:
Hm... Weird. Does the phone boot? If not try using the stock recovery to wipe cache.
[Nexus 5 General] Sensamic:
Im a little nervous.

I'm flashing the factory image right now and my cmd is stuck at "writing cache". It's been there for a while.

What should I do?

On my phone the bootloader screen is there still.

I used method 1.

EDIT: I stoped the process and clicked restart phone in the bootloader. On cmd it says 'Failed (satus read failed - too many links-)'.

What does this mean? What did I do wrong (so that I don't repeat it)?

I'm booted into Android ok.

EDIT 2: Did the same process a second time with a different USB cable and not doing anything else in the computer while flashing and it went ok this time.
[Nexus 5 General] aavvaallooss:
How long? Up to 5 minutes is normal when I did it
[Nexus 5 General] Sensamic:
More like 10 minutes and up. Nothing changed. It was stuck. But I could boot into Android ok after.

Did it a second time and all went well.
[Nexus 5 General] defrt:
i was downloaded factory image from the link on op, but there is no install-all.bat in zip. just one file name hammerhead-kot49h-factory-02006b99

what i suppose to do?

sorry for bad english :rolleyes:
[Nexus 5 General] abaaaabbbb63:
Well.. Either the archive didn't download correctly, so download it again.

Or, install WinRAR, or 7zip, and extract it.
[Nexus 5 General] ywt474000158:
No,it's not boot.

Volume buttons have no response now.

Should i power off first then come into recovery?
[Nexus 5 General] abaaaabbbb63:
Yes. Power off, then boot into bootloader, then select "recovery", and then press Volume Up+Power when the little android appears.
[Nexus 5 General] ywt474000158:
Hm...when i select "recovery" i come into ClockworkMod recovery =...=

There is no Android appears...
[Nexus 5 General] franciscope10:
great discussion my friend. :good:
[Nexus 5 General] coolek33:
That's because U don't have stock recovery. Did U flash it?
[Nexus 5 General] ywt474000158:
All my logs is here

C:\Users\Xat_MassacrE>fastboot flash bootloader d:/bootloader.img

sending 'bootloader' (2508 KB)...

OKAY [ 0.293s]

writing 'bootloader'...

OKAY [ 0.453s]

finished. total time: 0.752s

C:\Users\Xat_MassacrE>fastboot reboot-bootloader

rebooting into bootloader...

OKAY [ 0.002s]

finished. total time: 0.003s

C:\Users\Xat_MassacrE>fastboot flash radio d:/radio.img

sending 'radio' (42049 KB)...

OKAY [ 1.513s]

writing 'radio'...

OKAY [ 2.887s]

finished. total time: 4.407s

C:\Users\Xat_MassacrE>fastboot reboot-bootloader

rebooting into bootloader...

OKAY [ 0.002s]

finished. total time: 0.003s

C:\Users\Xat_MassacrE>fastboot flash system d:/system.img

erasing 'system'...

OKAY [ 0.813s]

sending 'system' (702500 KB)...

OKAY [ 23.180s]

writing 'system'...

OKAY [ 47.389s]

finished. total time: 71.390s

C:\Users\Xat_MassacrE>fastboot flash userdata d:/userdata.img

erasing 'userdata'...

OKAY [ 5.197s]

sending 'userdata' (137318 KB)...

OKAY [ 4.688s]

writing 'userdata'...

OKAY [ 8.891s]

finished. total time: 18.785s

C:\Users\Xat_MassacrE>fastboot flash boot d:/boot.img

sending 'boot' (8628 KB)...

OKAY [ 0.461s]

writing 'boot'...

OKAY [ 0.724s]

finished. total time: 1.192s

C:\Users\Xat_MassacrE>fastboot flash recovery d:/recovery.img

sending 'recovery' (9210 KB)...

OKAY [ 0.485s]

writing 'recovery'...

OKAY [ 0.762s]

finished. total time: 1.253s

C:\Users\Xat_MassacrE>fastboot erase cache

******** Did you mean to fastboot format this partition?

erasing 'cache'...

FAILED (status read failed (Too many links))

finished. total time: 226.671s

---------- Post added at 09:07 PM ---------- Previous post was at 09:00 PM ----------

I follow the instructions step by step .

And i don't know where is wrong.I have tried many times.
[Nexus 5 General] coolek33:
U should use method 1. And after flash instead booting system go to recovery and wipe data/factory reset.
[Nexus 5 General] ywt474000158:
I reflash recovery.img again.

And it worked.

Then,i select "Wipe data/factory data reset"

But the devices appear "Formatting /data..."

Then no response...
[Nexus 5 General] abaaaabbbb63:
And it just hangs? For how long? Can take some minutes.
[Nexus 5 General] ywt474000158:
I do it again as you said.

But after select "wipe data/factory reset" there is no actions except "Formatting /data"

And it lasted for 10 minutes already.

---------- Post added at 10:05 PM ---------- Previous post was at 10:00 PM ----------

Yes,it just hangs for 10 minutes and there is no indication that it will success...
[Nexus 5 General] abaaaabbbb63:
And still doesn't boot if you try?
[Nexus 5 General] ywt474000158:
yes......
[Nexus 5 General] abaaaabbbb63:
Before flashing the images yesterday, did the phone boot normally?
[Nexus 5 General] jd1639:
I would try flashing just the cache.img again
[Nexus 5 General] ywt474000158:
One day,i restore factory settings and reboot.

Then the device stuck on the 4 colored dots screen.

I use ClockworkMod recovery flash cm Rom,it didn't word.

So i use your methods and i think flash factory image maybe useful.

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

In the method 2 ,there is no instructions to flash cache.img.

And after unextracted "image-hammerhead-kot49h.zip",there are five *.img.

I was wondering that i should flash cache.img?
[Nexus 5 General] abaaaabbbb63:
I think that your partition table got messed up when you first flashed the factory images. If flashing cache.img won't go though, then your best option is to RMA.
[Nexus 5 General] ywt474000158:
Thank you for your patience...
[Nexus 5 General] Miqueas111:
Hi, all, with this method, I can get my Nexus 5 UNROOTED and with the BL LOCKED? Right?

That's what I want, I want to unroot and lock the BL.

Thanks.
[Nexus 5 General] loopn:
Hey mate, having trouble with method 1, I click on flash-all.bat and it starts ok until it gets to restarting bootloader then fastboot.exe stops working? Not sure what to do, I tried method 2 and it said fastboot wasn't a command. Sorry I have no idea.
[Nexus 5 General] abaaaabbbb63:
Did you set up fastboot and adb properly?
[Nexus 5 General] mihir85:
Is it possible to install official updates of stock ROM after rooting?
[Nexus 5 General] loopn:
I think so, I did it as it said from the first link, when I type adb devices with the phone on it shows my device.
[Nexus 5 General] abaaaabbbb63:
Boot in fastboot, connect the phone to the PC, and type "fastboot devices" in cmd.
[Nexus 5 General] aavvaallooss:
Yes if the only change you did is rooting. You need stock kernel.

Answered 1000+ times before, read a little bit please
[Nexus 5 General] loopn:
I managed to get method 2 to work, supersu is gone so i guess I'm unrooted?
[Nexus 5 General] abaaaabbbb63:
Yup. Stock and not rooted.
[Nexus 5 General] loopn:
Sweet, thanks for your help and guide brother, hopefully I won't have to annoy you on the bootlocker part!
[Nexus 5 General] hiback:
Mate, I wanted to know If this guide and the factory images are compatible with the LGD821 model(International model) because American model is LGD820.

Sorry If it has been asked earlier, I just want to make sure that i dont flash wrong images.
[Nexus 5 General] abaaaabbbb63:
Yup. They are compatible with any Nexus 5 version.
[Nexus 5 General] hiback:
Thanks a lot . BTW what will happen to the modem/radio that my phone has built in. Actually I don't want to lose the modem/ radio that my phone had.
[Nexus 5 General] abaaaabbbb63:
It will be overwritten. If you don't want it to be flashed, then use Method 2, and don't flash the radio.
[Nexus 5 General] samersh72:
@op, Great job and effort...keep the good work :good:

maybe it is good inciting users in op to use second flashing method, since flash-all script sometimes miss-behaves during flashing some images.

regarding stock recovery, i guess it is enough to hit only volume up to step in it while seeing laying android screen (at least mine does).
[Nexus 5 General] abaaaabbbb63:
Really? At first it didn't. Maybe the latest update lets you only use the volume button. Are you sure?
[Nexus 5 General] samersh72:
yes it does on mine (N5 D820 32GB stock 4.4.2 first batch 310)
[Nexus 5 General] XDA.CIA:
Io capito

Who am I to say otherwise? :angel: