yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] :
As op said..

★After everything finished, select "Recovery" using the volume buttons.

★When a small Android appears, press Power Button + Volume UP.

★Select "Wipe data/factory data reset"

but I accidentally selected last option..

wipe cache partition

I don't know whats happening to my device, but its showing small android with red remark.

its now about 10 min and still showing the same...

please please help..

I did it with pressing and holding Power Button + Volume Down at the same time for 10-12 sec. and device started with select language.

I powered of device. and used following commands

fastboot erase boot

fastboot erase cache

fastboot erase recovery

fastboot erase system

fastboot erase userdata

and then again started by method 2 as in op.

but after... as op said..

★After everything finished, select "Recovery" using the volume buttons.

★When a small Android appears, press Power Button + Volume UP.

★Select "Wipe data/factory data reset"

my device is showing error

E:failed to mount /cache (invalid argument)
E:cant mount /cache/recovery/log
E:cant open /cache/recovery/log
E:failed to mount /cache (invalid argument)
E:cant mount /cache/recovery/last_log
E:cant open /cache/recovery/last_log
E:failed to mount /cache (invalid argument)
E:cant mount /cache/recovery/last_install
E:cant open /cache/recovery/last_install
E:failed to mount /cache (invalid argument)

--wiping data...
Formating /data...
E:failed to mount /cache (Invalid argument)
formatting /cache...
Data wipe complete.

so what should i do now??

it was coming 1 st time also what i strike in first post.. After selecting English US language.. camera stopped working.. etc etc apps..
[Nexus 5 General] samersh72:
did you flash cache.img at the end? (fastboot flash cache cache.img)

if not, flash it (dont "fastboot erase cache" after), boot to recovery and wipe data
[Nexus 5 General] halojinx:
self solved :good:
[Nexus 5 General] NCguy:
Deleted
[Nexus 5 General] YusufEzzo:
When I download the factory file and extract using winrar, I only get one image file. Am I missing something?
[Nexus 5 General] samersh72:
Use 7zip program to extract that file

Sent from my N91
[Nexus 5 General] YusufEzzo:
Will do, thanks.
[Nexus 5 General] :
I ignored these errors what I told and wipe data..

Successfully running 4.4.3.. Thnx for help.

Some apps are not working with the 4.4.3. I will wait for an update to those apps.
[Nexus 5 General] l33ch0r:
This is probably not the right place to ask the question but since I didn't want to open a new thread here it goes:

Got Nexus 5 rooted and with CWM on 4.4.2 (ROM is still stock) - it just offered me to install an update to 4.4.3 which I downloaded and tried to install. Recovery told me it was "untrusted" and so on - anyways: how to update Nexus 5 to 4.4.3 without flashing a factory image or how to flash one like an "update"?

If someone could point me in the right direction I'd be really thankful ;)
[Nexus 5 General] coolek33:
http://xdaforums.com/showthread.php?p=53113072
[Nexus 5 General] jd1332:
i am fairly new to android and traded a gs4 for a n5. apparently, my n5 has twrp on it per the 4.4.3 ota update. I want to remove TWRP. Using method 1, I Execute the flash-all.bat script (for Windows), then the cmd window says press any to exit while the phone takes me to the welcome where I choose my language and such, meaning I can't then follow the remainder of method 1.

can anyone help me get through the remainder of method 1 so that I can be confident that I removed TWRP?

Thank you
[Nexus 5 General] Primokorn:
After flashing the factory images your phone shoud reboot itself. the "small Android" didn't appear on my side with KOT49H build.

Anyways if the installation was successful you don't have anymore a custom recovery and your internal memory has been wiped.
[Nexus 5 General] jd1332:
So twrp is gone? Do you know of a way that I can check to make sure it is gone? Thanks
[Nexus 5 General] jd1639:
Boot into recovery
[Nexus 5 General] jd1332:
i boot into recovery by pressing power and volume down at the same time, then selecting recovery mode, correct?

once i do that, then what do i do? thank you
[Nexus 5 General] jwhyte:
That works. If you have twrp then it will open. If you have stock you will see a dead android with exclamation point.
[Nexus 5 General] jd1332:
will booting into recovery mode (power + volume down, then select recovery mode) wipe my phone again?
[Nexus 5 General] AFX21:
Hello,

I used you're method to completely restock my nexus 5 and also relocked bootloader.

But my phone now does not receive the 4.4.3 update as its saying 4.4.2 is the last version.

