yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] santimaster2000:
I forgot to do the fastboot reboot step, doesn't seem to be any problem, what do I do ?

I rebooted, re-locked the bootloader, rebooted again, re-unlocked the bootloader, and then I did fastboot reboot, are we cool ?
[Nexus 5 General] jd1639:
Nothing, if you don't have a problem you won't.
[Nexus 5 General] santimaster2000:
Thanks, only thing I noticed it's that I can't push the SuperSU file to TWRP, my phone is listed on adb, but it just says "error: device not found", still, doesn't matter, booted back to Android, downloaded CM11 M2, then copied to my phone, and just flashed it trought TWRP.

But, anyway, it's there any way to fix that error, I mean, not being able to push files from adb to the phone on TWRP.
[Nexus 5 General] funnel71:
The root su is in the system partition so clearing data wouldn't be that but if your primary permission apps like supersu is installed in data that would get wiped.
[Nexus 5 General] jd1639:
When you're in recovery and do adb devices does it return anything?
[Nexus 5 General] santimaster2000:
Nevermind, uninstalled all the drivers, and then installed Universal Naked Driver, and now it works.
[Nexus 5 General] funnel71:
Yep that's exactly what I had to do.
[Nexus 5 General] karakaya_o:
thanks

thanks for guide :)
[Nexus 5 General] ivoxy:
Hello, i'm new and i just ordered a nexus that will arrive next week. I was checking out information on things related to the nexus on these forums and i was interested in rooting stock android. I have understand that if i install a custom recovery i won't be able to use OTA android updates right?

If so how can i unlock the bootloader and root without installing the custom recovery? I've not seen a method to do it without installing a custom recovery before rooting.
[Nexus 5 General] fergdizzle9090:
I cannot for the life of me get the drivers to install for the phone. fastboot cant find my device, im on win 8.1 and usb debugging is enabled. i tried the lg one and it said installed successfully but nexus 5 is still under other devices in device manager. the universal driver gives me, "google nexus 4 bootloader interface, the hash for this file is not present in the specified catalog... etc." i tried unlocking the bootloader through the fastboot command just to see but it just sits on waiting for device. PLEASE HELP!
[Nexus 5 General] jd1639:
Google tool adb fastboot drivers xda. Try that
[Nexus 5 General] fergdizzle9090:
YOU ARE THE BEST THANKS! those drivers worked flawlessly and quick
[Nexus 5 General] jd1639:
Glad they worked for you:)
[Nexus 5 General] caiding10_28:
thank you for share
[Nexus 5 General] Gjohnson7771:
flash recovery

For the life of me I can't figure out what I am doing wrong. I am trying to root my son's Nexus 5 and I have unlocked the bootloader but cannot flash the recovery.

I saw someone else post about this and I have checked to make sure the recovery.img is named properly and located in the platform-tools folder. Everything is correct and it still tells me it can't open the recovery.img. I have tried not renaming the recovery and even tried downloading a different version of the recovery.

What am I missing?
[Nexus 5 General] Chromium:
Whats the exact error?
[Nexus 5 General] Vercion3:
[MENTION=4883664]Chromium_[/MENTION] if I want to flash a custom rom, do I install the zip and just flash it in recovery? Or do I need to wipe cache first?
[Nexus 5 General] vaibhav.ravi:
Thank you!

Amazing job with the tutorial. I learned so much and was able to root my nexus without a single snag :D
[Nexus 5 General] Chromium:
You need to do a factory reset (full wipe) first. Detailed instructions on flashing a custom rom can be found in Step 3 - Option B
[Nexus 5 General] Vercion3:
Hoe about kernels?
[Nexus 5 General] Chromium:
For kernels you just flash the zip. No need to wipe anything.
[Nexus 5 General] MersauX:
I did the same thing and had to reflash the whole system, factory reset didn't help. Run flash-all.bat and within five minutes your phone is ready to go. :)
[Nexus 5 General] Flo1809:
Hi,

