yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Q&A, Help & Troubleshooting] @vtx:
Error Closed

I would like to do a full data wipe and clean install of a new (6.0) ROM. My goal is to transfer (push) a zip file (ROM) from my laptop (Asus) to my phone (Nexus 5) via recovery (TWRP) - advanced - adb sideload.

I can boot into recovery no issues. My TWRP is version 2.8.7.1

I got the google USB drivers installed so that when the phone switches to "adb sideload" mode in TWRP, windows sees it as an "android composite ADB interface". I have tried all 3 flavors during my troubleshooting.

I have the Andriod SDK installed (just downloaded Andriod Studio today) and adb is in the following location ...

C:\Users\user\AppData\Local\Android\sdk\platform-tools

I run a "adb devices" command, it notes it starting the daemon, then it displays some random number with the word sideload next to it. Looks like I can see my phone that is currently in adb sideload mode in TWRP. So far so good.

However when I run "adb usb" I get a error: closed. This is where I am stuck. I cannot transfer (push) the file on my laptop to the phone. See sample outputs below. Any idea what is causing "error: closed"? I have tried killing the adb server process and reopening it, different drivers, rebooting. My laptop has USB 3.0 and I am running windows 10 as a local admin. Any advice would be appreciated. Maybe I am missing something simple.

C:\Users\user\AppData\Local\Android\sdk\platform-tools>adb devices

List of devices attached

########### sideload (I removed my serial #)

C:\Users\user\AppData\Local\Android\sdk\platform-tools>adb usb

error: closed
[Nexus 5 Q&A, Help & Troubleshooting] goutham kumar muvva:
how to access a nexus 5 without adb connectivity

my nexus is bootlooping into recovery and google logo . in the recovery it is unable to mount data and then comes back to google logo and then again recovery . it has adb access . twrp is working but not able to flash anything.

the thing i did was locking and unlocking the bootloader using wugs root toollkit while my nexus is on stock rom and blu spark kernel. twrp is showing internal storage as 0 MB
[Nexus 5 Q&A, Help & Troubleshooting] milestone2mod:
I have a massive problem: Since I updated to Marshmallow, I don´t get my devices (Nexus 5 and 9) to get authorized. I tried several adb drivers, Minimal ADB and Fastboot, Nexus Root Toolkit, but I never get the RSA popup working, so the devices show up as unauthorized.

Does anybody have a solution for that? Did I overlook something?
[Nexus 5 Q&A, Help & Troubleshooting] rocketrazr1999:
Replaced USB port, now my PC will "see" when I plug in my Nexus 5, but still not reco

I get a notification saying the last device malfunctioned. So now my PC is at least aware I have plugged in the phone, but thats as far as I can get. ADB does not recognize it and fastboot is useles, so I cant install USB files for the chipset. Is there a .zip file of the Qualcomm files that I can flash using TWRP? That is my last option. After that I can only flash Android 6.0 stock and give it to someone as a gift who wont need to use the USB but to charge it.
[Nexus 5 Q&A, Help & Troubleshooting] thisarapc:
Device not found nexus 5

Hi,

My nexus 5 phone is in bootloop and debug is not enabled. When I tried “fastboot devices“ it shows the serial number. But with ”adb devices“ it does not shows any number. When I tried“adb reboot bootloader“ it says “ error : device not found“

I am using a mac. So it is not a problem with the drivers. Please help me.

Thanks in advanced.
[Nexus 5 Q&A, Help & Troubleshooting] Ajinkyadev:
Same problem

I now have the exact same problem. Can u tell me the steps u took to bring up that prompt on the phone?

Thanks in advance!
[Nexus 5 Q&A, Help & Troubleshooting] ihatelolcats:
following the steps in op, when i try to select the driver windows tells me it cannot find a driver in the folder. my phone shows up as MTP under other devices in device manager. i dont need adb i just want to be able to transfer files to my phone
[Nexus 5 Q&A, Help & Troubleshooting] dahawthorne:
Have you tried this? I was going to suggest it but searched for it in this thread, so credit to the poster:

http://xdaforums.com/showpost.php?p=63170096&postcount=342

Use the "Install and test drivers" function and I'll bet if you follow the instructions to the letter you'll make your connection.

