yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] Chromium:
You have to flash the stock images and relock the bootloader before sending it back. A link to instructions is in the second post.

Sent using xda-developers app
[Nexus 5 General] BlackFlag79:
For when you get it working again, having 2 home screens is totally normal :D The home screens disappear if you don't have a shortcut on it. When you create a shortcut and drag it onto a home screen, go all the way to the side and it will create a new home screen. Just in case you haven't discovered that yet.
[Nexus 5 General] bikeryder007:
Quick question as I am new to the Nexus way. Now that I have completed the guide and everything is working, if I want to update twrp to a newer version, what is the right way to do it? On my old phone, it was a bad idea to do it from the Goo app, but flashing the zip in twrp always worked great. Is that the way to do it on a nexus or is it better to do it through fastboot? Thanks.
[Nexus 5 General] Vangelis13:
Either works fine. Never had a problem with goo on the n4 either..
[Nexus 5 General] bikeryder007:
Cool. Thanks. Yeah I would always use goo to download my Roms, then flash them through twrp.
[Nexus 5 General] gregb882:
Thank you, I

just

discovered that as well.
[Nexus 5 General] DestroytheNexus:
Alright thanks!
[Nexus 5 General] nostromo12:
Thanks for that lovely guide!!

But please add details for flashing the SU-Binaries. The SU-zip has to be installed by entering the CMD-command "adb sideload UPDATE-SuperSU-v1.64.zip" For me this was the only confusing item in your guide.

Thanks a lot!!
[Nexus 5 General] brenmi:
I just want to make sure before i do anything else, that by placing the android folder on root of hard drive, is just a case of putting in C:?

Or does it need to be in c:\windows?

Really want to get it all right rather than ruin my new Nexus 5.
[Nexus 5 General] cobyman7035:
Is the latest recovery

http://techerrata.com/file/twrp2/hammerhead/openrecovery-twrp-2.6.3.2-hammerhead.img

Via Google voice Δ |\|€×u$™ 7 FHD on Tapatalk²
[Nexus 5 General] shortbushemi:
Use the search part of windows 8.1 it is your friend. I'm running windows 8.1 and got the drivers loaded fine. Took me a little bit to figure out how to do it since the wording in the guide was wrong. But ran a search for what the guide was trying to tell me to do and was able to disable the driver enforcement thing to get the adb drivers installed. And I had to update my adb since it kept saying my device was offline
[Nexus 5 General] superblast:
Yes, that's right. In your case you'll just copy the android-sdk-windows to the C: drive and then the recovery.img to the android-sdk-windows folder. So, it'll be C:\android-sdk-windows
[Nexus 5 General] yldlj:
Thanks! Worked perfectly only thin was when flashing recovery.img i had to press tab then enter to get it to work.
[Nexus 5 General] brenmi:
I believe everything is going as planned, i have unlocked the bootloader and flashed the custom recovery, but i cannot copy the zip file (supersu) to the phone?

Any ideas appreciated?
[Nexus 5 General] abaaaabbbb63:
Are you getting any error or something? Give more details.
[Nexus 5 General] brenmi:
No errors whatsoever, just drag and drop to phone + is enabled but doesn't actually drop, at least where i can see it?

---------- Post added at 03:19 PM ---------- Previous post was at 03:15 PM ----------

Looks like it will only work from downloads folder not from WINRAR window, seems to work.

Thanks for help anyway, appreciated.
[Nexus 5 General] MaxRabbit:
Chromium, I included a relevant and helpful portion of your original post in my Diagnosing USB Driver and ADB issues in Windows stickied post. I gave you credit and linked to this post. Hope that's okay :highfive:
[Nexus 5 General] the baptizer:
I downloaded the slimmed version and copied it to C drive. Then I began with step 5 and did everyhing as described but I got an error message that adb devices is not a command....... Did it like 3 times over.. can someone help me?

