yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] yerfenuj:
Hi xda i am ready to root my n5 but the only problem that i have is im confused with command prompt i cant get it tio work pls help. my drivers are all ok. just this problem. waiting for feedbck guys
[Nexus 5 General] jd1639:
Are you just trying to open a Windows command prompt? Go into the directory where the image files are that you're trying to flash and then shift + right mouse click on an open area. A dialog box will pop up. Use "open command window here"
[Nexus 5 General] yerfenuj:
Succesfully rooted my Nexus 5. Thanks to this guide sr. [MENTION=4883664]Chromium[/MENTION] keep it up. I have a questions guys.

1. Whenever i try to install a new custom rom should it be at the same pc that i used for rooting? Or is it ok with other pc?

2. Do i really need to connect nexus 5 to pc whenever installing custom rom? Why not just in recovery twrp?

Waiting for your feesbck guys
[Nexus 5 General] :
1 and 2 have same answer... No need to use a pc to flash a rom.

Just download the rom(on the phone) , and gapps if required, and install in recovery.

Just follow the instructions in the rom thread. ?

And a good practice is to always do a backup in recovery before doing anything. So you can restore it if you have trouble or don't care for the rom.
[Nexus 5 General] Zwambo:
5.1 bootloader

Hi all :),

I'm having a question about flashing the new bootloader from Android 5.1.

I am currently on a custom rom and i want to flash the new bootloader without using toolkits.

First i will make a nandroid and data backup.

I've downloaded the Factory Image from official google site :). So i unzipped and found the bootloader img.

So i flash this file with adb fastboot? Not sure on this part actually ... Could i use some help from here :)? With the right commands and such :).

Thx in advance :D!
[Nexus 5 General] Primokorn:
You should use fastboot commands not adb: fastboot flash bootloader C:/patch_of_your_Bootloader/bootloader.img

This is explained in the method 2 from this guide: http://xdaforums.com/google-nexus-5/general/tutorial-how-to-flash-factory-image-t2513701
[Nexus 5 General] Zwambo:
Thanx for the info :D!!
[Nexus 5 General] rbs_uk:
Chromium,

