yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] Damool:
HELP!

Guys i really need your help here!

Info: I was on 4.4.4 stock with lastest cwm touch recovery, root and Xposed.

Symptom: Device worked without problems for a while, but today, i found my nexus 5 had rebooted and was stuck on the google logo.

I tried to access the recovery, i comes up after a while while saying:

E: can't mount (and can't open) cache\recovery\command log last_log last_install

No function seems to work here, and it takes a while to navigate in menus, with the same kind of messages.

All sounded terribly bad so i tried to sideload and fast boot the recovery again, won't work

Tried to restore nandroid -> can't mount sdcard

Tried to wipe data/factory reset, same errors!

!!I was able to format system, which may or may not be a good thing, but i'm sure it's important info!!

I ended up on this thread which seem like a perfect last resort.

The device does connect via fastboot, but it doesn't work either

here's what i'm getting:

Seems it's impossible to write anything on the Nexus...

I hope i won't have to RMA as is, because obviously the boot loader is unlocked and the recovery is custom...

Thank you for whatever time you can afford using to help me on this!
[Nexus 5 General] coolek33:
Been there. Try wiping cache with temporary booted stock recovery. Try anything with it. Try locking bootloader, reboot it and see if it is still locked. If not then sad news bro. Last thing isn't this thread but the one with TOT images and flashing with LG flash tool. But if that doesn't help... I've sold my n5 with such symptoms.
[Nexus 5 General] vin4yak:
The eMMC chip has gone bad.. The motherboard needs to be replaced. RMA is the only option.

Try the LG flash tool but I doubt it will help in this case though..

- Sent from an IceCold Hammerhead!
[Nexus 5 General] Damool:
Thank you guys for the help, device is going RMA, even TOT flashing wouldn't revive it :/
[Nexus 5 General] vin4yak:
Ugh. Hope you get a defect-free device! :)
[Nexus 5 General] QQNoob:
Method 1 didn't work for me. Fastboot crashes trying to flash the zip. Method 2 worked like a charm! Thank you so much for posting these instructions. My N5 decided to not ever go past the Google logo after I rebooted when the camera was acting up. I had to completely reset it and now it works again. Thanks!
[Nexus 5 General] gbelly:
Thanks to OP for putting together this guide.

Much needed and much appreciated!! It took me a while to get ADB sorted out on my PC (wound up being driver issues), however, it went smoothly after that.

Thanks again :good:
[Nexus 5 General] ArcaneXIII:
Many thanks for your assistance
[Nexus 5 General] kamots:
OK. Do you say don't lock the boot loader because it will wipe my data, or will it cause damage? If its wiping data, I'm OK with that. My phone feels kind of cluttered, and I like starting fresh.

sent from my nexus 5 running L
[Nexus 5 General] newb3e:
i am getting partition table doesnt exsist error...how do i fix it?
[Nexus 5 General] samersh72:
You can lock it if you want, it will not wipe or damage.

Usually lock bootloader when you need to sell or send the phone to service center otherwise leave it unlocked.

What you were doing/flashing???
[Nexus 5 General] Polarfuchs:
Excellent tutorial!! :good:

