yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] Taggen:
I was draw the Bootunlocker one my Nexus 5 with my TWRP and i can not reset my phone eaither have update factory reset everything when am turn it off for gonna wipe it as small android is just stuck noting haoppens and have true status.

How can i make so i can find my bootunlocker with TWRP :/

Find it just serch true all maps was slow :/
[Nexus 5 General] afraaa:
what's the difference .. is there any significant improvement on battery or other things ? just asking

---------- Post added at 08:48 PM ---------- Previous post was at 08:39 PM ----------

don't any insult .. as you describe nothing can be understand of your post . find bootloader and .... no any insult just let you no bro .
[Nexus 5 General] GamaX320:
Just want to confirm that currently I on custom rom with root and custom recovery, if I want flash the 5.1 factory image just follow the instruction mention on OP will be done ?
[Nexus 5 General] samersh72:
yes, and you will be on stock 5.1
[Nexus 5 General] elijahblake:
I've tried both methods several times and when trying to go into stock recovery it's just the green android laying on his back with a red triangle.

I went ahead and flashed the twrp recovery and it would successfully go into it.

I flashed the recovery several times and once it went into it and had the green robot with the gear spinning for like 5 mins with nothing else on the screen. So i held the power button and restarted the phone....

Any suggestions?

I just want the phone to be stock so it can take OTA's (it's my wife's)
[Nexus 5 General] jd1639:
The green android on his back is the stock recovery. You need to press vol up and then press power to get into it. It can be a little tricky so keep trying.
[Nexus 5 General] MrKaon:
While geen android laying down with open chest do this:

Press and hold POWER, and then press once the Volume Up button.
[Nexus 5 General] jd1639:
Yep, my bad. Shows how often I use stock recovery, lol
[Nexus 5 General] elijahblake:
Thanks guys! Yeah it's been a LONG time since I've used stock recovery. I thought it used to have the options listed and you had to scroll down down using the volume keys and then hit the power button to select.
[Nexus 5 General] Nnyan:
Lol happened to me to, got stuck in the swirling balls boot up (about 40 mins later when I went back to the phone) when it hit me and I went back in and wiped. 10 mins of swirling balls later I'm back in.
[Nexus 5 General] pcloadletter1:
My results were slightly different with LMY47D:

Method 1. Easy method.

★Power off your phone.

★Boot it in fastboot by pressing and holding Power Button + Volume Down at the same time.

★Connect your phone to your PC through your USB cable.

★Execute the flash-all.bat script (for Windows)

★Wait for everything to flash.

★After everything finished, welcome screen
[Nexus 5 General] el_daYa:
UserData Error

I am trying to flash the <userdata.img> but when it tries to write it, its coming back as "failed (remote: partition table doesn't exist)" I was running 4.4.4 stock rooted with TWRP prior to the install. Please help now I am stuck. I am trying to upgrade to 5.1 btw. I was using ADB
[Nexus 5 General] jd1639:
Try fastboot flash userdata userdata.img. I'm not sure what your meant by using adb
[Nexus 5 General] el_daYa:
No never mind, lol by adb I meant CMD, Also what had happened was that rather than tell it to flash userdatA I wrote userdatE thats why it could find the partition. Its all good now. My only problem currently is that when the dead android with the exclamation sign came on apparently I didnt press Power + Volume Up so its in the loading stage right now and I think its stuck. I didn't do the last step which was wipe data.:crying: Ok I am able to reboot into fastboot but still can go into recovery. it just kick me back to boot animation
[Nexus 5 General] jd1639:
Press and hold power. Then shortly press vol up. That should get you into recovery
[Nexus 5 General] el_daYa:
OK I am about to blow my brains out. so I did the following, Went into bootloader -> restart bootloader -> Power Off -> Bootloader -> Recovery Mode

and then the android with a red exclamation sign appears, so I proceed press POWER + Volume UP . Screen goes black after a few seconds, it go back to initial boot, no recovery. What I am doing wrong? NEVER MIND I FIX IT. Thank you for all your help.
[Nexus 5 General] Furtiva:
Thank you!!!

Thank you so much!!! :o

I came by this thread after having installed CWM and unsuccessfully backed up my ROM, which made my storage space minimum :crying:

This worked perfectly on my Nexus 5, and solved my missing storage problem!!!

You are my hero!

Now a question...my phone is still updating the apps so I will probably answer my question briefly, but...is CWM Recovery still in my phone? And if so, how can I remove it completely or switch it for another flashing app.

