yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] aaroncal:
ok so ive done all the step with success but super su installer keeps popping up asking me to install superSu to root. I have factory reset the device and it still pops up....????

EDIT: Figured it out....it was my fault. I forgot there is a option right before reboot and I accidentally swiped yes. all is good now. thanks for this magical guide :)
[Nexus 5 General] Sukrut:
How to remove TWRP recovery after locking the bootloader

Hello,

I followed all the steps including the one to lock the bootloader. However, when I try to go into recovery, I still see TWRP recovery. Is there any way to remove TWRP after locking the bootloader?

Thanks in advance.
[Nexus 5 General] jd1639:
Google recovery zip collection xda. In there is a flashable stock recovery you can flash in twrp. That will replace twrp with the stock recovery. Otherwise you'll have to unlock the bootloader

Sent from my Nexus 5
[Nexus 5 General] Tx Redneck:
Install Flashify and you can flash stock recovery from there.

https://play.google.com/store/apps/details?id=com.cgollner.flashify
[Nexus 5 General] abaaaabbbb63:
You need root for that, and that means undoing all he did. Flashing stock through TWRP is better, like JD suggested
[Nexus 5 General] olivierg13:
nice

Nice tutorial for rooting the N5, thank you very much!
[Nexus 5 General] vin4yak:
This tutorial is about getting back to stock and un-rooting the nexus... :silly:
[Nexus 5 General] olivierg13:
True ^^

But it helps me understand the factory image processus!
[Nexus 5 General] takuhii:
You have to be a paid user to flash Stock Recovery too :/
[Nexus 5 General] Tx Redneck:
I didn't see anything in his post that said he'd unrooted, hence my post.

Buy the app, it's worth every penny.
[Nexus 5 General] vin4yak:
You don't need to buy the pro version to download/flash stock images... You can download the stock recovery and put it on your sdcard and flash that using flashify!

Edit: If you don't want to download the whole factory image.. Here's the stock kot49h recovery which I've uploaded for you: http://d-h.st/yd9
[Nexus 5 General] abaaaabbbb63:
He said he followed all the steps. Hence.. He's not rooted, he has his bootloader locked, and instead of using "fastboot boot twrp.img", he used "fastboot flash recovery twrp.img", thus ending up with a custom recovery and a locked bootloader.
[Nexus 5 General] gamer.11:
I never get to do these lines. Even if i use flash.sh or the long method. The device automatically boots up. Till now never had any problems of skipping these lines. I don't know if any will occur.
[Nexus 5 General] vin4yak:
Those steps come handy if you are in a bootloop after flashing the stock images.. If you don't need it.. Well and good!
[Nexus 5 General] takuhii:
That's what I'm sayin'... To download and install STOCK RECOVERY through the app, you need to pay, but YES you can download and install the STOCK Recovery IMG through the APP no problem... If you know where to download the IMG from in the first place ;)
[Nexus 5 General] 7ewis:
Thanks! Didn't know about the tamper flag, will make sure I reset that if I ever need to send my phone in.

Do we need to flash stock to update to 4.4.3?
[Nexus 5 General] samersh72:
read stickies

http://xdaforums.com/google-nexus-5/general/info-nexus-5-ota-help-desk-t2523217
[Nexus 5 General] Chad_Petree:
I set up adb on my mac and it seems to work on my mac, when I type db devices my Nexus 5 shows up but when I try to flash the stock image I get the following error:

ERROR: could not get pipe properties

rebooting into bootloader...

OKAY [ 0.001s]

finished. total time: 0.001s

ERROR: could not get pipe properties

error: failed to load 'image-hammerhead-kot49h.zip': No such file or directory

It tries two more times and then it stops, I unzipped the nexus 5 image on the same folder where fastboot is :crying:
[Nexus 5 General] Metaception:
My phone rebooted on it's own after the BAT file, it that still cool?

Do I still need to run the CF-Auto-Root script again? To get root.
[Nexus 5 General] jd1639:
You're ok. Use this to flash a custom recovery and then flash supersu in the recovery to root. http://xdaforums.com/showthread.php?p=47025283

Sent from my Nexus 5
[Nexus 5 General] Stefan0vic:
In the video below it shows that the guy downloads a file with fully working ADB and all the files in it.

I assume if I already have ADB setup and drivers setup I can just extract the images to my fastboot folder?
[Nexus 5 General] jd1639:
Yes, if fastboot.exe is there also. Fastboot and adb are two different things

