2 Nexus 4 devices behave differently in USB (MTP/PTP vs Android ADB interface) - Nexus 4 Q&A, Help & Troubleshooting

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

Related

MTP and USB debugging

If I disable USB debugging, Xoom would be recongnized as MTP device. If I enable USB debugging, it is not recongnized.... (Windows XP SP2)
I just found that I can modify c:\windows\inf\wpdmtp.inf to solve the problem. Just add
Code:
%GenericMTP.DeviceDesc%=MTP, USB\VID_22B8&PID_70A9&MI_00
after the lines
Code:
[Generic.NTx86]
%GenericMTP.DeviceDesc%=MTP, USB\MS_COMP_MTP
and
Code:
[Generic.NTamd64]
%GenericMTP.DeviceDesc%=MTP, USB\MS_COMP_MTP
and try to let windows to install the driver.
The reason seems like that if USB debugging is disabled, Xoom reports it as class MS_COMP_MTP. But if it is enabled, it does not report this, so the driver fails to match...
So the problem is, why Xoom doesn't report itself as MTP device while USB debugging is enabled? It still works as MTP devices in the USB debugging mode, so it may just let the driver to attach to it.... Maybe it's caused by the composite device?
Nexus 4
henryhu said:
If I disable USB debugging, Xoom would be recongnized as MTP device. If I enable USB debugging, it is not recongnized.... (Windows XP SP2)
I just found that I can modify c:\windows\inf\wpdmtp.inf to solve the problem. Just add
Code:
%GenericMTP.DeviceDesc%=MTP, USB\VID_22B8&PID_70A9&MI_00
after the lines
Code:
[Generic.NTx86]
%GenericMTP.DeviceDesc%=MTP, USB\MS_COMP_MTP
and
Code:
[Generic.NTamd64]
%GenericMTP.DeviceDesc%=MTP, USB\MS_COMP_MTP
and try to let windows to install the driver.
The reason seems like that if USB debugging is disabled, Xoom reports it as class MS_COMP_MTP. But if it is enabled, it does not report this, so the driver fails to match...
So the problem is, why Xoom doesn't report itself as MTP device while USB debugging is enabled? It still works as MTP devices in the USB debugging mode, so it may just let the driver to attach to it.... Maybe it's caused by the composite device?
Click to expand...
Click to collapse
The same thing worked for my Nexus 4, add:
%GenericMTP.DeviceDesc%=MTP, USB\VID_18D1&PID_4EE2&MI_00
Nexus 4
b_jammin666 said:
The same thing worked for my Nexus 4, add:
%GenericMTP.DeviceDesc%=MTP, USB\VID_18D1&PID_4EE2&MI_00
Click to expand...
Click to collapse
worked just fine on my Nexus 4 too!!
thanks a lot!! :laugh:

[Q] Nexus 7 32GB doesn't appear in windows as MTP?

I just turned my nexus 7 32GB on and connected it to the same cable as the 16GB I just returned. It doesn't show up on my computer at all in MTP mode. Only in PTP mode. Any ideas on what to try?
*EDIT*
USB debugging is not on. Tried to install the asus drivers and got an error about there not being a driver for 64-bit in them, despite seeing the x64 drivers in the package.
Also, as MTP, my nexus 7 shows up as VID_18D1&PID_4E41&REV_9999
Again, that's with USB debugging disabled, it shows up only as an ADB device.
*RESOLUTION*
I uninstalled the ADB driver while it was plugged in with MTP mode. I unplugged it and replugged it and now it works fine.
is usb debugging on?
i got drivers from asus site.
deleted all references to N7 and rebooted windows.
un checked debugging on N7.
went to storage and checked mtp.
connected to windows.
when windows wants to install new MTP device, pointed it to the usb_driver folder..
windows installed MTP device..
this all happened to me today.. i am brand new for this device and the N7 board.
i spose this is fine for me but i would still like to see MyComputer show as USB mass storage..
i feel like the MTP doesnt show everything , limiting my access / control..
i would like to know how to do this,
thanx
akusokuzan said:
is usb debugging on?
Click to expand...
Click to collapse
USB debugging is not on. Tried to install the asus drivers and got an error about there not being a driver for 64-bit in them, despite seeing the x64 drivers in the package.
Also, as MTP, my nexus 7 shows up as VID_18D1&PID_4E41&REV_9999
Again, that's with USB debugging disabled, it shows up only as an ADB device.
jptech said:
USB debugging is not on. Tried to install the asus drivers and got an error about there not being a driver for 64-bit in them, despite seeing the x64 drivers in the package.
Also, as MTP, my nexus 7 shows up as VID_18D1&PID_4E41&REV_9999
Again, that's with USB debugging disabled, it shows up only as an ADB device.
Click to expand...
Click to collapse
you didn't uninstall all references to adb first. even if you have to go back to a restore point. then start over for Windows to install as mtp

