yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] Waggles:
[MENTION=4883664]Chromium_[/MENTION] Thank you for the guide, was able to successfully get unlocked bootloader, CWM, and root. However, I have a little feedback for you: in step 3A using CWM I was not able to locate the SuperSU zip in /sdcard/ after using the adb push command. I was able to use the install zip from sideload command in CWM, and then in command prompt, use the command adb sideload UPDATE-SuperSU-v1.69.zip

and that worked just dandy.
[Nexus 5 General] MrGriffdude:
Hi so i flash twrp in adb but when i try to reboot into recovery i just get the google splash screen
[Nexus 5 General] jd1639:
Did you fastboot flash recovery recovery.img. where recovery.img is the twrp image
[Nexus 5 General] MrGriffdude:
in my adb fastboot folder

and yes i did
[Nexus 5 General] jd1639:
Sounds like the image didn't take. Get the twrp 2.6.3.4 image and try it again. It should boot into recovery without any problems
[Nexus 5 General] MrGriffdude:
see i thought the same thing and i re downloaded and that didnt work then i tried cwm and that didnt work either
[Nexus 5 General] jd1639:
If you type fastboot devices. Is your device recognized?
[Nexus 5 General] MrGriffdude:
Yeah my device is recognized it even boots up just fine

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

Also my splash screen is now missing.... great
[Nexus 5 General] jd1639:
I'm not sure what the problem is, as crazyd would say, your doing something wrong. It worked fine for me when I flashed the recovery. I didn't flash the recovery files from the op though. I got got them from the source which might be where the op links, idk

Edit, checked the link for twrp and it is where I got mine.
[Nexus 5 General] MrGriffdude:
Yeah I know its my issue because I just flashed cwm via ROM manager and now I have cwm I'm just really confused as to what the issue is

Did you get twrp directly from their website?
[Nexus 5 General] jd1639:
Weird, at least you have a recovery now.
[Nexus 5 General] MrGriffdude:
I know maybe incomplete drivers lol anyways now I need to find an in recovery flash able twrp haha
[Nexus 5 General] jd1639:
Here's 2.6.3.2 I'm on my phone or I'd give you 2.6.3.4. http://xdaforums.com/showthread.php?p=47522761
[Nexus 5 General] MrGriffdude:
It's all good I used flashify to get to the latest build
[Nexus 5 General] obi1jabroni:
Hello All,

I'm on step 3A and when I enter the code:

adb push UPDATE-SuperSU-v1.69.zip /sdcard/

I get the following "error: device not found"

I have TWRP 1.6.3.4 installed and can boot into recovery fine.

For the step 3A, I tried it with the usb connected, powering off, booting into recovery mode.

And then I tried it, w/o usb connected, power off, booting into recovery mode, and then plugging the usb back in

Any ideas? thanks
[Nexus 5 General] Chromium:
Try booting up into android and running the command from there.

Sent using xda-developers app
[Nexus 5 General] vermaekansh:
Booting up into android means booting into bootloader mode (volume down + power) correct me if I am wrong.
[Nexus 5 General] Chromium:
No, that would be booting into the bootloader. Booting up android simply means to let the phone turn on normally and let it go into the operating system.

Sent using xda-developers app
[Nexus 5 General] Primokorn:
Booting up to Android means to your homescreen (OS). The bootloader allows to run the OS.
[Nexus 5 General] vermaekansh:
Thanks, waiting for my N5 to arrive and gonna root it, and as you said will save a kitten.

Thanks mate.
[Nexus 5 General] Piero88:
Sorry for the noob question but, why should we unlock the bootloader?
[Nexus 5 General] jonup:
The bolded "platform" should read "windows"