How can I fix this?
[Nexus 5 General] aavvaallooss:
Just wait. OTA can tale up to 2 weeks to fully distribute
[Nexus 5 General] AFX21:
The thing was I had the update availeble when I had the nexus rooted (before I brought my phone back to stock). So there must be something else wrong.
[Nexus 5 General] Dark_1:
I've flashed everything following the first method but I have a problem with the last operation.. As soon as the bat has finished to flash everything my Nexus will reboot in "normal mode", where I can choose the language and everything.

If I reboot in fastboot mode and select recovery mode I can see the small android with the red sign, but I can not wipe the system.

How can I do that? The same thing happens if I follow the second method.. Shouldn't be flashed with the bat file the stock recovery?

Or do I need to do something else? I need to go back to PERFECTLY stock.
[Nexus 5 General] jd1639:
When you see the small android just press the vol up
[Nexus 5 General] BirchBarlow:
[INFO] Nexus 5 OTA Help-Desk
[Nexus 5 General] j0zu3:
Is necesary lock bootloader to get OTA's or install OTA's?
[Nexus 5 General] :
Nope. ;)
[Nexus 5 General] Dark_1:
Yesterday was too late so I tried something else.. I followed the last method, the one that lock again the bootloader, and after flashing the zip file I made the wipe.

Is that correct?
[Nexus 5 General] jd1332:
thanks everyone for all of their help. i saw the dead android with the exclamation point so it looks like TWRP is gone now.
[Nexus 5 General] DUCU 2000:
Flashing to stock with the first method, everything is ok but I have no recovery, what's wrong ?
[Nexus 5 General] coolek33:
Press vol + and power when U see "dead" Android. It can be vol - and power. Don't remember exactly.
[Nexus 5 General] Dark_1:
I can access to the recovery pressing only vol+. But when I'm in I can only go down (with vol+) and select the option (with power button) but I cannot go up (to select reboot for instance) because when I press the vol+ the options menu disappear, and if I click again the recovery appears again but the selected voice it's still the same.

The only solution is to keep pressed the power button and shut the Nexus down..
[Nexus 5 General] adityameena26:
Flash factory image without losing apps and data

Is there any way to flash factory image without loosing apps nd personal data..?

I am rooted..unlocked bootloader
[Nexus 5 General] samersh72:
Flash images except userdata

Sent from my Nexus 5
[Nexus 5 General] Kidder1994:
There's any diference between the two methods in the first post?... or the second method will be more clean than the first one? or vice versa? coz i have downgraded my nex 5 to 4.4 using the first method, but for some reason, the display control profile i used while i was rooted in 4.4.3, stayed after all the process :/
[Nexus 5 General] mathew1234:
Tamper flag reset

What the code to reset tamper flag??? I don't see it in the first 2 posts...
[Nexus 5 General] jd1639:
Re-read the first two posts. Look for bright red lettering
[Nexus 5 General] Kidder1994:
Some help here please!
[Nexus 5 General] aavvaallooss:
No code needed. You can use BootUnlocker app
[Nexus 5 General] brockkk:
thanks for the tutorial. worked great for me!
[Nexus 5 General] darkluk:
[MENTION=4346614]abaaaabbbb63[/MENTION] Thank you so much, i use this tutorial many times and learn a lot about flashing via fastboot
[Nexus 5 General] _Madcat:
I followed this how to to get my N5 back to stock for RMA.

I flashed Google 4.4.3 images,

I have booted clockworkmod recovery to run Nexus BootUnlocker script (with fastboot boot, not by flashing CWM and then boot it) so now my bootloader is locked.

By safety, I wanted to flash again Google stock images, but I have an error saying this is not permitted on locked devices.

I don't remember this from 4.4.2.

Can I safely send back my N5 to Google or will they be able to see I used Nexus BootUnlocker ?

Thanks
[Nexus 5 General] sempot:
Just rma with this guide. Just let it be 4.4.2. I rma-ed twice with this guide. All good
[Nexus 5 General] dinaratai:
this is great
[Nexus 5 General] BirchBarlow:
You're good to go. The BootUnlocker script resets the tamper flag so it will look like it was never modified.
[Nexus 5 General] absoluterebirth:
I'm on PA at the moment. I don't wanna lose my data, so I was wondering if I were to flash each .img file separately except for the userspace image in the boot loader, should I have any problems?
[Nexus 5 General] abaaaabbbb63:
Nope. It's ok to do that.
[Nexus 5 General] alfavictor:
Stupid me!

I backed up all my apps with Titanium Backup, connected my phone to my laptop to charge and went for lunch.

