Related
Tried to reply to http://forum.xda-developers.com/showthread.php?t=1766475 but as this is my first post, I'm not able to post in development forums :noob:
I've just rooted by Nexus 7 and it took a few hours to do so; for the vast majority of that time I was stuck at the point where I had the drivers installed, tablet was connected to the machine but 'adb devices' showed no devices. Occasionally I would see one line with the serial number of my tablet followed by 'offline'. Running adb devices again would show that the device had disappeared.
I tried various drivers including the ones supplied with the root toolkit, the android sdk, pdanet and the Universal Naked Driver and although all would install and appear correctly in the device manager, my tablet just would not show up in adb devices list. :crying:
Finally, I removed all the drivers by repeating a process of connecting the tablet in usb debugging mode, finding the entry in device manager and uninstalling the device with the checkbox in the dialog ticked to uninstall the drivers, and then disconnecting and reconnecting the tablet (still in usb debugging mode) until it shows up under Other with a name of 'Nexus 7' with an exclamation mark against it.
Next step, I selected to update the drivers and selected the drivers from the android sdk in c:\program file (x86)\Android\android-sdk\extras\google\usb-driver which changed the device to appear as 'Samsung Android Phone -> Android Composite ADB Interface'. I disconnected and reconnected the tablet to ensure everything initialised properly and did 'adb kill-server' followed by 'adb devices'.
At this point, 'adb devices' still did not show the tablet so I spent a good hour searching the internet, with most results suggesting one driver or another that I'd already tried, or the fairly useless 'adb kill-server' followed by 'adb start-server'. Finally I got a result - try moving the device to another USB port on your computer.
I have a Gigabyte GA-Z68AP-D3 motherboard which has 6 USB ports on the back panel; the tablet had been connected to the set next to the HDMI port which are USB 3.0/2.0 ports and are blue in colour. Moving the connector to the USB 2.0/1.1 ports which are red in colour immediately made the tablet visible in the 'adb devices' list. :victory:
TL;DR If your tablet shows up in device manager but not adb devices, try a different USB port
Big thanks to WugFresh for the great tool
I have 2 Nexus devices, the first one had some loose part inside and I ordered a replacement.
All was good and fine for the first one on USB connection. Win 7 x64 can recognise the old Nexus 4 in MTP, PTP, with or without USB debugging enabled. Then I have the LG USB driver installed and so I can backup my apps, game saves etc using ADB commands.
The replacement unit arrived yesterday, connected with the same USB cable. However, this time, it failed to recognise the new Nexus 4 in MTP or PTP mode, checked windows device manager, only showed up as "Android ADB Interface". If I enable USB debugging, it becomes "Android Composite ADB Interface", PTP mode managed to show up. But when switch to MTP mode, it doesn't show up.
How can I fix this??
Thanks.
do you have a non working mtp device driver in devices when plugged in?
you might have to put the device id in the mtp inf file, i had to with xp to get mtp working when in debugging mode.
meangreenie said:
do you have a non working mtp device driver in devices when plugged in?
you might have to put the device id in the mtp inf file, i had to with xp to get mtp working when in debugging mode.
Click to expand...
Click to collapse
when plugged in, it just show "Android ADB Interface" when USB debugging is disabled, same description for both MTP and PTP. Just different hardware ID.
MTP with USB debugging disabled: USB\VID_18D1&PID_4EE1&REV_0228
PTP with USB debugging disabled: USB\VID_18D1&PID_4EE5&REV_0228
MTP with USB debugging enabled: USB\VID_18D1&PID_4EE2&REV_0228
PTP with USB debugging enabled (Android Composite ADB Interface): USB\VID_18D1&PID_4EE6&REV_0228&MI_01
PTP with USB debugging enabled (PTP Camera portable device): USB\VID_18D1&PID_4EE6&REV_0228&MI_00
Can anyone shed any lights? :crying:
Just want to emphasis that all works fine if I plug in the old Nexus device.
I suspect it would work if I format and reinstall my Windows, but don't want to go down that route unless there is no other method.
open up windows/inf/wpdmtp.inf and find these lines near the top of the file...
[Generic.NTx86]
%GenericMTP.DeviceDesc%=MTP, USB\MS_COMP_MT
[Generic.NTamd64]
%GenericMTP.DeviceDesc%=MTP, USB\MS_COMP_MT
i ammended mine like so, but mine wasn't working in debugging mode, so adjust yours accordingly...
[Generic.NTx86]
%GenericMTP.DeviceDesc%=MTP, USB\MS_COMP_MTP
%GenericMTP.DeviceDesc%=MTP, USB\VID_18D1&PID_4EE2&MI_00
[Generic.NTamd64]
%GenericMTP.DeviceDesc%=MTP, USB\MS_COMP_MTP
%GenericMTP.DeviceDesc%=MTP, USB\VID_18D1&PID_4EE2&MI_00
then i updated the mtp driver, using automatic option.
hope it helps.
I had the exact same issue with my original and new RMA N4.
This thread worked perfectly for me. Now both show up as MTP and PTP as the original did:
http://forum.xda-developers.com/showthread.php?t=2012363&page=5
I'm running Windows 7 64bit and followed the Ultimate guide to unlock and root my Nexus 4.
Everything went well but now it looks like that Windows won't recognize my phone as a device. When I plug in the phone, the auto-play window will pop out and recognize it as Nexus 4, but there is no other options. (Normally the auto-play will ask if open folder to view files or transfer photos). I can't see my phone in device manager either.
If I turn on the USB debugging mode, I can see it in device manager but still cannot see it in My Computer. Looks like Windows can't access the SD card at all.
I tried switching to the camera mode but the problem remained. Please help.
desperate bump. can anyone help?
Maybe it's a stupid advice, but have you tried change the USB port in PC?
glancer2315 said:
desperate bump. can anyone help?
Click to expand...
Click to collapse
Plug in the phone, uninstall the drivers from Device manager, then unplug, and replug.
Colourkey said:
Maybe it's a stupid advice, but have you tried change the USB port in PC?
Click to expand...
Click to collapse
yes, i did.
abaaaabbbb63 said:
Plug in the phone, uninstall the drivers from Device manager, then unplug, and replug.
Click to expand...
Click to collapse
thanks for your advice. the problem is that, without USB debugging mode on, I can't see Nexus 4 in Device manager, even though the Windows Auto-play will say Nexus 4 connected. (Nothing in My Computer either)
With USB debugging mode on, I uninstalled the driver and Windows would try installing the driver. Now it shows up as MTP device with an exclamation mark. I tried manually update the driver (direct it to the Google SDK folder and pick the android_windowsusb.inf) but it says it does not support x64. I don't think the 64 bit driver is digitally signed.
I think I had a similar problem as yours. If you deleted the drivers while on debugging mode and reconnected after and it's showing the exclamation mark of a unknown device, try restarting your computer and plugging your phone back in.
SovereigN7 said:
I think I had a similar problem as yours. If you deleted the drivers while on debugging mode and reconnected after and it's showing the exclamation mark of a unknown device, try restarting your computer and plugging your phone back in.
Click to expand...
Click to collapse
i did and it remains the same.
Is there anyway I can know all the files names of the drivers so that I can manually delete them from system folder? When I uninstalled it from the device manager, I don't see the option "Delete the driver software for this device".
I can still see it under "adb devices" list.
I think there are some conflicts in the drivers.
Now when I connect Nexus 4 (without USB debugging mode on), it will show up in device manager under Android Device.
With USB debugging, it will then show up under Portable Devices.
However, it's supposed to work the other way around. that is (no USB debugging --> portable device; with USB debugging --> Android Device).
How can i solve this?
Have you tried manually installing the drivers before plugging in the phone, vs letting windows choose the drivers it wants to install? One option you could try is installing PDA Net on your pc. It will install reliable drivers on your pc.
i also had this same problem after flashing my first custom rom on the n4, and i also run windows 7 Ultimate x64
here is the process i use for full clean installation of device
on phone
goto SETTINGS > STORAGE > (menu) USB Computer Connection
make sure Media Device (MTP) is checked
With USB Debugging On
On your PC go to device manager
there should be 2 devices (Android Phone > Android Composite ADB Interface & Portable Devices > Nexus 4) - this is on a fully working n4 so you might only have 1 of them
Right click on each of them and click uninstall
The popup box should have another check box to delete the driver also, if this is available check it then confirm (note mine only has the box for Android Phone > Android Composite ADB Interface, but if yours has it on both then check it on both)
your computer will now ask you to restart, dont do it yet
repeat previous step for the other device if you have 2 then reboot
upon rebooting it will automatically start reinstalling drivers
by expanding the selection you should see 2 devices
Nexus 4 - Successful - Ready To Use (this is your MTP connection)
Nexus 4 - Unsuccessful - No Driver Found (this is your ADB Connection)
at this point you should be able to access internal storage however ADB will not work
go back into device manager
you should now have
Portable Devices > Nexus 4
and Other Devices > Nexus 4 (with yellow exclamation mark)
right click on the Other Devices > Nexus 4 (with yellow exclamation mark)
hit Update Driver Software
click Browse my computer for driver software
click Let Me Pick Drom a List of Device Drivers On My Computer
double click Show All Devices
click Have Disk...
click Browse
navigate to the download directory for the google usb drivers (for me this was "C:\Program Files (x86)\Android\Android-SDK\Extras\Google\Usb_Driver")
double click on the android_winusb.inf file
click OK
double click "Android Composite ADB Interface"
it will then install the driver for ADB
you should now have full access to internal storage and ADB
Alex240188 said:
i also had this same problem after flashing my first custom rom on the n4, and i also run windows 7 Ultimate x64
here is the process i use for full clean installation of device
on phone
goto SETTINGS > STORAGE > (menu) USB Computer Connection
make sure Media Device (MTP) is checked
With USB Debugging On
On your PC go to device manager
there should be 2 devices (Android Phone > Android Composite ADB Interface & Portable Devices > Nexus 4) - this is on a fully working n4 so you might only have 1 of them
Right click on each of them and click uninstall
The popup box should have another check box to delete the driver also, if this is available check it then confirm (note mine only has the box for Android Phone > Android Composite ADB Interface, but if yours has it on both then check it on both)
your computer will now ask you to restart, dont do it yet
repeat previous step for the other device if you have 2 then reboot
upon rebooting it will automatically start reinstalling drivers
by expanding the selection you should see 2 devices
Nexus 4 - Successful - Ready To Use (this is your MTP connection)
Nexus 4 - Unsuccessful - No Driver Found (this is your ADB Connection)
at this point you should be able to access internal storage however ADB will not work
go back into device manager
you should now have
Portable Devices > Nexus 4
and Other Devices > Nexus 4 (with yellow exclamation mark)
right click on the Other Devices > Nexus 4 (with yellow exclamation mark)
hit Update Driver Software
click Browse my computer for driver software
click Let Me Pick Drom a List of Device Drivers On My Computer
double click Show All Devices
click Have Disk...
click Browse
navigate to the download directory for the google usb drivers (for me this was "C:\Program Files (x86)\Android\Android-SDK\Extras\Google\Usb_Driver")
double click on the android_winusb.inf file
click OK
double click "Android Composite ADB Interface"
it will then install the driver for ADB
you should now have full access to internal storage and ADB
Click to expand...
Click to collapse
thank you for your long and detailed reply.
this is what i wanted to do, but the problem is that when I uninstall them, I don't get to see the option "delete the driver software for this device". What should I? cuz every time I plug in Windosws just tries to automatically install the driver for me.
Have you tried toggling to ptp mode then back to mtp on your phone. It's odd indeed.
The fact that you can't remove the driver is because that is the mtp one which is built in to media player. Let me give this some more thought
EDIT: You said that with USB debugging disabled your device is listed under device manager as an android device
can you check and verify exactly what it is listed as? as it should be portable device
Sent from my Nexus 4 using xda app-developers app
Alex240188 said:
Have you tried toggling to ptp mode then back to mtp on your phone. It's odd indeed.
The fact that you can't remove the driver is because that is the mtp one which is built in to media player. Let me give this some more thought
EDIT: You said that with USB debugging disabled your device is listed under device manager as an android device
can you check and verify exactly what it is listed as? as it should be portable device
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
hi under android device it shows up as Android adb device
under portable device i can it now showing up as MTP USB device with exclamation mark.
glancer2315 said:
hi under android device it shows up as Android adb device
under portable device i can it now showing up as MTP USB device with exclamation mark.
Click to expand...
Click to collapse
does adb work?
i.e. adb devices
or is USB debugging turned off at this point
Also. The one with the exclamation mark. Right click and go to properties. What does it say in device status
Alex240188 said:
does adb work?
i.e. adb devices
or is USB debugging turned off at this point
Also. The one with the exclamation mark. Right click and go to properties. What does it say in device status
Click to expand...
Click to collapse
hi, adb devices works. (will list my device when usb debugging is on)
with usb debugging off, under portable device, the device status says "This device cannot start. (Code 10)". thanks.
still looking for solutions. maybe i should try uninstalling the ADB driver, but the problem is that when i uninstall the device from the device manager I don't see the option "delete the driver software for this device", any help?
glancer2315 said:
still looking for solutions. maybe i should try uninstalling the ADB driver, but the problem is that when i uninstall the device from the device manager I don't see the option "delete the driver software for this device", any help?
Click to expand...
Click to collapse
I have this same issue I'm trying to find a fix, that's how I found your thread. Alex gave very good info make sure you go back to his posts and hit his "Thanks" button, I did it on everyone one of his posts in this thread. I'm starting to think it's a hardware issue and not a software issue, I've never had this issue on any device. When I got it new running stock 4.2.2 MTP didn't work. ADB works and PTP works, just not MTP no matter what I try. I recommend you learn to use, ADB push and pull to move your files if you don't already know how to use it (To use ADB I need to check PTP for it to work and not MTP) you might need to do the same. I will keep you posted if I find a fix.
Sent from my Nexus 10 Pimpin AOKP 4Life
I'm just getting more and more confused with this.
If Adb works then you must have an Adb driver installed for the phone. However your also stating that you get no box for uninstall driver.
With USB debugging disabled you said that it appears as an android phone rather than a portable device. This should not be.
With debugging disabled what happens if you Try to uninstall in device manager
Sent from my Nexus 4 using xda app-developers app
---------- Post added at 01:54 PM ---------- Previous post was at 01:51 PM ----------
My theory still stands that you have updated the mtp driver with adb drivers. Hence why mtp doesn't work but ptp does.
The problem is getting to a position where you can uninstall the adb drivers from the mtp device and let it reinstall the proper drivers
Sent from my Nexus 4 using xda app-developers app
I plugged another Nexus 4 in, and all the drivers loaded perfectly. I then tried my Nexus 4 phone, and nothing happens. No mtp, no adb, no boot loader drivers. Its my phone. My next step is to find a zip file that I can flash via custom recovery, which will bring all the binaries and ROM back to stock. Anybody know where I can find this? I'll probably lose the custom recovery, but hopefully it will be fixed and I can flash the custom recovery again.
LG-E960
I have my sg4 plugged into my laptop, but it is not showing up in the android debug monitor. I ran it as administrator, and the device does show up in my computer.
Do you have debugging enabled in Developer options? Make sure you have the right drivers installed otherwise you may need a reboot on both devices
I have the Nexus 7 drivers installed, and the adb interface.
and I do have debugging enabled.
I think that you need the Samsung drivers. The Nexus 7 drivers are different ones. So download them here: http://www.samsung.com/us/support/downloads
They should also be installed if you install Kies.
sniper8752 said:
I have my sg4 plugged into my laptop, but it is not showing up in the android debug monitor. I ran it as administrator, and the device does show up in my computer.
Click to expand...
Click to collapse
There is a well-hidden menu that you may need to access.
Assuming you have developer mode enabled...
- Go to Settings, then Storage
- Click on the menu (top right)
- Select USB computer connection
You'll see 2 boxes:
- Tick 'media device'
I found that if neither box was ticked, I couldn't see my device...
Maybe the first time the dialog says "Allow this computer debugging" appears, you clicked NO.
Try go to Developer options and click "Revoke USB debugging authorizations", and reconnect the device.
I have carefully followed the instructions in [GUIDE] Unlock/Root/Flash for Nexus 6P.
However, when I type "adb devices" at the command prompt, I just get "List of devices atttached" without a serial number. When I try "fastboot devices" when in bootloader, the cursor comes back without any message. What should I try next. Thanks in advance.
PrevailNow said:
I have carefully followed the instructions in [GUIDE] Unlock/Root/Flash for Nexus 6P.
However, when I type "adb devices" at the command prompt, I just get "List of devices atttached" without a serial number. When I try "fastboot devices" when in bootloader, the cursor comes back without any message. What should I try next. Thanks in advance.
Click to expand...
Click to collapse
Did you add the current version of platform-tools to your environment variables path? Did you also install the Google USB drivers from the sdk? Also on the phone you have USB debugging enabled and then when you plug it into pc it will ask for authorization on your phone.
Yes, I am running adb and fastboot from within the platform-tools folder. USB debugging is enabled as well as OEM unlocking in developer options. I switch from USB charging to file transfer (MTP) when plugging in. The USB drivers seem to be working fine, since I have no trouble transferring files, etc. Just don't know what else to try to get adb working.
I can't find the video that helped me but this is what I remember.
Go to device manager, locate the phone, tick the drivers tab, update drivers, browse, let me pick, have disk, and locate your drivers (I uswd the straight up Google drivers). At some point you have to choose from 3 ADB choices, it's the top one, Android ADB Interface. Good Luck, it worked for me.
BTW- for me fastboot found my phone but not ADB.
PrevailNow said:
Yes, I am running adb and fastboot from within the platform-tools folder. USB debugging is enabled as well as OEM unlocking in developer options. I switch from USB charging to file transfer (MTP) when plugging in. The USB drivers seem to be working fine, since I have no trouble transferring files, etc. Just don't know what else to try to get adb working.
Click to expand...
Click to collapse
Did your phone ask to authorize your PC when you plugged it in?
Gizmoe said:
Did your phone ask to authorize your PC when you plugged it in?
Click to expand...
Click to collapse
I get two notifications when plugging in the 6P. One says, "USB debugging connected". The other says, "USB for charging. Touch for more options".
PrevailNow said:
I get two notifications when plugging in the 6P. One says, "USB debugging connected". The other says, "USB for charging. Touch for more options".
Click to expand...
Click to collapse
OK. Unplug your phone. Go to dev options. Turn off USB debugging. Also revoke USB debugging authorizations. Then re-enable USB debugging and plug phone in. It should now ask if you want to allow USB debugging for your PC on your phone screen. Check to always allow device.
Gizmoe said:
OK. Unplug your phone. Go to dev options. Turn off USB debugging. Also revoke USB debugging authorizations. Then re-enable USB debugging and plug phone in. It should now ask if you want to allow USB debugging for your PC on your phone screen. Check to always allow device.
Click to expand...
Click to collapse
What he said, this is key to get ADB working.
Gizmoe said:
OK. Unplug your phone. Go to dev options. Turn off USB debugging. Also revoke USB debugging authorizations. Then re-enable USB debugging and plug phone in. It should now ask if you want to allow USB debugging for your PC on your phone screen. Check to always allow device.
Click to expand...
Click to collapse
I did as you suggest, but I continue to get the same two notifications, just as before.
The first says "USB debugging enabled. Touch to disable USB debugging.", without any request to authorize my specific PC.
PrevailNow said:
I did as you suggest, but I continue to get the same two notifications, just as before.
The first says "USB debugging enabled. Touch to disable USB debugging.", without any request to authorize my specific PC.
Click to expand...
Click to collapse
It's a driver or port issue then on your PC. Are you trying in a USB 2.0 or 3.0 port? I got mine in a 3.0. In device manager it should say under Android devices tree " Android Composite ADB Interface". Try switching ports or if you see it listed wrong in device manager manually update the drivers.
---------- Post added at 06:21 PM ---------- Previous post was at 06:16 PM ----------
It is important though that you get the toast notification about allowing USB debugging and it will show you an rsa fingerprint.
You said you had a second notification that said "USB for charging". Have you tapped that notification and changed it to file transfer?
jiggyb21 said:
You said you had a second notification that said "USB for charging". Have you tapped that notification and changed it to file transfer?
Click to expand...
Click to collapse
Adb works in charging mode. They are not even getting the authorization toast to allow USB debugging on PC.
---------- Post added at 06:35 PM ---------- Previous post was at 06:33 PM ----------
@PrevailNow If you have any other phone software installed try disabling or uninstalling it. Other phone manufacturers tools can cause problems with adb as well.
Gizmoe said:
@PrevailNow If you have any other phone software installed try disabling or uninstalling it. Other phone manufacturers tools can cause problems with adb as well.
Click to expand...
Click to collapse
I think you are right about this. I appear to be making some progress. After removing a previous installation of Sammy Kies, I got the PC authorization request for debugging, and the adb interface driver shows up now, as expected, in the device manager.
I am also able to get "adb" to return my serial number; but "fastboot" doesn't detect any attached devices. I have deleted and reinstalled all 4 SDK packages, but "fastboot" still doesn't detect my 6P. I just don't know what else to try, so any ideas would be appreciated. I thank those who have already responded with helpful information.
You're using old platform tools, I guarantee it...
Sent from my Nexus 6P using Tapatalk