yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] A1ps:
Thanks again. I think I'm slowly getting there with this Android stuff :)

Now to get on the case of learning how to Unroot and re-lock Bootloader in preparation for 4.4.3.
[Nexus 5 General] vin4yak:
You can learn that by following this thread! http://xdaforums.com/google-nexus-5/general/tutorial-how-to-flash-factory-image-t2513701

It's good to see people taking small steps in learning things before screwing up their devices! :)
[Nexus 5 General] jd1639:
As long as you haven't changed any system files you will get the ota. You don't need to unroot, you will lose root, however, when you take the ota. And I would not lock the bootloader. Just an fyi

Sent from my Nexus 5
[Nexus 5 General] A1ps:
Currently I am Rooted and Unlocked Bootloader. But still have Stock ROM. The only additions are Xposed with Gravity Box and GEL Settings.

So in this case, if I do an OTA update I'll automatically lose the Root but retain Unlocked Bootloader, which is OK?
[Nexus 5 General] jd1639:
Yes, except, you will have to remove xposed to get the ota.

Sent from my Nexus 5
[Nexus 5 General] A1ps:
That's a relief.

Then it's just a matter of surviving the stress and panic of re-Rooting :eek:
[Nexus 5 General] BATZ DA LOCC:
So this method is solid

N5⅝ to DA 6 aka IPHONE KILLA
[Nexus 5 General] wojwal:
Hi...

I just got my Nexus5. I've rooted it with Chainfire CF-Auto-Root. But from what I understand it's using methods explained here. I would like to keep OTA which means I can't install custom-recovery.

Before installing Xposed I would like to make Nandroid backup - but it requires custom-recovery. I found an info that instead od flashing CR I could boot it via:

fastboot boot recovery.img

Will this work on my Nexus? I prefer to ask instead of just trying stuff I dont fully understand. So I would like to keep stock recovery and boot once to custom one only to make backup. I guess CWM or TWRP doesnt make any diffrence here?
[Nexus 5 General] jd1639:
Yes that will work. Just get twrp or cwm recovery image

Sent from my SAMSUNG-SGH-I727
[Nexus 5 General] wojwal:
One more question. The CF-Auto-Root from Chainfire contains fastboot-windows.exe with 2 dlls AdbWinApi.dll and AdbUsbApi.dll. I've used Universal Naked driver for my Win8 system.

That fastboot-windows.exe is the same as the one from full Android SDK explained here? Is it safe to use for the purpose I explained?

In root-windows.bat from CF-Auto-Root I see similar commands like: "fastboot-windows.exe oem unlock"
[Nexus 5 General] jd1639:
I think it's the same and I'm sure it would work for booting into a recovery

Sent from my Nexus 5
[Nexus 5 General] stylorun:
Amazing I uses this and had a Rom installed in 20 mins
[Nexus 5 General] BATZ DA LOCC:
Aight I'm rooted how do I install a custom kernel an initd
[Nexus 5 General] jd1639:
You flash kernels in a custom recovery

Sent from my Nexus 5
[Nexus 5 General] BATZ DA LOCC:
What's the correct kernel for validus
[Nexus 5 General] jd1639:
Validus? What's that? Only flash roms and kernel specifically for the n5

Sent from my Nexus 5
[Nexus 5 General] BirchBarlow:
That would work, but there isn't really much point to doing it. Anything that changes system files i.e. Xposed will break OTA anyway.
[Nexus 5 General] BATZ DA LOCC:
It is for the n5 do u chekc the threats at all bro I tried uber it wouldn't boot I've read a lil into caf but I'm confused coming from a Hercules
[Nexus 5 General] jd1639:
no problem. I'm coming from a skyrocket if it's a caf based rom, use a caf based kernel

Sent from my Nexus 5
[Nexus 5 General] BATZ DA LOCC:
Nah there's a zip that allows u too flash anything
[Nexus 5 General] jd1639:
What do you mean, flash anything? You're a brick waiting to happen. You can't flash anything you want. It had to be for the n5

