yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] pialletti:
excuse. somewhat clumsy ....
[Nexus 5 General] Chromium:
:confused: The second post contains frequently asked questions with their appropriate explanations/answers. So i would suggest reading the second post as it may help solve your issue.
[Nexus 5 General] bioyuki:
How do I root without flashing a custom recovery?
[Nexus 5 General] abaaaabbbb63:
One way would be just booting a recovery, and flashing SuperSu from inside it. (I recommend this)

fastboot boot recovery recovery.img

Another way would be using CF Root.

http://xdaforums.com/showthread.php?t=2507211
[Nexus 5 General] bioyuki:
So boot into recovery and then adb sideload update.zip?
[Nexus 5 General] 51D7H3K1D:
No ADB after root

I had everything set up right, ADB worked as well as fastboot. I rooted my device a few days ago and now (as I try to flash a different kernel) I can't get ADB to work. I've tried every guide I can find to setting up ADB. It's frustrating because I had to working two days ago.

I had universal naked driver installed, but when I plugged my phone in the AutoPlay menu doesn't show any options and the nexus 5 doesn't show up under my computer. When I try to run the 'adb devices' command I get:

* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attatched

and there are no devices.

I uninstalled the universal naked drivers and then my computer would recognize the phone as an MTP device, but still no ADB. One other thing I found odd was that my device manager said

Android Device -> Google Nexus ADB Interface

The guides I could find all said

Android Device -> Android Composite ADB Interface

Any ideas?

Thanks a lot!
[Nexus 5 General] cobyman7035:
is this basically the same procedure and files as the nexus 4? im on win8.1 pro , and i remember it was such a PITA to install the drivers for the nexus 4
[Nexus 5 General] Chromium:
Yep, pretty much the same process. Only difference is that you need to obviously use a recovery meant for the n5 instead.

Drivers are indeed the only somewhat difficult part of this. Check out the driver installation guide that i linked in the OP. Ive never tried on win8, but on win7 it usually works fine.
[Nexus 5 General] cobyman7035:
i tried that shortcut but couldn't get to work

;C:\android-sdk-windows\platform-tools

gave me error, but i just copy the .cmd file into the C:\android-sdk-windows\sdk\platform-tools folder and run adb from there
[Nexus 5 General] Chromium:
It should've worked, but anyways the way you did it is fine too.

Could you tell me what specifically was the problem?
[Nexus 5 General] resynx:
Awesome guide! :)
[Nexus 5 General] cobyman7035:
i dunno maybe user error lol, anywas i got my nex 4 hooked up and im on bootloader mode

when i run the command adb devices it doesn't list my phone serial number looks like that universal google adb driver won't work i have to reinstall the nexus 4 drivers the PITA way again lol , gotta google the link

C:\android-sdk-windows\sdk\platform-tools>adb devices

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

List of devices attached

C:\android-sdk-windows\sdk\platform-tools>

i think i did this tutorial when i was back on win 8.0, im on new fresh 8.1 pro now

http://hippowise.com/how-to-install-adb-drivers-for-the-nexus-4-on-windows-8/
[Nexus 5 General] Chromium:
Try this for installing nexus 5 drivers.
[Nexus 5 General] efrant:
This is just speculation until confirmed.

And their won't be until we get the mount points.

Yes you can, and it won't cause problems. (This is what I always do. It eliminates possibly going through setup twice.)
[Nexus 5 General] El Daddy:
The upgrade from 8.0 to 8.1 messed up my sdk too. It deletes java and sets the PATH to default. I spent most of an afternoon trying to fix it.

What I did was:

Reinstall the naked drivers.

Moved the whole sdk to C:\Users\xxxx

Installed the Java

Copied the jre7 location to PATH

Copied the SDK location to PATH

Then I opened CMD with Admin permissions and ran ADB. (windows +X)

Then I rebooted and it works without administrative pemissions

It was a mess and I can't guarantee this will work for you. Just thought I would share my experience.
[Nexus 5 General] cobyman7035:
wow, just spent 30 mins trying to install the nex4 drivers on my win8.1 pro. mustta rebooted cmputer like 5 times lol, god i hate doing reboots, coudn't figure where that damn setting went too, i hate that metro 8 GUI

http://www.howtogeek.com/167723/how...8.1-so-that-you-can-install-unsigned-drivers/

