yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] pdags:
Windows XP MTP Issue

Sharing what little I can contribute...

If you try to do this process via Windows XP you'll have an issue with step 3 when you try to Upload the SuperSU file to the device. XP doesn't have native support for the MTP protocol so you'll be unable to push files to the device. You'll need to install the MTP protocol and configure the inf to see your N5 as a generic device.

Download and Install the MTP Porting Kit for XP

Update wpdmpt.inf to see your Nexus 5 as Generic Device

Props to the original poster in step #2. After updating the wpdmpt.inf with my Nexus 5's Hardware ID MTP worked as expected.
[Nexus 5 General] vandoor:
Thanks for this tutorial!

+++

vandoor
[Nexus 5 General] mtucker:
fastboot boot

To temporarily install TWRP, I tried using fastboot boot recovery recovery.img (instead of fastboot flash recovery recovery.img) as discussed earlier in the this same thread http://xdaforums.com/showpost.php?p=47199061&postcount=234 It did not work. I double checked my path, but nothing. Then I looked at the options for fastboot by just typing fastboot in the command window (Windows 7).

It returned the following info about flash and boot use

C:\android-sdk-windows\platform-tools>fastboot
usage: fastboot [ <option> ] <command>
flash <partition> [ <filename> ] write a file to a flash
boot <kernel> [ <ramdisk> ] download and boot kern

Based on what I saw for the boot option <kernel>, I guessed that is why I was having a problem. I then used flash instead of boot for recovery.img and all was well. Just a FYI for others that might try using boot instead of flash for installing a custom recovery. Maybe boot works with other devices or I don't have everything downloaded in my SDK that I need to boot? I am now rooted, but I am curious if someone with a better understanding of the process can explain why boot didn't work.
[Nexus 5 General] hoseunten:
I used the nexus toolkit latest Version to root my n5. If i use the Option to unroot my device everything is fine with the ota's?. And what if i uncheck "put custom recovery", die i then get the ota's with an rooted device ? . i just want to have a rooted device and still want to get Google updates.

THX for your help
[Nexus 5 General] Vercion3:
As long as u have stock rom and kernel, u will get future updates from Google. U should flash custom recovery img.
[Nexus 5 General] l337sponge:
So I unlocked the bootloader and then installed CWM so I could root. Anyways, it is late and I am tired, I decided to reboot the whole phone and then go back into the recovery and then do it... well it asked me if I wanted to make it so the stock recovery couldn't reinstall itself and if I wanted root. I said no to both for whatever reason or another, because I wanted to reboot back into the recovery and then do it. The phone works fine however ADB can no longer see the device. I made sure to go back in and reenable developer options, usb debugging, and allow apps from unknown sources. My computer recognizes it as an android bootloader interface in device manager. I restarted adb and restarted the server daemon multiple times to no avail. I'm pretty tired and I figure I'm missing something stupid, anyways if anyone has an answer that would be nice.

*EDIT* LOL just tired, adb just doesn't want to show me that the device is there. Shot the custom recovery at the phone again and it worked, rooted. All is well.
[Nexus 5 General] jd1639:
What tool kit? All you need to do with a stock device is run

fastboot boot recovery recovery.img

Where recovery.img is the custom recovery image, twrp or cwm. Then when it boots into that recovery flash supersu. Then boot into system from the recovery. You're now rooted with the stock recovery on your device
[Nexus 5 General] cobyman7035:
I don't get it... If u root. Might as well use twrp or cwm recovery?

Via my N€×us 5 on XDA premium
[Nexus 5 General] jd1639:
That's what I'd do, but some want too keep the stock recovery for some reason
[Nexus 5 General] theesotericone:
Some people just want root to remove some apps or use others. They don't have a desire to flash custom ROMs hence don't need a custom recovery. I don't endorse this at all lol just trying to explain it.
[Nexus 5 General] eranda84:
noobs question.