Not being picky just wanna make sure we avoid confusion. Thanks for putting out such a detailed guide! Apologize if it has been mentioned already. let me know and I will delete the post.
[Nexus 5 General] jd1639:
If you ever want to root the device you'll need it unlocked. And when you unlock it it will wipe the device. Do the first thing I did was unlocked it so I wouldn't lose everything after I set it up.
[Nexus 5 General] jonup:
It is all in the OP. In short it gives you write access to the internal storage, so you can flash custom recovery, which in turn is needed to root the phone.
[Nexus 5 General] slykrysis:
I've followed every step accordingly and I cannot get the "fastboot devices" step to show my serial number properly. I've tried all driver options, but it appears as though Windows 8 x64 is not playing nice with them. Has anyone been successful with this running Windows 8 x64?
[Nexus 5 General] jonup:
Just FYI. There is an app out there that will allow you to lock/unlock the bootloader once the device is rooted. But are correct, you need to wipe everything the first time so you can root the phone.
[Nexus 5 General] jd1639:
Yep, it's boot unlocker.
[Nexus 5 General] bobby janow:
Re: adb commands from within recovery.

So I did see it under adb devices when booted but not in recovery. Device manager shows the driver as not installed or unavailable when in recovery and I can't find an applicable driver. I do like to issue adb commands in recovery so I would like to get this working. Are there any drivers available for Nexus 5 in recovery? Fastboot is fine.
[Nexus 5 General] Chromium:
Its likely an issue with the recovery itself rather than your drivers.

Sent using xda-developers app
[Nexus 5 General] bobby janow:
I got it from the link on the OP. Playful Gods I believe, CWM touch.

Edit: Just plugged it into my Win 7 machine and it recognizes recovery. So it's the drivers on Windows 8.1 that is causing the problem.

Edit 2: Ok finally got it. In recovery you need to install the drivers but they are unsigned and will not install normally. Windows 8 is different than 8.1 so here is the way to get to the "allow unsigned drivers" option in 8.1

http://revryl.com/2013/08/06/install-unsigned-drivers/

Then I just clicked on the universal naked driver in device manager update driver and it installed. ADB in recovery is now working.
[Nexus 5 General] jwhyte:
Nice write up easy to follow do it yourself! In case it hasn't been mentioned you can root from twrp without pushing supersu.
[Nexus 5 General] Dr.Strangelove.:
Not sure where I went wrong on this one.

Unlocked the bootloader, installed cwm, as soon as I installed it and went into recovery a whole list came up saying missing cache and stuff like that. I clicked reboot and it asked me if I wanted to root. I said no because I didn't put SU on my phone yet. Went to reboot and all that shows are the 4 google colours coming into a circle. This doesn't stop. I can get to the bootmenu and access recovery, however I cannot get past there. I was trying to restore to stock using google's hammerhead factory image but for whatever reason on my chrome I keep getting a Failed - Network error on it. Tried on Firefox and gets about 60% through before it gets an error. Tried on another computer and it won't download either. I don't really know what to do now as I can't seem to get the factory image downloaded to return to stock and I am stuck. Any help would be much appreciated.

Thanks.
[Nexus 5 General] rldstover48:
Need input

Hello if I followed the procedure for cf-auto-root, and that all went well if I want to continue and install a custom recovery do I just pick up where I left off and proceed with step 2 or do I need to undo anything I've already done as far as SU is concerned.

Just thinking of being prepared there's some nice roms coming along that I think I'd like to try seeing as the stock one has a couple things that are a bit iffy.

Thanks ahead as always
[Nexus 5 General] Chromium:
Which cwm did you flash? Try PlayfulGod's build if you havent already. Ive found it much more stable than the official cwm builds. Also try going into recovery and choose wipe data/factory reset , wipe cache partition then reboot.

Yeah, just start with step 2.
[Nexus 5 General] Dr.Strangelove.:
I installed the cwm that was posted in the op. I did the steps you recommended, but they didn't work. Should I try installing the other custom recovery to overwrite the cwm or do I have to somehow uninstall it?

Thanks for the reply.