Sent from my Nexus 5
[Nexus 5 General] cnewlol:
Hi guys, when I'm running the flash-all.bat it keeps coming up with the error that "A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available."

Anyone know how to fix this?

Thanks in advance
[Nexus 5 General] jd1639:
Reboot your pc and try again. Sounds like a problem on the pc side

Sent from my Nexus 5
[Nexus 5 General] cnewlol:
I gave it a restart and reinstalled the fastboot/adb but to no avail!

Would give method 2 a go but I can't seem to get it done.
[Nexus 5 General] jd1639:
If you, fastboot devices, do you get anything?

Sent from my Nexus 5
[Nexus 5 General] cnewlol:
I get my serial number, it's where the files go etc I get myself confused with... (I'm easily confused sometimes)

---------- Post added at 12:21 AM ---------- Previous post was at 12:16 AM ----------

I've gotten Method 2 sorted. Just had to sit down and read it properly instead of scanning. Thanks dude
[Nexus 5 General] jd1639:
Glad you got it working:)

Sent from my Nexus 5
[Nexus 5 General] wedgess:
Please be careful when posting links on XDA, they must not be pay-per-click links as stated in the forum rules.

Thread cleaned slightly.
[Nexus 5 General] Kfdjrk:
On mac

So i have tried to do this on mac and i did get it to work until im supposed to take the tampered flag away.

But i cant get this to work on my macintosh.

Its when im supposed to boot the TWRP recovery that i dont get it to start so i can start the install.

Any ideas? please....

•So, first, go here: http://xdaforums.com/show....php?t=2239421 (Thanks [MENTION=4544860]osm0sis[/MENTION] for the wonderful script)

Under "Flashable Zips", you will find the Nexus BootUnlocker script. Download it.

•Put the zip on your internal storage.

•Download the latest TWRP recovery image for the Nexus 5 from here: http://techerrata.com/browse/twrp2/hammerhead. Rename it to TWRP.img.

Now boot it. You do this by booting your phone in fastboot, and typing the following command:

Code:

fastboot boot path/to/TWRP.img*Replace path/to/TWRP.img with the path to where you placed the TWRP.img. For example: C:/Users/X/Desktop/TWRP.img

TWRP recovery should boot.

•When TWRP finished booting, select "Install", then navigate to the Nexus Bootunlocker zip, select and install it. After it finished, use the back arrow at the bottom of the screen to go back, and reboot.

Now your bootloader should be locked, and your tamper flag should show "false".
[Nexus 5 General] VisionNN:
Hey guys, ive been searching everywhere and im stuck on the last step with fastboot TWRP. I keep getting "booting...." but nothing happens, phone freezes in fastboot and i have to reset it. Once i reset it, CMD gives me the message "FAILED (status read failed (too many links)).

Any help? Thanks.
[Nexus 5 General] samersh72:
Kill fastboot within task manager then retry.

Uninstall " bluestack" if you have it on your pc
[Nexus 5 General] vijaysivakula:
where can i get the flash-all.bat

Hi,

Could someone please help me with the location of the flash-all.bat file? Not able to find it. Also, when i downloaded the factory image there was only one file in that "hammerhead-kot49h-factory-02006b99" without any extension. what is happening wrong here?
[Nexus 5 General] jd1639:
Re download the file. You probably have a bad download. Also use 7-zip or winrar to extract the files
[Nexus 5 General] setzer715:
I've been trying to restore my phone to stock with no avail. I keep getting stuck at 'writing radio'. I've restored this phone a few times so I don't know why it's going wrong now. It was running CM11 M5. I don't know if that has anything to do with it. I can flash the bootloader and recovery but not cache, system or radio. Phone will not boot now, Internal storage doesn't have a ROM on it to flash and I can't ADB while in recovery to push a ROM. Anyone have any ideas? Thanks in advance.
[Nexus 5 General] jd1639:
Try redownloading the factory image and extracting it. Don't know what else to tell you, you're doing the right things
[Nexus 5 General] setzer715:
Thanks, I was able to get a new ROM flashed using TWRP. It has the ability to mount USB-OTG, thank you Team Win!!! After that I tried again with a new download, it was a no go. Then I unplugged my phone from my USB Hub and plugged directly into my PC, voila, it's flashing fine. Moral of the story, plug directly into your computer if flashing images!

P.S. It just seems strange I could flash some images and not others.
[Nexus 5 General] VisionNN:
Perfect, thanks.
[Nexus 5 General] FreakyPriest:
This guide does not completely return the phone back to stock.