When i enter the command "fastboot device" it says " < waiting for device >".

What did i wrong?

Thanks
[Nexus 5 General] Chromium:
Your device isnt recognized. You need to fix your drivers. Use this.
[Nexus 5 General] sunsoy:
Hello all,

I'm having trouble with the last step, when I enter this command:

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

command prompt says "error: device not found". The phone isn't detected to my computer too, except when it's in fastboot mode (the fastboot devices code in command prompt detects it). I've also turned on USB debugging in the phone's developer options.
[Nexus 5 General] Chromium:
Just boot it up normally and download SuperSU from the phones browser: download.chainfire.eu/supersu

Then go back into recovery and flash it.
[Nexus 5 General] sunsoy:
Thanks so much! It worked.
[Nexus 5 General] eyeconic:
Root failed - CWM or Device reset

Whatever I did, it failed. I ran chainfire autoroot - no joy. CWM, however, is installed and the bootloader is unlocked.

Presumably, I need to do a factory reset which I can do from either CWM or the device. Does is make any difference?
[Nexus 5 General] Chromium:
Do it from cwm.
[Nexus 5 General] jd1639:
What failed?
[Nexus 5 General] eyeconic:
I am not root. No error messages. After running CF, I got the red Android and everything seemed OK. Alas, I am not rooted.

---------- Post added at 10:21 PM ---------- Previous post was at 10:14 PM ----------

The third option, I suppose is to flash the factory image (which I have). I'll try CWM first. Thanks. Funny thing with this phone is that APN Backup will not work but that's no big deal.
[Nexus 5 General] Chromium:
Im not really sure what your problem is. If you could explain a bit more it would be helpful.
[Nexus 5 General] jd1639:
You need to flash supersu in recovery. No need to do a factory reset. Do you have supersu on your device?
[Nexus 5 General] eyeconic:
The third option, I suppose is to flash the factory image (which I have). I'll try CWM first. Thanks. Funny thing with this phone is that APN Backup will not work but that's no big deal.

---------- Post added at 10:30 PM ---------- Previous post was at 10:27 PM ----------

I have an su binary. I did that once using UPDATE...v1.86.zip
[Nexus 5 General] Chromium:
So then you are rooted... :confused:
[Nexus 5 General] eyeconic:
I have an su binary. I did that once using UPDATE...v1.86.zip

---------- Post added at 10:36 PM ---------- Previous post was at 10:32 PM ----------

Nope. My laptop is running linux. The phone lacks "whoami." However if a do #adb shell and then #ls root I get a permission denied. Moreover, I installed Root Checker. It just spins around forever.
[Nexus 5 General] Chromium:
Im not exactly sure what you have done. It might be best to just flash the stock images and start this process over again.
[Nexus 5 General] DanielDTK:
Great tutorial! Thanks very much. You should just do it step by step carefully and everything will be all right! :)
[Nexus 5 General] sordatos:
Hello again.

Sorry to bother you again, I have a quick question: I have noticed that when I connect to Wi-Fi with my Nexus and then later turn off Wi-Fi, sometimes the mobile 3G internet connection doesn't come back, I have to reset it by using Airplane mode (sometimes twice) to make the mobile Internet comeback..

Would this rooting procedure may cause this or is it something else, like a known issue with Nexus 5?

Thanks
[Nexus 5 General] Chromium:
Unlocking/rooting has nothing to do with this.
[Nexus 5 General] sordatos:
Thanks for the clarification. I'll ask in the forum..
[Nexus 5 General] karanbedi:
Bought the Nexus 5 (32GB,White) two days ago and rooted it today... under 20 minutes. Everything went butter and super easy to follow the steps...

Thanks Everyone :D :D :D
[Nexus 5 General] 4walls:
When using the BootUnlocker app, be careful with OTA updates if you want to keep root access.

Initially follow this procedure:

1. Unlock bootloader

2. Root phone

3. Install BootUnlocker