---------- Post added at 02:45 AM ---------- Previous post was at 02:44 AM ----------

I installed the cwm that was posted in the op. I did the steps you recommended, but they didn't work. Should I try installing the other custom recovery to overwrite the cwm or do I have to somehow uninstall it?

Thanks for the reply.
[Nexus 5 General] jd1639:
You can flash on to of it. No need to uninstall
[Nexus 5 General] phezz:
I had this problem too.

I realised that when I unlocked the bootloader, and everything was wiped, this included the USB settings.

So I just needed to the turn on the USB settings on the phone again, and it worked.

A quick test was "adb devices" as that will show you the connected phone etc.

Hope this helps.
[Nexus 5 General] mattos96:
good job
[Nexus 5 General] gwolfu:
thank you for the info
[Nexus 5 General] obi1jabroni:
Fixed the problem:

"Hello All,

I'm on step 3A and when I enter the code:

adb push UPDATE-SuperSU-v1.69.zip /sdcard/

I get the following "error: device not found"

Not entirely sure what worked but I entered with a space between the p and the /

and also tried with a space again. The cmd found the device using both and I Booted up reg Android again and it told me to install SU.

Thanks for the guide, Chromium. Pretty easy to use and sort of understand :D, even for non-dev folks.
[Nexus 5 General] 20mark:
nexus 5 unlocked n' rooted. easy as 1,2,3. I prefere the "hard" way rather than use toolkits as i want to know exactly what i'm doing. thanks for this precious guide.
[Nexus 5 General] Prog_Drummer:
Thanks for the guide.

Unfortunately I'm having the error other people are having when trying to install twrp or cwm.

"error: cannot open 'recovery.img'"

I have checked that I have only named recovery.img and not recovery.img.img
[Nexus 5 General] Kortxero:
Are you sure your path is correct? In case of doubt, just hold the SHIFT key and right-click in the "platform-tools" folder to open the prompt to run your command.
[Nexus 5 General] Voulterx:
Me too :/ I think i have burned nand bootloop problems...
[Nexus 5 General] jd1639:
Most likely it's an issue with the path to revovery.img. do you have the file in the same folder as your fastboot?
[Nexus 5 General] Prog_Drummer:
Yep
[Nexus 5 General] jd1639:
I'd download the image file again and make sure the md5 checks, could be a bad download
[Nexus 5 General] Prog_Drummer:
Just checked and got a different md5.

Will re-download and try again...

Edit: Just tried again and now works fine. Thanks for the help!
[Nexus 5 General] jd1639:
Np, get in the habit of checking md5. You'd be surprised at how often downloads are bad.
[Nexus 5 General] killajoe:
to obtain root just flash it instead of ADB PUSH. way easier and way faster. works both CWM ad TWRP
[Nexus 5 General] Chromium:
What do you mean? Adb push isnt for obtaining root. Its for copying the root binary flashable zip onto the phone, so that you can then flash it.
[Nexus 5 General] jball:
If you have a custom recovery than you can download the supersu zip using your phone then boot to recovery manually without the use of a computer and flash it ."killajoe" did say instead of
[Nexus 5 General] ethan3686:
Do i need to unlock The bootloader to root and install custom recovery..Or can i do it with a locked bootloader too?
[Nexus 5 General] Primokorn:
You need to unlock the BL first.
[Nexus 5 General] colander:
great guide, thank you

it took me about 10 minutes
[Nexus 5 General] eviled23:
an error

i'm getting an error when im trying to flash the recovery.img please help
[Nexus 5 General] Primokorn:
Did u already unlock the BL?

Which command did you use?

... We need more explanation :)
[Nexus 5 General] eviled23:
fixed

It's working now :laugh:
[Nexus 5 General] jdugan83:
Help with ADB Fastboot Installation

I followed the steps leading up to opening cmd prompt and entering the following: cd Desktop/android-sdk-windows/platform-tools & adb version

