yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] Nnyan:
ok followed this guide (did the step by step) and the only issue at the end was that I could not get into the recovery mode. I would get the small android on it's back but when I pressed the power plus up button it would just reboot. When it booted up I am only getting 16GB, I then followed the steps in the second post (not sure if I just reboot it at the end or not) and I still only have 16GB (ran through it three times so far being very careful to follow all the steps). Hope someone can guide me here since I'm not sure where to go next.
[Nexus 5 General] vin4yak:
You have a 32gb model and it's showing 16gb?

flash the cache.img a couple of times or head over to the stock recovery and format cache a couple of times and then a factory reset(if formatting cache doesn't fix it) This should solve the issue.
[Nexus 5 General] Nnyan:
For some reason I could not fastboot flash cache.img it says "could not determine image filename for 'cache.img'. I did format the cache partition 5x and I still just get 11.76GB free after the flash to stock. Getting back to stock recovery is an issue since it just reboots when I get to the red small android (don't get the options to wipe).
[Nexus 5 General] jd1639:
When you get the small red android just hit the vol up
[Nexus 5 General] Nnyan:
That did it. Just flashed the stock recovery and data/factory wipe and I'm back to 32gb! TY!

I was following the following step though: "When a small Android appears, press Power Button + Volume UP"
[Nexus 5 General] bitdomo:
I guess when finished with the flashing, the phone restarted and booted up. Then you turned it off enteret fastboot mode again and tried to reset tamper flag. Then you typed this command fastboot flash recovery twrp.img instead of fastboot boot twrp.img, right? Then you flashed the the zip which locks your bl and resets tamper flag.

Now you have to unlock your bootloader again and you have to flash back the stock recovery. When you get to the point to reset tamper flag then make sure you use the fastboot boot twrp.img and not fastboot flash recovery twrp.img.

If twrp is still there then try this http://xdaforums.com/google-nexus-5/general/tutorial-how-to-flash-factory-images-lg-t2713833

If twrp remains even after lg flashtool, then your phone has some serious emmc issues
[Nexus 5 General] singularity.web:
Not quite. After using method 1 and using flash-all.bat the phone automatically rebooted without giving me chance to continue with the next step (select recovery and wipe all/factory reset). So it automatically booted stock for the first time, I then proceeded to turn it off, was able to boot into stock recovery and then went on to wipe data/factory reset and after that I went on to reset the tamper flag. I am positive that I did not flash twrp as I followed the step by step diligently and used boot twrp.img as instructed.
[Nexus 5 General] bitdomo:
yes it is normal that the phone reboots after the flash-all.bat

Doing a factory reset after running flash-all.bat is meaningless, because flash-all.bat wipes everything from your phone.

Try to do whole method again, if twrp is still there then try lg flashtool. I linked it in my previous post. It resets tamper flag and locks bootloader.

Tapatalk-kal küldve az én Nexus 5-el
[Nexus 5 General] singularity.web:
Sorry for questioning this, but if it's meaningless to wipe data/factory reset at this point, why do the instructions explicitly state to do so? Also, is there no easier way to replace twrp with stock recovery like unlocking the bootloader and flashing stock recovery? I'm nearly sure I flashed twrp a couple of months ago when I switched to CM. I just don't see the point in flashing all again, as it's all automated from the point you run flash-all.bat and I did not receive any error message from the cmd shell.
[Nexus 5 General] bitdomo:
[MENTION=5912112]singularity.web[/MENTION] what happens if you just flash the stock recovery? Will twrp get replaced?

Tapatalk-kal küldve az én Nexus 5-el
[Nexus 5 General] singularity.web:
I don't know as I didn't want to just do something before checking with you guys first and then I end up bricking it our something. You guys know this stuff, I literally have no idea. The only thing I can do is ask, trust your advice and follow instructions. To me, flashing stock recovery through Windows cmd shell seems like a logical step, but I guess it isn't, because none of you guys have suggested it as a first step (or at all, up until now). I suppose one would have to unlock the bootloader again to do that, if at all possible? And doing that would wipe all data if I understand correctly, which isn't too big of a hassle but I'd rather keep it as simple as possible.
[Nexus 5 General] jd1639:
Google recovery zip collection xda. There is a flashable zip of the stock recovery there. Just flash that in twrp and then boot into recovery. It should replace twrp with the stock recovery
[Nexus 5 General] bitdomo:
the link

KTU84M for 4.4.3

KOT49H for 4.4.2

If you are on android 4.4.4 then tell me and I will make the zip for KTU84P
[Nexus 5 General] jd1639:
Link updated to include KTU84P
[Nexus 5 General] singularity.web:
Do I need root or unlocked bootloader before flashing the zip? Or am I good to go unrooted, with locked bootloader and with everything else already restored to stock? On a different note, since when is 4.4.4 released? I thought 4.4.3 has only been out a couple of weeks. By the way, thanks very much for your help [MENTION=4325732]bitdomo[/MENTION], [MENTION=4858937]jd1639[/MENTION] and [MENTION=4346614]abaaaabbbb63[/MENTION], without you I'd have been lost. You Sirs, are da man! I will post an update as soon as my battery is charged and I have flashed the recovery zip. To all of you, cheers! :good:
[Nexus 5 General] bitdomo:
you are fine with locked bl, just flash it twrp then reboot to recovery and see what happens. 4.4.4 is released for 4-5 days

Tapatalk-kal küldve az én Nexus 5-el
[Nexus 5 General] singularity.web:
Guys, I am an idiot. I now realise I mistook the fastboot screen for the twrp recovery... Upon selecting recovery from the fastboot screen there it is, stock recovery with the little passed out/dead Android. I apologise for wasting your time and thank you once again for your patience and help with guiding a noob through the process of dealing with the internal workings of his phone. Muchas gracias, and may the next noob be a little brighter than me. :silly:
[Nexus 5 General] jd1639:
As long as you learn something along the way, that's all we ask. Glad you got it figured out.
[Nexus 5 General] singularity.web:
I certainly have, thank you again.
[Nexus 5 General] les02jen17:
Is there any way to do this without deleting the contents of the internal sdcard?
[Nexus 5 General] jd1639:
What do you want to do? You can flash everything but userdata.img. follow the second method
[Nexus 5 General] les02jen17:
What does userdata.img contain? Am I going to miss something by not flashing it?
[Nexus 5 General] jd1639:
Flashing it will wipe your data
[Nexus 5 General] les02jen17:
Alright, followed method 2 and skipped flashing the userdata.img. After booting into recovery and selecting factory reset, it takes forever to finish formatting /data. How many minutes should it take? Its more than 5 minutes now.

UPDATE:

I went back to fastboot and installed TWRP 2.7.1.1 and just did the factory reset from there. Factory reset failed. What's happening!?!?
[Nexus 5 General] abaaaabbbb63:
Do you want to save your data?

If not, then use "fastboot erase userdata".
[Nexus 5 General] donnabelmartie:
Hi. This is my first Android device. My ex did all the rooting, unlocking and all. So now I want to try going back to stock and do all the works by myself. I only knew how to update my custom rom and kernel. So here's the question, how do I do "execute flash.bat"?, under the easy method. So since my device is rooted and unlocked with custom rom in it, I need to uninstall as well the Google drivers in the control panel? I saw nexus root toolkit in my desktop. So since toolkits are not advisable, just use cf-auto root? Are all the step-by-step procedure in reverting to stock already here? Why did he (my ex) just flashed the stock rom when we sold my nexus 4? Did that erase as well all the previously installed custom roms, root and all? So sorry for this noob question. Please bare with me. Thanks so much :)
[Nexus 5 General] jd1639:
Most likely the fastboot drivers are already set up on your pc and you shouldn't have to do anything with drivers in the control panel. To use the flash-all.bat all you have to do is boot the phone into the bootloader, vol down +power, plug your phone into the pc via usb, then double click the flash-all.bat. this process will erase your device so make sure you back everything up before hand
[Nexus 5 General] DarTro'15:
Mine says Tilipia

I followed the setup and my extracted file says tilipia
[Nexus 5 General] jd1639:
That's not the right factory image, don't use it it could brick your device
[Nexus 5 General] bojazz:
Today accidentally wipe off system file and OS, step by step following this guide recovery back the factory image

Thanks guyz .... pheww :highfive:
[Nexus 5 General] DarTro'15:
TWRP

Im wondering if method 1 will work on the TWRP recovery. I am also wondering if it will restore the recovery to stock
[Nexus 5 General] jwhyte:
Your recovery doesn't matter when using fast boot. The flash all bat script will overwrite your twrp recovery.
[Nexus 5 General] Andromendous:
hey all, just want to be 100% sure on this.

The GSM/LTE version is the google play version of the nexus 5 correct? in other words, all roms here are for the google play version?
[Nexus 5 General] jd1639:
All roms here are for the nexus 5. There is no differences between nexus 5's
[Nexus 5 General] vin4yak:
There is no google play edition or non gpe. There is only one edition "Nexus 5". You can flash any rom out here! Happy flashing :p

- Sent from an IceCold Hammerhead!
[Nexus 5 General] orlandovitoj:
2257

Guys, please, to do this process I must first unlock the bootloader, right? Anyway, when I go to the link provided (http://xdaforums.com/google-nexus-5/general/guide-nexus-5-how-to-unlock-bootloader-t2507905) I have 3 steps: 1. Unlocking Bootloader, 2. Installing a Custom Recovery and 3. Rooting. My question is: can I just do step 1. (Unlock bootloader) from that link or do I have to do all the 3 steps to come back here and flash the L image?

Thanks.
[Nexus 5 General] jd1639:
If all you want to do is flash a factory image in fastboot, you only need to unlock the bootloader. Don't know anything about L, we'll see when it comes out
[Nexus 5 General] orlandovitoj:
Thank you so much. We're all waiting impatiently.
[Nexus 5 General] DarTro'15:
Noob Question

I know that this is a simple question but i am wondering how to execute the flash-all.bat script.

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

I followed the android rootz method and my command prompt says "Device version-bootloader is 'HHZ11k'

Update requires 'HHZ11d' "
[Nexus 5 General] orlandovitoj:
What does it mean? :( Please. Trying to flash L.

sending 'bootloader' (2508 KB)...

OKAY [ 0.299s]

writing 'bootloader'...

OKAY [ 0.487s]

finished. total time: 0.788s

rebooting into bootloader...

OKAY [ 0.110s]

finished. total time: 0.111s

sending 'radio' (45505 KB)...

FAILED (data transfer failure (Too many links))

finished. total time: 1.165s

rebooting into bootloader...

FAILED (command write failed (Unknown error))

finished. total time: 0.803s

archive does not contain 'boot.sig'

archive does not contain 'recovery.sig'

archive does not contain 'system.sig'

archive does not contain 'tos.img'

Creating filesystem with parameters:

Size: 13725835264

Block size: 4096

Blocks per group: 32768

Inodes per group: 8144

Inode size: 256

Journal blocks: 32768

Label:

Blocks: 3351034

Block groups: 103

Reserved block group size: 823

Created filesystem with 11/838832 inodes and 93654/3351034 blocks

Creating filesystem with parameters:

Size: 734003200

Block size: 4096

Blocks per group: 32768

Inodes per group: 7472

Inode size: 256

Journal blocks: 2800

Label:

Blocks: 179200

Block groups: 6

Reserved block group size: 47

Created filesystem with 11/44832 inodes and 5813/179200 blocks

--------------------------------------------

Bootloader Version...: HHZ11k

Baseband Version.....: M8974A-2.0.50.1.16

Serial Number........: 05dd383a0aca8370

--------------------------------------------

checking product...

OKAY [ 0.100s]

checking version-bootloader...

OKAY [ 0.099s]

checking version-baseband...

FAILED

Device version-baseband is 'M8974A-2.0.50.1.16'.

Update requires 'M8974A-2.0.50.2.08'.

finished. total time: 0.658s

Press any key to exit...
[Nexus 5 General] BirchBarlow:
There's only one version of the Nexus 5 as it is a Google phone. There are no carrier variants.
[Nexus 5 General] jd1639:
If you have to ask why are flashing L.
[Nexus 5 General] orlandovitoj:
I got it, guys.
[Nexus 5 General] jd1639:
Oh boy
[Nexus 5 General] les02jen17:
Don't run it as an administrator. Just run it.
[Nexus 5 General] DarTro'15:
What

What? I don't understand what comment you are replying to. I need to know how to execute the script
[Nexus 5 General] jd1639:
Just double click it
[Nexus 5 General] njiki11:
Guys I something is wrong with my memory. Its showing as if its a 16gb instead of the 32 GB I saw the 2 post and tries that. But it would boot into the stock recovery even after flashing it. So I factory resetting and wipe cache from TWRP.
[Nexus 5 General] jd1639:
You need to clear cache and do a factory reset in the stock recovery
[Nexus 5 General] n1njaG:
Hi,

how long is this step supposed to take?

★Select "Wipe data/factory data reset"

My Nexus has been "Erasing..." for 5 minutes now, I know it used to take a minute on my old Milestone.
[Nexus 5 General] jwhyte:
If your using stock recovery it's slow 15 min easy.
[Nexus 5 General] n1njaG:
Just finished. Mini heart attack.

I'm back at KitKat although I was trying to get L :/

EDIT: Did a mistake in the process, running L now!
[Nexus 5 General] abaaaabbbb63:
Patience is a virtue.
[Nexus 5 General] DarTro'15:
Writing cache

I followed the instructions and everything worked out fine until it got to the Writing cache area. It has been a while now and i think something went wrong.
[Nexus 5 General] jcsww:
Worked perfectly fine for me flashing the Android L factory image.
[Nexus 5 General] aliquzwini:
I did this guide and flashed 4.4.4 stock images (method 1) then relock boot loader and flashed the temperflash script in twrp ...I checked the temperflash and here is the resuilts

...can I receive the OTAs now ?
[Nexus 5 General] david23400:
Hi i get those messages

EDIT : oh my bad i was using nexus 4 files instead of nexus 5... Sorry xD
[Nexus 5 General] samersh72:
OTA has nothing to do with locked/unlocked bootloader or flag.
[Nexus 5 General] aliquzwini:
OK but you didn't understand me , I just want to ask about OTA because I installed custom Roms ,kernels and now I back to stock so I can receive ota again ?
[Nexus 5 General] coolek33:
U should be OK.
[Nexus 5 General] samersh72:
yes, you are good to go for any available ota in the future.

just want to mention that you still can receive ota even if your bootloader is still unlocked. (you can skip locking bootloader ;))
[Nexus 5 General] aliquzwini:
Good tip ,thank you :thumbup:

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

Thank you :)
[Nexus 5 General] samersh72:
If your bootloader is locked, and you need to re-unlock it, it will wipe everything, including /sdcard. This is the major drawback of re-locking your bootloader.

only re-lock your bootloader if you need to return your device to the store or sell it....
[Nexus 5 General] kamots:
I have been a testing android L out for a bit, and its awesome and all, but I need WiFi tether. If i re lock boot loader, and flash 4.4 factory image, would that wipe be sufficient, I guess my question is do I need to do a full wipe with twrp (factory reset, data. And cache) prior to locking boot loader and flashing factory image? Or is wiping in twrp an un needed step?

sent from my nexus 5 running L
[Nexus 5 General] jd1639:
Don't lock the bootloader. Just flash the 4.4.4 factory image in fastboot
[Nexus 5 General] DUCU 2000:
Did you use method 1 for flashing or...?
[Nexus 5 General] Osaab:
phone messed up

hi. i was running 4.4.3 and wanted to try this to get 4.4.4

http://xdaforums.com/google-nexus-5/general/info-nexus-5-ota-help-desk-t2523217

it required me a stock phone so i came here and used the second method. the image i selected was 4.4.2 (KOT49H). when all was done and i started my phone first it showed error messages of different apps (camera, hangouts, playstore etc) have stopped working. the sim card isnt being detected. it is showing the 4.4.3 OTA update notification but when i try downloading it it says download failed (wifi is running fine otherwise) please tell me what went wrong? did i screw up the radio or what? thank you
[Nexus 5 General] jd1639:
Flash the system.img again
[Nexus 5 General] :
You can flash the 4.4.4 image using the method in this thread. No need to OTA.

Follow the instructions exactly and the link to the factory images, including 4.4.4 are in the opening post here. ;)
[Nexus 5 General] Osaab:
what im doing is extracting the factory image in the platform tools folder. is it wrong? i have to otherwise the "flash all" command says something like fastboot is missing
[Nexus 5 General] jd1639:
Is the system.img in the platform tools folder?
[Nexus 5 General] Osaab:
wait, phew. flashing a different image brought my phone back. thanks for instant replies
[Nexus 5 General] Rusted-Coyote:
When I execute the flash-all.bat it comes up with the command screen and start to run normal. However I keep getting an error that reads "failed to load 'image-hammerhead-kot49zip': not enough space". Any ideas on this?
[Nexus 5 General] jwhyte:
Have you tried unzipping the image.zip and flashing all individually?