had to install the pda.net drivers i think, now adb recgonizes my nexus 4, i don't have the nexus 5 yet so i hope its not too hard like the nexus 4

in device manager i have driver called android ORIGINAL adb interface
[Nexus 5 General] Nbsss:
I recognise your username so you must be famous ;)

I should get mine in two days :thumbup:
[Nexus 5 General] xBeerdroiDx:
the truth.

experience is the best toolkit for any user. thanks for the guide. i look forward to watching it develop. cheers.
[Nexus 5 General] JCreazy:
It looks like TWRP has released an official recovery here
[Nexus 5 General] AndroidAndroid88:
Nexus 5

All I need now is a Nexus 5
[Nexus 5 General] bigz0r:
I can confirm this works for me.
[Nexus 5 General] Chromium:
Great, that's awesome. I'll update the guide once I get home.

Edit: I've updated the op. The guide will now work from start to finish thanks to a working recovery. Remember only TWRP is functioning properly. Don't use cwm as it will not boot.
[Nexus 5 General] Eat it iPhone:
Dumb question, if i unlock the bootloader and root the stock ROM can i get ota's? My primary interest is in being able to use wifi tethering, and im assuming root is needed still for that?
[Nexus 5 General] abaaaabbbb63:
As long as you keep the stock kernel, and the stock recovery, you will be able to receive OTAs.
[Nexus 5 General] timvdlinde:
Damn, so if I unlock my bootloader, flash recovery, apply root and install Franco kernel I won't get my OTA.

If so

Is there a way to have Franco kernel but still get my OTA.

Thanks
[Nexus 5 General] abaaaabbbb63:
Well, no. You'll just have to flash the stock kernel again.

Anyways, what's the fuss about OTAs? I mean, when an OTA update will appear, there will probably already be a "Stock Rooted ROM" with the update in the development section. I never used OTA updates on my N4. I just updated the ROM.

This way, you struggle less. No need for returning back to stock. Even flashing the factory images is easier than preparing for an OTA update.
[Nexus 5 General] abaaaabbbb63:
Download the TWRP image, put the SuperSu zip on your sd-card, boot in fastboot, type "fastboot boot recovery path/to/Twrp/recovery.img", then select Install, and install the superSU zip.

---------- Post added at 07:25 AM ---------- Previous post was at 07:24 AM ----------

Try using a different USB port.
[Nexus 5 General] 51D7H3K1D:
No ADB after root

No luck, same thing happened. Tried all 3 ports available to me.
[Nexus 5 General] BirchBarlow:
Easiest way is to flash a custom recovery (TWRP) then flash the SuperSU binary from inside TWRP. If you really don't want to flash a custom recovery you can do the ChainFire autoroot method (http://xdaforums.com/showthread.php?t=2507211)
[Nexus 5 General] Gybra:
Thanks, i'll give it a try with my new Nexus 5
[Nexus 5 General] Natakranta:
Did you enable USB debugging in developer options after rooting? Bootloader unlocking and factory reset is unticking it.

Another thing is that you need to grant permission on the phone when you type adb command on PC - turn on phone's screen to see if the prompt window pops up.

---------- Post added at 12:40 PM ---------- Previous post was at 12:29 PM ----------

The command is actually not "fastboot boot recovery customrecovery.img" but "fastboot boot customrecovery.img"

I tried yesterday with TWRP and it booted fine on my Nexus 5.

I think that defining the recovery partition is needed only when actually flashing the recovery to the phone, like in the command: "fastboot flash recovery customrecovery.img" so fastboot knows where you want to flash the image.
[Nexus 5 General] abaaaabbbb63:
Apologies.
[Nexus 5 General] Natakranta:
There's no need to apologise. Actually if anybody should apologize here is me. I went back few pages to see my posts: (322, 200, 188) and it was me who started spreading wrong command for fastboot boot. Even Chromium_ was typing it wrong after my erroneus suggestion post 199.

It couldn't have stopped bothering me, so I did a test yesterday. Now I know correct command is "fastboot boot customrecoveryname.img".
[Nexus 5 General] ecdy:
Why not wait for a couple of OTAs before rooting?

I love the flexibility of my rooted One S with its AOKP 4.1.1 ROM, but now I've got my new N5 and, thinking that OTAs are inevitable (one for the camera is already rumored for next week, and maybe they will update the ANT at some time too, pllus who knows what else Google might want to fix), it seems that it would make sense to wait a few weeks before rooting.