And for the sake of helping the community, please don't leave it there - report back on whether you resolve your problem or not.
[Nexus 5 Q&A, Help & Troubleshooting] ihatelolcats:
i installed nrt and my device id is shown and adb works, but mtp does not work. i manually installed the LG driver included in the nrt download and it said i have no mtp driver. i have windows 10 N so i installed the x86 and x64 media packs (https://www.microsoft.com/en-us/download/details.aspx?id=48231). after restarting the computer mtp still does not work
[Nexus 5 Q&A, Help & Troubleshooting] dahawthorne:
The ADB command works only when you're in Android with USB connected and USB debugging enabled in Developer options.

The fastboot command works only when you're in bootloader mode.

So typically you can start your phone, enable USB debugging, start a command prompt and type "adb devices" to check the connection, then "adb reboot bootloader" to go into device bootloader mode. Once there, adb no longer works because fastboot commands have taken over.

Edit: I haven't read the entire thread, just the last couple of pages, so I don't know if this next part will be totally relevant or not, but on the off chance that people who just want to transfer data, and aren't interested in flashing, might not have seen this.

In Marshmallow when you connect your device to your computer, you'll see an icon on the status bar - it looks like an Android head, I think. Pull it down and you'll see a menu saying "USB for charging" with more options under that - and one of them is "USB for file transfer".

Any help at all...?
[Nexus 5 Q&A, Help & Troubleshooting] ihatelolcats:
no go but thanks
[Nexus 5 Q&A, Help & Troubleshooting] mkocmut:
Resolution to failed Windows USB device enumeration.....

This is rather an easy fix, its really a simple math problem. I'd be more than happy to help you with the issue, but I'll need to know some parameters first, such as your operating system which I presume would be windows 7 - 10. there hasn't been any system right how to install any MTP drivers they usually are embedded in Windows. If you have an online connection and there wasn't in the MTV driver it would be installed automatically by windows update.

In any case, we can mitigate such an issue, one of many failures of poor product development and engineering. If you open 'Device Manager' located in the Control Panel, as well under 'Right Click on My Computer>Properties>Device Manager in the left pane of the Properties window. Your N5 should be either under 'Unknown Devices' readily identifiable by a question mark emblem, or improperly enumerated as a ADB or Fastboot device, located under Android Devices. I had this issue occur a handful of times. Right click your device, update driver, and select choose my own driver, under the categories you want "Android Devices", next a compatible drivers database will appear, there are not very many options. Locate Android MTP device, and click next/install. I believe the one you need is under the left pane and the manufacturer is Google, although many of occurrences for me have been under Qualcomm, as it is they who parent the hardware in which these drivers are made for.

On a side note, I myself have had to change manually from Nexus 5 MTP enumerated drivers auto installed, to ADB diagnostic or Fastboot bootloader; as also back again.

Generally, this could be a driver issue or USB device subset that these drivers may share. I have not looked. whatever the case may be...after you rectify the problem, it will work with the proper device driver (MTP) being loaded the next times you plug in to transfer files.

I forgot, make sure you installed Android USB device drivers, aka Qualcomm. Particular to a LG Nexus 5 MTP. Vs a Qualcomm MTP driver, one in the same; but should you require it its available when Windows searches windows update to locate a driver OR download a LG Android drivers/PC update software from their website.

Let me know if you have resolved this, if need be I can help you further. Its a simple solution to a super simple problem. Best of luck.

MK
[Nexus 5 Q&A, Help & Troubleshooting] AngelxCasas:
You rock dude, I don't know why I had to do this, if I did a fresh installation of everything, but I h ad to, and it worked, added to my markers (y)
[Nexus 5 Q&A, Help & Troubleshooting] Aadarsh070:
Hey Huawei. I contacted you earlier for the bootloader unlock key and got the same from you which I would Like to thank yOu for same. After unlocking bootloader I installed MIUI ROM on my Honor 4x (Che1-l04) and it ran smoothly. But I didn't like it much and wanted to change back to my stock ROM. I tried to Install your Honor 4x Android L. I extracted the ZIP file using Huawei Update extractor and did the steps mentioned by XDA Developers. Here- http://xdaforums.com/android/development/reverting-to-stock-rom-honor-4xmsm8916-t3168732

After doing All steps While doing ''adb reboot'' Its saying DEVICE NOT FOUND in cmd. I Found that i forgot to turn on USB debugging. But now my device is struck on FASTBOOT AND RESCUE MODE.(PHONE UNLOCKED).I am not able to tur it on. I tried many steps to show my device but failed. Please help me regarding this. I will be highly thankful to you
[Nexus 5 Q&A, Help & Troubleshooting] tmsmith616:
I'm having horrible luck on my Nexus 5. At one point it was rooted but I did an oem update a long time ago and never bothered to reroot. The phone is unlocked running Android 6.0.1 Android security patch level September 6th 2016, so basically up to date oem. The recovery seems busted. I don't know what happened but I get "No command." prompt when I try to boot into recovery. I think I was running CWM at some point. I have had to replace the USB port on this device twice. First the phone wouldn't charge. The first replacement part I got from a near 100% feedback store on Amazon and it would charge my phone but the notification LED that is built in to the component housing the USB port was defective on the replacement. Also I wanted to flash to a CM ROM and couldn't get my device recognized so I figured it was just a bad part, a year later I thought I'd try again. So I got a grade S+ replacement from Etradesupply. Now it seems like they have questionable reviews.

This new part I installed and I got a working notification LED but Nexus 5 does not respond at all to being connected to a computer through OEM cable. I get charging only. I get no chime from the operating system to indicate a device was connected, I get no device drivers installing, I get nothing in devices and drives under file explorer, I get nothing in device manager with hidden devices being shown. I tried a different android phone over the same microusb cable, it was recognized and the drivers installed immediately for that Motorola phone (I uninstalled them immediately in device manager). I connected up my OnePlus 3 which uses USB type-c and ADB devices command recognized it and I can accept the RSA key on my phone to authorize it. So I think ADB is set up just fine. I can't reinstall google USB drivers for my Nexus 5 because it simply just doesn't show up(I did check for other things like "ACER ADB interface" that people used to have problems with, its not there). I've toggled USB debugging and MTP on and off. I don't know what to do. I'm open to suggestions. I'd like to repurpose this old phone even though my OP3 is vastly superior, I just don't know what to do at this point.
[Nexus 5 Q&A, Help & Troubleshooting] MaxRabbit:
Folks I quoted, I added your great suggestions to the second post under "Crowd-sourced solutions" and quoted you directly to give you credit. Thanks so much :good:
[Nexus 5 Q&A, Help & Troubleshooting] mjs2011:
Thanks for this thread. I was having trouble last night with the CF Auto Root and the toolkit recognizing my phone when in bootloader, so I'll try again this evening after reading this thread.
[Nexus 5 Q&A, Help & Troubleshooting] gregb882:
Thank you for your guide! I could NOT get my system to load the right drivers so that the Media Device would be seen even after spending several hours searching and trying out different suggestions (it would see the camera, but not media). Your Step 2 fixed that problem for me!

But I want to point out that I almost did not bother with Step 2. It says "You may skip this step if Device Manager lists your phone as "Android Phone -> Android Composite ADB Interface." My Device Manager did show "Android Composite ADB Interface", but I still could not see the Media Device on my PC. Just for grins, I followed Step 2 anyway and it fixed the problem. I would strongly recommend everyone go through Step 2 to assure the correct drivers are installed and in place before moving on. It can't hurt and only takes a few minutes to accomplish.

Thank you again for your guide!
[Nexus 5 Q&A, Help & Troubleshooting] Datzi:
Whenever I try to do step #2 I get an error message from device manager which says: "Driver software could not be found for your device." (Translated from german...)

Are those drivers you linked the right ones, because it seems Nexus 5 isn't supported.
[Nexus 5 Q&A, Help & Troubleshooting] MaxRabbit:
Yes, I'm positive those are the correct ones. You may be selecting the wrong folder.
[Nexus 5 Q&A, Help & Troubleshooting] Datzi:
I extraced the zip on my Desktop and I'm a 100% sure that I selected the right folder. Redownloaded and tried it about 20 times today without luck...

Uninstalling ALL drivers and plugging the phone in doesn't work too. Auto driver installation says that it could find drivers and when I do it manuel it's basicly the same... Hmm... I don't get it...

//edit: Last thing I know which could help. I reset my phone to stock and delete all N5/Android drivers and see if the helps...
[Nexus 5 Q&A, Help & Troubleshooting] the baptizer:
I´m also in your situation since a couple of days. I did everything. I resetted my laptop, resetted my nexus 5, removed al the drivers (also the hidden drivers) etc etc... still no sulution

im almost driving insane
[Nexus 5 Q&A, Help & Troubleshooting] MaxRabbit:
It sounds more like a computer problem, not a phone problem. Make sure you have the driver download folder extracted and are selecting the topmost folder and have "Search subfolders" selected as well when you locate the driver.

Also make sure you are selecting the right device to find drivers for in Device Manager. You might have some other unrecognized devices in there too.
[Nexus 5 Q&A, Help & Troubleshooting] Datzi:
Well, I got it working. Uninstalled all drivers which were related to N5/Android. Factory reset my phone. Plugged it in and let all drivers install. Again drivers were not installed correct. Installed them manuel and now everything working. No idea why it didn't work before, as I use the exact same path to the extracted drivers... whatever.

Thanks for you support! :)
[Nexus 5 Q&A, Help & Troubleshooting] dbareis:
Sounds like it could be the isue with "%WINDIR%\inf\wpdmtp.inf" I mentioned a few messages back.
[Nexus 5 Q&A, Help & Troubleshooting] gregb882:
I can tell you that after I used MaxRabbit's link for the up-to-date drivers from Google, uninstalled AND deleted the existing driver, restarted the PC, and then plugged the Nexus 5 back into the PC, it found the Nexus 5 driver for the 1st time. Be sure to perform EVERY step as he has it laid out, even if your Device Manager shows you have the "Android Composite ADB Interface". After working on it for more than 5 hours, this is the only thing that worked completely.
[Nexus 5 Q&A, Help & Troubleshooting] ihatelolcats:
adb cant connect when in recovery. it shows up as AOSP on Hammerhead in device manager and i cant update the driver... adb works fine when booted or fastboot though