Came back, and flashed the factory image.

When I went to root, I noticed: all my files wiped clean! I forgot to copy my backup to my laptop! :( :mad:

Serves me right!

Anyways, thanks for the guide! My bad that I didn't read the OP more diligently!
[Nexus 5 General] Riiquiem:
Hi,

it happened so that the steps after "Wait for everything to flash" in method 1 are not necessary.

After flashing finished, the phone reboots automatically and is already wiped.

So I guess you could go into recovery manually again and wipe again but what's the point?

Anyway, thanks for the guide. It sure helped me a lot!
[Nexus 5 General] Primokorn:
Yes you can but flashing the factory images should have already wiped the phone memory.
[Nexus 5 General] Avan Patel:
try wugfresh

hey try [MENTION=3110798]WugFresh[/MENTION] tool kit, could help ya:laugh:
[Nexus 5 General] abaaaabbbb63:
I love how you recommend that in a thread where the op says:

Plus, a factory reset from recovery is one of the easiest things to do.
[Nexus 5 General] calembic:
One thing after u flashed the boot locker script did u boot the phone and delete the zip file if u didn't won't google see that?
[Nexus 5 General] _Madcat:
I just sent it back.

I flashed relock bootloader script through adb sideload so it shouldn't be on sdcard.

But I made a factory reset with builtin function anyway.

I was just wondering if sideload would have cached some files somewhere google could see them, but now that I have sent it back, we'll see !
[Nexus 5 General] andriusst:
Worked fine for me. With the 4.4.3 factory image. Many thanks for this.
[Nexus 5 General] jwhyte:
I had loaded it on phone. So while attached to PC just opened folder and deleted it.
[Nexus 5 General] aburn95:
I only get the dead android with the red caution triangle when I select recovery. If I hold vol + or - with power it does nothing. It eventually just reboots. Anyone else have any insight? My screen has dead pixels and I need to get this thing back.
[Nexus 5 General] jd1639:
Just push vol up
[Nexus 5 General] aburn95:
Now I cannot get Twrp to flash for the life of me. Keeps saying no such path exists. I don't understand how I rooted this phone and can't do this.
[Nexus 5 General] jd1639:
Is the twrp image in the same folder as fastboot.exe? And is your command window opened in that folder?
[Nexus 5 General] aburn95:
Nope I forgot they had to be in the same folder. Thanks a lot.
[Nexus 5 General] singularity.web:
I have a problem. When flashing "flash-all" it flashes all components (bootloader, radio etc.) with "okay" up until the third time it says "loading bootloader" when it comes up with an error "boot.sig" not found and then "out of memory". I am currently running CM and TWRP but want to return to stock and can't figure out what's wrong. Phone is in fastboot mode and continues to show writing on the screen but luckily is able to power off and back up regulary. Is anybody able to tell me what's wrong?
[Nexus 5 General] ZenithHammerhead:
Hey all, so to start off, this really isn't my first post on xda. I'm pretty experienced with flashing and the sorts through the galaxy nexus days. But since then, I've never really needed any help, and didn't realize how long I was away. Therefore, I forgot my username/pass..so here I am. Gotta say, I love that "You're a noob" video from xda.

In any case, here's my question, more of a general one. Last night I tried flashing the Faux Kernel and got an error with TWRP 2.3.2.1. In the end, there was an error with the file system, and I wasn't able to see the file system from the device, or when connected to a PC. I ended up just running through a list of commands via cmd adb to revert to stock. Anyone know what the problem might have been? I got a /cache error.

If not, don't sweat it, I'm sure they'll get whatever kink it was worked out.
[Nexus 5 General] mrro82:
I had the same issue yesterday. I had made a backup prior to flashing the kernel thankfully. Mine showed no baseband either. I ended up factory resetting and restoring the backup. All is well now.

Sent from the jaws of my Hammerhead!
[Nexus 5 General] Ricky Divjakovski:
You might wanna mention they should do a wipe data/factory reset to avoid any problems at all!

Nice guide!

Clean, straight up, simple :) I like it!
[Nexus 5 General] abaaaabbbb63:
Thanks.

Well, i did mention that if they do not follow all the steps, they might end up in a bootloop, or even a brick. The factory reset is part of both methods.
[Nexus 5 General] R3jected:
Great it helped me to return my device to stock after crashing it.

Thanks a lot!
[Nexus 5 General] Marlon41:
Can't enter recovery

Hi,