Although no clear guidance on this question has been given on this thread, I've concluded that rooting with no change in ROM will not prevent an OTA--but after the OTA, root will be lost. So why root now?

Is there anything wrong with my thinking (except for those who just have to have root all the time)?

Incidentally the only problems I've found so far are that Dolphin Browser won't do pinch-to-zoom, Dolphin Browser Beta will do pinch-to-zoom but not play videos, ANT seems to really speed things up, and I hate the new functions for the bottom buttons, and why did Google change the meaning of the colors on the status bar?
[Nexus 5 General] 51D7H3K1D:
No ADB after root

I definitely have it enabled, the notification pops up when I plug my phone in. Also, I made sure the screen was on. I have a pattern unlock and it keeps the computer from accessing the storage so I was sure to unlock it.
[Nexus 5 General] david31262:
SDK Manager needs Java

When this happened to me it was because I didn't have Java installed.
[Nexus 5 General] dryspuri:
Guys, help please, my nexus 5 is stuck on boot animation for atleast 5 mins, dont know what I did wrong here
[Nexus 5 General] Jubei527:
thank you!!

Great article!!! Thank you so much!!
[Nexus 5 General] kasalamite:
[MENTION=2088467]dryspuri[/MENTION]

if you can enter fastboot mode/bootloader, try following command:

fastboot erase cache

this not mentioned in this tutorial, but on my old devices i always use this command after flashing .img files.

i just unlocked, rooted as on post #1 and everything went smoothly.

after installing the custom recovery, i would also suggest to backup your stock rom, just in case.
[Nexus 5 General] gadget_lova:
Isn't unlocking the bootloader will wipe all the data in the device?

If so, how do I make a backup of my application data before unlocking the bootloader?
[Nexus 5 General] Chromium:
Yes.

Adb backup or helium backup. I personally havent tried either so im not sure how well they work.
[Nexus 5 General] gadget_lova:
Oh thanks, I remembered that I backup my Gnex first with the all-in-one kit, so that's the ADB backup.

Some quick search from google will tell me how to do that manually. :good:
[Nexus 5 General] Raistlin1:
trying to fastboot boot recovery recovery.img but I am getting "cannot load recovery, no such file or directory" that is if i renamed TWRP img file to recovery.img. If I rename that file to just recovery I get the following: cannot boot a boot img and ramdisk"

I am trying to fastboot twrp recovery to flash superuser instead of installing TWRP recovery, any ideas why this is happening? The recovery is in the platform tools folder and I am in that directory.

I have unlocked my bootloader following OPs instructions and it worked like a charm, now just want root but no custom recovery..

Thanks
[Nexus 5 General] abaaaabbbb63:
The command is "fastboot boot recovery.img". There was a bit of a confusion.
[Nexus 5 General] NCguy:
I tried and gave up on helium. Great concept but hard to get working and not much of a support community.
[Nexus 5 General] X-Jonte-X:
adb backup and restore

Did some tried to make a backup of the system unlock bootloader and restore system via adb commend as written here?:

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

For example:

adb backup -apk -shared -all -f C:\backupNex5.ab

adb reboot bootloader

fastboot oem unlock

fastboot reboot

adb restore C:\backupNex5.ab
[Nexus 5 General] pyj08178:
Argh.... no matter what i do the the pc doesnt even want to authorize my phone!!!! even disable/enabling doesnt help. unplugging and plugging in again doesnt help too. any solutions for this?
[Nexus 5 General] Primokorn:
Install your usb drivers again. Check this out.
[Nexus 5 General] pyj08178:
fixed. even though i cant detect the phone via cmd command but i ran fastboot oem unlock and it went smoothly.
[Nexus 5 General] Raistlin1:
I should have figured that out on my own, I was going to try it to but I didn't. Decided to use a toolkit that someone posted in the dev section and it temp booted recovery and installed root for me.

I have had a Samsung (SII Sprint variant) for the last few years so I am very used to Odin/Mobile Odin and flashing that way. This is the first time I am using the adb commands (and my first Nexus device), I was able to unlock bootloader following your instructions, so thanks, but then I couldn't root. Need to practice using adb so that I can become more comfortable and better at it.
[Nexus 5 General] newtooroot:
where to put drivers?

i downloaded the 0.73 drivers for win 64 but where do i put them? ready to go besides that. thx
[Nexus 5 General] Raistlin1:
This was posted in the thread for that driver and I believe somewhere on this thread, but not sure. I followed these instructions and it worked like a charm.

