yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] mdpatterson:
Absolutely worth the effort. Thanks again.
[Nexus 5 General] mdpatterson:
So is this damage permanent or would I be able to root the device later after a certain amount of time
[Nexus 5 General] abaaaabbbb63:
No, it's not permanent. If you flashed system.img, you kind of fixed everything that could have been broken. You can root it again when you desire.
[Nexus 5 General] ch0c0lateb0yctg:
thnx you...u r a life saver
[Nexus 5 General] reza.connection@gmail.com:
ASK

LoL
[Nexus 5 General] abaaaabbbb63:
Um.. Why the lol?
[Nexus 5 General] mdpatterson:
excellent, I guess that makes perfect sense seeing as I flashed the factory image. Good deal. I was thinking about maybe looking at some of the ROMs up on this site. So Ill have to do my due diligence and research but It's good to know that I know how to revert back to stock if need be. Thanks again.
[Nexus 5 General] TheAquanox:
Uh Oh!!

I need to send my phone back to warranty tomorrow. I brought it back to stock using Unified Android Toolkit, but I don't know if it will reset the Tamper Flag.

Help needed please!
[Nexus 5 General] jd1639:
If you're bootloader is locked, unlock it. Then push the tamper zip onto your device. Then boot into twrp and flash it. You can fastboot boot twrp.img to get into twrp to flash it. Oh, and then lock the bootloader.
[Nexus 5 General] TheAquanox:
Oh thanks for that. I'll let you know.

I guess it's also a good idea to delete tamper.zip.
[Nexus 5 General] stuart0001:
Bootunlocker app can now reset the tamper flag.

https://play.google.com/store/apps/details?id=net.segv11.bootunlocker
[Nexus 5 General] jd1639:
If you're rooted. He's returned to stock so he's not rooted now.
[Nexus 5 General] TheAquanox:
Damn.. I've got a problem here. I could Unlock it using The Android Toolkit but the reason why I'm doing RMA is because the screen stopped working, so I can't interact with it, hence, I can´t see what the Custom Bootloader shows and select the .zip to flash it.

Any suggestions please? I'm running out of time :S
[Nexus 5 General] abaaaabbbb63:
Then you'll have to leave it as it is. To flash something, you have to see what you're doing. Let's hope they don't mind the tamper flag.
[Nexus 5 General] TheAquanox:
I rooted it again and I managed to have the screen working for a few minutes. Ran BootUnlocker, Untampered it. Also sent a stock Recovery and Stock ROM using Android Toolkit and unrooted it and Locked it back.

(bootloader) Device tampered: false

(bootloader) Device unlocked: false

(bootloader) off-mode-charge: true

OKAY [ 0.004s]

finished. total time: 0.004s

If I manage to have the screen responding again, I think I'll do a factory reset and It'd be ready for RMA, unless I'm missing something.

Thank you guys for your help. Very appreciated.
[Nexus 5 General] abaaaabbbb63:
Oh ok then. You're ready to go.

How did the screen suddenly start working?
[Nexus 5 General] TheAquanox:
It works every now and then. It's a very odd issue. Screen would show a corrupted image (noise all over the screen) while booting and a black screen with Android loaded. The panel backlight seemed to work a bit because it would show a very low background light when pressing the power button. Phone would receive calls and respond to ADB commands so I know it's alive.

However, I found out that it I left the phone powered off for about an hour (the lower the temps, the better it seems) it would work again. I just had to make sure the screen doesn't go sleep or reset the phone because I wouldn't be able to have it back again, unless I repeat the procedure and crossed fingers.

So... I rooted it back again... Waited until the screen responded (2 hours) so I could enable USB Debugging and have the rooting process finished, Installed BootUnlocker. I had to restart so another 2 hours for the screen to work. Then Used BootUnlocker to Untampter it, and then I did all the other back-to-stock stuff using Android Toolkit which doesn't need any UI interaction.