I did step by step and it work perfectly. :)
[Nexus 5 General] newb3e:
ou was flashing adnroid 4.4.4 but i dc phone from usb and connected again and it worked.
[Nexus 5 General] Andromendous:
Does flashing a factory image wipe your EFS partition?
[Nexus 5 General] jd1639:
No, didn't touch it
[Nexus 5 General] Andromendous:
So, how would one mess up efs?
[Nexus 5 General] jd1639:
Pretty hard to do. Why do you ask?
[Nexus 5 General] Andromendous:
I have some network issues occasionally, i lose my service randomly, my signal just goes black and i get a notification that says no service. Ive tried everything , flashed stock images radios, roms, called tmobile 5 times, new simcard. Everything. I just wonder if i messed something up, the first thing i did when i got the phone was downloaded 4.4.4 stock image from this thread, im running xubuntu so i used the .sh script. At first i got impatient and i double clicked the script like 5 times, i forgot to put the phone in bootloader mode, so when i did it just started to flash, then i was gonna flash twrp but before i could type in the commands it started flashing stock again. I let it finish and rebooted my comp to stop the script fromrunning and flashed twrp and backed up my efs, then flashed slimkat. But, i dunno if my service was already like this cus i didnt really use it on stock.
[Nexus 5 General] jd1639:
I'm sure you didn't mess up your efs. Flash the factory image again if you're concerned and see if it works before flashing anything else
[Nexus 5 General] Andromendous:
Ya i did that, its the same no matter what i do
[Nexus 5 General] jwhyte:
Go to settings about phone status if you have all information there you didn't lose your efs. Check your APN settings or try a different radio.

Edit read your other post and you tried radios... Do you lose all service or just data? Have you had other T-Mobile phones at this location? I have terrible service at home so i toggle 2g only to give me two bars where 3g LTE is 0-1.
[Nexus 5 General] Andromendous:
Ya i have all the stuff under status/settings. Ive tried apns, a tmobile rep told me to use Tmobile US LTE, nothin helps. But i lose all service, not just data. If i switch from lte preferred to 2g/3g it does the same thing. I may lose service untill i reboot. Its kinda hard to test cus its so random, the L radio seemed like it worked but i dunno if i just got a lucky streak of time where it didnt happen. And my service is great other than that, i usually get 3-4 bars all over town of lte and a constant 20-30mbps download speed max 42mbps
[Nexus 5 General] jwhyte:
In on T-Mobile LTE APN with no issues. Haven't tried the l radio. You may have to press them about getting a replacement.
[Nexus 5 General] crisleysena:
Wonderful!

Thanks a lot man! You'´ve saved the day! :laugh:

:good::good::good::good:

Btw, after the whole process, can I delete both TWRP folder and the BootUnlocker zip file?

Cheers!
[Nexus 5 General] jwhyte:
After your boot loader is locked and tamper flag reset. Yes
[Nexus 5 General] mrcreativity:
Is there a way of going back go stock from a custom rom and not loosing data from my partition? I don't want to loose my photos and stuff and copying that many files takes forever and is extremely unreliable.
[Nexus 5 General] shhbz:
@abaaaabbbb63

well I tried flashing Android L but the progress stopped in flashing system so after waiting for long it did not succeeded so I removed the wire from phone and went to recovery -booting into system all worked fine but today I again tried flashing 4.4.3 stock but again it stopped in writing system -the phone screen showed writing but at the end no progress I tried both method but it stops at the same point while earlier it used to flash max at 95sec

edited:weird i tried again and it stopped at the same command but this time it did flashed stock but some weird storage and stuff shown seems now need to wipe data but it seems it stops at all writing progress now at userdata progress

solved
[Nexus 5 General] vin4yak:
Just don't flash the userdata.img while returning to stock. Your /sdcard won't be touched! :)
[Nexus 5 General] mrcreativity:
So i manually flash everything, flash custom recovery and then factory reset?
[Nexus 5 General] XXXOmnicronXXX:
A little help with Flashing Stock and L gotten from Google

I tried flashing Android L on my Nexus 5, but that boot up, so I decided to Switch back to v4.4.4 and that didn't boot up either any suggestion.

I clicked on Flash-all.bat