http://www.theandroidsoul.com/nexus-5-driver-adb-fastboot-installation-guide/
[Nexus 5 General] Chromium:
Just rooted my friends n5 with this guide. It went flawlessly except for the fact that the recovery didnt flash the first time (it worked on the second try).

Thanks OP...oh wait thats me. :p
[Nexus 5 General] Schultz_91:
What if I forgot to reboot after unlocking bootloader and went straight to flashing custom recovery.... its stuck at the boot image... what can I do? =(

Nevermind! For those of you who made the stupid, impatient mistake I did, simply relock and then unlock the bootloader, but make sure you -fastboot reboot!
[Nexus 5 General] Natakranta:
Such a pity there's no "thank yourself" button ;)

Which recovery did you flash? Any ideas why it did not flash the first time? Did the phone froze? Rebooted itself? What can I expect?
[Nexus 5 General] Kortxero:
:crying:
[Nexus 5 General] Chromium:
I flashed twrp. No idea why it didn't work as it seemed like everything went successfully (the command prompt window returned no errors). The phone didn't freeze. I even restarted the bootloader after unlocking. Then I rebooted into a android, and back into recovery and was greeted with the stock recovery. So then I went back into fastboot and did the exact same thing, and it worked on this try. Strange...

Sent using xda-developers app
[Nexus 5 General] Natakranta:
After first flash, did you enter TWRP straight away and used it to flash CF SuperSU 1.65.zip?

Because if you rebooted straight to android after flashing TWRP I'm guessing that system auto restore stock recovery script worked bringing back stock recovery. Flashing root.zip in custom recover disables this script. At least that's as it used to be. Might be different now in 4.4. I'm not an expert.
[Nexus 5 General] columbo67:
Can someone explain the difference between a stock rom and factory image?

Cheers
[Nexus 5 General] abaaaabbbb63:
When one says " I"m on stock ROM", they usually mean that they did not modify the phone.

The stock ROM can also refer a ZIP, that can be installed in recovery, containing the stock system and kernel. It overwrites the system and boot partitions. You can find it in the Dev section.

The factory images are the things that restore your phone back to stock. They are .img files, and can be flashed through fastboot. They usually flash and wipe the whole phone, bringing it to factory state, although you can take the images separately and flash only the ones you want.
[Nexus 5 General] columbo67:
Ta
[Nexus 5 General] Raistlin1:
I am new to this so I don't get the whole save a kitten don't use a toolkit thing. Is it just some saying someone came up with or is there a back story for this?

I really did try to use adb and fastboot last night but it was my first time and the line that I was using was not working and it was getting late, so I caved and used a toolkit. I wish I could have figured it out the right way first, as I do wish to learn. I did unlock my bootloader using adb/fastboot so maybe I only killed half a kitten?
[Nexus 5 General] abaaaabbbb63:
Ok, we forgive you this time.

Fortunately, the kitten went all Matrix style and dodged the bullet. :D
[Nexus 5 General] Kortxero:
Don't worry: the most important thing is that you have everything up and running :good:. In the end, the "save a kitten" thing is only a joke to remind us of what XDA is all about. Anyway, you didn't kill it, as abaaaabbbb63 said. That's because you said the most important thing: "I wish I could have figured it out the right way first, as I do wish to learn" :angel:.
[Nexus 5 General] Natakranta:
why we should try to save kittens ;)

So your kitten is half dead, or maybe undead :D

Congratulations! You've got zombie kitten.

Don't stop trying with fastboot. It is really useful and some day will save your phone.
[Nexus 5 General] X-Jonte-X:
Please can some confirm that backup and restore is working as I proposed, I don't want to setup my phone again.

Thanks in advance!
[Nexus 5 General] Il.Socio:
I've a quick question :)

Is it really necessary to flash a custom recovery for Rooting the Nexus 5?

What about:

- unlock bootloader

- create a custom image containing the supersu binaries

- using fastboot to temporary boot the custom image and gain root in that way

could it work?

I'm just asking because I'm new in Android and it's really interesting...

I wish I had some more spare time to experiment a bit with this stuff.
[Nexus 5 General] abaaaabbbb63:
If you use CF Root, then no, no need for a custom recovery.

Unlocking the bootloader is necessary for rooting, and for flashing a custom recovery. It's the first thing you do.