4. Re-lock bootloader with BootUnlocker (and reset tamper flag if desired)

When OTA is received -- DO NOT UPDATE -- until the following steps are carried out:

1. Unlock bootloader

2. Update via OTA (you will lose root)

3. Root phone

4. Re-lock bootloader with BootUnlocker

If you don't unlock the bootloader before doing the OTA update, you will not be able to

unlock the bootloader without wiping your device. OTA updates will cause you to lose

root access on the phone and BootUnlocker will not unlock your bootloader unless it

has root access.

I know this from experience :(
[Nexus 5 General] Proud Polac:
What is the purpose of relocking the bootloader? When you relock it do you loose the ability to flash kernels, ROMs, etc.?
[Nexus 5 General] aavvaallooss:
Lock bootloader for security. If you N5 is stolen opening it again to flash anything wipes your personal data
[Nexus 5 General] a_ya7ya:
intersting, I just got a nexus 5 last night.

time to root it.

---------- Post added at 02:30 PM ---------- Previous post was at 02:26 PM ----------

Yes, you will loss everything in your device "back to stock"
[Nexus 5 General] daymachine:
Something about recovery.img

I've followed every step that have been shown in the op, but still..... during the step of installing TWRP, my pc's cmd cannot open "recovery.img". I've renamed the TWRP image to recovery.img.... but still it could not be open. What is the problem in it ? :confused::confused::confused:
[Nexus 5 General] jd1639:
Is the path correct to recovery.img. That's usually the problem
[Nexus 5 General] daymachine:
I've followed every step fair and square. the recovery.img file has to be put inside the platform-tools folder right....
[Nexus 5 General] Proud Polac:
You may have named it recovery.img.img double check the file name.

Make sure you have the correct path to the platform-tools folder in cmd. The easiest way is to hold shift and right click inside the platform-tools folder and click on "Open Command Prompt here"

Once you know you have the right path try typing this.

"fastboot flash recovery reco" then press tab then enter.
[Nexus 5 General] BNNEBULA:
Awesome! Question though, does this affect the gapps on your phone? Would i have to redownload them online or will they still be there?
[Nexus 5 General] Chromium:
They will still be there after unlocking and rooting.
[Nexus 5 General] jd1639:
If you unlock the bootloader your data partition will be wiped. So back it up if you have anything you want to save like pics. Music, etc. System apps will not be wiped, if that's what you mean by gapps.
[Nexus 5 General] BNNEBULA:
Nah i mean g apps like google play store, google plus, al of the google apps that come stock with the phone. I know some rooting methods require you to save your gapps or download them somewhere else and then put them on your phone after it is rooted, i just wanted to be sure if this was one of those methods, or will the g apps be loaded on my phone after the unlock/recovery/root iscompleted
[Nexus 5 General] jd1639:
Those are system apps, they'll all still be there.
[Nexus 5 General] BNNEBULA:
Sweet thanks dude! About to try this method now hopefully everything goes well
[Nexus 5 General] Chromium:
As long as you can get your drivers working, the rest is a breeze. :)
[Nexus 5 General] BNNEBULA:
HELP

I can't seem to boot the recovery img in fastboot, not sure whats wrong.

i renamed the supersu zip file to recovery.img and placed it in the platform-tools folder inside of the android-sdk-windows folder (on my desktop the folder is called adt-bundle-windows-x86_64-20131030 because i had to merge the folder with the zipfolder for some reason)

Can anyone help? Maybe i did something wrong?
[Nexus 5 General] jd1639:
You can't flash supersu in fastboot. You need to rename the recovery. Download this to your pc http://d-h.st/nbu rename it to recovery.img. and flash is in fastboot, fastboot flash recovery recovery.img. Put supersu on your phone and then flash it in recovery.
[Nexus 5 General] BNNEBULA:
I downloaded it and renamed it to recovery.img. placed it inside the platform-tools folder and then typed in the correct path, hit enter, and then typed fastboot flash recovery recovery.img. It says error: cannot open "recovery.img"