If I unlocked bootloader and root the phone, will I able to receive updates from Google?
[Nexus 5 General] Vercion3:
As long as you have stock ROM and kernel, you will get future ota updates
[Nexus 5 General] VICODAN:
Please update the OP with CWM 6.0.4.5.

6.0.4.4 is bunk.
[Nexus 5 General] Skyline1337:
thanks

thank you, that was really helpful!
[Nexus 5 General] aavvaallooss:
Yes if you ONLY do that.

Use the search, please!
[Nexus 5 General] jball:
I'm about a month away from buying the Nexus 5 and am trying to get thus SDK up and running so I will be prepared. Here's what pops up on my HP Laptop running 64bit windows 8

I have also tried the slim setup and it also pops up the same.

I have java/jdk1.7.0_45 and jre7 up to date.if you have step by step without missing/skipping anything on how to set the PATHS in /system for this to work would be nice.
[Nexus 5 General] Vercion3:
Do u place ur folders at the right place?

---------- Post added at 01:04 PM ---------- Previous post was at 01:03 PM ----------

Did u extract the files on your desktop? Because if you do, it will show up like this.
[Nexus 5 General] jbs92:
Best to clarify too that consequently data will then be wiped upon rebooting as wiping cache is unavailable (for now anyway).

Haha, no problem.
[Nexus 5 General] Chromium:
Well that is expected anyways as unlocking the bootloader causes a data wipe.

Sent using xda-developers app
[Nexus 5 General] andQlimax:
bit OT: what is the actual n5 revision that appear in the bootloader screen? thanks
[Nexus 5 General] Nexus5-32GB:
needs edit :)

Hi, hanks for this guide, first post needs to be edited. I have downloaded the full SDK Manager form link provided, and there is only ONE update need to be installed (Google USB driver), not 4.

Also directory structure is then:

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

not

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

It is important because the newbies like me then get confused :good:
[Nexus 5 General] Chromium:
Nope, you definitely need the platform tools package to be installed.

Who said it was that in the first place?
[Nexus 5 General] Nexus5-32GB:
Of course, but they are installed already - 3 from 4 are ALL installed from package the download link is refer to... Only the USB driver needs to be installed then.

Extracted SDK Manager have this structure:

C:\somedirectory\[SIZE="3"]SDK[/SIZE]\platform-tools
[Nexus 5 General] ricey1986:
Hi Guys, can you help??

Trying to flash TWRP custom recovery after unlocking the bootloader. It appears to go through the motions but only takes 1.015 secs and when booting into recovery i get the android and red triangle.

Maybe worth a mention that I am using windows 8.

Thanks
[Nexus 5 General] Chromium:
Nope, not true. The zip does not contain the platform-tools folder. That needs to be downloaded using the sdk manager.

Well technically it depends on how you extract it. That's why in step 2 of the ADB and Fastboot Installation section i explained that you should place the extracted contents so that the path is C:\android-sdk-windows.
[Nexus 5 General] Chromium:
The fact that it only took a few seconds is normal. But it looks like it didnt get installed, since the android red triangle thing is the stock recovery. Did you make sure that "fastboot devices" recognized the phone?
[Nexus 5 General] abaaaabbbb63:
Are you using windows 8.1?
[Nexus 5 General] ricey1986:
Aye that I am

---------- Post added at 10:46 PM ---------- Previous post was at 10:45 PM ----------

Yes fastboot devices brings up my ID
[Nexus 5 General] Chromium:
Hmm, strange. Have you tried flashing it again? Different cables? Different usb ports?
[Nexus 5 General] abaaaabbbb63:
I saw a few threads where people were complaining that Windows 8.1 isn't compatible with fastboot and adb. Some of them dual-booted ubuntu to make it work
[Nexus 5 General] ricey1986:
Got it, tried a different port and all good.

Thanks

Just seen this is my 666th post, I am never posting again hahaha
[Nexus 5 General] El Daddy:
Fastboot and adb work fine on my computer with 8.1.