I will not be touching my ROM, but I do want to play with some features so I think I still need a custom recovery to flash whatever I want...or do I??

Yes, I am a noob, but I get around :p

Thank you so much in advance!

(Answering my own question, just went and did a boot to recovery, and it is in stock...suppose I do not have to worry with that anymore...or do I??)
[Nexus 5 General] Primokorn:
If you have flashed recovery.img or used the flash-all script then you have the stock recovery now. With this stock recovery you can only flash zip files provided & signed by Google. If you want to flash custom rom, kernel... or make a nandroid backups then you must install a custom recovery.
[Nexus 5 General] Furtiva:
Thank you so much :)

Do you have any suggestions of a custom recovery app? I am thinking of trying TWRP... I don't think Flashify does custom recovery, does it?
[Nexus 5 General] jd1639:
Twrp is what you want to use. You can flash the twrp.img file in flashify. Google nexus 5 teamwin for the image file.
[Nexus 5 General] Furtiva:
It worked like a charm! Thank you so much for all your help!

:o ;)
[Nexus 5 General] zork10:
Thank you for this awesome tutorial.

I have one question. When i do what the tutorial says, is my phone still rooted?
[Nexus 5 General] Primokorn:
No
[Nexus 5 General] zork10:
Thanks for your short but powerful reaction:laugh:
[Nexus 5 General] Primokorn:
I could say 'as the title said': Unroot your Nexus 5 ;)
[Nexus 5 General] FoxyMegan:
unfinished tutorial

Hi,

So I decided to go back to android stock 5.1 from cyanogen, and I did it by doing it step by step as described in the first post of this tutorial, and everything went OK. Although, being stupid I didn't see the last couple of lines to write in the terminal so I missed those steps:

fastboot flash boot C:/image-hammerhead-krt16m/boot.img

fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img

fastboot erase cache

And I went straight away in recovery mode and wipe/reset data. So my phone booted now, it seems to be fine but what does it mean for me in the future, I won't have any recovery again? Because when I rebooted it from the recovery it said root is missing :/ and if so what should I do to get it back?

Thanks,

Hugo
[Nexus 5 General] jd1639:
You can go back and just flash those lines and you'll be fine. Because you didn't flash recovery.img it sounds like you still have a custom recovery. If you want root just flash supersu.zip in the custom recovery.
[Nexus 5 General] FoxyMegan:
red android

Hi,

So I did finish the lines but when I arrive on the red android logo and pressing volume up and down it doesn't work. So I can't access the recovery mode. Update I did the command fastboot erase cache and now it can't pass the boot screen logo (bootloop).

EDIT: I can't do anything with my phone now, it won't even start! Either press just the start button or volume up + volume down + power button !!

What should I do? I'm starting to freak out! Should I try to redo all the steps? by pluging it in my computer?

EDIT 2: it does work, but still blocked in the bootloop, and I can't access my recovery mode (when the little android appears and that I press volume up + power button nothing happens), so what should I do?
[Nexus 5 General] jd1639:
To access recovery press and hold power, then press and release vol up. Do a factory reset in recovery.
[Nexus 5 General] FoxyMegan:
recovery

OK, thanks I did manage to be in the android system recovery (and not the CWM like I had previously). So if I press wipe data/factory reset will it boot to Android lollipop or should I do first reflash another recovery?

EDIT: OK it is working now. Although what if I want to reroot it now, what should I do (reinstall CWM and SuperSU) ?

Thank you so much for your help so far,

Hugo
[Nexus 5 General] jd1639:
To re-root flash a custom recovery image file with fastboot. I recommend twrp as cwm isn't supported anymore.

fastboot flash recovery customrecovery.img

Then flash supersu in the custom recovery.

Google nexus 5 teamwin for twrp image files
[Nexus 5 General] FoxyMegan:
recovery

So I just have to put the TWRP image (twrp.img) in the adb-tools folder and then type the command: fastboot flash recovery customrecovery.img and it should work (even though it is android 5.1 and not 5.0) right?
[Nexus 5 General] jd1639:
Yes, use the correct name of the custom recovery.img. The name of the one you downloaded. Easiest to rename it recovery then flash recovery.img
[Nexus 5 General] FoxyMegan:
recovery