Btw, my nexus 5 wasnt connected to the pc nor have i downloaded any drivers etc (chromium if u remember my issues i had a couple days ago, i did reset my laptop and am hoping this will solve the drivers issues)
[Nexus 5 General] jd1639:
Did you put the correct path to adb in system properties, environmental variables?
[Nexus 5 General] the baptizer:
yes, i just copied and pasted the code, and double checked it like 3 times
[Nexus 5 General] jd1639:
If you put in adb help do you get anything for output
[Nexus 5 General] the baptizer:
You mean if i put that command in command prompt? if i do that, i get the same error (its not recognised blabla)
[Nexus 5 General] Chromium:
Guys I think I'll modify the adb setup part of the guide a bit when I get home. Adding adb to the system path seems to be confusing some people so I'll try to make it kind of easier.

Sent using xda-developers app
[Nexus 5 General] the baptizer:
much appreciated, i'll wait for the updated guide
[Nexus 5 General] Datzi:
Adb is working for me flawless from anywhere.

But I have a question: Are the drivers you linked the right ones for Nexus 5? Because when I try to install the the device manager says that the drivers for my device could not be found.

Help appreciated. :good:

//edit: Got it working.
[Nexus 5 General] brenmi:
I had the same problem earlier in the thread and was helped through, have a quick look?

Just leave the PATH paste and do straight from command window in platform tools folder?
[Nexus 5 General] brenmi:
I have now finished unlocking the boot loader, flashing the recovery.img and installing supersu....I think.

Is there a checklist to know all is ok?

PS I didn't enable USB debugging in error.
[Nexus 5 General] Datzi:
To see if bootloader is unlocked, reboot to bootloeader and see what it says.

To see if recovery is working... well yea, reboot into recovery. :D