Updating to 8.1 completely breaks the SDK though and it needs to be fixed before it works.

It could also be a platform-tools package older than the latest Rev.19 doesn't work with the N5.
[Nexus 5 General] jbs92:
HW rev_11

Bootloader version HHz11d
[Nexus 5 General] BugJuice:
Rooted!

Rooted even before i popped in my sim and set up my phone. bahah :)
[Nexus 5 General] the baptizer:
Hi guys,

I tried to follow this manual but it seems I dont have the usb drivers installed correctly. I tried installing the drivers through device management but it said that it isn't possible to download the drivers so i need to visit the manufacturer website etc..

i tried to remove the already partly installed drivers, but everytime i connect my nexus 5 to the pc, it fails to download the drivers....

ps. when i open device management it says nexus 5 with a yellow triangle warning sign...

can someone help me out?
[Nexus 5 General] adrian089:
Having trouble installing twrp. "error: cannot open recovery.img
[Nexus 5 General] El Daddy:
You have you have the command prompt opened in the same folder as the recovery image.

Open the folder its in. Hold down shift and right click. Then choose open command here.

Try the command again
[Nexus 5 General] jd1639:
Make sure you file step 5 of the attached, welcome to the n5. http://www.redmondpie.com/how-to-set-up-android-adb-and-fastboot-on-windows-tutorial/
[Nexus 5 General] jball:
I extracted to downloads and then dragged and dropped to my desktop.I did read the op and he does say to "extract"to deshtop
[Nexus 5 General] jd1639:
If you followed the guide a suggested you can extract to what ever folder you want. Shift + right click on that folder and then in the drop down Windows choose open command window here
[Nexus 5 General] jball:
I'll try that when I get home .just got to work 4pm till 4am
[Nexus 5 General] jd1639:
You get it setup right and it makes everything easy. You won't need to worry where you download something to.

You're giving up the s4? You'll really like the n5 and how easy it is to work with. None of that safe strap crap
[Nexus 5 General] Husson_Ally:
cant flash the recovery

hey guys need urgent help here

im in fastboot and successfully unlocked the bootloader.

i downloaded the twrp recovery, checked md5, placed it inside the platform-tools and now while im trying to flash it in cmd by typing 'fastboot flash recovery recovery.img' as instructed in the op it gives me "error: cannot open 'recovery.img'

what am i doing wrong?

:confused:
[Nexus 5 General] jcsww:
Did you rename the TWRP image to recovery.img?
[Nexus 5 General] Husson_Ally:
i was facing just the exact problem bro. what you have to do is uninstall everything from sdk manager.exe n then once its done delete the whole adt bundle folder that you extracted on the desktop. it may show a popup that it cant be deleted right now and all that bla bla bla, so just restart the pc/laptop and then delete it now.

now go to that downloaded zip file again and extract it on the desktop once more. now once its been extracted then again open sdk manager.exe n install all those four files that have been mentioned in the op, once done with it, close sdk manager.exe.

now go to adt bundle folder on ur desktop again

you'll find one more adt bundle inside of it

-open it

-you will find eclipse,sdk,sdk manager.exe

-rename sdk to android-sdk-windows and cut and paste it to desktop

-now open cmd and type those codes again

-problem solved

if it helped please be sure to click a thanks bro.;)
[Nexus 5 General] jball:
Not only simply giving it up.

I straight up destroyed it with my bare hands and feel great .I loved the S4 just not a locked down phone.
[Nexus 5 General] Husson_Ally:
omg

thanks a ton. i just completely forgot to rename it ahahaha. was super excited as soon as i got my n5 and so directly went ahead with all this!!!

in a hurry became a noob.:p

---------- Post added at 04:32 AM ---------- Previous post was at 04:29 AM ----------