[Q] Nexus 4 usb file transfer

Hi,
This is my first Nexus device (N4), I know they have an emulated SD card, so I expected to connect it to my Win 7 PC via USB, and for the SD card directory to be shown as a file system / drive in Windows. This doesn't happen.
Phone is in MTP mode, screen isn't locked. Am I missing something here, a driver perhaps, or does this functionality no longer exist?
Thanks,
Des
You should get a Nexus 4 device along with your drives, you open that, then go to 'internal storage'
If you're not getting that, then it's probably driver related.
If it doesn't detect by USB at all, you may have a faulty device like me.
If you plug your phone into the wall with the AC adapter, does it constantly say " charging (USB)" in the battery settings?
This defect means I cannot root or charge the phone properly... It sucks..
Sent from my Nexus 4 using Tapatalk 2
Most likely a driver issue. When I have use the adb driver I cannot see my device as a storage device. Switching to the default driver Windows installs lets me see it but adb no longer works.
I ended up just using AirDroid to do any file transfers.
There are a few reports of the stock charger being reported as USB charging actually, so it might not be all bad.
The phone might be in MTP mode, but has it installed the MTP driver ? Check Device Manager.
On my own XP system, MTP wouldn't work for me until I turned off USB debugging.
Sent from my Nexus 4 using xda premium
steviewevie said:
The phone might be in MTP mode, but has it installed the MTP driver ? Check Device Manager.
On my own XP system, MTP wouldn't work for me until I turned off USB debugging.
Click to expand...
Click to collapse
^ This.
On XP, MTP does not work if USB Debugging is turned on. It may be the same for Windows 7 as well.
Same behavior on Windows 7, just fixed my issues. Thanks!
I got similar problem with my N4, yesterday I flashed Mahdi-ROM 2.4[1/02] then my USB stopped working. I can view files through PC, but cannot upload to phone. It says device has been disconnected, but it's still connected Turning off USB debuging didn't help.
I cannot even flash kernel uploaded through Airdroid, recovery gives error - cannot open zip file.
Edit: Nevermind, its PC problem. With other PC it works normal.
use universal naked drivers.
fastboot adb and mtp and ptp working.
efrant said:
^ This.
On XP, MTP does not work if USB Debugging is turned on. It may be the same for Windows 7 as well.
Click to expand...
Click to collapse
After I rooted my N4 a few months ago same thing, cannot get MTP on WinXP
Works fine on my Win7 machines though, its pretty annoying
Tried ALL the fixes I could find, no go
Uninstal all drivers, reconnect N4 let Windows install drivers, it will probably be adb device drivers, then select in device manager adb device drivers update drivers and check install from specific location and on next screen check don't search!
Then you could be able to select mtp. All of this should be done with USB debugging turned off and USB connection as mtp!
Sent from my Nexus 4 using Tapatalk
Nexus 4
zvecka said:
Uninstal all drivers, reconnect N4 let Windows install drivers, it will probably be adb device drivers, then select in device manager adb device drivers update drivers and check install from specific location and on next screen check don't search!
Then you could be able to select mtp. All of this should be done with USB debugging turned off and USB connection as mtp!
Sent from my Nexus 4 using Tapatalk
Click to expand...
Click to collapse
Hey Buudy thanks this helps me

[Q] mtp vs ptp