Sent from my Nexus 5
[Nexus 5 General] BATZ DA LOCC:
Umm?duuuuh not a rookie bro completely
[Nexus 5 General] wojwal:
Hi.. But from what I read in few places is that by "Uninstalling Framework" via Xposed installer (not uninstalling installer itself) it will restore original files in system and basically allow using OTA again. Guys - could you confirm this? Thanks
[Nexus 5 General] DrErect:
Hello everyone, so yesterday night I decided to root my N5. Using the CF method. Unlocked the bootloader but it did not root my phone. I waited for the red android for about 10 minutes or so, but it did not appear nor did the phone booted by itself. So I rebooted my phone myself and I signed in to Google, the WiFi all that. Finally when I looked for super user su in the apps it wasn't there. Decided go download root checker and failed to verify root access. So what should I do now? Retry this method again?
[Nexus 5 General] jd1639:
Download supersu from the play store and click on it and let it update the binaries. If that doesn't work then re-root

Sent from my Nexus 5
[Nexus 5 General] DrErect:
No SU binary installed, I only have the bootloader unlocked. No root access.
[Nexus 5 General] Chromium:
Then use this method instead of CF auto root. You can start at the Installing a Custom Recovery part since your bootloader is already unlocked.
[Nexus 5 General] DrErect:
Thanks but I went through the same process and i my device is now rooted. Cheers ?
[Nexus 5 General] meisterjohnny:
Help with Step 2: Installing a custom recovery

Dear Chromium/other members,

I followed Step 1 religiously for my Nexus 5.

However Step 2 stumps me.

Turn the phone off. Then boot it into the bootloader/fastboot mode by holding volume down + power.

OK

Rename the recovery file that you downloaded above to recovery.img. *Make sure that you rename it to recovery.img NOT recovery.img.img*

I downloaded Clockworkmod's file from the post link (Zip File named superuser.zip) and renamed it to recovery.img

Remember that you should place the file in the platform-tools folder inside of the android-sdk-windows folder on your desktop.

Open command prompt and run the following commands:[\I]

Done...

Ran the commands

The command prompt said sending 'recovery' <4538 KB>

OKAY [0.348s]

writing 'recovery'...

FAILED <remote: image is not a boot image>

finished. total time 0.529s

Could you help me please? Thanks!
[Nexus 5 General] vin4yak:
[MENTION=5829988]meisterjohnny[/MENTION]

The zip you have downloaded is supersu zip which needs to be flashed after a custom recovery is installed to gain root access ..

You need to download cwm/philz/twrp recovery and extract the img if it's zipped and then you need to flash the .img file using fastboot..

After flashing the recovery, reboot bootloader and ahead over to recovery and then flash the supersu zip..

Edit: here's the thread for downloading PhilzTouch recovery (based on cwm): http://xdaforums.com/showthread.php?t=2565174

- Sent from an IceCold Hammerhead!
[Nexus 5 General] wolfdemon268:
quick question

Is root required for recovery to stick, also is there a way to still get OTA updates with root, because i would like to dual boot ubuntu touch and it requires root, but i still want updates for android
[Nexus 5 General] jd1639:
Root is not required for the recovery. And you will get the ota of you're rooted but you'll lose root when you take the ota

Edit, I'm not sure how you're dual booting ubuntu but I'm guessing that will cause a problem getting the ota.

Sent from my Nexus 5
[Nexus 5 General] wolfdemon268:
Im gonna follow a guide that uses multirom for nexus 5
[Nexus 5 General] jd1639:
Just follow this and you'll be golden

http://xdaforums.com/showthread.php?p=47369234

Sent from my SAMSUNG-SGH-I727
[Nexus 5 General] meisterjohnny:
Thanks - could be clearer

Thanks for your help.

It needed some interpretation of what you meant, because I'm a noob and function on step-by-step directive.

I went back to the website http://www.clockworkmod.com/rommanager, Downloaded Google Nexus 5 -> column of download recovery -> "6.0.4.5". Step 2 worked!