CF Root has this kind of image.

No need for a custom recovery to boot an image.
[Nexus 5 General] mrro82:
Quick question:I used this guide to do it's magic and it worked completely. If I installed twrp, can I download goo manager from the store to update my recovery?

Sent from the jaws of my Hammerhead!
[Nexus 5 General] abaaaabbbb63:
I think goo manager is down for the moment, but in the future, yes, you will be able to do that.
[Nexus 5 General] fredrock123:
I saved a kitten... lol. This page was usefull. I was able to get this going using Naked Drivers... For some reason the google sdk drivers did not work. oh well seem like the better choice... My CD was C:\Users\MYPCNAME\android-sdk-windows\sdk\platform-tools different than the instructions but renamed a folder and read some replies here. Great thread and great support here.
[Nexus 5 General] pialletti:
twrp cwm

hello. I installed TWRP. and I get the red robot ...

can install over the cwm?

or how can I solve?

* thank you .... excuse my english ...... use google translator ... hello
[Nexus 5 General] abaaaabbbb63:
Flash TWRP again and again until it sticks.
[Nexus 5 General] Jokebre:
Thanks for the guide, worked perfectly first time.:good:
[Nexus 5 General] AvRS:
First time I've not used a tool kit as the one I was trying to use and be lazy with just wouldn't see my N5. Doing it this way it worked first time and after rooting I chose not to fix the stock recovery being re-installed and CWM disappeared so all is good as didn't want it other than to root.

Thanks for the guide :)
[Nexus 5 General] kumarshah:
A bit confused, what's the difference between this and CF Autoroot? Will both be able to handle OTA updates?
[Nexus 5 General] galaxys:
Worked great First time...always prefer manual commands over tools!

Fyi, chainfire has new SuperUser v1.69 out!
[Nexus 5 General] rldstover48:
Windows Vista 64 Bit

Hi does anyone know if this will work on Windows Vista 64 bit laptop getting odd response when I am in the platform-tools directory, when I enter fastboot devices it just drops down a line and doesn't show serial number. Had a issue with it earlier wouldn't see at all so i replaced the computer driver with the one from the SDK, no exclamation in device manager anymore, I was in the fastboot menu on phone and USB was checked, I have done before but it's been a bit I must be missing something but don't want to execute any commands unless I'm sure these guys see each other right last time i checked I didn't need a Brick for anything.

Any and all help Appreciated Thanks Ahead
[Nexus 5 General] Chromium:
It should work as long as you get your drivers working properly...which doesnt seem to be the case at the moment.

Try these drivers.
[Nexus 5 General] rldstover48:
Thanks I'm tied up right now will get back to it later but appreciate the quick response when I download the drivers do i need to put them any place in particular or is it that I will just need to go to device manager and do the manual install of the drivers from where I download to.

Again Apologize and thanks.
[Nexus 5 General] Kortxero:
Basically, you need to uninstall the previous drivers for your Nexus 5 from the Device Manager and allow Windows to install the Universal Drivers from the zip you've downloaded (as explained here).

As for the commands, if you have trouble using them, hold Shift and right-click in the platform-tools folder, then select "Open a command windows from here" in the dialog to open a command prompt directly from the folder (this way, you won't have to bother with the path name)..

I hope I've made sense as I'm getting tired and I'm kind of seeing double :D
[Nexus 5 General] rldstover48:
Thanks made sence really do appreciate going to give some of it a try in a bit here if i run into more issues will leave it for tomorrow i'm beat too 5am comes too soon,lol

Thanks again.
[Nexus 5 General] mattcoz:
You really should put a warning that this will wipe your phone. :(

edit: Crap, there it is, I'm an idiot :( Maybe make it a bit more prominent. I've rooted phones and tablets in the past without everything getting wiped.
[Nexus 5 General] Chromium:
haha :)
[Nexus 5 General] baguitos:
From my understanding, root and recovery does not wipe the phone; Unlocking the bootloader does.

Should get my N5 tomorrow, and first thing I'll do is to unlock the bootloader.

Then I'll think about costum Roms and Kernell.

Once the phone is unlock, all the following operations will not wipe the phone.

Am I thinking this correct?
[Nexus 5 General] Chromium:
Correct. The only part that wipes is the unlocking of the bootloader. Which is why this should be the first thing you do when you get the nexus. After that flashing a recovery and rooting will not wipe anything.