If you flash TWRP and then use it to reset the tamper flag and lock the bootloader, then you have a completely stock phone except for the recovery. The recovery will still be TWRP.

Does anyone know how to do restore the original recovery and having the tamper flag on false?
[Nexus 5 General] kerpert:
Download the factory images, you can find stock recovery inside. Flash the recovery.img in bootloader mode.

FASTBOOT FLASH RECOVERY RECOVERY.IMG

Inviato dal mio Galaxy Nexus utilizzando Tapatalk
[Nexus 5 General] jd1639:
Not true. If you followed the instructions you just boot into twrp. You don't install it so the stock recovery is on your device, not twrp
[Nexus 5 General] FreakyPriest:
Oh, dammit. I misread it. It says "fastboot boot". I will try that immediatly.
[Nexus 5 General] Avidgamer:
whenever I try this I get "cannot load "TWRP.img" No such fule or directory" I have been entering fastboot devices, and I am in the folder where the image is renamed as such, I need to send my phone in for a broken glass panel on the screen. any help?
[Nexus 5 General] FreakyPriest:
The easiest way would be to download the respective TWRP, rename it to TWRP.bin and then copy it into your fastboot folder on your PC. In CMD make sure you are in your fastboot folder, then just type:

fastboot boot TWRP.bin
[Nexus 5 General] vin4yak:
It means you are either not in the respective folders or the file name of the recovery file doesn't match the command you wrote in cmd...

Make sure you have put the recovery.img file and not the zip file in the fastboot folder. Press Shift and simultaneously right click in the fastboot folder and select "Open command window here".. Now run the command as usual.. "fastboot boot recovery.img" or if you want to flash "fastboot flash recovery recovery.img"

You mean to say rename it to twrp.img , right?
[Nexus 5 General] Froid:
Great tutorial. Thanks!
[Nexus 5 General] Avidgamer:
the thing is I am in the folder and I'm entering the name Recovery.img, but I'm still having the same issue.
[Nexus 5 General] jd1639:
Are you using Recovery.img or recovery.img? It has to be exactly as it's named on the folder
[Nexus 5 General] Avidgamer:
yeah, I'm using the exact name as the file

---------- Post added at 09:18 AM ---------- Previous post was at 09:06 AM ----------

I'm opening the cmd window in the folder where the image is located, the image is titled recovery.img, my phone has an unlocked bootloader and no root, I'm entering fastboot devices, then fastboot boot recovery.img

I have no idea whats going wrong to be honest
[Nexus 5 General] samersh72:
rename it to "recovery" and not "recovery.img".
[Nexus 5 General] Avidgamer:
ok, wow, I feel so dumb now, thanks! that worked immediatly
[Nexus 5 General] mathew1234:
This thread saved my nexus 5.... Thanks!!!!!
[Nexus 5 General] abaaaabbbb63:
Yay!!

Glad I helped :D
[Nexus 5 General] NOTORIOUS VR:
Hi All,

I'm in a predicament where my USB port no longer works, so no fastboot no ADB, etc.

Is there a way to get my N5 back to stock without the use of the USB port? Device is rooted, so I'm wondering if it can be done by copying the factory image on to the device and then using say a terminal app to execute the commands directly on the device?

Thanks
[Nexus 5 General] jd1639:
Not that I know of. Are you doing this to RMA the device? Google will probably be pretty cool about it being rooted.
[Nexus 5 General] BirchBarlow:
Flashify would allow you to flash the stock recovery and a zip of the stock ROM as well as wipe data/cache/dalvik. I know it's not exactly the same, but it's a valid work-around if you absolutely can't connect to the PC. If you're RMAing it, I would first download BootUnlocker and relock the bootloader/reset the tamper flag before you lost root.
[Nexus 5 General] NOTORIOUS VR:
Yeah RMA

Yes that's exactly what I ended up doing. Thanks anyway!
[Nexus 5 General] DigitalJosee:
What happen if i:

1º -> Unlock my N5

2º -> Flash TWRP

3º -> Relock my N5

I'll brick my N5? My recovery will still working?
[Nexus 5 General] aavvaallooss:
Why do you want to lock your bootloader again?
[Nexus 5 General] DigitalJosee:
To remove this icon:
[Nexus 5 General] aavvaallooss:
You can relock using BootUnlocker from Play Store
[Nexus 5 General] BirchBarlow:
...and reset the tamper flag.
[Nexus 5 General] vin4yak:
No, it won't brick... Yes, you can access custom recovery after the bootloader is locked.