And for root, open SuperSU app in app drawer. If it's there, it works. (You could test it with a root explorer or ad blocker...)
[Nexus 5 General] gamerZ1:
I have a stupid question :(

Whats the difference between

Nexus 5 Android Development and Nexus 5 Original Android Development?
[Nexus 5 General] brenmi:
Thanks a lot.

So, it did not matter that I hadn't enabled USB debugging then?

How would I test with a root explorer/ad blocker?

When a recommended ROM is available will I have to remove supersu.

Complete beginner as you can tell
[Nexus 5 General] njnets123:
To test root, download Titanium Backup from the Play Store. To use that app, you need root. And I don't think you need to unroot your phone to flash a custom ROM
[Nexus 5 General] Willz:
How do I do this on a mac?

I'm doing the "Setup, Preparation and Prerequisites" step.

- I've downloaded SDK tools only, for mac

and step 5 will not work in the command prompt, "terminal".

Can anyone advise me please?

Do I even need to do any of these steps before skipping to unlocking the bootloader on a mac?

My goal is to: Unlock the bootloader, root, and install CWM custom recovery.

Thanks.
[Nexus 5 General] eep2378:
Original Dev is for Rom/kernels that have been source built from either AOSP or CM, etc. Android dev is usually for ports and other Roms that have been kanged, tweaked from another Rom.

BTW, nice guide [MENTION=653189]Chromium[/MENTION], I'm staying on stock, unlocked for now to see how it goes with stock ROM, battery life, etc.
[Nexus 5 General] jd1639:
It's in here, should read the whole thing http://xdaforums.com/showthread.php?p=47033844
[Nexus 5 General] the baptizer:
yeah i did take a look at ur problem there, but didnt understand how u fixed it.. so if u would like to explain, i would appreciate it
[Nexus 5 General] Chromium:
No worries. Im updating the OP now. Give me a few minutes.
[Nexus 5 General] Suhail24:
Awsome! Worked perfectly. Thanks for the guide.
[Nexus 5 General] brenmi:
Move on with the process.....

Have you downloaded the drivers and installed them?

Then enabled USB debugging?

Downloaded the custom recovery and supersu (leave in downloads until required)?

When you've done that move the custom recovery to platform tools folder (remember to rename it recovery.img)

Then go to step 9, but open command window in platform tools folder (shift and right click in open area of folder)

Hope this helps? :D
[Nexus 5 General] Chromium:
Alright, the OP has been updated with an easier/more direct way to setup adb. There shouldn't be any confusion anymore...i hope.
[Nexus 5 General] brenmi:
Sorry, not step 9, go to start the unlocking bootloader process, but open command prompts in platform tools folder as per above.
[Nexus 5 General] the baptizer:
Thanks! the first step which didn't succeed, has now succeeded!
[Nexus 5 General] Chromium:
Yep, thats what i was hoping for. You no longer need to mess around with the system path which should make things a little easier (reduce the chance of user error).
[Nexus 5 General] mrro82:
I removed the play stuff except for music.

Sent from the jaws of my Hammerhead!
[Nexus 5 General] Willz:
cd Desktop/android-sdk-windows/platform-tools

adb version

Are these two separate commands?

Type one, press enter, then the second??
[Nexus 5 General] Chromium:
Yes
[Nexus 5 General] harlenm:
ugh, phone wont reboot after unlocking bootloader, it's stuck on the spinning color dots.
[Nexus 5 General] the baptizer:
so now i installed the latest google usb drivers and my device is named: Android Device (Android Bootloader Interface)

but when i type: fastboot devices, it says that its a invalid command etc

what is happening?
[Nexus 5 General] jd1639:
Use fastboot device. No s at the end
[Nexus 5 General] Chromium:
Read the second post.
[Nexus 5 General] Kebb42:
Is it possible to issue adb commands from one nexus device to another with an otg cable?
[Nexus 5 General] the baptizer:
ooh i got it, i have to continue from that very first step, otherwise command prompt will give an error!
[Nexus 5 General] Chromium:
Did you cd into the location of your platform tools directory?
[Nexus 5 General] the baptizer:
I unlucked the bootloader!!

which custom recovery do u prefer, because i have no knowledge of them?
[Nexus 5 General] harlenm:
Not sure how I missed that.

Ran nexus_restore and I got it to boot.
[Nexus 5 General] Chromium:
TWRP is my preference.
[Nexus 5 General] Chromium:
Not that I know of.

nexus_restore ?
[Nexus 5 General] harlenm:
http://xdaforums.com/showthread.php?t=2513937
[Nexus 5 General] Chromium:
Oh my, you've killed a kitten...
[Nexus 5 General] the baptizer:
so is there anyway to check if ur phone is rooted? i have SuperSu installed now, would that be enough??
[Nexus 5 General] Chromium:
Yes you should be rooted now. If you want to be sure you can download terminal emulator, open the app and type in "su" hit enter. A new window should open prompting for root so click "Grant". Terminal emulator should come back up and you should see a "#" on the next line. If you see that, all is good :good:
[Nexus 5 General] mattrb:
I told the woman I love that we cannot get married unless you have a phone that does fastboot OEM unlock.
[Nexus 5 General] harlenm:
Why? Lol
[Nexus 5 General] the baptizer:
CONFIRMED

Thanks for ur help!!
[Nexus 5 General] Chromium:
You used a toolkit type thing. But its not really a full fledged toolkit, so i guess you just injured the kitten. Its still alive. :p
[Nexus 5 General] harlenm:
It worked, so that's all that counts,right?
[Nexus 5 General] Chromium:
Lol, i guess. But you lost an opportunity to learn how to flash the stock images manually.

Oh well, glad you got it sorted.
[Nexus 5 General] flintdragon:
how would I root the phone without installing a custom recovery?
[Nexus 5 General] Chromium:
http://xdaforums.com/showpost.php?p=47187890&postcount=199
[Nexus 5 General] flintdragon:
Thanks! I thought it might have already been addressed but I couldn't find it.
[Nexus 5 General] textus:
Does anyone know if rooting will affect/delay updates from google on the latest Android editions?

Will rooting void the warranty?

Do you have to unlock the bootloader to root?

After unlocking the bootloader will it affect/delay updates from google?

Will unlocking the bootloder void the warranty?

Is rooting or bootloader unlocks permenant?

Will either of these action be shown explicitly, say in the starting up of the phone? (for e.g. my razr i would show a screen that says "Warning! this phone's bootloader is unlocked" in the beginning when powering up)

Thank you and sorry for so many questions. Its just that most guides I read jump straight into what it does and how to do it without the surrounding factors.
[Nexus 5 General] nrvate:
Man, that was the first "WTF" I had with KitKat. Ended up figuring that out pretty quickly, but after an hour or so, I realized the KitKat launcher is very stripped down. Hit the market, grabbed ADW launcher, and got back a lot of the functionality I'm used to... especially the ability to customize the number of rows/columns on the home screens. Now my apps fit on one screen again :) (6x5 grid)
[Nexus 5 General] jj14:
I'll try to answer - if I misspoke, I'm sure other knowledgeable users will correct me :)