okay so now im trying to push the supersu zip to the phone. am done with recovery and all but in cmd window loads of codes showup and then when i check inside the recovery in the install part theres nothing. i cant find the supersu.zip
[Nexus 5 General] jcsww:
I've done that myself as well. Enjoy your Nexus 5!
[Nexus 5 General] Husson_Ally:
please help what to do

okay so im done with installing recovery. now im onto the final step-rooting

im doing everything accordingly as mentioned there in the instructions but the supersu.zip isnt showing up in the recovery

this is what i did:

once done with the recovery i went ahead closed the cmd and rebooted in to recovery from bootloader and from the recovery again back to bootloader.

the i followed the instructions there and worte the codes with the supersu version i downloaded and when i hit enter alot of codes show up in cmd and then when i goto reboot recovery and install i dont find the supersu.zip there.
[Nexus 5 General] jcsww:
Are you trying to sideload or looking at your SD? I find it easier to do from SD but I also use CWM.
[Nexus 5 General] jball:
I will try it when I get home
[Nexus 5 General] Vercion3:
I accidently deleted everything and rebooted my phone.. now my phone just shows Google with a lock at the bottoom... help?? [MENTION=4858937]jd1639[/MENTION] [MENTION=4883664]Chromium_[/MENTION] [MENTION=4346614]abaaaabbbb63[/MENTION]
[Nexus 5 General] aavvaallooss:
Flash the Factory Image

http://xdaforums.com/showthread.php?t=2513701
[Nexus 5 General] Vercion3:
I can't even turn off my phone :(

It's stuck on the screen showing Google with an open lock at the bottom
[Nexus 5 General] aavvaallooss:
Battery pull emulation

If you hold the Power Button and both Volume buttons for 10-15 seconds, the Nexus 5 will power off, as if it had its battery pulled out. Useful when you get stuck.

abaaaabbbb63´s Post #2: Tips and Tricks:

http://xdaforums.com/showthread.php?t=2508292
[Nexus 5 General] Vercion3:
OMG THANK YOU SOO MUCHHHH:good::good::good::good::good::good:
[Nexus 5 General] aavvaallooss:
Thanks to abaaaabbbb63
[Nexus 5 General] abaaaabbbb63:
You're welcome :D
[Nexus 5 General] jball:
Thank you very much man.

And to all that had any input thank you
[Nexus 5 General] funnel71:
What is the purpose of renaming the recovery file to recovery.IMG? Wouldn't any file name work as long as it matches the original?
[Nexus 5 General] jd1639:
Any name is fine. It's just for convenience
[Nexus 5 General] funnel71:
That's what I figured. Thank you.
[Nexus 5 General] j-seven:
Thx :good:
[Nexus 5 General] Wakamatsu:
That's also the reason the image being flashed is moved into the platform-tools folder. Less typing in the cmd prompt.

I also put a cmd.exe in that folder so I don't have to change directories each time I need fastboot or adb.
[Nexus 5 General] funnel71:
I just adjusted my when does pants variable to account for fastboot and adb
[Nexus 5 General] jd1639:
What?
[Nexus 5 General] funnel71:
Lol so much for speech recognition. I adjusted my windows path variable to account for fastboot and adb so they can b executed from any prompt.
[Nexus 5 General] Dany XP:
Linux Mint 16

Hi guys, i'm a new owner of a N5 (arrived today, 16gb white), used to have an xperia play, messing with roms, kernel , etc etc on Windows with Flashtool, so i'm not exactly a total noob.

Now, I'm on Linux Mint 16 64-bit and i already successfully adb and fastboot drivers (i can see number's id when i prompt "fastboot devices" on terminal with phone conncected on fastboot mode), now i want of course unlocke bootloader, try kernels, bla bla... so i have a few questions.

1- In the guide , about the Installing a Custom Recovery, it says "Remember that you should place the file in the platform-tools folder inside of the android-sdk-windows folder on your desktop.". But on Linux, on what folder shoul i put the recovery.img?