Yes... Veeeeeeeeeeeeery frustrating.
[Nexus 5 General] RomSeeker:
Will it fix any phone condition? Because I believe my battery life has gotten worse... And I just want to return the phone to the way it was... Exactly the way it was...?
[Nexus 5 General] abaaaabbbb63:
Yes, it will fix any software issues.
[Nexus 5 General] ohad123454:
it doesnt work

hey i tried to stock my phone in 3 different ways but it doesnt work , it sats all the time "archive does not contain boot.img and recovery.img
[Nexus 5 General] abaaaabbbb63:
Try method 2.
[Nexus 5 General] ohad123454:
I tried it either and it says the same
[Nexus 5 General] abaaaabbbb63:
In the second archive (the one inside the main archive) , is there a boot.img and a recovery.img?
[Nexus 5 General] ohad123454:
i dont understand
[Nexus 5 General] jd1639:
You have to extract the factory image. Use 7-zip. Inside the factory image is another zip file. Extract that one too. In there you'll find the files.
[Nexus 5 General] ohad123454:
THATS OKEY I TRIED SOMETHING ELSE AND IT WORKED THNKS ANYWAY :o
[Nexus 5 General] ingineru:
Unroot

Is there a way to unroot without flashing stock images?
[Nexus 5 General] jd1639:
You should be able to use the unroot option within super su. Look in its settings
[Nexus 5 General] ingineru:
Thanks, there is a Full Unroot option. Will test it when the next Ota arrives :)
[Nexus 5 General] jd1639:
Fyi, if all you are is rooted and haven't changed any system files the ota will work. You will lose root with the ota however. So you don't need to unroot
[Nexus 5 General] ingineru:
Yes i know, i also have a custom kernel, i will flash the stock one before OTA.
[Nexus 5 General] yldlj:
When i extract the image i dont get the flash all files i only get one file
[Nexus 5 General] jd1639:
Did you use 7-zip to extract? You should get a bunch of files and one zip file which you can extract too
[Nexus 5 General] yldlj:
I used winrar only one file in there
[Nexus 5 General] jd1639:
There should be a bootloader.img, radio.img, some *.sh files, a .bat file, and a zip file
[Nexus 5 General] yldlj:
Got it but now when i run flash all it says archive does not contain boot.sig

Error out of memory any ideas?

---------- Post added at 04:26 AM ---------- Previous post was at 04:15 AM ----------

Will flashing factory image fix a cant mount sdcard in recovery issue?
[Nexus 5 General] brenmi:
Hi, not quite sure what you mean here? Sorry, pretty new to XDA

---------- Post added at 08:05 PM ---------- Previous post was at 08:03 PM ----------

Hi, not quite sure what you mean here? Sorry, pretty new to XDA
[Nexus 5 General] abaaaabbbb63:
Again, use method 2.
[Nexus 5 General] gee2012:
He probably means that you best reflash the latest factory image and reroot afterwards, look here for how to http://xdaforums.com/showthread.php?t=2513701.
[Nexus 5 General] brenmi:
Hi,

I have followed the tutorial and when i go in to recovery mode the android has a red caution sign above it, i can not go into wipe/reset?