Rooting? No. But if you modify system files, you may not be able to apply OTA updates. You may have to get back to stock, or just flash the new update ROM in recovery.

It should not - worst case scenario, unroot after going back to stock - see http://xdaforums.com/showthread.php?t=2513701

Yes.

Unlocking the bootloader will not delay updates from google

Should not - worst case scenario, just relock the bootloader - see http://xdaforums.com/showthread.php?t=2513701

On the Nexus, no.

The unlocked bootloader will show up as an open lock icon during the boot up process.
[Nexus 5 General] efrant:
Did you ever sort this out?
[Nexus 5 General] lopri:
Hi,

If I want root but not custom recovery, can I go back to step 2 (after step 3) and flash the stock recovery.img extracted from the stock image file (zip)?
[Nexus 5 General] abaaaabbbb63:
You could use CF-Auto-Root.

http://xdaforums.com/showthread.php?t=2507211
[Nexus 5 General] voyagerfan99:
Great guide OP. Got my N5 today and had it rooted with CWM installed in about 10 minutes time :good:
[Nexus 5 General] Natakranta:
Yes, it will work. See also Chromium_s post 6 posts above yours. Instead of flashing custom recovery and then flashing back stock recovery extracted from factory image why not just fastboot boot your phone into custom recovery. Using fastboot boot recovery recovery.IMG command from cmd window will boot your phone into recovery using recovery image file written on your computer hard drive. Then you flesh CF root.zip on your phone and reboot. Phone boots to android and root is there, su binary in its place and SuperSU app installed to manager it, ergo your android is rooted. Next time you reboot to bootloader and go to recovery the stock recovery is there as it always was.

And personally with such new phone and fresh recoveries I'd rather first fastboot boot custom recovery to see how it works before actually flashing it on phones recovery partition.

I unlocked bootloader next day I got the phone and now I'm waiting for official CWM recovery.

and another kitten bites the dust... ;)
[Nexus 5 General] cobyman7035:
damn i got scared after doing, fastboot reboot command

it rebooted to the green android robot and the screen kepting going with status bar hanging, took like a minute but now its rebooted back to android nexus circles glowing, taking a while to reboot

im unlocked now, so can i install the google OTA update, and still be unlocked after? or do i skip the ota from google?
[Nexus 5 General] X-Jonte-X:
Yes,See post #4

http://xdaforums.com/showpost.php?p=47027842&postcount=4
[Nexus 5 General] NCguy:
Has anyone tried booting the new CM N5 version recovery yet? Any luck?
[Nexus 5 General] Natakranta:
Could you link which one you mean?

There's no official CWM for Nexus 5 yet.
[Nexus 5 General] abaaaabbbb63:
There's an unofficial one in the Development section.
[Nexus 5 General] NCguy:
Yes, that's the one. Just interested in using for nandroid backups.
[Nexus 5 General] cooooooop:
great guide, used it on my new Nexus 5 to unlock and install slimkat alpha!
[Nexus 5 General] domenicop:
is google ok with you rooting your nexus 5? I mean warranty-wise...