I followed the steps but cannot get into recovery, after doing the easy way it automatically reboots the phone. If I manually try to go into recovery I see the little android with a small red triangle and pressing the volume up plus power buttons has no effect and eventually reboots into setup again.

I also tried the manual way and had the same issues - can't get into recovery to do full wipe, etc to complete the process.

When I unlocked and rooted originally it loaded twrp recovery, not sure if this is causing the issues.

What can I try?
[Nexus 5 General] Chromium:
The last step (factory reset via stock recovery) isn't really mandatory. Does the phone boot up normally? If it does, don't worry about factory resetting.

Sent using xda-developers app
[Nexus 5 General] Marlon41:
All set, I managed to press the keys correctly and enter recovery to complete process. Thanks!
[Nexus 5 General] ZenithHammerhead:
Wow. I didn't realize exactly how many steps you had to go through in order to do this...I've been so accustomed to running these commands I kinda forgot how in depth the process is. Well done abaaaabbbb63.
[Nexus 5 General] cooooooop:
Thanks for the detailed instructions, I wanted to go back to stock until a more feature filled stable rom emerged and these instructions were perfect.

One thing I got hung up on was:

after running flash-all.bat the phone automatically reboots and you see the stock boot animation, however it never finishes loading. To get back into the bootloader you need to hold Vol Down and Power (about 10 seconds for reboot from boot animation). When I go to stock recovery I tried holding down Vol Up and Power and never saw the stock recovery options menu, to get in there you need to hold Power and PRESS Vol Up. This difference took me a bit to figure out. Hope this helps anyone else who was confused. Definitely need to do factory reset from stock recovery for it to boot fully, in my experience.
[Nexus 5 General] BirchBarlow:
How to flash a factory image without erasing custom recovery

Let's say you want to flash the stock ROM to replace a custom ROM, but you don't want to erase your custom recovery, would you simply use method two but omit the following line? Do you have to reflash the recovery in order to restore the stock ROM? Could you simply replace recovery.img in image-hammerhead-krt16m with TWRP/CWM and use method number one? Thanks.

fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
[Nexus 5 General] Chromium:
Yes that should work, but if you want to get the stock rom back without losing your custom recovery its easier to simply download the flashable zip of it here and flash via recovery.
[Nexus 5 General] BirchBarlow:
That makes sense. Thanks for the help :good:
[Nexus 5 General] supersain08:
HI, What if I have custom recovery and I just want to flash stock recovery. How do I do that without wiping data?
[Nexus 5 General] jd1639:
Fastboot flash recovery recovery.img