2- Same thing for the root: "Confirm that you have downloaded the SuperSU zip from the downloads section above and that it is located in the platform-tools folder inside of the android-sdk-windows folder on your desktop.". What folder r we talking about?

I searched on my hard disk and i found folders with similar names : android-tools-fastboot, android-topols-adb and android. It's one of these???
[Nexus 5 General] Chromium:
Inside the android-tools-fastboot folder do you see a platform-tools folder?

Where did you get adb/fastboot from?

Sent using xda-developers app
[Nexus 5 General] funnel71:
You should be able to put it wherever you want to. Just be sure to refer to the exact file names and path wherever you put it.
[Nexus 5 General] Dany XP:
NO, I dont see any other folders.

I get drivers directly from repositories (from Ubuntu 12.10 and up, are in repositories)

So, for example if the file i need is in Documents i just go in terminal

cd /home/usr/documents
fastboot flash recovery recovery.img

and nothing more?...
[Nexus 5 General] funnel71:
That's what I did and worked fine. I had my windows environment path variable updated to account for fastboot and adb.
[Nexus 5 General] MrCatalyst:
Got my Nexus 5, few hours ago, and managed to do all three almost flawlessly - had to re-root after updating to 4.4.2, but that was easy. Very helpful guide!
[Nexus 5 General] jdk2:
That's some funny stuff there. Best phone on the planet at the moment with the premiere operating system and that's what it thinks you said. LOL Technology.
[Nexus 5 General] Dany XP:
EVERYTHING WORKED PERFECTLY! THANKS!!! :laugh::good:

I can't believe it's so easy unlock everything in a nexus on Linux...

Anyway, i have another question: how do i mount usb storage or /sd card on a custom recovery, so i can see it on pc?

In CWM there's only "mount usb storage" (wich it doesnt even works) and no mount sd card option.

In TWRP there''s only mount data (wich i dont care) and no "sd card"... although in file manager's twrp i can see correctly all my /sd card folder. ?????
[Nexus 5 General] Chromium:
There's no USB mass storage on the nexus 5, so that option won't work. Only MTP, for which you need to be booted into android.

If you really need to copy files to/from the device while it is in recovery, you can use the adb pull or push command.

Sent using xda-developers app
[Nexus 5 General] funnel71:
In twrp I saw a mount otg option. I'm assuming that's on the go cable which you can hook up flash storage to, but I don't know if it works. I don't have an otg cable.
[Nexus 5 General] yatin panchal:
OTA Update

Can I get OTA update from Google after unlock boot loader & root my nexus 5 ?

Can I root my nexus 5 without unlocking boot loader?

sorry for my English.
[Nexus 5 General] Vercion3:
Bootloader is a must