If not, can you restore the phone to a previous, not-rooted state (I could with the Note II, flashing a factory rom via odin) ?
[Nexus 5 General] jd1639:
Read this. http://xdaforums.com/showthread.php?p=47156064
[Nexus 5 General] Chromium:
Well the nexus line is technically meant for developers, so i guess Google expects us to load custom stuff onto it. But with that said, you cant send the device back to them in a rooted/custom state. You must first flash the factory images and lock the bootloader. Once thats done, google should honor your warranty.
[Nexus 5 General] domenicop:
Thank you for the quick reply. It's what I was thinking but it's nice to have another opinion on my side.

Will all my files be deleted if I root via the CF-Auto-Root script?

Is there a method to avoid that?

PS. I have an unlocked boot-loader.
[Nexus 5 General] Chromium:
If you already unlocked the bootloader, then no nothing should get wiped.
[Nexus 5 General] domenicop:
I mis-wrote it. I have a locked bootloader!
[Nexus 5 General] Chromium:
Yep, then everything will get wiped. Doesn't matter if you use this guide or chainfires script.
[Nexus 5 General] abdulhamid1978:
:victory:My Nexus 5 will is on pre-order. Good to see that custom roms will be available straight away.
[Nexus 5 General] famoustito:
i skipped the last step on the bootloader unlock.... my device is stuck on the boot screen how do i fix this please help
[Nexus 5 General] jd1639:
Do a factory reset and clear cache in the stock recovery
[Nexus 5 General] tryker62:
Thank you for your guide. I used a toolkit on my Nexus 4 and tf 700. I decided to try your guide and I learned a lot about the process on my Nexus 5.:)
[Nexus 5 General] Shibang:
Strange...TWRP wouldn't work for me. The recovery wasn't fully functioning. I had to go with CWM instead. Anyone else have luck with TWRP? Outside of that, great guide.
[Nexus 5 General] jd1639:
Good for you. You'll be better for it in the long run. Much better to understand what you're doing rather than just using tool kits.

Sent from my i727 on 4.4
[Nexus 5 General] cobyman7035:
so im on 4.4kitkat, unlocked boot, rooted, custom recovery TWRP, stock rom/stock kernel

if i install a kernel, ie franco, will i lose all my installed apps? if yes, can still get them back with titanium pro using restore(after the new franco kernel is flashed) ? thanks
[Nexus 5 General] Vangelis13:
You don't lose anything by flashing a kernel, you should however ALWAYS make a backup in your recovery (referred to as Nandroid backup) before flashing roms, kernels & other modifications. That way you can revert if things go wrong. Which they do. Regularly.

P. S. Just saw your profile. Shouldn't you know this by now..? :what::p
[Nexus 5 General] szucsgf:
You will not lose any apps or data if you flash a kernel.
[Nexus 5 General] R3jected:
Thank you for the detailed Guide!

It worked!

Keep it up!
[Nexus 5 General] bigj480:
Thanks for the guide. I used it just to unlock the bootloader because I'm waiting for things to develop. Actually, I'm not sure I completed the unlock. After the "fastboot reboot" command, the phone rebooted and displayed a green bar under the android guy for a while then loaded up. After that I had to enter some info again (like first boot) but google "recovered" my account and all of my apps were still there. Not sure it's complete, but I guess I'll find out when I finally root/ROM.

Anyway, a little something I noticed during the process. When I entered "fastboot devices" into the cmd prompt by itself, it did not work. I had to enter it in the previous cmd prompt that I used to verify ADB version. I guess that's normal but it was a minor speed bump that I didn't see coming.
[Nexus 5 General] Chromium:
Yes sounds like it worked fine. Your apps were likely restored due to googles auto restore feature that you probably enabled during the setup.