sending 'bootloader' (2508 KB)... OKAY
writing 'bootloader'... OKAY
rebooting into bootloader... OKAY
sending 'radio' (45409 KB)... OKAY
writing 'radio'... OKAY
rebooting into bootloader... OKAY
archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
archive does not contain 'system.sig'
--------------------------------------------
Bootloader Version...: HHZ11k
Baseband Version.....: M8974A-2.0.50.1.16
Serial Number........:
--------------------------------------------
checking product... OKAY
checking version-bootloader... OKAY
checking version-baseband... OKAY
sending 'boot' (8700 KB)... OKAY
writing 'boot'... OKAY
sending 'recovery' (9284 KB)... OKAY
writing 'recovery'... OKAY
sending 'system' (721400 KB)... OKAY
writing 'system'... OKAY
erasing 'userdata'... OKAY
erasing 'cache'... OKAY
rebooting...
Press any key to exit...
[Nexus 5 General] jd1639:
It doesn't boot? Try flashing again, it looks like everything went like expected.
[Nexus 5 General] XXXOmnicronXXX:
I tried about 3 times with L and 5 times with v4.4.4

now tried flashing the v4.4.4 image from Android Dev site and flashing clockwork

A:\hammerhead-ktu84p>fastboot flash recovery recovery-clo
ckwork-touch-6.0.4.5-hammerhead.img

and then tried restoring.

Still in a Boot loop.
[Nexus 5 General] jd1639:
After you've flashed the factory image, boot into THE STOCK recovery and do a factory reset. That should get you past the boot loop.
[Nexus 5 General] XXXOmnicronXXX:
Does running flash-all.bat as administrator make a difference.

---------- Post added at 03:54 PM ---------- Previous post was at 03:49 PM ----------

what command can I use to factory reset?
[Nexus 5 General] jd1639:
Boot into the stock recovery, there's a place you can click on. You don't need a command.
[Nexus 5 General] XXXOmnicronXXX:
still in a boot-loop, any suggestion
[Nexus 5 General] jd1639:
I had the same problem going from L back to 4.4.4. I flashed the factory image and after it booted i rebooted into the stock recovery and wiped cache and did a factory reset. I'd try those steps again
[Nexus 5 General] XXXOmnicronXXX:
Thanks anyway, I wasn't able to flash Stock v4.4.4, so I tried Cyanogen and it worked, I'll try to flash stock later when I'm less busy.
[Nexus 5 General] Cookies:3:
'fastboot' is not recognized as an internal or external command, operable program or a batch file.

So I placed it in platform tools and cd into platform tools, the problem is that I dont know what code I should write to open the flash-all.

Now I'm pretty sure im just supposed to type the path and press enter but I'm a bit of spooked atm.

Thanks.

EDIT: alright so I tried to put it in the platform-tools and just drag the bat file to the cmd and pressing enter and same error.

EDIT 2: I think its a never mind because I pushed the nandroid... and.... YES!, anyhow I would still like to know how to make that batch file work, in case of further stupidity.
[Nexus 5 General] jd1639:
Just double click on the flash-all bat
[Nexus 5 General] 7ewis:
Only problem is, once you've reset the tamper flag... you end up with TWRP as your recovery.

Even if you ./flash-all.sh it doesn't remove TWRP. How are you supposed to get rid of it?

Edit: Okay, so I found the .zip file for the recovery on XDA, but surely there's a better way of doing this? I'd prefer not to have to use someone else's file.
[Nexus 5 General] aavvaallooss:
Hint: There is a way to use custom recovery without installing it
[Nexus 5 General] 7ewis:
Please enlighten me on this hint! I ended up unlocking the bootloader, flashing TWRP flashing the .zip that get's rid of the tamper flag, then flashing the stock recovery, then wiping everything. I didn't know you didn't have to flash it properly!

Sorry if this should be expected, I'm 'new' to Android, but not entirely new to this kinda stuff. I know how to use the command line, and hate using toolkits.
[Nexus 5 General] aavvaallooss:
I think that is well explained in OP (Just before Video Guides)
[Nexus 5 General] GMTN:
Can anybody advise if unlocking the bootloader is a required step ?

My phone got messed up from the lastest 4.4.4. OTA update, now it no longer boots but I can get into recovery.