If u have stock ROM and kernel, then yes (if u can't get ota, then u can flash it easily )
[Nexus 5 General] yatin panchal:
Thanks & 1 last question

which recovery is better TWRP or CWM for all the custom rom and stock rom? because I don't want to change them again & again because My previous phone samsung galaxy ace I use CWM and it is best for all rom.:confused:
[Nexus 5 General] Chromium:
They both work fine for all roms. Its really down to personal preference...TWRP has lots of functionality and extra stuff, while CWM is very barebones and only contains the basic necessities.
[Nexus 5 General] yatin panchal:
Thanks

Thanks :victory::good:

ok then I try TWRP this time. thanks again.
[Nexus 5 General] Dany XP:
Ok, i have to come back because i just discovered that only fastboot works, adb not. In fact, adb still doesn't recognize my phone when i go in terminal "adb devices".

i tried http://bernaerts.dyndns.org/linux/74-ubuntu/245-ubuntu-precise-install-android-sdk and http://stackoverflow.com/questions/17956112/adb-not-recognizing-nexus-4-on-ubuntu but without succes.

Then i just discovered something. If i go to lsusb on terminal i can see my N5 is recognized as

Bus 002 Device 003: ID 18d1:4ee2 Google Inc. Nexus 4 (debug)

So when i set the rules on /etc/udev/rules.d i consider the 18d1:4ee2 ID....but anyway, why is my N5's ID like a N4????
[Nexus 5 General] abaaaabbbb63:
[MENTION=4883664]Chromium_[/MENTION]

All our ADB and Fastboot problems with users are done.

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

Tested it. Works like a charm. Might want to add it to the OP.
[Nexus 5 General] j0zu3:
I updated all files but my directory is different (I can't put direct links after 10 post and I will not do 10 spams post)

i.imgur.com/uZxrJ0v.png

Is this the correct file or am I doing something wrong?
[Nexus 5 General] Chromium:
Yeah that's fine. You have your adb in a bit of a different directory than what I said in the guide, but it won't make any difference. Just make sure that you run all of the fastboot/adb commands from that command prompt window.
[Nexus 5 General] nebulah:
So I missed the "fastboot reboot" step and am now stuck in bootloop ! :mad:
[Nexus 5 General] jd1639:
Do a factory reset it the stock recovery
[Nexus 5 General] paradoxiumwind:
I'm unable to mount USB storage with CWM, I have the drivers installed - I can access the internal storage when loaded into the phone with USB debugging enabled, and it recognizes the device etc, but in CWM it shows as no drivers installed - I do the same thing and tell it to use the drivers located in the same place as before, but I just get "Windows could not find drivers for your device"

What gives?

Edit: Also, quick question, what does formatting /firmware etc do? are those safe to do before installing a custom ROM? There's a few extra options I never had on my Galaxy Ace, and on that phone I just formatted everything before a new ROM.
[Nexus 5 General] sordatos:
I have a doubt: When checking the Fasboot devices, it doesnt throw me the IMEI number but some other number that have letter on it, it seems that is the same number of the YouTube video of Chris Nacca that you linked: http://youtu.be/maLWScgXflk in the Drivers installation section.

Can still go continue? I have tried the other methods of installing the Drivers and that same other number keeps appearing.

Thanks ...
[Nexus 5 General] Chromium:
Yeah, as long as you get some number showing up you should continue.

I believe it is the serial number.
[Nexus 5 General] sordatos:
Really? Thanks, I didnt expect such a fast response.:good:
[Nexus 5 General] Chromium:
Yep, no problem :)
[Nexus 5 General] sordatos:
It worked like a charm! Thanks!

Now Im rooted :D
[Nexus 5 General] guddtad10_21:
thank you for share
[Nexus 5 General] lloydlim996:
Bootloader Warranty Question

Will Google Still accept my phone back if i unlock and relock my bootloader? I mean, is there a way for them to check that i've unlocked my bootloader?
[Nexus 5 General] aavvaallooss:
Don't forget change Tamper Flag. Try BootUnlocker app
[Nexus 5 General] Chromium:
Fellow Richmond Hillian :D

After relocking the bootloader and flashing the stock images, you will still need to reset the tamper flag before Google will accept the phone back for warranty purposes. Information on how to do this can be found here.
[Nexus 5 General] lloydlim996:
Thanks guys! Last question, when I rooted it, it said something about triangleaway. Does that apply for nexus 5 devices?
[Nexus 5 General] j0zu3:
Edit: New questions

1) ''Close the command prompt window'' What this mean?

2) Im ready root user, what happen if i wipe cache and data now?

3) Is this important? i.imgur.com/vJJemT0.png
[Nexus 5 General] Vercion3:
1) means close the window (red x button)

2) cache- nothing really happens but for data, everything is gonna be gone

3) idk lol
[Nexus 5 General] Chromium:
No, triangle away is for Samsung devices with a flash counter. The nexus 5 doesn't have a flash counter, but it does have a tamper flag which you may want to reset before sending it back for RMA.

Sent using xda-developers app
[Nexus 5 General] lloydlim996:
Thanks Chromium!
[Nexus 5 General] radar155:
i wrote a message in the wrong session, sorry for this editing.