But why all the tutos I found online are for android 5.0, and not 5.1? Will it work if I do ?
[Nexus 5 General] jd1639:
I don't know what you found on line but this will work fine. 5.1 hasn't been out long. That's why you see everything for 5.0. Trust me, I've done this more than once.
[Nexus 5 General] FoxyMegan:
OK thanks again mate, although I just tried and when I went to recovery mode the red android appeared and then I pressed power button and volume up to access recovery and it was still the android recovery and not twrp?
[Nexus 5 General] jd1639:
Yeah, that can happen on 5.1. Do this

fastboot boot twrp.img This will boot the device into twrp

Flash(install) SuperSU.zip in twrp

Then boot to the bootloader and

fastboot flash recovery twrp.img

twrp.img is the name of your custom recovery image file
[Nexus 5 General] FoxyMegan:
recovery

Should I redo fastboot flash recovery twrp.img and then your lines or just yours straight?
[Nexus 5 General] jd1639:
Just staright
[Nexus 5 General] FoxyMegan:
It says waiting for device, I checked with adb devices and the telephone is present :/
[Nexus 5 General] smrdelj:
Hi, sory for this newbie question: i have my nexus 5 running with 5.0.1, and today i will install 5.1 following method 1. No problem with that, and ive done it before. But heres the question: i have franco kernel and twr installed on my n5, are they going to be "erased" when installing 5.1? Thanks!
[Nexus 5 General] jd1639:
Yes, they will be erased. You'll have to re-flash twrp and then flash your kernel in twrp.
[Nexus 5 General] Primokorn:
If you use the flash-all script then yes. You should flash a 5.1 boot.img anyway. However you can keep the TWRP recovery by manually flashing all img files except recovery.img or you can flash TWRP again after the factory imgs.
[Nexus 5 General] smrdelj:
Thank you both! Have a nice day
[Nexus 5 General] zagorteney:
[MENTION=4858937]jd1639[/MENTION], [MENTION=4958579]Primokorn[/MENTION] Dear Sirs!

Right now I flashed 5.1.0 (LMY47I) with method 2, without flashing userdata.img and recovery.img, but I've flashed cache.img end then erase it. Phone won't boot and I'm asking is it necessary to flash recovery too and did I make a mistake by flashing cache.img instead just erasing it?

Regards, Zagor

Edit: TWRP says: enable to mount a cache.
[Nexus 5 General] Primokorn:
Flashing the stock recovery is not necessary and you should erase cache only. Do it and see if your phone boots.
[Nexus 5 General] zagorteney:
Thanx on your answer. So, if you want to flash without wiping data, you must not flash a cache. Just erase it?

Edit. Oh god am I stupid. You probably must leave it completely untached?

Edit2: SOLVED! Just flashed bootloader, radio, system and boot. TWRP-clean dalvik+cache. Victory! :)
[Nexus 5 General] slixzen:
So, after following the instructions in post number two for maybe the third time... my phone still shows a usable storage space of 12 GB.

I have followed the commands exactly... what other option is there to get the "lost" space back?
[Nexus 5 General] jd1639:
Are your doing a clear cache and factory reset in the stock recovery?
[Nexus 5 General] slixzen:
When trying to boot into stock recovery, all I get is the red triangle android logo. This is after following this guide, having issues with force closings, then going to #nexus5 on freenode and asking for assistance there.

At this point, if I do a FDR via the Settings menu, the phone reboots and I get an "Erasing..." with an Android with moving ears. And it has been there for a while.
[Nexus 5 General] jd1639:
The "erasing" with the moving ears can the a long time. How long have you given it? I've heard of it taking over an hour.
[Nexus 5 General] salvorhardin80:
When you get the Android with the red triangle press power and volume up to go into the menu of the stock recovery and select Wipe data reset. One done reboot phone and should show your full amount of storage
[Nexus 5 General] chem20:
How can I flash factory image without wipe user data and remove custom recovery?

I use nexus root toolkit
[Nexus 5 General] Ben36:
1st throw that in the bin

2nd read the OP it tells you exactly how, just only flash bootloader, radio, boot and system img's

3rd what android version are you currently on? And what do you want to be on?

Sent via tapatalk from my cataclysm'd Lollipooop Nexus 5
[Nexus 5 General] Sheltiedad:
I just used this to get my phone back to stock (and went ahead and did 5.1 since my OTA was failing). The instructions in the original post worked perfectly for me.
[Nexus 5 General] zagorteney:
[MENTION=4346614]abaaaabbbb63[/MENTION]