I've wipe cache and did a factory reset. Will I still be able flash a factory image as I can't unlock the bootloader it as I can't even get it to boot up.

I'm just hoping to reflash the original factory image and go from there.

Thanks.
[Nexus 5 General] BirchBarlow:
Why can't you unlock the bootloader?
[Nexus 5 General] vin4yak:
Yes, it is. Without which you can't flash the factory images.

Switch off the device completely. Now hold down power button and volume down button together till the bootloader shows up! Also make sure that the device is charged.
[Nexus 5 General] GMTN:
Thank you kindly. I managed to figure it out for now. Now deciding whether I should stick with stock.
[Nexus 5 General] BirchBarlow:
You mean to tell me you don't even know how to access the bootloader? Jeez, if that's the case you should definitely stay 100% stock until you do your research and ditch whatever toolkit you've been using.
[Nexus 5 General] GMTN:
My post says getting to the bootloader wasn't the problem. I had trouble unlocking it as it wouldn't boot anywhere else.
[Nexus 5 General] majikfox:
Thank you, this saved me after I accidentally corrupted my /data partition.
[Nexus 5 General] mhcire:
Thank you So VERY, VERY, VERY, VERY, VERY MUCH!!!!!!!
[Nexus 5 General] :
I followed the tutorial method 1 and everything is working out but right now i am "stuck" at erasing 'userdata' in the windows command prompt window... It's been like 30 minutes. Should I keep waiting?
[Nexus 5 General] vin4yak:
No. Reboot to bootloader and flash it again.
[Nexus 5 General] :
Okay cool so I restarted the flashing process and is at erasing userdata again. How long should this step take? I had roughly 12 to 14GB of data originally.

---------- Post added at 08:59 AM ---------- Previous post was at 08:47 AM ----------

for method 1 is it normal to see

archive does not contain 'boot.sig'

archive does not contain 'recovery.sig'

archive does not contain 'system.sig'

?

---------- Post added at 09:10 AM ---------- Previous post was at 08:59 AM ----------

I am always stuck on the erasing userdata line and i have rebooted the bootloader again and again every time. Help? What's wrong?
[Nexus 5 General] vin4yak:
It could take you 10-15 mins at most.

Ignore the sig errors. They occur when your use the flash-all.bat

Since you're getting stuck at userdata.img , I would suggest you to flash the img files one by one manually. Don't use the flash-all file. No need to start over, just continue from flashing the userdata.img
[Nexus 5 General] wangdaning:
Thank you. Managed to soft brick with a bad download of a rom (after having the phone for less than a day :D). Working fine now.
[Nexus 5 General] iTzGavin96:
This tutorial was awsome. I made a little video tutorial if you want to maybe add it in the op :p

https://www.youtube.com/watch?v=lObBVVyfI8U

I also put at the end the adb command to relock the bootloader
[Nexus 5 General] abaaaabbbb63:
Nice and simple! I put it in the op.
[Nexus 5 General] CronosTech:
Reserved

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

Hey brother is restoring by this method same as flashing a pre rooted stock flashable ROM ?? Actually the camera app in my nexus 5 is not capturing videos and I don't know why this is happening. I tried clearing the data uninstalling and reinstalling the app but got nothing. Now I'm thinking of restoring the factory images. Do I have any other alternative. I have multi ROM and all the camera app in the other ROM paranoid android and android l is working perfectly fine.
[Nexus 5 General] abaaaabbbb63:
So it's working on other ROMs? Try flashing your current rom zip without wiping anything. It should restore your system. If it still doesn't work, then you'll have to backup your apps and reinstall the ROM properly.
[Nexus 5 General] MCASTILLO:
Hello guys.

I am sorry my confusion. I must to extract this archive too, before to flashing factory images, using the easy method, please?
[Nexus 5 General] jcsww:
If you extract it to that directory, use the flash all command and you will be completely stock when it finishes.
[Nexus 5 General] MCASTILLO:
Thank you for your answer.