I received the an error saying that adb is not a recognized command. I repeated the steps and received the same error. I am new to this entire process so maybe I am doing something incorrect such as entering the commands inappropriately? Am I able to enter it in one line in the following manner? >cd Desktop/android-sdk-windows/platform-tools & adb version

Any assistance would be much appreciated.
[Nexus 5 General] Chromium:
Try doing the two commands separately.
[Nexus 5 General] jdugan83:
Still not recognizing

Hmm, unfortunately it is still giving an unrecognized error. Would any of the following be blocking me to progressing?

- USB Debugging is Enabled

- I currently have the phone plugged into PC and it is in Fastboot Mode
[Nexus 5 General] Chromium:
Nope, these two commands are not affected in any way by the phone.

Does the "cd Desktop/android-sdk-windows/platform-tools" complete succesfully?

Can you open up this folder using windows explorer? Do you see an adb file there?
[Nexus 5 General] jdugan83:
Yes, adb is there

The system cannot find the path specified but I have the platform tools in the SDK folder......

I enter it as >cd Desktop/android-sdk-windows/platform-tools

Listing below what folders on are desktop in the full SDK package:

sdk>platform-tools>adb

sdk>platform-tools>AdbWinApi.dll

sdk>platform-tools>AdbWinUsbApi.dll
[Nexus 5 General] Chromium:
So the folder name is "sdk"? In that case use the following command instead:

cd Desktop/sdk/platform-tools
[Nexus 5 General] jdugan83:
Complete, much thanks!

Jeez, I feel awful for wrenching your brain on something so simple as correct folder paths. All fixed. Live'n'learn ;)

Android Debug Bridge Version 1.0.31

Thanks again for the training wheels and assistance.
[Nexus 5 General] killajoe:
how can i relock the bootloader
[Nexus 5 General] abaaaabbbb63:
Use fastboot:

fastboot oem lock
[Nexus 5 General] j0zu3:
I have two newbie questions in part 3. Rooting - Option A

¿Why put manually supersu when it is available on play store? and if this is imposible or stupid, ¿Can I update supersu via play store if i install it via .zip?
[Nexus 5 General] abaaaabbbb63:
The zip also installs SU binaries. Those you cannot get from the play store. Otherwise, there would have been no point in flashing a custom recovery.
[Nexus 5 General] Chromium:
Installing supersu from play store won't give you root, as you won't have permissions to do so at that point.

You need to flash the su binaries (zip) from a custom recovery which has the necessary permissions to do so. After that you can then update via the play store.

Sent using xda-developers app
[Nexus 5 General] michaelnel:
Thanks so much!

Thanks for this writeup. I just received my 32GB white Nexus 5 (just ordered it yesterday and it showed up this morning) and followed your procedure. Although I am on a Mac, I made the necessary adjustments and went ahead. No problems at all, it worked great and now it is unlocked, has the TWRP recovery and is rooted.

Very easy, very smooth!
[Nexus 5 General] aavvaallooss:
Yes
[Nexus 5 General] j831:
I skipped the

fastboot reboot

step by accident when unlocking bootloader. Instead, I pressed the power button on "Start" in fastboot mode. What effect will this have?
[Nexus 5 General] Chromium:
No effect.

Clicking Start from bootloader = "fastboot reboot" command
[Nexus 5 General] j831:
Okay thanks. I wanted to make sure before I continued on.

I ran into another problem though. When I try to root, typing in the following command:

adb push UPDATE-SuperSU-vX.XX.zip /sdcard/

the command prompt says "error: device not found". It seems that my device is only not found when I go into TWRP recovery mode on my phone. If I am still in the main menu of fastboot mode and I type "fastboot devices", my device is still shown on the command prompt.
[Nexus 5 General] Chromium:
Try booting the phone up normally (into android), enable usb debugging, and try the adb command from there instead.