Any ideas please?
[Nexus 5 General] gee2012:
When you see the caution sign press power and volume up and you`ll get into recovery.
[Nexus 5 General] brenmi:
I have attempted this more than once and nothing is happening, sorry i didnt elaborate more.

Any more ideas?
[Nexus 5 General] gee2012:
Sorry but pressing power and tapping volume up right after that should get you into 3rd recovery.
[Nexus 5 General] jd1639:
Try fastboot flash recovery recovery.img again
[Nexus 5 General] gee2012:
I`am afraid you can`t save your data anymore imo, only flashing the factory image may get your phone up and running again. Its also possible you messed up your EFS folder, do you still have a active wifi connection?
[Nexus 5 General] abihakim:
thanks

bookmarked
[Nexus 5 General] afraaa:
for those who have problem with booting into stock recovery according to google docs ( that as far as i've seen no one mentioned it this way :

While holding down Power, press Volume Up. .. it means first hold down power and then just press volume up and without any restart or something wipe menu will appear .

---------- Post added at 02:22 PM ---------- Previous post was at 02:15 PM ----------

mine was showing 16 gig but after wipe cache/factory reset solced . thanks for this thread thanks for xda developer .. now in 2014 possible to sit home and solve hundreds of problems just the " GOOGLE it "way .

isnt this amazing guys ? back the time that Q A wasnt like this . it will be so hard so solved and i guess impossible ..great and im happy i can speak and understand english and im using XDA .
[Nexus 5 General] jgw1985:
Thank you very much for this guide. Worked like a charm and was very simple. Now I can rma without issues!
[Nexus 5 General] xboxbr:
thanks bro
[Nexus 5 General] jd1639:
Any one having issues getting the stock recovery back on their phone? I've tried the factory image, flashing recovery,etc. I have no problem flashing twrp to the phone but can't get the stock recovery to work. I get the dead android with the exclamation sign coming out of his belly when booting into the stock recovery.
[Nexus 5 General] samersh72:
did you press volume up or power + volume up after the dead android??
[Nexus 5 General] jd1639:
No, I'll try that.

Edit thanks now I feel like a dope :D
[Nexus 5 General] VacTacks11:
I'm also having the dead android issue. Flashed back to stock, including recovery. I had clockworkmod installed.

Tried to boot into recovery from bootloader - red exclamation. Tried to boot into recovery holding power + volume up - Google logo appears, then system restarts. Keeping holding down power + volume up - Google logo appears, system logo restarts.

System boots just fine.

I'm not overly concerned about it, since I can flash clockworkmod, but it's still strange that I can't boot into recovery when I've just flashed recovery from the Google firmware zip file.
[Nexus 5 General] jd1639:
When you get the dead android just use the vol up.
[Nexus 5 General] coolek33:
U should boot to "dead android" keeping vol up + power. Then when U see it again vol up + power but not holding. And recovery should pop up.
[Nexus 5 General] VacTacks11:
Yep that was it.

Thank you!
[Nexus 5 General] BirchBarlow:
It's counterintuitive, but that dead android IS the stock recovery. From there you press volume up or volume down to scroll through the options.
[Nexus 5 General] MikeyFid:
Thanks sir.

Instructions worked 100% perfect. Zero issues.

Windows 8.1 64bit

:good:
[Nexus 5 General] whizper:
Unlock, Root, Flash Recovery, Flash ROM, Rock

Thanks for the info
[Nexus 5 General] musmus46:
Always thought it was: Unlock, custom recovery, root, custom rom
[Nexus 5 General] whizper:
My bad...
[Nexus 5 General] coolek33:
That's what I always do and it works like it should.
[Nexus 5 General] musmus46:
Nice to know there's more then 1 way. (As always)
[Nexus 5 General] macdaa:
helpful!
[Nexus 5 General] mrro82:
Yes it is. My storage isn't showing up at all when I plug it into a computer either.
[Nexus 5 General] abaaaabbbb63:
Use method #2.
[Nexus 5 General] mrro82:
When I run a command prompt and type adb devices no numbers show in the list of devices attached.
[Nexus 5 General] abaaaabbbb63:
Well yeah, cause you connect the phone in fastboot. Try "fastboot devices"
[Nexus 5 General] mrro82:
I'm really new to adb and command lines so I'm having a hard to knowing exactly where to put stuff.

---------- Post added at 02:27 PM ---------- Previous post was at 02:24 PM ----------

I typed in the prompt and it said error cannot open bootloader.img

---------- Post added at 02:31 PM ---------- Previous post was at 02:27 PM ----------

I moved everything to my C: drive and it still says it cant open it
[Nexus 5 General] jd1639:
If your adb fastboot path is setup correctly the easiest thing to do is in the command prompt change the directory to where your img file is and then run the command lines.
[Nexus 5 General] mrro82:
Restarted my computer. Just tried again and it says error cant open

---------- Post added at 03:01 PM ---------- Previous post was at 02:48 PM ----------

For some reason it just will not open these files in command prompt.
[Nexus 5 General] jlandry287:
I want the nexus 5 so bad
[Nexus 5 General] abaaaabbbb63:
Are you able to try it on a different PC?
[Nexus 5 General] mrro82:
I flashed fauxs kernel and thats what did this to my phone. Baseband shows unknown and my SD card is gone. Like a partition was wiped out.I made a backup prior to flashing. If I went into recovery and factory reset the phone and restored the backup would that possiby work?

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

Unfortunately no.
[Nexus 5 General] abaaaabbbb63:
Yeah, try restoring the backup.

Still, the cmd error is weird...
[Nexus 5 General] mrro82:
Really weird. In twrp I can see the things on my SD card. Just not when the phone is booted up.

---------- Post added at 03:32 PM ---------- Previous post was at 03:16 PM ----------

Halle-frickin-leujah for backups. I factory reset it and restored. Baseband and SD card are back. IDK what the eff I did but i am not flashing that again. On a different note and I noticed this when I flashed the kernel, I was unable to mount cache in TWRP. How do I correct that one? Thank you very much for your help. It's much appreciated.
[Nexus 5 General] mrro82:
I'm wondering if I didn't mess up a partition and that's why I lost baseband and SD card when I flashed that kernel. Is that a possibility?

Sent from the jaws of my Hammerhead!
[Nexus 5 General] jd1639:
It's a possibility. Anyone else having issues flashing the kernel? It was faux, right?
[Nexus 5 General] mrro82:
Yes it was faux. I saw someone else lost baseband and it was suggested they clear cache and dalvik. He never responded back if it worked. Not sure if you see my post above to abaa about cache in TWRP. Any thoughts?

Sent from the jaws of my Hammerhead!
[Nexus 5 General] sgill74:
seriously, you are amazing.....i tried all the toolkits on xda to restore stock - my radio wasnt working after dirty flashes. this simple method worked a treat.

the flash all bat would run from the extracted location so i copied all the files into the sdk/platform-tools folder and ir worked a treat

thanks again!

:)
[Nexus 5 General] HardAttack:
Flash count reset

Is it required or recommended to run Triangle Away on a Nexus device before flashing back to stock? I wasn't sure if the Nexus devices counted/tracked how many times the device has been flashed.

Thanks
[Nexus 5 General] jd1639:
No, you don't have to worry about flash counters, etc on a nexus device. If you ever have to warranty it just flash the stock image and re-lock it.
[Nexus 5 General] lopri:
I have a slightly off-topic question. I want to have the stock recovery (4.4) after rooting the Nexus 5 using a custom recovery. All I have to do is flash the stock recovery extracted from image-hammerhead-krt16m.zip file, like below?

1. Boot into bootloader using power + volume down.

2. In windows command prompt, type following

fastboot flash recovery recovery.img

Of course executed in the same folder where stock recovery that I extracted from the factory image zip file.

Thank you in advance.
[Nexus 5 General] abaaaabbbb63:
Yes, that's all you have to do.
[Nexus 5 General] gee2012:
Or unlock,custom recovery, pre-rooted custom rom ;) Or unlock, custom recovery, flash CWM/TWRP recovery of a backuped rooted rom.
[Nexus 5 General] resynx:
Great guide! Couldn't find anything on this so I just had a small question :D After flashing the .zip in TWRP to reset the tamper flag, will the recovery return to stock recovery? Or will an extra step need to be taken to get back to stock recovery before packing up the phone and shipping it back to Google.
[Nexus 5 General] gee2012:
No , don`t flash TWRP, just boot it and flash the unlocker/tampered zip in TWRP and reboot. In cmd just type: fastboot boot twrp.img (rename to twrp). Just place TWRP in the fastboot folder.
[Nexus 5 General] resynx:
Oh okay I see now! So it just boots TWRP for that one time use and it goes back to stock recovery afterwards :D Thanks for the quick response! :)
[Nexus 5 General] The-Droidster:
I'm looking to flash just the stock boot.img. Any pointers on how that's done? I'm thinking of