Check out method 2.

If something fails then you will know exactly where and what it is.
[Nexus 5 General] Rusted-Coyote:
I'll give it a shot. In the meantime I guess I'll also point out I'm trying to do something about the error I keep getting while doing an update to 4.4.2/4.4.3. I've done all I think I can do. I think my phone is unrooted but I'm going through these steps to make sure. Also I got the lock state back to locked. I swear once I get this all figured out I'm never rooting again.
[Nexus 5 General] jwhyte:
OK so you were rooted before. If you want to go to say 4.4.4 unlock boot loader and flash factory images. Or unlock boot loader flash custom recovery and then with that recovery flash a stock pre rooted rom.

First is the step by step to root. Second is the stock rooted ROM.

http://xdaforums.com/showthread.php?p=47025283

http://xdaforums.com/showthread.php?p=48190796
[Nexus 5 General] Rusted-Coyote:
I'm getting a road block at the part where you enter in the codes on method 2. When I enter in the first code it says "error: cannot open 'C:/image-hammerhead-krt16m/bootloader.img'. I'm guessing somehow I messed up the first couple steps. I extracted (or at least I hope I did) the image-hammerhead-krt16m.zip to C:/image-hammerhead-ket16m. I say I don't know since this WinRAR program is not very friendly. After that if I read it right I extracted both "bootloader-hammerhead-XXXXXX.img" and "radio-hammerhead-XXXXXX" to "C:/image-hammerhead-krt16m". Did the name changes too as well. I'll attach a picture of what it looks like in the file.
[Nexus 5 General] Andromendous:
how do i extract the "hammerhead-bootimage-XXXX.img" in xubuntu? it wont even open it?