Then if I use easy method, I do not extract it?
[Nexus 5 General] jcsww:
You're welcome! Don't forget to reboot recovery when done to do a wipe data/factory reset.
[Nexus 5 General] MCASTILLO:
Again, thank you, just one more thing, easy method or method 1 do not extract anything?
[Nexus 5 General] jcsww:
If you are looking at the stuff in post 1 of this thread, it's that simple. If for some reason that doesn't work, method 2 is also very straight forward.
[Nexus 5 General] MCASTILLO:
OK, thanks and have a nice day.

:)
[Nexus 5 General] stonew5082:
Hello all, my USB port is borked. It's like it's CONSTANTLY connecting and unconnecting, it barely charges when the phone is off. Soooo ADB is screwed. Is there any way to return to stock without using USB cables? I already have CWM and root....

Anyway my plan is to use flashify and boot unlocker. I'm just not sure if that's good enough to get my warranty replacement going... any thoughts? I assume I'd use bootunlocker to change the tamper flag then use flashify to flash stock recovery and rom? That locks the bootloader automatically right? Or do I need to do that manually through bootunlocker
[Nexus 5 General] stonew5082:
heeeeeelp! If you could read my above post I'll be forever in your debt. In fact I'll buy you a beer...
[Nexus 5 General] coolek33:
You can unroot it, flash stock recovery.img with flashify and lock bootloader with that apk. Should work but I'm not 100% sure.

Edit. Flash with flashify before unroot.
[Nexus 5 General] :
Can anybody tell me I downloaded the image file and want to flash it. I installed Xposed on my device.

What if i flashed directly without uninstalling xposed framework?

I flashed around 3-4 times (4.4.3 = 1 time and 4.4.4 = times) image files, does it affect my storage? making it slow or less responsive?

This is my first ever android device nexus 5, I never tried jelly bean and ICS android systems. On google developer site there is no systems below 4.4 (I know that its lauched with 4.4 thats why its like this.) Downgrade possible? Or can I try nexus 4 image files?

Thanks for reading.. Some question wanted to ask from long time..
[Nexus 5 General] swat4samp:
U will return to stock once you flash factory image no matter how your device was in its previous state. Just flash it and u will be completely stock and doesnt affect anything :) Why do u need to downgrade :eek: and dont ever think to flash other device's images. It will brick your device.
[Nexus 5 General] doctor_droid:
Never flash a image file of any phone other than nexus 5... Or else u would end up wid acostly paperweight...

Multiple flashes doesnt not affects storage...or the performance (it makes faster lol...coz no installed apps are present )

Just flash the image file (backup all ur data)
[Nexus 5 General] swat4samp:
I think you must complete the sentence "backup all of your data on PC or laptop"
[Nexus 5 General] :
Actually in windows,on formatting it affects the storage. May be because of its magnetic storage technology.. Thats why i aksed this question. :):thumbup:
[Nexus 5 General] vin4yak:
You are correct. There is a limit for every flash storage (Number of writes) and mobile devices are no exception. But you'll never reach that limit in your device's lifetime! :D So don't worry about this and happy flashing!:D
[Nexus 5 General] tim440:
I reflashed stock last night via the first method here and all went well.

Did it cos was having battery problems and have read that this might help and it seems like it might have done.

My question is will I have relocked the bootloader? From reading the rest of the thread, I don't think so, but not sure.
[Nexus 5 General] BirchBarlow:
Not unless you did fastboot oem lock...
[Nexus 5 General] varun.c.jain:
Flash D821 radio.img on D820