Realized that I had downloaded the "Superuser by ClockworkMod -> root done right" by mistake (the OP could be slightly clearer but great job nonetheless)

Every root is different, I've rooted the HTC Desire, Galaxy S2, and finally Nexus 5, and still consider myself a rooting noob :good:

---------- Post added at 12:53 PM ---------- Previous post was at 12:22 PM ----------

Hi there, I installed CWM 6.0.4.5 recovery and finally completed Step 2.

Step 3: adb push UPDATE-SuperSU-vX.XX.zip /sdcard/ did NOT work for me, it said "device not found"

I want to try your method but when I windows-explorer my phone, it says "Nexus 5/Internal Storage" and I can't access the /sdcard/download folder.

So I just put the file UPDATE-SuperSU-vX.XX.zip into "Nexus 5/Internal Storage/Download"

Worse still, CWM recovery option doesnt have option to access internal storage, only /sdcard. What should I do please?
[Nexus 5 General] olivierg13:
Nice tutorial to unlock the N5 bootloader!

Thank you very much.

Cheers

Olivier
[Nexus 5 General] vin4yak:
"Device Not found" means you haven't installed the drivers correctly on your computer... Does "adb devices" return any value on the cmd window?

Easy way out of this would be to download the SuperSu,zip on your mobile instead of transferring it to your mobile via PC... Or if you have USB OTG then you can directly flash the zip via a flash drive... But I think you will need Philz touch for that.. No idea whether normal CWM has that feature or not..
[Nexus 5 General] Selmervi:
I'm following this guide and ive gotten to the phone reboot part which is after "fastboot reboot". It has been stuck on the android logo for 10 minutes. What should i do?
[Nexus 5 General] Chromium:
Wait a few more minutes. If you are sure that its still stuck, hold power for about 10 seconds to force a reboot.
[Nexus 5 General] Selmervi:
Got to the part about recovery. Right up to there and now i have an android lying on his back with a red ! mark
[Nexus 5 General] Chromium:
Recovery didnt flash successfully. Retry "step 2. Installing a Custom Recovery" again.
[Nexus 5 General] Selmervi:
Ok done. Ty. Because I'm so new to this, I'm going to need good instructions on how to flash a ROM. So far I'm not getting it.
[Nexus 5 General] Chromium:
Instructions for flashing a rom are in the OP: section "3. Rooting", "Option B)"
[Nexus 5 General] jball:
Just take it slow and read till your eyes dry out .be careful
[Nexus 5 General] Selmervi:
Yeah i will keep reading over and over. Just need the process of how to flash it.
[Nexus 5 General] jball:
All ROM threads will have there spoiler sections and installation instructions per ROM. Happy flashing
[Nexus 5 General] Selmervi:
Got it finished. All in all it was fun. Ty for the help. I ended upgoing with CyangenMod.
[Nexus 5 General] Ryanrioz:
Hmm what custom recovery did u using n still failed?

n check your files got any errors..:)

Send my signature phone via XDA-Premium with bad grammars
[Nexus 5 General] Schoat333:
Anyone have the stock recover image? I want to be able to flash back to stock recovery after root. That way I can still take OTA updates.
[Nexus 5 General] :
Hi,

Just among the sticky's where you posted: http://xdaforums.com/google-nexus-5...-to-flash-factory-image-t2513701/post47156064...

And some reading: http://xdaforums.com/google-nexus-5/general/info-nexus-5-ota-help-desk-t2523217.
[Nexus 5 General] Petrovski80:
Thanks for the guide. Rooting the Nexus 5 is what I imagined it would be, but it's good to read confirmation here.
[Nexus 5 General] JaxDomino:
YES!!!!
[Nexus 5 General] thegtfusion:
thanks for confirming :D
[Nexus 5 General] abaaaabbbb63:
http://xdaforums.com/showthread.php?t=2513701