Just to notice you. For everyone who is having problem when execute flash-all.bat and stuck on exctracting system.img: it's important to close some programs in background (for example Chrome and Outlook). It works for me and hope could help someone. If this was already resolved I appologies.
[Nexus 5 General] beekay201:
You talking about system.img failing to load when flashing factory images?

Take a look at http://xdaforums.com/showpost.php?p=59893306&postcount=135 , seems that it works
[Nexus 5 General] zagorteney:
Yes. But I figured that closing Chrome and Outlook work fine for me. Before, everytime I was flashing images, my Chrome stays open, because I was looking at tutorial on XDA :). And I'm using Outlook running in minimize mode on startup. I've tried this couple of times now and everytime just works. With any image.

Anyway, thanx on your link.
[Nexus 5 General] beekay201:
Hi,

Yes, I know Linux users should "know their stuff", but if flash-all.sh isn't at least 0707, it needs to be chmod'ed accordingly. Never should a bash script or file have +x by default (i.e. when you download it).
[Nexus 5 General] daun20:
Flash Cache after Update!

Hi Nexus 5 Users,

in OP (Method 2) there is mentioned to

fastboot erase cache

at the end of flashing factory images. If you do that, you will end in a bootloop when upgrading (with a factory reset) from kitkat to lollipop. it is important to flash the (empty) cache.img from the factory image, if you don' do that, you will get errors all the way, you can't even format cache in fastboot or recovery:

-- Wiping cache...
E:failed to mount /cache (Invalid argument)
Formatting /cache
E:failed to mount /cache (Invalid argument)
E:Can't mount /cache/recovery/log
E:Can't open /cache/recovery/log
E:failed to mount /cache (Invalid argument)
E:Can't mount /cache/recovery/last_log
E:Can't open /cache/recovery/last_log
E:failed to mount /cache (Invalid argument)
E:Can't mount /cache/recovery/last_install
E:Can't open /cache/recovery/last_install
E:failed to mount /cache (Invalid argument)
E:Can't mount /cache/recovery/last_kmsg
E:Can't open /cache/recovery/last_kmsg

Just one additional step is required:

fastboot flash cache cache.img

This problem is probably described in this thread at google's product forum https: //productforums.google.com/forum/#!category-topic/nexus/IIi9RFHYy_c (sorry, I'm a new user and can't post links) . If someone can confirm that matter it would be great to add this note to OP.

Happy Flashing Lollipop
[Nexus 5 General] drewlamo1:
zx

xz,

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

xx xx x CCC zs wx

,

x x,, x x

ex EX A. zxzzs

zs xz x

zzx

Z
[Nexus 5 General] Chappy_:
So i have done all this and tried it with the newest 5.1.0 using method 2 because method 1 failed, but I still am stuck in a bootloop, so i tried the 4.4.4 and it works phone boots up fine, until, google play crashes, camera crashes, more apps crash, and doesn't recognize my sim card, and then it asks me to update software, and i do installs fine but when starting it back up it goes back into bootloop.

I also got this message after i flash the phone

E:can t mount /cache/recovery/command

E:can t mount /cache/recovery/log

E:can t open /cache/recovery/command

E:can t mount /cache/recovery/last_log

E:can t open /cache/recovery/last_log

E:can t mount /cache/recovery/last_install

E:can t open /cache/recovery/last_install

I have no idea what to do now please help!!
[Nexus 5 General] daun20:
[MENTION=6592249]Chappy_[/MENTION]:

You could try my solution 2 posts above yours. Go into fastboot again and do a

fastboot flash cache cache.img

(the cache.img of the corresponding factory image has to be in the same directory)

I assume you know how to send fastboot-commands to your phone because you were using method 2.

Hope i could help you a little bit! ;)
[Nexus 5 General] AvgPhoneUser:
*facepalm*

Just use NRT. It's x50 times easier...

And fully automatic... No need to type any commands.
[Nexus 5 General] :
Perhaps he wants to learn something? ;)
[Nexus 5 General] Waxim1:
My device is D820 with stock 5.1 (no root and locked bootloader). I just want to downgrade it to stock kitkat. Can I follow Method 1 in first post to downgrade safely?
[Nexus 5 General] Primokorn:
Yes you can but you have to unlock your bootloader first. Backup your data!
[Nexus 5 General] awolbrin:
unable to flash system

I took a phone and unlocked it, next i tried to flash the new 5.1.1 (method 2)and this is what i get:

F:\android\hammerhead-lmy47i-factory-df127988\hammerhead-lmy47i>fastboot flash system system.img

target reported max download size of 1073741824 bytes

error: cannot load 'system.img'

i flashed twrp but i can't mount...

using windows 8 , 8GB ram, usb 3.0

please please help
[Nexus 5 General] Telyx:
Try a USB 2.0 port. USB 3.0 seems to have issues with fastboot.
[Nexus 5 General] awolbrin:
THANKS!!!

It should be written, can't work with USB 3.0 !!!!
[Nexus 5 General] Avishai1b:
Cant get to WIPE DATA part

after flashing the .bat file i pressed recovery on the phone,

there is a dead android but volume up + power button won't do anything. phone loads up and something feels wrong

(I skipped the wipe data part because cont reach there)

what should i do? (*I was starting this guide running stock rom, maybe thats the reason)

phone runs 5.1
[Nexus 5 General] jd1639:
Press and hold the power, then press and release the vol up. The timing of the press and release of the vol up can be tricky. Try vol down too
[Nexus 5 General] Conixcit:
Works like a charm !

Oh my god.... Finally I'm into Stock android. I Mean stock stock.... Pure, pure, shiny, little cute stock android.

Thank you buddy thanks a lot !

But the reason I needed to do this because I was trying to root my android 5.1 and you know what ? After 2 different way my whole android was deleted ! Can you believe that ? Now I'm back :highfive:

Dude, I still need a cool guide to root My android 5.1.

However this topic works like a charm dammit man thanks again. :victory:
[Nexus 5 General] Ropns:
Hi, so I found this thread via another thread that had the same issue as I had; my phone displayed that it only had 16gb (actually 12,55 but ya know) of usable storage after updating it to android 5.1, instead of the 32gb (~26) that it should show and did show before i updated. (Was just the OTA update; i didnt flash it)

Now the thing is, factory resetting didnt help, and I have no idea how to get into fastboot/adb to do the solutions that are listed in the 2nd post to fix this issue.

So... Could anyone explain it clearly, maybe with a short video tutorial? (Or just link one if one's already been made)
[Nexus 5 General] Winesnob:
This thread's first post describes step by step how to boot into the bootloader (fastboot) and how to get into recovery.
[Nexus 5 General] Primokorn:
You need:

• USB drivers: https://developer.android.com/sdk/win-usb.html

• ADB/Fastboot: http://xdaforums.com/google-nexus-5/general/noob-read-adb-fastboot-how-hep-t2807273

• To reboot into bootloader, use the following adb command: adb reboot bootloader.

OR

When your device is OFF, hold Vol down + Power during a few seconds.

After connecting your device to your PC, use the command fastboot devices to check if your device is recognized.

FYI useful links: http://xdaforums.com/google-nexus-5/general/resource-guides-info-threads-linked-read-t2784527
[Nexus 5 General] Ropns:
Yessssss this worked, thank you so much ^^
[Nexus 5 General] deepak21:
Very helpful and easy guide... Thank you.
[Nexus 5 General] saenaedewe:
Thanks man for this very helpful guide
[Nexus 5 General] vinitvin1:
Even i need to flash the system.img but unable to do so.Which rom did u flash? Can you post the link please. I need to return to stock ASAP.

Please help
[Nexus 5 General] vaindil:
Are you trying to return to stock 5.1.0 or 5.1.1? Assuming you are in fact trying to return to 100% stock, use the appropriate [factory image](https://developers.google.com/android/nexus/images) for either 5.1.0 or 5.1.1 (Nexus 5 is codenamed hammerhead), then follow the instructions in the OP. If you're having an issue, post the exact error message that you receive or more information about what's happening. (By the way, there's only ONE ROM that you can flash if you're returning to stock, and that's the official ROM from the Nexus factory images page that I linked to. There are different versions of the ROM, yes, but that is the ONLY one to even consider if you're going back to 100% stock.)
[Nexus 5 General] Nnyan:
Does it matter if the process (#1) goes well but at the end after it's done your phone reboots by itself? Never did get a chance to select recovery and do a wipe/factory reset. After a long boot up it started in the new phone "welcome" screen.
[Nexus 5 General] jd1639:
Then you're good to go. If you have a 32 gb phone check to make sure you have that available on your device, it should be something closer to 28 gb. If it's closer to 16 gb then go back and do a factory reset.