I followed your guide and it worked great(I`m Android noob). Thank you.
[Nexus 5 General] omiXD:
Hi bro.

I have download android-sdk-window but there is no SDK manager.exe file . what should I do ???

---------- Post added at 02:47 PM ---------- Previous post was at 02:41 PM ----------

And one more thing I can't download Android Studio :/ im really really confused . I just want to cry.. Nothing is in my favour ... Why ?????????
[Nexus 5 General] Primokorn:
There are no reasons to not be able to download Android Studio. :confused:

Useful guides:

- https://developer.android.com/sdk/installing/index.html?pkg=tools

- https://developer.android.com/sdk/installing/index.html?pkg=studio
[Nexus 5 General] Lape500:
Quick and propably stupid question but I want to be sure before messing something up: Can i use this with stock 5.1 with unlocked bootloader. Also another stupid question: Is there some difference between download pages of TWRP home and site on this thread and which version of TWRP i should use (Is 2.8.6.1 buggy like someone said) (Im quite poor so I want to be sure I will not break my phone) Also is it really a big risk to use USB 3.0 since my laptop doesn't have 2.0 ports.
[Nexus 5 General] bb709394:
Not sure what you mean by using stock 5.1 with unlocked bootloader. I am currently on 5.1 (LMY47D) with unlocked bootloader and using twrp 2.8.5.3 (didn't see a need to upgrade to 2.8.6.1). USB ports should not make any difference as long as your N5 is detected in Windows. Just grab the SDK files to ensure you have the latest drivers installed and follow the directions from the original OP.
[Nexus 5 General] sweethurt:
recently i want to install miui 6 port on my nexus 5 with xenon xd 5.02 rom,

i've backed up my previous rom which is xenon, after that i wipe all to install miui from recovery and it cant boot, i assume that my file is corrupted so i want to go back to xenon by restoring and i cant go past the bootanimation which mean i got bootloop

i've tried everything and i don't really care about restoring anyway

the problem is that my nexus 5 cant be detected on my win7 on adb at recovery screen ( im using cwm ) to push another rom zip into my storage

but it detected at adb devices with (some sort of number) devices while i restarted my phone on bootanimation at bootloop , can i just push my zip at this condition or should i do something to push the zip by using other way ?
[Nexus 5 General] jd1639:
You could try it, it won't hurt anything. I'm not sure if it'll work though.
[Nexus 5 General] durbshas:
Hey thanks for the guide, first day here at XDA. Could you post the command prompts for Mac? As far as the first prompt to install custom recovery and root (cd Desktop/android-sdk-windows/platform-tools) should I just change it to "android-sdk-mac"? Then everything else is the same?

Also just to confirm, I have already unlocked my bootloader, so the process of rooting will not wipe my device? I will make a nandroid backup as soon as I flash the custom recover regardless, but I am wondering if I will need to restore after the process of wiping.

Thanks
[Nexus 5 General] Andromendous:
hey all, i just got a used N5 off someone on craigslist, I just found out that it had twrp as a recovery but yet the bootloader was locked. I went to unlock it with fastboot oem unlock, waited for the bootloader to do its thing, then i did fastboot reboot, it rebooted to twrp, i saw a bunch of errors like, "error unmounting something" then it rebooted, now its just been stuck on the boot animation for like 10 mins, what do you think i should do? btw it was on 4.4.4 when i did this
[Nexus 5 General] jd1639:
If the bootloader is locked do

fastboot oem unlock

Then reboot the device into the bootloader

Then do:

fastboot oem device-info

If it shows that the device is still locked your emmc is bad. Nothing you can do about that, you're sol.
[Nexus 5 General] Andromendous:
its all good, just turned it off and flashed 5.1 factory image. thanks anyway
[Nexus 5 General] jd1639:
Glad it's good. The alternative would not have been good :)
[Nexus 5 General] Prince-Navaroth:
lost root on my nexus 5

Hi, i lost root on my nexus 5 when upgrading to 5.1. Ive tried flashing the SuperSU but it has no effect. When i open SuperSU it says there is no binary installed. how do i get my root back?
[Nexus 5 General] bb709394:
Questions:...

1) Did you flash all 5.1 files? Or was it a manual dirty flash (eg: flashed certain files)

2) Did you return to stock prior to updating to 5.1 or did you upgrade a modified N5?

3) Which version of TWRP or CWM are you using?

4) You flashed SuperSU 2.46?
[Nexus 5 General] Prince-Navaroth:
1) I think it was all the files

2) No, i had rooted it before, then upgraded it without returning it to stock.

3) Newest one

4) I think so, i'll try to flash superSU again.
[Nexus 5 General] fryguy128:
I don't know if it's been covered here before but, if you don't want to lose everything when you unlock your bootloader make a backup of your phone using adb (google for how to do it, it's really simple). Then after you've unlocked your bootloader restore your backup. Everything is good as new. This method does not however back up text messages so, if you want/need those download an app to back them up.
[Nexus 5 General] solarfish:
I am unable to unlock my bootloader, this is a stock N5, was working fine until today when it rebooted and got stuck at the Google logo. Here are the steps I am able to take:

1. Boot into fastboot. I can see the bootloader is locked.

2. Run [fastboot devices]. I get a serial number back.

3. Run [fastboot oem unlock]. I get the confirmation screen on the phone.

4. Select [Yes] and press power button. Phone screen goes black, dots appear at command prompt on PC.

5. After some time I get [OKAY] and [finished] at command prompt. On phone I now see bootloader unlocked.

6. Run [fastboot reboot]. The phone goes off and never comes back on.

7. Eventually I power the phone on back into fastboot and the boot loader is locked once more.

At this stage I am out of ideas how to proceed, if I can't get the unlock to stick obvious I can't flash the phone to get it back. Normal power on is still not getting past the Google logo.
[Nexus 5 General] rahulsai2341:
Try factory reset it your phone got struck in bootloop after unlocking the bootloader.
[Nexus 5 General] solarfish:
I did try to get to that but am unable to even get to the factory reset option because I can't get into recovery mode. Is there some other way I can perform the factory reset?
[Nexus 5 General] jd1639:
When you try to boot into recovery do you get the dead android on his back? If so, press and hold power then press and release vol up.
[Nexus 5 General] solarfish:
No dead android, just a black screen when I select recovery option.
[Nexus 5 General] jimmyjohnIII:
Holding volume down button during boot process should bring up recovery. Are you still able to get into the bootloader and use adb?
[Nexus 5 General] solarfish:
Yes I can get the phone to bootloader and use ADB, I just can't get unlock to stick or get to 'dead android' to perform a factory reset. Also any attempt to flash fails, but that is due to the fact that I can't unlock the boot loader.
[Nexus 5 General] ba1atu:
I cant get things started. I tried following the tutorial to the letter.

My phone has usb debugging on.

Drivers are installed (not from lg, from latest_usb_driver).

Phone is connected to a usb port on the back of the pc.

fastboot devices doesnt give any results.

fastboot oem unlock says waiting for device.

Solved. Seaarching the web i had to turn off phone, boot in bootloader mode and the connect phone to pc.
[Nexus 5 General] thebobmannh:
You could have saved yourself a web search and just read the very first line of the very fist step in this guide :)
[Nexus 5 General] ba1atu:
I know. Im so embarassed...
[Nexus 5 General] thebobmannh:
LOL. We've all done it.
[Nexus 5 General] antonio.ng:
Camera

I just installed cyanogemod I realized that the phone's camera focused on the photo option has is this normal?
[Nexus 5 General] CamoGeko:
Nice guide, thanks!
[Nexus 5 General] elektrobastler:
Very nice!

I did it all by myself and forgot the small yet important reboot after the oem unlock. Caused me a bit of trouble, and some time to re-flash stock recovery and let it reboot again before flashing TWRP. Too bad I didn't stumble upon this guide back then!
[Nexus 5 General] michielvDroid:
I have some questions related to making backups with cwm recovery and Nexus 5.

- I guess these backups are Nandroid backups?

- The filename starts with 1970... instead of the date, which is a bit confusing.

- Will these backups contain everything also images, SMS, ...?

- Will these backups not be overwritten when flashing another ROM because the backups are not on an external SD card?

- I can't see the backups in my root browser app.

- I have also an online nandroid backup app, but I can't see these backups in cwm recovery, so how can I restore them if I can only access cwm due to let's say a bootloop?

Many thanks for the info!
[Nexus 5 General] Primokorn:
1. Switch to TWRP

2. Backups are Nandroid bakcups

3. Images, SMS, call logs... aren't included (/data/media/0 is always excluded)

4. Nope. When you wipe /data, TWRP doesn't touch /data/media/0 (where your nandroid backups are stored => /sdcard/TWRP/Backups/Imei/)
[Nexus 5 General] mousemeat:
Just got my nexus today and in less than 30 min it is already rooted, unlocked bootloader.

Very good tutorial.thanks
[Nexus 5 General] anshumangoyal:
There was some issue with my phone and phone has completely gone into bootloader. Now I cannot boot into OS at all.

While in fastboot, I can see the phone. When i give command fastboot devices I can see my device. After running command fastboot oem unlock, I can see the prompt on screen to unlock it.

After doing this when I give command fastboor reboot, the phone is stuck on Google Logo and in continuous boot loop.

Is there anything I can do now? I cannot enable android debugging etc. as I am always in boot loader. Someone please help me with this.

Took this phone to service center and guy told me it is not possible to repair this phone as this is a brick now.
[Nexus 5 General] jcsww:
As long as it can take Fastboot commands, it is possible to fix. What you need to do is find the stock image for your device and flash it. It will wipe your phone and return to complete stock but it will work once again. There are plenty of great tutorials around here on how to return your phone to stock as well as a toolkit, if needed.
[Nexus 5 General] anshumangoyal:
Nothing worked. Tried this as well. There are some weird errors recovering from stock as well.
[Nexus 5 General] jcsww:
Wug's Nexus Toolkit has some options for recovering from bricked. It can't hurt to give that a try.
[Nexus 5 General] anshumangoyal:
Yeah. I tried them all. Its stuck somewhere and is not coming out.
[Nexus 5 General] jcsww:
That's definitely unusual then. Does it go straight to the bootloader or do you have the menu where you can select recovery, etc? If you can, try factory resetting it and then try some Fastboot commands to see if you can get it to take. When i soft bricked my 32GB Nexus 5 back when I first got it, it took a lot of messing around iwth it. Eventually I was able to get a custom recovery (Clockwork) installed with Fastboot, was able to boot into it, and flashed a ROM.

Keep at it and best of luck! As long as it turns on, things could definitely be worse.
[Nexus 5 General] anshumangoyal:
It boots into fastboot mode. When i try to unlock the bootloader it shows the warning mesaage. I select yes and perform reboot. It again comes to fastboot and again locked bootloader. When flashed custom recovery, twrp hang on startup logo and never goes in. Cwm reboots automatically in between. So nothing seems to be working now. Looks like the storage has gone bad.
[Nexus 5 General] jcsww:
What were you running before this happened?
[Nexus 5 General] anshumangoyal:
Nothing. The phone's battery drained and when i plugged it in, it never came up.
[Nexus 5 General] Nexususer15:
Stuck at root stage

Hi,

I am currently stuck on the rooting stage. When I try to push Update SuperSU, command promt says ''error device not found. I've tried device manager and i have latest nexus drivers but windows was unable to install drivers.

HELP!!!:eek:
[Nexus 5 General] billy662:
Thanks, it really does help:)
[Nexus 5 General] sonal.nath1307:
Nexus5 restrating after rooting

Hi,

I had the nexus 5 power button reboot issue. SO I planned for a downgrade from lollipop to kitkat. So I have rooted my nexus5 yesterday. After that I tried flashing it with KItkat image (earlier it was on lollipop). But the flash-all.bat didnt completed execution and stopped in between saying "fastboot.exe stopped working". Then I didnt tried anything. The phone was up and working till today morning. Out of the blue my phone shuts down and is not coming up. When plugged in charging, it is going in reboot loop. Please help. Is it bricked?

Thanks,

Sonal.
[Nexus 5 General] apetsiampiah@gmail.com:
when i run the flash recovery command, i get a message that says "cannot open recovery.img" Please help
[Nexus 5 General] Srandista:
Well, power button issue is HW problem, so downgrade to KK is not going to help you. I have a same problem few weeks ago, and I was lucky, because we have 2 years warranty here, so I got new device from RMA process. But, if you are not covered with warranty anymore, you should probably try to find some repair shop, where they can replace that faulty button.

See some information about that faulty power button in following thread:

http://xdaforums.com/google-nexus-5/general/nexus-5-power-button-broken-heres-to-t3049747
[Nexus 5 General] sonal.nath1307:
Nexus5 restrating after rooting

Hi Srandista,

Thanks for the quick reply. As soon as I read your reply, I went to the LG Service centre and told the issue. They asked if it was rooted and I said yes. They kept the mobile for inspection and called after few hours. They said, some part related to the power needs to be changed. It will cost 1290 INR. Glad to hear it is not costing much. Asked them to go ahead. Lets see what happens to the existing problem. Also I asked them to degrade it to Kitkat. DOnt want to stay with Lollipop. Will update later.

Thanks a lot.
[Nexus 5 General] nopooping:
EDIT: between the Download button, and the Download Now button, I see the Download Now button downloads what you want.

The Download button downloads all manner of evil. May it burn in hell.

How much adware is in the slimmed down link on page one , marked in red :

ADB and Fastboot Installation

Download the full Android SDK here (scroll to the bottom of the page>DOWNLOAD FOR OTHER PLATFORMS>SDK Tools Only) or get a slimmed version containing only the essential components here (Thanks [MENTION=962867]El Daddy[/MENTION])

god help me why is that link posted. I hate your guts.
[Nexus 5 General] Drambit:
Okay so I have ran into a series of annoying problems, not sure what the specific solution is to any of them.

First of all, when I tried to complete the first step of the guide, which involves unlocking the bootloader so that you can load custom recovery, I found out that my phone was already unlocked, perhaps from years previous, I'm not sure , either way that was kind of weird, not sure if that indicates anything, or if it is actually necessary to wipe your device prior to rooting.

Second, I got the CWM custom recovery working briefly, so that I could enter it once, but if I restart my phone from being in the CWM recovery, I can't enter it again, and if I try it just shows me the dead android with the red warning triangle, in order to get back to it I have to send the command line again. That's kind of odd.

Third, and probably the most poignant, is when I get into the custom recovery, then send the SuperSU zip to my phone, it doesn't show up. The command line executes like nothing is wrong, but when I go to actually search for the zip file on the recovery to complete the rooting progress there is nothing anywhere, obviously a major problem.

I'm on 5.1.1 lolipop with a Nexus 5, any help is appreciated.
[Nexus 5 General] efrant:
I wouldn't worry about it.

The stock ROM is set up to re-flash the stock recovery on every boot. That's why you see the "dead Android" (which, by the way, is the splash screen for the stock recovery). Once you have root, your custom recovery will stick, because SuperSU prevents that from happening.

If you are having issues, why not boot into Android, fire up Chrome on your phone, download SuperSU that way, then boot into recovery and flash it?
[Nexus 5 General] Drambit:
Never considered that to be a possibility, the guide said to use command line so I assumed that is the only way. Is there any alternative way to do it with command line to ensure it always shows up? The command prompt tells me that the file transfer is always successful to /sdcard/, but I can never find the file in CWM.
[Nexus 5 General] efrant:
Good question. We can try and troubleshoot (for learning purposes) but it would be easier to get it done the way I mentioned.

As to why it doesn't show up, are you sure that the data partition is mounted mounted in CWM? (I haven't used CWM in a long time -- TWRP is usually much more up to date, so that's what I've been using). If it is not mounted, you are likely pushing the file to a temporary directory in RAM rather than to the actual flash memory.
[Nexus 5 General] Drambit:
I downloaded the SuperSU zip directly on my phone, reflashed CWM, and everything worked like a charm, thanks!
[Nexus 5 General] Drambit:
Oh and by the way, whoever decided that it was an acceptable thing to do to attempt to make money by taking someone else's code that's freely available, and packaging it with extremely invasive cancerous adware, then linking that cancer in a newcomers guide to rooting, please, for the good of humanity, kill yourself.
[Nexus 5 General] efrant:
To what are you referring?
[Nexus 5 General] Drambit:
"Download the full Android SDK here (scroll to the bottom of the page>DOWNLOAD FOR OTHER PLATFORMS>SDK Tools Only) or get a slimmed version containing only the essential components here (Thanks [MENTION=962867]El Daddy[/MENTION])"

If you download the "slimmed version" you get an installer, an installer that happens to be overflowing with adware. Whoever uploaded that has the ****ing nerve to take someone else's code (google,) fill it to the brim with adware, and not only that but in the installer they switch the "continue" and "cancel" buttons around to bait you into clicking the continue button, and if you click the cancel button to leave the installer, it gives you a popup window with two buttons on it, cancel and something else, both of them rape your computer with adware. After accidentally clicking a continue button once when I consciously tried to cancel and leave the installer, it immediately hijacked all 3 of my browsers, and installed 3 different instances of malware, as well as 3 different browser extensions in each browser.

The guy who wrote the guide even has the balls to write "Thanks [MENTION=962867]El Daddy[/MENTION]" right after the link. Disgusting. By a stroke of luck I have had to deal with **** like this 4 or 5 times now so I managed to rid my computer of this cancer within 30 minutes, but usually this kind of thing requires a full reformat because it sticks it's cancerous tendrils into everything.
[Nexus 5 General] efrant:
I just downloaded the "slimmed version", and there is no adware in it. The problem stems from the hosting site -- that hosting site presents you with 2 download buttons, one which is the "right" button, while the other one links to malware.

Pinging [MENTION=4883664]Chromium[/MENTION] to remove the dev-host link and host elsewhere (i.e., here on XDA as an attachment, or androidfilehost, for example).
[Nexus 5 General] Drambit:
Oh okay thank god it wasn't the uploaded trying that. Still pissed off that I use noscript AND adblock as well as consciously avoid sketchy download buttons, and then when it downloaded I consciously went out of my way to avoid giving the program permission to do anything, and still got caught. These adware designers got really good at installing cancer on people's systems. Anyway, if it isn't actually the guy who uploaded the slimmed version doing it I have nothing really to complain about besides the poor choice of hosting website.
[Nexus 5 General] jj14:
I've used TWRP on my Galaxy Nexus, and then on my S4 - so I will likely go with TWRP, but the last few releases of TWRP for my S4 were buggy, and I always had to revert back to 2.5.x.x to get it to work reliably.

That's why I was a little hesitant to install TWRP on my N5 right away - till any initial bugs were ironed out :)

For now, I just need to be able to install adaway & Titanium backup (that needs root) - I think I'll tolerate the ads for another week or so before I install TWRP (hopefully, by then, the initial issues would have been resolved)

I had read chainfire's thread where he provided a batch file to just root (without custom recovery) - I didn't look into the contents of the batch file, but I guess he must have used the method that [MENTION=4883664]Chromium_[/MENTION] had suggested (temporary custom recovery)

[MENTION=5180758]Natakranta[/MENTION] & [MENTION=4883664]Chromium_[/MENTION] , thank you for your help! :)
[Nexus 5 General] peste76:
Read the whole thread and no i´m not a noob in this. But it leaves one question for me open: Is the Nexus 5 completely wiped after unlocking the bootloader ? Chromium wrotes something about a fix in 4.3....and so on. Damn, i´m using the device already productive - but i´m still frickling for unlocking & rooting...damn this is an addiction :)