Please help if you can
My first 32gb Nexus 7 had no problems showing up as an mtp device on windows 7.
Am running a rooted 4.1.2 and all is well with mtp as well as adb, toolkits, etc.
I purchased one more as a gift, and that one can only be set to ptp in the internal storage settings.
If I try to set it to mtp, it takes, but does not show up in windows or in adb.
The only way to see it or use adb or a toolkit on it, is to set it to ptp which shows up as a camera with read only permissions.
Both tablets are using the same rom etc.
Have tried this on 2 PC's (win 7 as well as xp)
Any Ideas?
Thanks
On my (rooted) Stock 4.2.1 tablet, MTP mode only seems to show up if ADB Debugging is enabled.
Sort of odd; PTP will work whether or not ADB Debugging is turned on, but MTP only shows up when ADB debugging is also enabled.
If you have not enabled "Developer Options" on the tablet, go to
Settings->About tablet
and tap on the last entry ("Build number") 6 or 7 times in succession. This will allow the following menu item to appear under settings:
Settings-> {} Developer options
You can enable ADB debugging from there.
The PTP/MTP toggle control is at
Settings -> Storage -> Menu (top RH corner) -> USB Computer connection
good luck
MTP vs PTP
bftb0 said:
On my (rooted) Stock 4.2.1 tablet, MTP mode only seems to show up if ADB Debugging is enabled.
Sort of odd; PTP will work whether or not ADB Debugging is turned on, but MTP only shows up when ADB debugging is also enabled.
If you have not enabled "Developer Options" on the tablet, go to
Settings->About tablet
and tap on the last entry ("Build number") 6 or 7 times in succession. This will allow the following menu item to appear under settings:
Settings-> {} Developer options
You can enable ADB debugging from there.
The PTP/MTP toggle control is at
Settings -> Storage -> Menu (top RH corner) -> USB Computer connection
good luck
Click to expand...
Click to collapse
Thanks, but I guess I was not very clear.
ADB Debugging is turned on but only works in PTP mode.
MTP does not work at all, even though it's checked.
ganovim said:
Thanks, but I guess I was not very clear.
ADB Debugging is turned on but only works in PTP mode.
MTP does not work at all, even though it's checked.
Click to expand...
Click to collapse
Even after reading this and your 1st post, I am still a little uncertain.
I *think* you are saying that you want to get MTP working on the second unit. And I *think* you are also saying that (additionally) ADB only seems to work when you have PTP mode selected.
Reading between the lines - are you testing things with the same computer for both tablets? (Or, another way to put that, if the answer to this previous question is no, do you see any "Unknown Device" messages in the Device Manager when you toggle things around?)
I fooled around with mine not more than 30 minutes ago. Leaving it plugged into the PC the entire time (Win 7 Pro x64), I could toggle USB Debugging on/off and back and forth between PTP/MTP. Although I didn't actually try a live ADB session in both MTP/PTP modes, the file browser thing would pop up for PTP mode no matter what I had ADB debugging set to, and for MTP mode that would only happen if I had ADB debugging enabled. At no time did I see any unrecognized devices in the Device Manager.
And I think that what I just said above doesn't help you.... arghh.
MTP vs PTP
bftb0 said:
Even after reading this and your 1st post, I am still a little uncertain.
I *think* you are saying that you want to get MTP working on the second unit. And I *think* you are also saying that (additionally) ADB only seems to work when you have PTP mode selected.
Reading between the lines - are you testing things with the same computer for both tablets? (Or, another way to put that, if the answer to this previous question is no, do you see any "Unknown Device" messages in the Device Manager when you toggle things around?)
And I think that what I just said above doesn't help you.... arghh.
Click to expand...
Click to collapse
First of all thanks for the interest.
Bottom line is as follows.
MTP mode does not work period.
However....
when I boot into recovery, (TWRP) the pc sees the usb connection, and I can use adb commands.
So it leads me to conclude that there is something off in the System files. But (and it's driving me nuts)
they are a clone of the first (MTP functioning) Nexus 7.
Thanks again
@OP
You can uninstall the drivers(all of the n7 drivers), then unplug, then replug it in, then let it install its drivers again. This solved the mtp issues other users had.

Help! Can't Get ADB to Recognize Note 7

I cannot get ADB to recognize my Note 7. I've installed the ADB & FastBoot 15-second install from the XDA forum, but when I plug my N7 into the PC it only recognizes it as a USB drive.
Dev options enabled,
USB Debugging enabled
USB configuration (MTP mode)
The only entries under Other in Device Manager are CDC and MTP, no Android Device. The phone is also listed under Portable Devices. No USB mode brings up "Android" in the list of devices under Other.
Does anyone have any suggestions?
Do you have proper Samsung usb drivers installed? Check your device manager, just asking sometimes phones can be finicky when trying to get the PC to recognize devices.
Thanks carelockh! That did the trick. I looked in Device Manager and found that only the Windows USB device driver was installed. I downloaded and installed the Samsung driver and was able to connect over ADB.
No problem, anytime glad I could help.

Categories

Resources