edit: just had to try the naked driver. duh
[Nexus 5 Q&A, Help & Troubleshooting] Wankface:
driver not working

followed the root instructions on xda, I unzipped naked drivers, when I try update driver software through browse option, I get this message windows found driver software but encountered a problem while installing it, it says google nexus 4 interface, the hash for the file is not present in the specified catalogue file, the file is probably corrupt or has been tampered with. I followed all steps in the naked driver xda page, im using windows 8
[Nexus 5 Q&A, Help & Troubleshooting] cobyman7035:
whos got the right drivers , im on win 8.1 PRO, it detects my nexus 4 but when i plug in my nex5, i get usb device malfunction, not detected :(

nm: user error lol, i had it in fastboot mode when i connected, but now i have it on homescreen 4.4 kitkat screen and plugs in it works, adb devices command detects it

i keep forgetting you have to be in regular mode when you use the adb devices command?
[Nexus 5 Q&A, Help & Troubleshooting] Psykosane:
Hi everyone.

For those who have trouble with drivers, I found a solution with AbdDriverInstaller. You have to:

1. Uninstall all drivers related to android

2. Download adb driver installer

3. Connect your N5 (note: I was with MTP mode on) and Launch AdbDriverInstaller.exe

5. A window should pop up, showing ADB drivers status.

6. If you see, "Driver Incorrectly", click Install

7. Wait 5 minutes during installation. Once installed it should show "Ok"

8. Reboot your computer and all should be ok

Hoping it Will Help :)
[Nexus 5 Q&A, Help & Troubleshooting] Whyzor:
The OP should also mention what worked for me in post #16 (& confirmed by a few others in other threads). That is to toggle Settings - Storage - USB Connection type from Camera to Mass storage & also the debugging mode on & off.
[Nexus 5 Q&A, Help & Troubleshooting] lifeisfun:
I'm stuck as well, tried everything possible.