I made this for you :*
[Nexus 5 General] JaxDomino:
OK, new USB cable, different ports, uninstall and reinstall drivers, nothing. Should it say Secure Boot: enabled above Bootloader unlocked?
[Nexus 5 General] bleuiko:
Try a USB 2.0 port (not blue), if you have one available. On my computer, the USB 3 ports would not play nicely.
[Nexus 5 General] JaxDomino:
Yeah, these are 2.0 ports. I'm going to try it on my MacBook Pro instead of my Lenovo Desktop.

---------- Post added at 02:54 PM ---------- Previous post was at 02:46 PM ----------

Here is what I am getting in Terminal as well as what I got in Command Prompt on Windows. But still no luck. Could I relock the bootloader and start over from scratch or do I have to go through the entire process to bring it back to OEM status?

$ fastboot flash recovery recovery.img

sending 'recovery' (11668 KB)...

OKAY [ 0.573s]

writing 'recovery'...

OKAY [ 0.947s]

finished. total time: 1.520s

$ fastboot reboot

rebooting...

finished. total time: 0.001s
[Nexus 5 General] gotoman00:
can someone post a mirror link to openrecovery-twrp-2.6.3.1-hammerhead.img

trying to download from link and the download timer just keeps repeating over and over :(
[Nexus 5 General] Chromium:
Try flashing the stock images (will restore the phone to how it first was) and restarting the whole process.

http://www.mediafire.com/?kxm559d69fmillt
[Nexus 5 General] mayzei:
No dead kittens!

Initially had the little red triangle android graphic when trying to boot into recovery, however on a second attempt using a different USB port and the cable that came shipped with the phone, everything is successful!

Thanks for helping me save a kitten! /proud
[Nexus 5 General] MephHD2:
Thanks - Excellent clear guide.
[Nexus 5 General] Chromium:
Thanks to PlayfulGod we now have a fully functioning CWM build for the nexus 5. Ive added the download link to the OP and removed all of the "do not install cwm" warnings. Ive also added some troubleshooting/faq stuff to the second post.
[Nexus 5 General] dcsworld:
i just had the same

i am using the cable that came with the phone, it finially worked after trying a 3rd USB port (USB2.0)

On the time it worked, straight after executing the "fastboot flash recovery recovery.img" command, i chose Restart bootloader, and then chose recovery mode when it came back. Proceeded to flash Super SU and all is working fine now. Thanks Chromium! :good:
[Nexus 5 General] kptnk:
Thanks for your guide, very well done !

But, for some reason iwas able to unlock the bootloader, fastboot works fine (shows device when typing "fastboot devices") but i can't manage to fastboot flash the recovery ; each time i got the message : "error : cannot open "recovery.img"....

What am i missing ?
[Nexus 5 General] Chromium:
Try this:

Type in "fastboot flash recovery reco" *press tab* it should autocomplete the file name, then hit enter.
[Nexus 5 General] kptnk:
it gives me "error cannot open "reco"

I haven't created a Nexus file, i opened cmd directly from the platfomr tool folder, but that shouldn't be problem, since fastboot works...?
[Nexus 5 General] Chromium:
Did you put the recovery.img inside of the platform-tools folder?
[Nexus 5 General] kptnk:
Yes of ourse.

I got it to work by NOT renaming the recovery file, copied the exact name, and fastboot flashed + paster the name recovery file + .img...and it worked ! :)

somehow renaming the file was the problem...couldn't tell why, as i tried several times...

Anyway, thanks a lot for your help ! :good:
[Nexus 5 General] Chromium:
Maybe you accidentally renamed it to recovery.img.img ?

Anyways, glad you got it sorted.
[Nexus 5 General] :
Worked perfectly for me. Thanks for the steps!
[Nexus 5 General] Schoat333:
I'm not looking to download an entire factory image, Just wanted to know if anyone had the factory recovery.img saved with a quick download link. Clearly not, so I will just attempt to pull it from the device myself before I flash custom recovery.
[Nexus 5 General] vin4yak:
Here you go: http://d-h.st/yd9
[Nexus 5 General] cnewlol:
zip file