Use the stock recovery image file
[Nexus 5 General] gee2012:
Extract theGoogle factory image with 7-zip and you`ll see recovery.img , than flash in fastboot: fastboot flash recovery recovery.img and after that fastboot erase cache and then reboot. You will not loose any data.
[Nexus 5 General] abaaaabbbb63:
*POOF*

http://www.phonandroid.com/forum/co...ootloader-de-votre-google-nexus-5-t74138.html

French version... I'm international now.
[Nexus 5 General] Primokorn:
Oups... All your work is HERE :p

French people love you? :D
[Nexus 5 General] abaaaabbbb63:
Heh :D

Apparently... well.. at least they love my work

Well done with the translation! Hope it will help !
[Nexus 5 General] BirchBarlow:
Flashing the recovery won't wipe any data. Just take it from the factory image from Google (recovery.img).
[Nexus 5 General] bitdomo:
The boot.sig, recovery.sig, system.sig not found is not an error.

Extract the zip file and flash system.img, recovery.img, boot.img, cache.img and userdata.img manually
[Nexus 5 General] coolek33:
Then use the 2nd method from OP.
[Nexus 5 General] singularity.web:
I got to step three succesfully (flashed radio) and then command four "fastboot reboot-bootloader" failed (unknown error). Any ideas?
[Nexus 5 General] Mechashiva:
I tried this method, wanting to revert to stock, but I flashed a custom recovery instead of the stock recovery. Not sure if this was the cause, but I ended up without any visible storage. Attempts to download files gave the error No SD Card, and my camera/gallery wasn't working either.

I solved this by following the instructions for the 16gb vs 32gb issue: reflashed the stock recovery, then performed a factory reset through the stock recovery. That fixed it, and I was able to flash a custom recovery later. Just a heads up in case anyone had this issue, I didn't see it in thread.
[Nexus 5 General] bitdomo:
update drivers, update fastboot binaries, try the whole thing on an other pc, use usb2 port.

Tapatalk-kal küldve az én Nexus 5-el
[Nexus 5 General] Cookies:3:
Forgive me if I misunderstood but in order to reset the tamper flag and lock the boot loader you have to install a custom recovery, right?

In my country the carriers are worse then outlaws so I'm pretty sure that even if my boot loader is locked and the temper flag is false it will void my warranty anyway if ill have a custom recovery, also from what I understood I have to unlock my boot loader in order to install a custom recovery so it will be obvious...

And I cannot flash a factory img in order to have the regular recovery back again without unlocking the boot loader which then will make the tamper flag true and then I'll have to install a custom recovery again...

Am I right?

If I am is there a way to have both stock recovery and a locked boot loader?

I hope I didn't write complete nonsense

Thanks in advance for helping a noob.
[Nexus 5 General] samersh72:
"fastboot

boot

path/to/TWRP.img" will

temporarily

flash the twrp recovery (it will not stick) in order to flash the zip to reset tamper flag.

after a reboot, the stock recovery will still there.

"fastboot

flash

recovery path/to/TWRP.img" will replace the stock recovery.
[Nexus 5 General] Cookies:3:
I knew I didn't notice something, thank you very much!
[Nexus 5 General] Cocktopus:
Urgent!!

Guys need help urgently.

I've lost imei of my phone but fortunately I had backed up efs.

But efs was up backed on 4.4.2. I'm currently on 4.4.3. Please guide me to restore the efs correctly.
[Nexus 5 General] jd1639:
It doesn't matter what firmware you were on when you backed it up. How did you make the backup? How did you lose imei? Have you tried flashing the cache.img in fastboot
[Nexus 5 General] Cocktopus:
I tried restoring but still no signal and imei :crying:

I backed it by twrp.

here is what i did- i was on stock rom with custom recovery and root. so to upgrade i flashed stock recovery and system images. then before boot the phone up i tried to wipe cache partition via stock recovery...during erasing of cache it was taking too much time so i long pressed the power button to restart the phone. since the i have no signal and no imei. :(
[Nexus 5 General] jd1639:
Flash the cache.img from the factory image in fastboot. Do you know how to do that?
[Nexus 5 General] Cocktopus:
fastboot flash cache cache.img ?
[Nexus 5 General] jd1639:
Yep
[Nexus 5 General] Cocktopus:
Another problem. phone shows there is no external storage.
[Nexus 5 General] jd1639:
What do you mean? There is no external storage
[Nexus 5 General] Cocktopus:
sd card is not found by the phone. the factory image was in my phone but the storage is now not accessible somehow
[Nexus 5 General] jd1639:
All right, I'm not sure I'm following you but are you using fastboot from your pc? You want the factory image on your pc, not your phone.
[Nexus 5 General] Cocktopus:
Yeah right. but factory image is on my phone. can you upload only the cache.img if you have it. its a 441mb download otherwise man.
[Nexus 5 General] jd1639:
Sorry, I'm on my phone and not near a pc. Ain't no reason to keep a factory image on my phone. It didn't do you any good there
[Nexus 5 General] Cocktopus:
got signal finally man!! and imei too. just erased cached again and everything works perfectly!

thanks for the help!!!!!!!!!!! :good:
[Nexus 5 General] jd1639:
Glad your got it working
[Nexus 5 General] freak744:
Flashing factory images without wiping internal storage?

Hey guys

Sorry if this question has been asked before (I tried searching, couldn't find any)

Is there a way to flash factory images without wiping internal storage (emulated sd card) ? :confused:

I'm thinking of going back to complete stock and start afresh when the supposed Android "Lollipop" comes out. :D

I've never yet tried flashing a factory image till now (flashed ROM zips to upgrade Android Versions)

Thanks in advance :)
[Nexus 5 General] vin4yak:
You can flash all the img files except the userdata.img file. That's the file which actually deletes everything on /sdcard.

If you're not sure how to flash them, follow the link in my signature which reads "How to flash a factory image". Just don't flash the userdata.img!
[Nexus 5 General] singularity.web:
I managed to get it all done using method 1 by switching to usb 2 port (was using usb 3 before) up until and including resetting the tamper flag. Only thing remaining as far as I am concerned is that when booting into recovery it still is twrp recovery rather than stock recovery. How would I change that? One other thing would be, after everything was flashed, the phone automatically rebooted into stock without giving me the chance to select recovery and wipe data/factory reset. I then proceeded to turn it off and boot into stock recovery and wiping data/factory reset however whenever i boot into recovery now twrp seems to still be the installed recovery by pressing volume down/powerbutton. Why and how do I change that?