Edit: i just went ahead a flashed everything as the guide says, after i was done, i went into recovery and selected "data/factory restet" and it had a bunch of errors, it then says wiping data, then it says wiping cache, then it says "unable to mount cache partition error" but then it says wiped cache, then it says factory reset complete. i let it boot up and it went fine, then i rebooted back to bootloader mode and did a reset again and no errors, but it still takes like a minute or two to do so, is this normal?
[Nexus 5 General] jwhyte:
If your doing the fastboot flash bootloader command the only thing I'm seeing is your file folder should be named kot49h if that's what your trying to flash. But that shouldn't make a difference. I see that they both have the .img at the end but the rest don't... I DON'T HAVE MY PC RIGHT NOW so can't verify but you might have to do fastboot flash bootloader... ...bootloader.img.img
[Nexus 5 General] marketar:
which buildnumber to choose?

Thanks for the clear thread!

But... since it is so important to have the right build number when flasing a custom rom,

I wonder which stock rom should I flash? I had KOT49H before flashing PureSpeedX but

now it states KVT49L. Or can I just KRT16M??

Can't be too cautious...
[Nexus 5 General] jwhyte:
If you aren't going back to stock to unroot. Just flash your new ROM in recovery.
[Nexus 5 General] marketar:
Don't want to unroot no, just stock ROM. So I can go for 4.4 (KRT16M) then?
[Nexus 5 General] jd1639:
If you want the 4.4 factory image just follow the op using the 4.4 factory image. No need to unroot
[Nexus 5 General] Highlander88:
If I'm on 4.4.3 and I want to update my device with root, unlocked boot loader and twrp without wipe is enough to flash all the .IMG except for user data and recovery?
[Nexus 5 General] jd1639:
Yes, that will work. You'll lose root but just flash supersu in recovery after you flash the images
[Nexus 5 General] cyberi0n:
Recovery corrupt?

I downloaded the 4.4.4 image directly from Google. I did almost everything in method 2 with no problems. When I try to go into Recovery mode to wipe the device, I just get an Android with his hood opened and a red warning sign over it. What's going on? I tried googling a solution but just came across others saying the recovery image is the culprit. How is that possible? I even downloaded it again from Google incase it some how got corrupted during download but still the same problem. Did google eradicate the recovery mode?
[Nexus 5 General] vin4yak:
Once you get on that screen, you need to press the volume up button to access the recovery options.

- Sent from an IceCold Hammerhead!
[Nexus 5 General] newb3e:
how do i go back to 4.4.4 from Android L....

L is brilliant but some bugs are annoying me.Please help me someone!
[Nexus 5 General] sempot:
Reflash 4.4.4. Why do you even on L if you don't know how to revert?
[Nexus 5 General] newb3e:
Reflash how?

And i was curious to see the new version....and i knew someone on xda will help me go back to old version...

So pleaae help!
[Nexus 5 General] coolek33:
By reading the OP of this thread. That's a good place to start.
[Nexus 5 General] vin4yak:
Flash the stock 4.4.4 factory images or wipe everything via a custom recovery and then flash vomer's stock 4.4.4 rooted rom! :)