Hi guys, I got to point number 3 but I didn't realise you were meant to put the zip file into the platform tools, and instead i put the extracted file.

Now it won't let me install from SD card

has anyone got a way to sort this? Thanks in advance
[Nexus 5 General] Chromium:
Put the SuperSU zip inside the platform tools folder and push it using adb, just like how I explained in the OP.
[Nexus 5 General] cnewlol:
Sorry I should have mentioned that when I try to do that now it comes up with "error: device not found"
[Nexus 5 General] Chromium:
Boot the phone up normally into android, then open the browser on the phone, navigate to the supersu link in the OP, and download the file.

Then go back into recovery and flash it.
[Nexus 5 General] cnewlol:
worked, cheers mate
[Nexus 5 General] joannn:
No, we will not able to get OTA then.
[Nexus 5 General] jd1639:
I have successfully taken previous ota rooted with a custom recovery. You will lose root and the custom recovery. You'll need to use fastboot to put your recovery back on.

It will not work if you've modified system files or with xposed.

Sent from my SAMSUNG-SGH-I727
[Nexus 5 General] amit@:
Good post
[Nexus 5 General] Dougefresh91:
Is this phone pretty hard to brick? I ruined an LG F6 last week just trying to root, so I'm kinda sketched out on LG at the moment. My Galaxy S was seemingly unbrickable and I'm hoping this Nexus phone is the same.
[Nexus 5 General] jd1639:
This is pretty hard to brick. Just read the pinned threads in general forum and you'll be OK. Only flash n5 roms and kernels
[Nexus 5 General] Dougefresh91:
Will do, thanks. Everything I've read thus far indicates that this phone is hard to brick. Just trying to be a bit more cautious since it cost me 4x more than the last phone.
[Nexus 5 General] iamsuper123:
Questions:

1) In the tutorial, it is mentioned to save the "recovery.img" - what file is being mentioned here ?

2) I want to install Paranoid Android, which Clockwork to download from here??? ---> HERE

3) In step # 3, installing the customer ROM (option B), it is mentioned to Copy a custom rom - But when the phone is connected to computer and Nexus 5 being no SD card support. how I will download the custom rom file on the phone's memory ? Do I need to disconnect after custom recovery ? how phone will be after custom recovery ?

4) If I am installing custom ROM "Paranoid Android" - I don't need SuperSU.zip file ?

5) In these steps of tutorial, where we are taking a backup / image of current stock OS just so that while installing custom ROM, if anything goes wrong, we can go back ?
[Nexus 5 General] Chromium:
1. The custom recovery file that is under the "Downloads" header

2. Not sure what you mean. You dont need to download anything from that link.

3. After you install the custom recovery, reboot back into android. Then the phone should popup on your computer (MTP mode), and from there you can copy the rom to the phone.

4. No, PA already comes with root.

5. Yes, if something goes wrong you can download the factory images provided by Google and flash them (there's a guide for this stickied in the general n5 section).
[Nexus 5 General] iamsuper123:
Just to clarify, you mean out of 2 options mentioned in the guide: TeamWin Recovery Project (TWRP) or ClockworkMod (CWM)

Only TWRP works ? I should not use CWM ?

In this case, is this file ok to use --> http://techerrata.com/file/twrp2/hammerhead/openrecovery-twrp-2.6.3.0-hammerhead.img
[Nexus 5 General] vin4yak:
Why not use the latest one? http://techerrata.com/file/twrp2/hammerhead/openrecovery-twrp-2.7.0.0-hammerhead.img
[Nexus 5 General] iamsuper123:
So, I am following the guide and done with step 2. After I installed TWRP . I rebooted into Android.

For going to step 3 (for installing ROM), I just turned off my phone and now I can't start ? should I wait ? it takes time ?

Update: Phone is ON now. I guess it took a little longer than usual and screen was blank.
[Nexus 5 General] jd1639:
Hold the power button for 20 seconds and try again
[Nexus 5 General] iamsuper123:
Everything works out fine - thank you for the quick reply.

Also, thank you to the author of the guide, steps were very clear and easy. I successfully rooted the phone with custom ROM (paranoid android).
[Nexus 5 General] Chromium:
Both twrp and cwm currently work. That old post of mine was from when the n5 was just released and cwm was not working at the time, but that is no longer the case.
[Nexus 5 General] prairie-dad:
Hey, [MENTION=4883664]Chromium[/MENTION], won't Philz work as well? I use it now with great success, though I did start with vanilla cwm, as you suggested in the OP.

But could I not have used Philz right from the beginning?
[Nexus 5 General] vin4yak:
Yes, you could've! ;)
[Nexus 5 General] dwasifar:
Quick and easy success using this guide. Coming in from the HTC Rezound, where S-off and recovery involve requesting an unlock .bin file from the manufacturer and shorting terminals inside the back cover with a piece of wire, the Nexus is a piece of cake. Had the whole thing done in about six minutes.

Keeping the stock rom for now, just to give it a chance. But AdAway and Xposed went on there right away.

Thanks to Chromium. :)