fastboot flash boot boot.img
[Nexus 5 General] abaaaabbbb63:
Yes, that's how it's done. Just take the boot.img from the factory image archive, and flash it using the command you mentioned.
[Nexus 5 General] rlstapp:
I have the same exact problem.

Well it took reading 494 post and all the rest to find someone with the same exact problem and what appears to be no solution.

I was running stock 4.4.2 (came on my N5) Then an unlocked bootloader, root and, CWMR. everything worked fine for over a month. Then my battery died and after charging some I have not been able to get past the initial Google screen with the unlocked lock at the bottom. It just hangs in a loop. I can get to Fastboot mode with no problem but never recovery. I have followed this guide method 2 a few time and everything works in the command prompt and Fastboot screen. i am familiar with Rooting, Flashing, fastboot and recoveries. So no problems there. After completing the last steps of flashing revovery.img and even cache.img I can not boot or get to recover mode. Just the same looped Google screen. I have tried reflashing or booting straight into several recovery images (stock, CWMR and TWRP) with no luck.

I am at a loss. Any suggestions? :(

Did llewelld ever find a solution? Were you able the return your N5 under warranty. I got mine from Google Play.

Great OP and thread by the way.
[Nexus 5 General] abaaaabbbb63:
So you can't get in recovery?

Try doing the stuff in the second post. After you finish the commands, throw these in:

fastboot erase cache

fastboot erase userdata

If those don't work, then it's a hardware problem.
[Nexus 5 General] rlstapp:
Still No luck time to RMA

Yes Thanks, I have tried that and have even done

fastboot -w

vs.

fastboot erase cache

fastboot erase userdata

At the end. All with the same result. bootloop to the Black Google screen.

I can re-lock the bootloaer with "fasboot oem lock" but will not be able to reset the tamper flag since I can't "fastboot boot twrp.img" to boot into recovery to rest via the flashable zip. Hopefully I will be able to RMA. Good Luck to me.

Still a great guide and thread though. I am sure it works for 99% of the folks that can follow direction and get through all the steps.
[Nexus 5 General] pharmboy24:
Is anyone having trouble extracting the factory image (.tgz)? Tried Winzip, 7Zip with no success. Keeps saying it is not a valid archive. Winrar website seems to be down. Any alternatives?
[Nexus 5 General] BirchBarlow:
Did you try redownloading the file? It could be corrupted. It should work in any of the zip programs.
[Nexus 5 General] Bleizeris:
v

good one
[Nexus 5 General] fabiof7:
cannot load system.img

Hi guys here's my problem.

My phone is in bootloop after i falshed a mod.(I have stock rom + root + twrp recovery)

Since I haven't any nandroid backup on the phone I would to flash the stock rom in order to come back to factory image.

I tried to execute the falsh.bat and the command by the prompt windows but in both cases after flashing bootloader.img and radio.img the process reports "error cannot load system.img". I tried many times but it seems it's not gonna work. I've also tried just to flash the boot.img hoping it would solve the bootloop but...i'm still here!

I've also tried the nexus toolkit but it reports the same issue.

Anyone can help me please?

:crying:
[Nexus 5 General] abaaaabbbb63:
Try using method #2.
[Nexus 5 General] The-Droidster:
Try restarting your PC. Also, make sure to execute the flash.bat with normal privileges and not admin privileges.
[Nexus 5 General] fabiof7:
I've tried method #2 also but reports the same error: cannot load system.img

Flashing the bootloader and radio works fine. I've tried to flash the boot.img a part, it works too.

But if I've to follow the order -->flash bootloader->reboot->flash radio->reboot->flash system here comes up the errore so I can't flash the system.img and keep on flashing the boot.img and userdata.img

Yesterday I don't remember if I've reboot the laptop and if I runned the flash.bat with normal privileges, probably not (but I dont' remeber It asked to me that). I'll give it a try later!

Thank you guys anyway, If you figure out some other solution I'm here :)
[Nexus 5 General] jd1639:
Try current usb ports and make sure the cable is the one that came with the phone. Usb ports should 2.0 and not 3.0
[Nexus 5 General] fabiof7:
I've tried all the usb ports on the laptop (2.0) with the cable provided with the phone.

I was guessing if wiping the system by the TWRP before trying to flash it again could solve the issue. I did a factory reset (cache, data e dalvik) only, because I was worried that wipe out the system could mess up the situation more than the starting point.
[Nexus 5 General] gee2012:
Try to download the factory image again, maybe the file is damaged/corrupted and unpack it with 7-zip.
[Nexus 5 General] fabiof7:
EDIT: SOLVED! Guys I've solved the problem flashing the stock rom pre-rooted .zip. Btw, I've tried all the solution you suggested before flashing the zip, and even after the full wipe (system + cache+data+dalvik) I wasn't able to flash the system.img by cmd line as suggested in method 2. I still don't know why.

Thank you all anyway :)

Cheers!
[Nexus 5 General] LeeSta108:
for the extracted folder, it shows display image instead of IMG.

Sorry if I sound like a noob, because I am.
[Nexus 5 General] jd1639:
What are youtrying to do?
[Nexus 5 General] LeeSta108:
when I tired to fast-all.bat, it said that I was missing boot and recovery
[Nexus 5 General] jd1639:
I think it says your missing boot and recovery signatures. I've experienced that too. Does everything boot ok?
[Nexus 5 General] LeeSta108:
I am trying to unroot my device using method 1. When I run the fast-all.bat I get errors saying does not contain boot.sig,recovery.sig, and system.sig
[Nexus 5 General] jd1639:
Does it boot ok?
[Nexus 5 General] Pippo_Inzaghi:
Start in recovery (vol up + vol down + power) and delete data and dalvik
[Nexus 5 General] FunDionysus:
Are the factory images ever updated?
[Nexus 5 General] gee2012:
Only for bugfixes and general (major) updates, not for the fun of it ;)
[Nexus 5 General] maticekk:
Thanks for this toturial :D Very nice
[Nexus 5 General] LeeSta108:
All of my files are display images instead of IMG files for the extracted factory images.
[Nexus 5 General] jd1639:
What are using to extract the files? Use 7-zip
[Nexus 5 General] coluichepensa:
good afternoon,