However, it's highly recommended that you unlock the bootloader before flashing anything as if you're stuck in a bootloop, you might need to unlock the bootloader manually which will wipe everything on the phone!

So, if you're want that unlocked sign gone.. Use bootunlocker from playstore and lock it. However, when you want to flash anything, please unlock the bootloader using the same app (it won't wipe anything).

- Sent from an IceCold Hammerhead!
[Nexus 5 General] extremex93:
This fixed my battery problems which even a factory reset didn't do before, thanks!

:cowboy:
[Nexus 5 General] BombasMirko:
Hi, today I made a mistake just before flashing new ROM. I pressed format data instead of format system. And now I don't have any OS installed. I am wondering if this method will work for me or should I do something else. Thanks

EDITED: Yes it worked. Thanks for the tutorial :)
[Nexus 5 General] abaaaabbbb63:
Just for a future reference: A Factory Reset only wipes your device's data. It doesn't actually reset anything. If you have a system problem, then it won't be solved by a Factory Reset.

Of course it worked :D
[Nexus 5 General] Kimelsson:
Hello! I have a little problem; first I lost my baseband and camera etc. by flashing a custom kernel. Well I found this guide and got the thing done... kinda.

When I try to do this, the phone just boots up and is still running custom rom. From the power menu I can select "reboot to recovery" and it goes again to the screen with the small Android, I still can't access the recovery to do the wipe. So... what should I do?

Please help me as soon as possible, I only have two days to solve the problem, then I'm going back to the army for a week.
[Nexus 5 General] jd1639:
It sounds like the flash back to stock didn't work. Did you flash the flash-all.bat? I'd flash it again.
[Nexus 5 General] Kimelsson:
No I flashed them manually one-by-one. Do I have to move the flash-all from C:\......\Nexus\Stock\hammerhead-kot49h-factory-02006b99\hammerhead-kot49h to my c:\ drive where I have all those files the tutorial told me I need? Cos that's the only place where I have boot.img, recovery.img and userdata.img
[Nexus 5 General] jd1639:
No you don't need to move it. Just double click it wherever it is
[Nexus 5 General] Kimelsson:
Well the flash-all started fine, but it stops because it can't find boot.sig and recovery.sig. I found them neither, there are no such files even in the original factoryimage.zip. Looked also from Google developer site with no result... So, where are the files?
[Nexus 5 General] jd1639:
Don't worry about the sig not found. That's normal just let the flash continue.
[Nexus 5 General] Kimelsson:
I got it working with that method, thank you very much!
[Nexus 5 General] eechyd:
thank you for the great guide:good:
[Nexus 5 General] Continu3:
nexus 5 factory image

hi

after 1 hour nothing happens!!!!! why???

and Unified Android ToolKit in step not working

screenshot

i.imgur.com/DiswCII.jpg
[Nexus 5 General] Primokorn:
Do not use a toolkit and follow these steps: http://xdaforums.com/showthread.php?p=49584868&postcount=695
[Nexus 5 General] karlo12:
Hey, can anyone help me very quick? I returned to stock and locked the bootloader etc for warranty reasons (with Wug's toolkit) after using Omnirom. Now I got a serial number starting with two numbers and one letter like "05f1 ...." instead of the SN written in my box (starts with "401K ...."). I unfortunately deleted the pictures oft my settings which I made before the rooting and flashing. Is it possible that the SN in my phone settings has allways like this now? What can I do to return to my 401K-SN?

Gesendet von meinem Nexus 5 mit Tapatalk
[Nexus 5 General] KoRoZIV:
Mine is the same, but I also used the toolkit. I think it was always like this, maybe someone with an untouched phone will confirm this

Edit

Get from playstore the app nexus5info, it will show you the same number as on the box :D

So I guess we are ok :)
[Nexus 5 General] karlo12:
Thanks a lot for the reply! Can some1 with an untouched N5 confirm this please? Thanks!

Gesendet von meinem Nexus 5 mit Tapatalk
[Nexus 5 General] Asmodic:
Wow i though my nexus was done for, this saved my life! Thanks so much! very helpful and straight forward!

Cheers
[Nexus 5 General] JHthe4:
Just gonna leave this here for everyone having problems booting into fastboot:

When I tried to boot into fastboot, my phone always booted all the way. The trick is *only* pressing the volume down button while the phone is in the off state. This works every time for me.
[Nexus 5 General] MrKaon:
I am having a problem with my Nexus.

Trying to flash stock recovery everything goes smoothly but after reboot I am getting Low Storage Space prompt while I have 19GB free then again if I flash back TWRP everything works normal.