p.s. - Linux users, be root when you do it.
[Nexus 5 General] dlsygaco:
The sdk manager is just open then close on my windows xp sp2.. Are there any requirements before i run this program? Im kinda new to this
[Nexus 5 General] Chromium:
Try using the slimmed version of the sdk (provided in the OP) instead.
[Nexus 5 General] devynbf:
Thanks so much for this guide.

I've recently switched over from Samsung devices over to the Nexus 5, and I'm really loving this device!

This guide was the cherry in top, thanks again!!
[Nexus 5 General] magik300:
Hi Gyus!

In preparation for unlocking bootloader and rooting I decided to factory reset my phone from setting menu. So I haven't really even got to step 1 of this guide. Basicly my phone is erasing for last 15 minutes , is this normal ( i had over 24 GB data on it) and I was on art runtime - not sure if that matters.

Thanks for any reply
[Nexus 5 General] Primokorn:
Yes it can take 45min without a custom recovery.
[Nexus 5 General] magik300:
Thanks mate for calming me down , I was worried that I bricked my phone by doing nothing special

edit: it took that looong,

all done, brilliant guide, clear and simple instructions

thanks
[Nexus 5 General] devynbf:
Awesome guide, super helpful and easy to follow.

Thank you so much for this.

Even a new Nexus 5 user like myself had absolutely no problems with this.
[Nexus 5 General] DUCU 2000:
The guide works lol thanks
[Nexus 5 General] fred2346:
Tank you

Gesendet von meinem Nexus 7 mit Tapatalk
[Nexus 5 General] Waalban:
I have some questions before following your OP.

Q1: Fastboot devices returns the n5 serial#, but adb backup -apk -shared -f backupn5.ab gives "Can't connet device".

Can I continue?

Q2: Unlocking bootloader will wipe everything. How can you still boot into Android!!!

Thanks for clearing up my questions.
[Nexus 5 General] Chromium:
A1. Your adb command didn't work because your phone was in fastboot mode. Remember: adb commands will only work while the phone is booted into android or while in a custom recovery, and fastboot commands only work while phone is in fastboot mode.

A2. Sorry I should rephrase that. Unlocking the bootloader will wrote everything other than the operating system it self. (Basically all personal user data is deleted).
[Nexus 5 General] Waalban:
Oke it will erase all user apps, data and reset to factory settings.

Thanks for the clear answer and knowing what to backup.
[Nexus 5 General] CrockCity:
It may be worth it to note that when you copy a rom to the phone, you cannot copy it to the root directory of the phone and flash it successfully.

For example, I used

adb push ~/Downloads/Nexus5Root/omni-4.4.2-20140515-hammerhead-NIGHTLY.zip /romz/

When I tried to flash the rom, it said it couldn't find the partition. Moving the file using a file manager into the sdcard directory solved the problem.
[Nexus 5 General] anthonyly:
i've done this about 5 times now all successful so thank you very much, but with my new rma i received today i end up not being able to mount anything after recovery is installed...