o.o
[Nexus 5 General] jd1639:
Try fastboot flash recovery recovery.img.img
[Nexus 5 General] BNNEBULA:
yes! i guess i didnt realize that i only needed to type in recovery to rename the img file. stupid me thanks man
[Nexus 5 General] jd1639:
No problem
[Nexus 5 General] Laggalot:
i read the guide... one thing bothers me.... cant i just copy the supersu zip onto my phone before i start doing everything so i dont have to adb push it on there manually? ;)

Gesendet von meinem GT-I9505 mit Tapatalk
[Nexus 5 General] Vercion3:
You can
[Nexus 5 General] jd1639:
As vercon3 said, you absolutely can. But it's good to learn the adb commands as you may need them some day.
[Nexus 5 General] Laggalot:
some years back i was testing linux and i really liked the terminal ( altghough i know windows and linux do bot use the same shortcuts and such) so i guess thats ok ;)

Gesendet von meinem GT-I9505 mit Tapatalk
[Nexus 5 General] Lurkerdownbelow:
Thanks so much for such a well written process! (already hit "Thanks") It's refreshing to see such a detailed step by step guide with explanations. Well done, sir. It took me all of 7 minutes to root my phone today after installing the drives and downloading the files last night :)
[Nexus 5 General] ivoxy:
I followed the guide so as to root my nexus 5. It went perfect, thanks a lot!:)
[Nexus 5 General] harshal76:
Nexus 5 is a cool phone. I like this phone. Hope I'll get it in future. :cyclops:
[Nexus 5 General] Anderson2:
I'm getting ready to root my new Nexus 5 and want to check something.

I have previously rooted my Nexus 7 tablets and to do that I had downloaded and installed

Adt-bundle_windows_x86_64-20131030

Q: In the OP excellent instructions I am to download and install a sdk package. Would this package for the Nexus 5 be different from the one for the Nexus 7? In other words do I need to download and install in a different folder for the Nexus 5 or can I use the adb I used for the Nexus 7?
[Nexus 5 General] jd1639:
You can use the same abd drivers. If they are already installed and working there is no need to reinstall then
[Nexus 5 General] Anderson2:
Now I'm hitting the same driver problems I encountered rooting my Nexus 7.

I installed the LG United Mobile Driver and they apparently installed but "fastboot devices" draws a blank.

So I uninstalled it and downloaded the Universal Naked Driver and extracted its files. But how do I install this driver in W7 64 bit?

---------- Post added at 07:30 PM ---------- Previous post was at 07:03 PM ----------

This is so frustrating. I had exactly the same problem when booting both the Nexus 7 2013 and the 2012 version. It took me days to finally get the drivers to work. After that everything went smoothly. This driver thing is a real pain. Besides, I know from experience that once the adb/fastboot drivers finally work, the whole thing starts all over again because the mtp drivers then don't recognize the device.

?

Wish there was a users "android club" locally.
[Nexus 5 General] jd1639:
Google tool adb fastboot drivers xda. Try that.
[Nexus 5 General] Anderson2:
Maybe I'm misunderstanding.

I already have sdk installed. It's the second step that gets me in trouble : installing the drivers specific to the Nexus 4 (lg mobile etc.) It installs but adb still can't gain access in recovery mode. Maybe they are not configured correctly.

With the Nexus 7, it was the Samsung drivers that finally worked - after numerous tries.

---------- Post added at 09:00 PM ---------- Previous post was at 08:56 PM ----------

Here's a thought:

Is it possible to use a rooted Nexus 7 2013 to root the Nexus 5?
[Nexus 5 General] jd1639:
Does fastboot work? That's all you need. Fastboot flash a custom recovery on your phone. Then download the supersu directly to your phone and flash that in the custom recovery
[Nexus 5 General] Anderson2:
I was trying to follow the instructions exactly.

