Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,778,846 Members 40,183 Now Online
XDA Developers Android and Mobile Development Forum

[Q] MTP Connection

Tip us?
 
mta1981
Old
#1  
Member - OP
Thanks Meter 14
Posts: 66
Join Date: Jun 2010
Default [Q] MTP Connection

Ok so I'm extraordinarily frustrated with getting this to work. I've searched the forum to the point of a headache. Something about the .inf file and hardwar id's. I've uninstalled and reinstalled the drivers a million times. I've even reflashed the stock rom. Can anyone help? usb debugging works and PTP works. Currently back to stock and all drivers currently uninstalled.
 
mdamaged
Old
#2  
mdamaged's Avatar
Senior Member
Thanks Meter 906
Posts: 1,449
Join Date: Oct 2013
Location: South of Heaven

 
DONATE TO ME
Quote:
Originally Posted by mta1981 View Post
Ok so I'm extraordinarily frustrated with getting this to work. I've searched the forum to the point of a headache. Something about the .inf file and hardwar id's. I've uninstalled and reinstalled the drivers a million times. I've even reflashed the stock rom. Can anyone help? usb debugging works and PTP works. Currently back to stock and all drivers currently uninstalled.
Check this: http://forum.xda-developers.com/show....php?t=2391236
Kenneth, what is the frequency? Set a fire for a man, and he will stay warm for a night. Set a man on fire, and he will stay warm for the rest of his life.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
mta1981
Old
#3  
Member - OP
Thanks Meter 14
Posts: 66
Join Date: Jun 2010
Thanks man but I've tried following that post. It doesnt makae sense that none of these work arounds work for me
 
mdamaged
Old
(Last edited by mdamaged; 12th February 2014 at 05:32 AM.)
#4  
mdamaged's Avatar
Senior Member
Thanks Meter 906
Posts: 1,449
Join Date: Oct 2013
Location: South of Heaven

 
DONATE TO ME
Quote:
Originally Posted by mta1981 View Post
Thanks man but I've tried following that post. It doesnt makae sense that none of these work arounds work for me
Ok, I decided to use a laptop which has never had my N7 attached to it as MTP, only as adb for wugs (before I got comfortable with doing things manually), I had the same problem you did, this is what fixed it. I had used koushes adb driver installer on it, so his driver kept intercepting it.

First I got these drivers and unpacked them: http://developer.android.com/sdk/win-usb.html#

Then I plugged in my device, with PTP enabled and updated drivers and browsed to those drivers and let it install...this did not fix it.

Disable usb debugging, plug it in, enable MTP, then go into device manager, then go into the menu and show all devices, you should see something like Google ADB driver, right-click and uninstall it, selecting delete driver checkbox, then reboot your nexus 7 while still plugged in, it should redetect your N7 as a "Nexus 7" and you should see it in Computer as a Portable Media Player, then unplug the device, wait 3-4 seconds to make sure its unmounted, then plug it back in, you should now actually see files.

NOW, once I saw that that worked, I noticed PTP stopped working, leave it plugged in, switch to PTP. then you will see the ADB driver back, uninstall it again, reboot the device leaving it plugged in, it will redetect the device again, it will say MTP again even though it's in PTP, let it finish, then unplug the device, wait a few seconds, and plug it back in, now you should be able to see it connected as a camera, and should be able to see files, now I can switch PTP ro MTP and back again with debugging off resulting in it working fine.


NOTE: USB debugging only works right in PTP mode for me.. which is fine, I tested to make sure that once debugging was off, I can unplug the device, and plug it back in and I can still switch between MTP and PTP perfectly.

EDIT: Actually I am now going to try leaving debugging enabled, in MTP mode, uninstall the ADB driver and reboot the device and see if that fixes that problem too.

EDIT2: AND IT WORKED!

So now I can have debugging on and off, in MTP and PTP mode, adb devices works perfect for either mode.

In summary, i think the REAL trick here is to put the device in each mode combination one at a time, delete the device and driver from device manager and reboot the device while it's still plugged in, then unplug the device and plug it back in, you do this for every combo outlined below, a total of rebooting and unplugging/plugging in the device 3 times...because PTP+debug on or off worked already

MTP on - Debugging off - find entry in device manager, uninstall it, reboot device, leaving it plugged in, verify it shows in Computer, unplug device, wait 3-4 seconds plug device back in, verify you can see files.

PTP on - Debugging off - find entry in device manager, uninstall it, reboot device, leaving it plugged in, verify it shows in Computer, unplug device, wait 3-4 seconds plug device back in, verify you can see files.

MTP on - Debugging on - find entry in device manager, uninstall it, reboot device, leaving it plugged in, verify it shows in Computer, unplug device, wait 3-4 seconds plug device back in, verify you can see files.


..at the end you should be able to have MTP and PTP fully working with or without debugging on.
Kenneth, what is the frequency? Set a fire for a man, and he will stay warm for a night. Set a man on fire, and he will stay warm for the rest of his life.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
The Following 2 Users Say Thank You to mdamaged For This Useful Post: [ Click to Expand ]
 
peeyaj
Old
#5  
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Feb 2014
Try installing Sony PC Companion. It will install the necessary drivers. Works great with my Nexus 7 when connecting to PC in Windows XP .
 
hussam91
Old
#6  
Senior Member
Thanks Meter 43
Posts: 351
Join Date: Nov 2010
I'm on WIndows 8.1 and when I connect my N7 2013 to PC, it gives me error Unknown USB Device (port reset failed). Anybody knows how I could fix this issue?
 
mdamaged
Old
#7  
mdamaged's Avatar
Senior Member
Thanks Meter 906
Posts: 1,449
Join Date: Oct 2013
Location: South of Heaven

 
DONATE TO ME
Quote:
Originally Posted by hussam91 View Post
I'm on WIndows 8.1 and when I connect my N7 2013 to PC, it gives me error Unknown USB Device (port reset failed). Anybody knows how I could fix this issue?
Good luck with that.
Kenneth, what is the frequency? Set a fire for a man, and he will stay warm for a night. Set a man on fire, and he will stay warm for the rest of his life.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
jblaze10
Old
#8  
jblaze10's Avatar
Senior Member
Thanks Meter 99
Posts: 238
Join Date: Mar 2012
Location: Gold Canyon,Az
Default mtp

ive had my n7 for couple months now and mtp never worked only ptp until about a week ago when in cleanrom thread here http://forum.xda-developers.com/show...83146&page=389 post 3877 asked 3888 answered. I checked in android devices and did not have the android composite adb interface. so I simply unistalled the drivers I had and plugged in device and bam. working great since. don't know if it was related but the day before I updated my sdk and there were some google drivers in the update list. hope this helps someone!


I don't mind airdroid as an alternative but soooo much nicer to plug in and drag and drop!! GL!!

Tags
mtp
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Add Timestamps to Xposed Installer Logs with… Xposed!

If talking about the most interesting projects in the last few years, we must … more

Secrecy Goes Open Source, Assures File Encryption

As some of you may remember, a while back we spoke about Secrecy, an effective file … more

[APK] Google News and Weather Gets Material Design Makeover, Minor Maps Updates

Although Google has somewhat gotten out of the habit of their … more

Software Build Automation with Jenkins – XDA Developer TV

Many members of the XDA community come to learn and begin in the exciting … more