If youre still having trouble with adb, you can simply download the supersu zip directly from your phones browser.
[Nexus 5 General] j831:
This worked. Thank you so much for the guide and help. I've now rooted my first Android device :good:
[Nexus 5 General] gdallas:
Noob question, once I unlock boot, install custom recovery and then root, then some time later a new version of android comes out, do you just repeat the entire procedure again apart from unlocking bootloader?

I ask as ive never really come across much, or clear documentation on what you should do in layman’s terms either before or after an android update if you already have root.

previously with my N4, I would allow android to update, then I would loose root. Never really understood what needs to be done to correct this.

I presume the recovery you flash in is with respect to the particular android version you are running, therefore do you just need to reflash a new recovery In as per steps 2 and 3 following a new version of android being installed and previously having root?
[Nexus 5 General] abaaaabbbb63:
You will flash the OTA package in your custom recovery, then you'll flash the latest SuperSU zip, and, voila, root again.
[Nexus 5 General] gdallas:
excuse my ignorance, but what that still be true for a stock ROM. which is what i have and the update comes over the air when google are ready to give me it.

Thanks
[Nexus 5 General] deno1:
Awesome post. :victory:
[Nexus 5 General] Sukkunida:
thanks for this great guide, helped me alot ;)
[Nexus 5 General] Chromium:
Yes. When you get the ota don't try to install it because it needs stock recovery to install (but you will have a custom recovery). So instead of accepting the ota, you will need to find the zip of this ota (you will be able to find it somewhere on the interwebz shortly after Google releases it) then flash it manually via your custom recovery.

Sent using xda-developers app
[Nexus 5 General] gdallas:
So modifying your guide slightly would the procedure be something like this?

cd Desktop/android-sdk-windows/platform-tools

adb push “name of the ota file here” /sdcard/

Instructions for TeamWin Recovery Project (TWRP):

Install > browse to “name of the ota file here” and select the it

Swipe to confirm the installation. Then reboot.
[Nexus 5 General] Chromium:
Yep, exactly. Just make sure you put the ota zip inside of the platform tools folder before running the command ;)
[Nexus 5 General] KNIGHTR1:
Problems

I am having some issues after installing CWM bootloader. When i load up anything, the green android is all skewed up. That and when i try to flash a rom it goes into a bootloop. I think may have installed the bootloader incorrectly. I have already made a NAND back up and use that to revert back to stock rom with CMW bootloader. Not sure what to do.
[Nexus 5 General] ilyassnexus:
Sorry if this is off topic but can someone tell me how to update to 4.4.1 when you're already rooted with a custom ROM (purity) and not lose root ??
[Nexus 5 General] CruxHumanus:
Take a look here:

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

Edit:

Can someone please upload their stock 4.4 /system/fonts/ folder somewhere? Tampering with fonts now prevents me from flashing 4.4.1. Thank you!

Edit 2:

Not needed, managed to find stock fonts and replace what I needed. Flashing the OTA right now.
[Nexus 5 General] pickandwhammy:
For rooted/modded users wanting to upgrade to 4.4.1

How it works

I've deleted all the lines in the script that were integrity validation checks.

DISCLAIMER: USE AT YOUR OWN RISK!

Confirmed mods

Modded Email.apk

Xposed Framework.

Modules:

Gravity Box

XBlast

App Settings

Download updater-script from here, and replace it in the update zip:

/META-INF/com/google/android/updater-script

Flash zip via recovery (or adb sideload).

You will probably lose root, so be sure to use [MENTION=631273]Chainfire[/MENTION]'s auto root after the flash.

You will lose the modded apks and Xposed framework (just go to the app, install the framework and select reboot - modules need not be touched).
[Nexus 5 General] gdallas:
excellent. Thanks for the advice, and this procedure. I managed to get root last night with no issues at all. :D

one last thing, how often are recoveries revised? and is it recommended that they are reflashed as per your step 2, often? same goes for step 3, i presume this can be updated often with no issues ate all just from play store rather than flashing it on in your guide?