And yes for all of the fastboot/adb commands to work you need to have the command prompt pointed into the platform tools directory. I will add that to the op.
[Nexus 5 General] poells:
just bought this phone and it shipped today :D cant wait to root it
[Nexus 5 General] bigj480:
I need to send my phone back due to some dead pixels. All I did was unlock bootloader, thankfully. So to get back to stock config all I have to do is repeat that process with the "fastboot oem lock" command, correct? Then a factory reset and I'm good? I think when I allowed USB debugging it stated that it may void the warranty, but I'm still good, right?
[Nexus 5 General] Chromium:
Yep all you gotta do is relock the bootloader.
[Nexus 5 General] nextgeek:
Thanks for the guide ;)
[Nexus 5 General] David Guite:
Is there any possibility of bricking the device while only Unlocking the bootloader?? Like bootloop, stuck at google logo??

I'm asking this because im coming from a Sony where unlocking bootloader is dangerous (unofficial method where we use Test point and.... Ofcourse I unlocked it :D ) and may easily brick the device.
[Nexus 5 General] Vangelis13:
I've never heard of such a horror story on a Nexus.

Is it possible? Doubt it. You can always go back & flash a stock image for as long as there's any sign of life on the phone / connection to pc.
[Nexus 5 General] David Guite:
Good to hear this :D
[Nexus 5 General] abaaaabbbb63:
On the Xperia Z1, if you unlock the bootloader without doing something first (I forgot what), your camera will no longer work... forever. There's no fix for it. Camera.....lost.....forever....
[Nexus 5 General] Vangelis13:
Whaaat?! Never again non-Nexus phone, this is the one thing I'll ALWAYS stick to..

(first was the n1 and all the rest. Only the Atrix broke that line & it was a pain..)
[Nexus 5 General] Kilsyth:
will this method of unlocking and rooting will work for the international version D821 variant?
[Nexus 5 General] NCguy:
Cameras are overrated anyway:D
[Nexus 5 General] Chromium:
Yes, it works for both variants.

Sent using xda-developers app
[Nexus 5 General] eroarekkusu:
Sorry in advance for the newbie question. I'm having trouble installing the packages in the SDK. I extracted everything to desktop and when I click on SDK Manager.exe a command prompt box instantly opens and instantly closes. I don't have the option to install anything. Is there something I missed?
[Nexus 5 General] Chromium:
Its normal to see the command prompt quickly open and close, but soon after (be patient) a new window should come up.

How long have you waited?
[Nexus 5 General] eroarekkusu:
Thanks for the quick response! I've waited a few minutes, but shouldn't a program dialogue box auto-popup?
[Nexus 5 General] Chromium:
Yes it shouldve popped up by now. I would suggest using the slim sdk package instead, so that you dont need to rely on the sdk manager.
[Nexus 5 General] eroarekkusu:
Thanks! Seems to be working.
[Nexus 5 General] pialletti:
twrp

Why am I seeing a red triangle with a dead android when booting into recovery even after I flashed a custom recovery?
[Nexus 5 General] abaaaabbbb63:
The recovery didn't stick. Try flashing it again.
[Nexus 5 General] gee2012:
This is still stock recovery. Did you clear the cache after flashing the custom recovery (fastboot erase cache) ?
[Nexus 5 General] pialletti:
already done 2 times

---------- Post added at 09:37 PM ---------- Previous post was at 09:34 PM ----------

no. how to do? thanks
[Nexus 5 General] gee2012:
In fastboot after you flashed the recovery type in cmd: fastboot erase cache and fastboot reboot to reboot.
[Nexus 5 General] pialletti:
mmm and if I install other recoveri? cwm?

---------- Post added at 09:49 PM ---------- Previous post was at 09:47 PM ----------

or factory data reset? and then start again?
[Nexus 5 General] gee2012:
Doesn`t matter which custom recovery you flash, it is always advised to erase the cache after the flash.
[Nexus 5 General] pialletti:
you just need to type this command? fastboot and erase cache fastboot reboot to reboot.
[Nexus 5 General] Chromium:
Lol, you just posted the exact question from the FAQ post in this thread. Read the answer maybe?