Any help please?
[Nexus 5 General] jd1639:
After flashing did you do a factory reset in the stock recovery? Try that
[Nexus 5 General] MrKaon:
But if I do factory reset I will lose all my data, is there any other way?
[Nexus 5 General] jd1639:
How are you flashing the stock recovery? Thru fastboot? Google recovery zip collection xda. There's a twrp flashable stock recovery zip there
[Nexus 5 General] MrKaon:
Million times thanks my friend I flashed Stock recovery zip (here) using TWRP and everything worked fine no more low storage prompt and TWRP replaced with stock recovery.

:good:
[Nexus 5 General] jd1639:
No problem, glad it worked for you
[Nexus 5 General] lokesh_chhalani:
Is it possible to do this method without display

I do not get any display when I try to boot or try to go to fastboot (with the power and down volume button) or recovery...just the vibration and some weird kind of flickering on the screen.

I want to send it for replacement but I am afraid that the unlocked rooted phone will be rejected in warranty terms.

I am all messed up.

Is there anything i can do?
[Nexus 5 General] sharingspider:
Lol
[Nexus 5 General] abaaaabbbb63:
If you can't access the bootloader, then neither will they. You'll get your replacement.
[Nexus 5 General] spiroid:
Latest official OTA update bricked my phone ?

Hi,

I face a major issue with the last OTA update applied on my nexus 5 this week end.

That update was downloaded and installed automatically on the phone and i didn't ask for it.

I didn't have the time to backup my phone data nor the text messages before it was applied

Worse: i'm stucked in a bootloop with the google bootloader animation and some messages saying the update is being installed !

I followed the instructions to boot in recovery mode and i saw the following error message multiple times :

My phone runs with a stock official rom, unrooted and with locked bootloader.

I know there was no official OTA release this week end, but I didn't care about updates on that device before.

In recovery it now displays 'KOT49H' which i assume is a stock 4.4.2 KOT49H version.

So i guess i had a previous version installed...

Do i have any chance to restore my phone and get my data back ? (ie without a factory reset)

For example, can i flash a stock image without wiping my data ?

Edit: sorry if my message is duplicated on other threads but i thought i might get more answers that way

Thanks for your help.
[Nexus 5 General] jd1639:
You could try flashing the factory image as outlined in the second method. Just don't flash the userdata.img

Edit, just saw your bootloader is locked. That's a big problem. You'll have to unlock and that will wipe your device.
[Nexus 5 General] spiroid:
Can't i do that with fastboot by typing

fastboot oem unlock

as described here :

[GUIDE] Nexus 5 - How to Unlock Bootloader, Install Custom Recovery and Root ?
[Nexus 5 General] jd1639:
That'll unlock the bootloader but it will wipe your entire device
[Nexus 5 General] MarlX:
going back to stock deletes even our sdcard data?

Sent from my Nexus 5
[Nexus 5 General] abaaaabbbb63:
Yup. Unless you only flash /system, and then use a custom recovery to factory reset.
[Nexus 5 General] Primokorn:
Flashing factory images wipes everything.
[Nexus 5 General] MarlX:
Okay, I don't want that. Lol

Sent from my Nexus 5
[Nexus 5 General] Primokorn:
Nobody wants to lose data :) FYI useful tips to backup & restore easily through adb: http://xdaforums.com/showpost.php?p=51694433&postcount=2
[Nexus 5 General] spiroid:
Ok, i found some backups and now i only to try to get a working system back.

I tried to unlock the bootload, which seems to work. But when i reboot my phone or reload the bootloader, it appears as locked again.

Is it a normal behaviour ?
[Nexus 5 General] bliizzz:
[MENTION=4958579]Primokorn[/MENTION] thanks man this is handy :)

---------- Post added at 02:36 PM ---------- Previous post was at 02:04 PM ----------

just a quick question ive been wondering of, what if there's a powercut while flashing the nexus images, will i be able to recover it? or will it be hardbricked?
[Nexus 5 General] GtrCraft:
Depends in what part is flashing at that moment
[Nexus 5 General] spiroid:
I think the failing part is when i try to reboot (fastboot reboot) after the

fastboot oem unlock

command.

I don't see the screen containing an android logo nor a progress bar. Only a failing boot with the google boot animation.

Anything i could do at this point ?
[Nexus 5 General] jd1639:
This is not normal. The only other times I've seen that is when the emmc has appeared to fail. I think you'll need to RMA the device
[Nexus 5 General] spiroid:
-> ok, i'll request an rma on google website then.

Thanks for your help.