Will fastboot alone unlock the bootloader and root the Nexus 5?
[Nexus 5 General] jd1639:
Fastboot will unlock it. Fastboot will also flash the custom recovery on the device. Once you've done that then you boot into the recovery and flash supersu in the custom recovery. You don't need to adb push supersu onto your device. You can download it direct or just drag and drop onto the phone from your pc.
[Nexus 5 General] funnel71:
I used the naked drivers instead of the LG drivers they seem to work better.
[Nexus 5 General] corcgaigh:
This thread saved my ass big time. While flashing a new ROM I wiped my storage by accident . so with no OS, no backup and no internet connection I was seriously worried for a while. Thankfully the OP took the time to explain how to adb push a file to my phone. I was lucky I had a ROM and some gapps installed on my PC but without the step by step guide on driver installation and adb commands I would have been goosed.

THANK YOU
[Nexus 5 General] gidgiddonihah:
SuperSU will not flash from CWM recovery. I tried flashing it and it wasn't appearing in the app tray. When I searched for it came up with a generic Android logo and pressing on it caused Google Search to crash. Any ideas?

Edit - Nevermind. Apparently when I factory reset SuperSU could work again. Thought when you factory reset it removed SuperSU/Superuser. Weird it worked after a factory reset.
[Nexus 5 General] abaaaabbbb63:
Well actually, a factory reset doesn't remove SuperSU because it's installed as a system app.
[Nexus 5 General] themothsO1:
This is awesome, will come in handy.
[Nexus 5 General] anunez27:
Great

Super I'll try this!! :)
[Nexus 5 General] gidgiddonihah:
Do you know why a factory reset fixed SuperSU?
[Nexus 5 General] Anderson2:
Dear Chromium

Thank you so much for these excellent newbie friendly instructions. I ran into my usual problems with finding a driver that works for me in Windows 7 64. The LG drivers didn't but the naked drivers worked fine and after that it was a breeze Your instructions were excellent!

I have a few questions and suggestions .

1. I made one mistake:

When entering "adb push UPDATE-SuperSu....." I forgot to include /sdcard. The tablet ran a bunch of instructions which I could not read. I then ran the correct command and everything else.

So my question is: did the faulty command cause damage I should undo?

2. After selecting the Supersu file, Twrp puts up a scary message about how this could make the device inoperable. This is scary to newbies. It might be nice to warn them about it in your instructions for reassurance.

3. Since we are probably dealing with newbies, should the instructions advise when to make that first nandroid.?

4. Finally, to install the naked drivers, I had to disable Windows 7 "automatic installation of driver software from Windows update". If I re-enable it now will it mess up my naked drivers install?

Again, thank you for all your clear instructions. If it wasn't for the finicky drivers - I had the same problem when rooting my Nexus 7 - it would have been a total pleasure. :)
[Nexus 5 General] anune:
Great post:)
[Nexus 5 General] Chromium:
1. All the stuff that popped up when you entered the command incorrectly was just adb documentation on the proper syntax of commands as well as a bunch of other flags that can be used. So the incorrect command wasnt able to run, thus it wouldnt have caused any damage.

2. Twrp has this message for anything that you flash. I personally think as long as you followed the instructions properly, there is nothing to worry about.

3. Maybe. I want to keep this guide straight and to the point, without incorporating too many unnecessary steps.

4. Possibly. To be honest, Im not 100% sure on how to deal with all of these driver issues. There are just to many factors that can cause problems, so its tough to have one set of instructions that will work for everyone. Although this tool seems to be very useful for people having issues.
[Nexus 5 General] vermaekansh:
rooted.

Just now rooted my nexus 5 with it.

also if possible please correct/add the FASTBOOT BOOT RECOVERY RECOVERY.IMG statement with FASTBOOT BOOT RECOVERY.IMG

else everything is smooth like anything.
[Nexus 5 General] Xave1:
error: device not found - at step 3 root

I've done the steps 1 and 2 and have an unlocked bootloader and TWRP.