i need your help. I have unlocked the fastboot and installed the CWM and rooted my phone.

After that I had a problem with play store and wiped the partition made the factory reset and made the format of system.

Since then I go loop.

I tried to use this guide but when I lunch the file bat i get the fastboot is not recognize as internal and external command.

Please help me
[Nexus 5 General] jd1639:
Open the cmd window in the same folder as your fastboot.exe. that's the problem, it's not finding fastboot

Edit, rereading your post, have you installed the sdk package? See this thread on how to install that http://xdaforums.com/showthread.php?p=47025283
[Nexus 5 General] coluichepensa:
thanks dude,

I solve partially my problem. After several tentative I was able to transfer a custom rom from the desktop to the sd via adb and I flashed it.

Now my phone works again.

again many thanks
[Nexus 5 General] neoneras:
I'm trying to recover 16GB N5 from strange semi/brick mentioned here: http://xdaforums.com/showthread.php?p=50407035

I'm using second method and after trying to flash bootloarder I get error:
[Nexus 5 General] jd1639:
Try locking the bootloader and then rebooting. fastboot oem lock

See if it locks the bootloader.

Sent from my Nexus 5
[Nexus 5 General] jaladhjin:
say I did method one http://xdaforums.com/show....php?t=2513701

however I did not relock my bootloader..

can I use flashify to reflash a custom recovery ?

Duurrr no I can't can I.. since I won't have root for flashify to get..

Do I need to do the fastboot method then ?