thanks
[Nexus 5 General] interqd:
hi..

i have my nexus 5 unloocked bootloader and have twrp recovery

i just installed kitkat 4.4.1 update.zip

can i root my phone ?

how to do that ?

thx.
[Nexus 5 General] Chromium:
When there is an update you can use one of the following methods:

- use fastboot to flash the img

- update via goo manager (twrp) or ROM manager (cwm)

- find a flashable zip if the recovery and flash via recovery

Step 3: Rooting

Sent using xda-developers app
[Nexus 5 General] Jns:
I must be doing something wrong or am I just plain stupid(long day maybe)

I flashed the 4.4.1 zip in CWM. I am(was) rooted, stock rom, stock kernel, custom recovery.

So the update broke my root which I knew, it also broke my custom recovery, so what I did was adb into bootloader.

Ran "fastboot flash recovery recovery.img".

Reboot into CWM recovery, that worked.

Rebooted my phone to check if that was OK, it was.

Rebooted into recovery with adb. But now CWM is gone it seems, I rebooted into what I assume is stock recovery.

What can be the issue here?
[Nexus 5 General] Chromium:
Try flashing it again until it sticks.

Sent using xda-developers app
[Nexus 5 General] Jns:
Applying som force solves most things.

Seems to be working now, I did as you said, flash until it sticks. Back to custom recovery and root. Thank you!
[Nexus 5 General] jcsww:
Is there a way I can boot to CWM without flashing it so I can root and install the odd mod?
[Nexus 5 General] jd1639:
Yes, fastboot boot recovery.img. where recovery.img Is cwm
[Nexus 5 General] 123go!:
I keep getting "failed" when I try to flash the supersu zip.

sent from my nexus 6
[Nexus 5 General] jcsww:
Could you offer up a bit more explanation? I am not too familiar with the fastboot command side of things. Did you mean the command, "fastboot recovery.img" with the receovery image in the directory being a CWM image, would temporarily boot CWM?
[Nexus 5 General] jd1639:
Yes, use the command "fastboot boot recovery.img" it'll boot into cwm and then when you reboot it'll still be the stock recovery. recovery.img is whatever the cwm.img file is named
[Nexus 5 General] abaaaabbbb63:
Any error? Give more details. Does it only say "Failed", and that's it?
[Nexus 5 General] 123go!:
Unable to open zip file I believe is what it says....

Sorry my work Christmas party was tonight I am drunk.... It says in red "failed", but if you look at the text in the grey box above it says unable to open zip file...

sent from my nexus 6
[Nexus 5 General] abaaaabbbb63:
Try redownloading the zip. Maybe you had a bad download.
[Nexus 5 General] 123go!:
I will try again, I did get the download from the chain fire site....

sent from my nexus 6
[Nexus 5 General] abaaaabbbb63:
If it still doesn't work, try the ClockWorkMod superuser:

http://download.clockworkmod.com/superuser/superuser.zip
[Nexus 5 General] 123go!:
gonna try it now, it will be ok if I am runnign twrp?? forgive me, i shouldnt be doing this after drinking....lets see what happens...
[Nexus 5 General] abaaaabbbb63:
Lol. Get some milk. It helps ;)

Anyhow, twrp is perfect. Make sure it's the latest version.
[Nexus 5 General] djglenn1337:
You might want to remove the link to the "slimmed" version in the OP as it has just filled my PC with malware....
[Nexus 5 General] elnitrox:
ill be getting my nexus 5 next week

the thing is should i unlock / root and stuff like that?

or update first to 4.4.1?

which should i do first?
[Nexus 5 General] cobyman7035:
Where to. Get 4.4 1 ota zip to flash abd still keep data apps intact? Thx

Via my NeXus 5 on Tapatalk⁴
[Nexus 5 General] abaaaabbbb63:
Update first, then do stuff.

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