Everything looks OK upon device installation I get ask to get PC(W7 64bit) on list of approved devices but the minute I reboot to bootloader

phone gets disconnected and I get unknown USB device.

Any help would be appreciated

Thanks
[Nexus 5 Q&A, Help & Troubleshooting] abaaaabbbb63:
Did you set up fastboot drivers properly?
[Nexus 5 Q&A, Help & Troubleshooting] lifeisfun:
Tried to update the driver but when the phone is in bootloader but even when I point it to the right folder it will not pick up the diver.

In mean time I used old 32bit laptop and everything worked fine , still would like to fix it on the desktop tho :(

UPDATE:

Now after many many install uninstalls I got Android Bootloader Interface with yellow triangl instead of unrecognized device.

But still not working :(

UPDATE2:

finally working :)

Thanks
[Nexus 5 Q&A, Help & Troubleshooting] MaxRabbit:
Added.
[Nexus 5 Q&A, Help & Troubleshooting] cobyman7035:
hey I have to use the PDA dotnet drivers and disabled drivers signature on Windows 8 .1 Pro

Via my NeXus 5 on Tapatalk⁴
[Nexus 5 Q&A, Help & Troubleshooting] canuduh:
I couldn't get computer to recognize fastboot devices command. I rebooted, deleted, and started over several times until I finally found this thread... Fixed the problem immediately thanks!
[Nexus 5 Q&A, Help & Troubleshooting] Lownita:
Thanks!
[Nexus 5 Q&A, Help & Troubleshooting] mcvigo:
Ive tried everything my pc doesn't recognize my nexus 5, downloaded google drivers, updated adb and nothing.

When i go to device manager I can't find it.

When I go to devices and printers i can see nexus 5 but can't access it.

When i switch to PTP THe device works but MTP doesn't. USB debug on and off don't help either help?
[Nexus 5 Q&A, Help & Troubleshooting] TikiThePug:
If your ADB driver wasn't installed properly, this could have overwritten the driver for your MTP mode. Try uninstalling the ADB driver you installed (in device manager), plug in your Nexus, and do a hardware scan. If Windows installs another driver and you get MTP back, that's a good sign. At this point, there's another way to install ADB using just Device Manager and an internet connection without killing MTP.

I assume you're on Windows Vista or higher. Does anything show up in your Device Manager under "Unknown Devices" or "Other Devices" with a yellow exclamation mark next to it? If so, right-click on this device and choose "Update Driver Software". After that, choose the second option to browse for a driver manually. Another window will open, and click on "Android Device" from the left side, and then "Android ADB Composite Driver" on the right list that shows up. That should hopefully enable both MTP and ADB modes on your device.

Good luck.
[Nexus 5 Q&A, Help & Troubleshooting] Datzi:
Nvm...
[Nexus 5 Q&A, Help & Troubleshooting] sonnysekhon:
This issue is driving me crazy. I can't get MTP to work.

In DM, my phone shows up as Android Composite ADB Interface in both MTP and PTP mode.

I followed your suggestion, uninstalled Drivers unplugged and replugged and it showed up as Android Composite ADB Interface. And the issue persists.

ADB works fine in PTP mode but not in MTP.

Any help would be greatly appreciated.
[Nexus 5 Q&A, Help & Troubleshooting] teapea:
Same problem here - can you please explain what you mean by trying the "naked driver"?
[Nexus 5 Q&A, Help & Troubleshooting] ihatelolcats:
http://xdaforums.com/showthread.php?t=2513339
[Nexus 5 Q&A, Help & Troubleshooting] derukun:
I'm running Windows 7 64 bit, and recently rooted/unlocked my phone with WugFresh's toolkit.

The ADB drivers are all functional and fastboot and all that good stuff, but I my MTP/PTP isn't working. Its clearly connected, (get that notif on the phone that its connected) but nothing shows up in my actual My Computer. No directory for my Nexus 5.

What's going on?

EDIT: Mine also shows up through PTP but not MTP.

Edit 2: OP's solution doesn't work. I'm trying to use those google USB Drivers, but every time I try it just prompts me that Windows could not find driver software for my device.
[Nexus 5 Q&A, Help & Troubleshooting] Ashcunak:
Op might wanna tack this onto the bottom of the main post as a last resort for folks to "start over" and be sure they have no old drivers installed.

http://www.nirsoft.net/utils/usb_devices_view.html

i had to use this program (right click run as admin if permissions are set) to remove EVERY single android related driver in order to get mine working.. turns out i had so many old ones in my system and some i couldn't remove from the device manager, the buttons wouldn't become click able..

I think i had drivers going back so many years from other devices that finally things were just too confusing for the OS to do anything... once i removed all old usb/android related drivers installed some drivers from this old post http://xdaforums.com/showthread.php?t=2391236 which i assume are the same or similar to the ops post and everything works perfect now.
[Nexus 5 Q&A, Help & Troubleshooting] jcwxguy:
Thanks for this!

but.

"Diagnosing USB Driver"...As far as i know, there is no way to put phone into diag mode. When i first read this thread title, i was hoping we had a way to enable diag mode and this was the driver for it.. just a thought-Maybe remove Diagnosing from the title?
[Nexus 5 Q&A, Help & Troubleshooting] hellter:
Hi, I followed your instructions and installed the ADB drivers with usb debugging activated, but even if the computer recognises my phone it doesn't show up in "my computer" to use it as a mass storage... and moreover if I uncheck usb debugging and plug in the phone my computer doesn't even recognise it! it doesn't even make the typical windows sound that I always hear when plugging a device in the USB port...

I have windows 7 and already tried unistalling all android-linked drivers with usbdeview and reinstalling it manually... what can I do??
[Nexus 5 Q&A, Help & Troubleshooting] MaxRabbit:
Thanks, added.
[Nexus 5 Q&A, Help & Troubleshooting] MaxRabbit:
Sorry, I think you just misunderstood. I do not plan to change the title.