Once we have all the official image dumps from Google, would it be possible to have a D821 radio.img that could be flashed onto a D820 HW in order to enable the EU LTE bands, or is this just a dumb question?
[Nexus 5 General] abaaaabbbb63:
There's a hardware difference, not a software one. The radio is the same on both.
[Nexus 5 General] kp432:
When I download the .img, i do not recieve a zip file. Its a .tgz file that cannot be unzipped. Sorry noob question.
[Nexus 5 General] abaaaabbbb63:
It can be unzipped using WinRAR.
[Nexus 5 General] kp432:
Thanks for the fast response. I just got it. Sorry again for the noob ?. Thanks
[Nexus 5 General] abaaaabbbb63:
No problem. Not everybody uses WinRAR.
[Nexus 5 General] faultytowersdude:
Hi I have followed instructions but its failing to flash this to my nexus, I have unlocked bootloader etc. It just says failed.

Edit... placed on the root of my C\ drive worked like a charm.... thanks
[Nexus 5 General] abaaaabbbb63:
Post the full log of the CMD here.

Edit.. ok.
[Nexus 5 General] faultytowersdude:
Cheers, must if been because I was using desktop which is assigned to a different hard drive, then tried the C drive on me pc to see if it would work and it did.
[Nexus 5 General] abaaaabbbb63:
Good :D
[Nexus 5 General] phwtc:
Thanks, it takes a while to try to wipe data in recovery and never see the menu until I see your post. :good::good:
[Nexus 5 General] undercover:
Nice one. Simple, but hey, not everyone knows that stuff by heart.

One small addition, didn't see it in the post. Easiest way is after extracting images to chuck all the stuff from Adb zip in the same folder, this saves having to assign a path in Adb.

Also, flash-all doesn't always start, so double click Adb, type fastboot (enter)

fastboot devices (enter) to make sure device is connected. After that close cmd and run flash-all. I'll leave it to op to put it in a nicely interpretable manner ;)

Sent from CCCP with love...

---------- Post added at 11:35 PM ---------- Previous post was at 11:33 PM ----------

Also, you didn't specify that before using fastboot cmds, you need to start it with fastboot (enter). Trivial, but I can see people having problems because of that. If you give step by step instructions, make sure you give EVERY step.

Sent from CCCP with love...
[Nexus 5 General] hobakill:
could you tell me the sequence because i'm having the same issues and can't seem to get it.

thanks.

edit: i just keep getting to the tiny android with a red triangle that says "No Command."

edit2: ok i got it. not super intuitive but when i get to that tiny android guy i just have to press the vol up button and i get the options i was expecting. can't seem to go up the list though - only down. no big deal. thanks!
[Nexus 5 General] joshthewaster:
if i want to do this on a mac what are the commands?
[Nexus 5 General] abaaaabbbb63:
Well, first you install the drivers like shown here:

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

Then you use the commands in the OP, but this way:

./fastboot flash recovery recovery.img (For example)
[Nexus 5 General] joshthewaster:
Thanks, can I just flash the image.zip file if i want to only restore the stock rom?
[Nexus 5 General] abaaaabbbb63:
Well, to restore the stock ROM, you can, theoretically, flash the system.img, and the kernel.img from the factory images, and you'll be fine. If the phone doesn't boot, then do a factory reset.
[Nexus 5 General] joshthewaster:
Cool, unfortunately I cant get to my device, i do adb devices and nothing comes up (I followed the other thread you linked me to).

This is part of a larger problem, I tried to unlock and root and my phone wont boot now. I can get into TWR but I cant mount anything.

posted about it here http://xdaforums.com/showthread.php?t=2515640&page=4.
[Nexus 5 General] doctor_droid:
Dont knw that limit...flashed my s2 literally every alternate day :p sold nw without a sign of tempering
[Nexus 5 General] Andromendous:
just curious, at the end, when i do a "data factory reset" is it supposed to say

"failed to mount cache (invalid argument

caint mount /cache/recovery/log

and then says that a few more times.
[Nexus 5 General] Wakamatsu:
Sometimes the command "fastboot erase cache" is problematic. Imo, the better option is "fastboot format cache".

I would go back and run the command "fastboot flash cache cache.img". That should fix your issue.