I'm getting stuck at step 3 root. I enter the following

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

adb push UPDATE-SuperSU-v1.80.zip /sdcard/"

and then get:

"error: device not found"

Any pointers please?
[Nexus 5 General] Dr.Diva:
Great man :good:
[Nexus 5 General] Xave1:
Thanks Chromium.

In the short time before your response and whilst I was still getting the "error: device not found" message, I selected "Reboot" in TWRP. It then asked me if I wanted to install "SuperSU".

I selected yes and now have root.

However, should I wish to adb flash again for some other reason I'm worried I'll get the error message again. Any further pointers please?
[Nexus 5 General] Chromium:
Well its a driver problem. You could try this tool.
[Nexus 5 General] jd1639:
just flash the supersu.zip in twrp
[Nexus 5 General] Xave1:
I thought it may be. Thank you.
[Nexus 5 General] Xave1:
I've not got too far. I've deleted all the USB drivers then run the programme that you put a link to. I still get the error. I attach a screen dump:

https://drive.google.com/file/d/0Bxk_W46b6t_pZjBLSVg2LVJBNmc/edit?usp=sharing
[Nexus 5 General] Chromium:
Are you running the adb command while the phone is still in fastboot/bootloader mode? adb will only work while in a custom recovery, or when android is booted up and usb debugging is enabled.
[Nexus 5 General] BirchBarlow:
Try ADB Driver Installer. It worked for me when I couldn't get ADB to recognize my phone in recovery.
[Nexus 5 General] nleitao:
Elevated command prompt?
[Nexus 5 General] Xave1:
I've now got adb to work when booted into android.

It still wont work in TWRP recovery. I may need this ability in the future so would like to resolve the issue.

---------- Post added at 10:25 AM ---------- Previous post was at 10:19 AM ----------

I've tried this and get the following when in TWRP recovery:

https://drive.google.com/file/d/0Bxk_W46b6t_pdHowZEhJWWlsQm8/edit?usp=sharing
[Nexus 5 General] RadarBeep:
thank you very much!
[Nexus 5 General] Xave1:
Tried that get this:

The first command is in recovery, the second in android

https://drive.google.com/file/d/0Bxk_W46b6t_pZ0ZVVVlUcC1Wdm8/edit?usp=sharing
[Nexus 5 General] nleitao:
I always do it in elevated one, sorry my knowledge is very limited, aka noob :) but noticed you were not elevated...

If i had to say something i would say it's driver related issue. This always worked very well at first try...
[Nexus 5 General] BirchBarlow:
Boot your phone into recovery and connect it to your PC. Then go into device manager and remove the Android driver (make sure you delete the driver "AOSP on hammerhead"). Then try running ADB installer again and it should work.
[Nexus 5 General] Xave1:
In recovery I connect phone to PC. It then installs "AOSP on hammerhead". I go to device manager to delete it but can't see where it is saved. These are my options:

https://drive.google.com/file/d/0Bxk_W46b6t_pVzh1c0JBLXdzams/edit?usp=sharing
[Nexus 5 General] BirchBarlow:
It's not under USB controllers, it's under something else, I don't remember what. Scroll up and keep looking, you'll find it under one of the other categories.
[Nexus 5 General] tiestoycc:
thanks for the guide!
[Nexus 5 General] mjs2011:
So quick question. Is there any way to get root without a pc?
[Nexus 5 General] corcgaigh:
AFAIK NO. but I could easily be wrong
[Nexus 5 General] Wergin:
recovery

Download the recovery project and do it.
[Nexus 5 General] mjs2011:
Say what now?
[Nexus 5 General] Chromium:
Rooting doesnt require a PC. Unlocking the bootloader requires a PC. Rooting relies on unlocking the bootloader, so in the end you do need a PC. Cant be done without one.
[Nexus 5 General] mjs2011:
My boot locker is unlocked. Just not rooted. So I can do this without a pc?