[Q] MTP doesn't work on Linux (CM12) - Xperia Z1 Compact Q&A, Help & Troubleshooting

Hello,
when I connect my Z1C (official CM12 build from 2015-04-15, or any other version really) to my PC (Xubuntu 14.04, Kernel 3.16), I can't access the storage using MTP. For some reason MTP never worked for me on this phone on Linux, even when I had CM11 back in the day. In Windows 7, it works, but starting Windows every time I need something from my phone is not an option for me.
When I connect the phone, I do get the screen where I can choose the USB mode as MTP, PTP or charge only -- of course I selected MTP. Toggling this option a few times also doesn't help.
For other devices (mondrianwifi) with CM12, MTP works just fine on the very same PC in Linux (without any further changes to the device or the PC).
This is the reason I ask this question here, in case you were wondering.
Factory resetting the phone, re-installing CM12 after formatting /system or trying different USB ports (2.0 and 3.0) doesn't help, either.
Any ideas, please? How do I debug this?
Best wishes

Try live USB with xubuntu 15.04. I cannot access my z1 compact from Ubuntu 14.04, but can easily access internal disk and SD card from Ubuntu 15.04 (still beta though). I think that there are no proper drivers in previous linux kernels. Maybe I'm wrong as I tested it just with kernels 3.13 and 3.19. It works on 3.19.
Cheers
edit: typo

Thanks! Works in 15.04.

an ideas for Linux Mate 17.2 ? Can't access neither internal nor external card.

Same problem here -_-
So I use adb pull to copy stuff to the laptop

Just use sshdroid
Enviado de meu D5503 usando Tapatalk

Related

htc keeps asking for MTP driver?

Dezire z keeps askinf for MTP drivee?? i recently flashed mexdroid rom, and in the beginning none of the usbs would connect my phone. I thought it was a nightly issue as it was based off of a nightly but now its using RC1.
Recently i played around, it wouldnt connect with the "ADB or Android phone driver." I fixed that and those work fine in Device Manager in Windows 7. However!, in device manager it KEEPS asking for MTP. i tried uninstalling, updating, everything!! and it just wont find my htc desire z.
ADB can find it when using command prompt. It can even logcat, and its weird why ADB can see it but windows cant. I have posted a Download link to the Logcat file. Im hoping anyone here can help me.
http://dl.dropbox.com/u/21509455/logcat.txt
thanks
edit* i think i read somewhere Android doesnt use MTP drivers....-confused-
windows 7 can see my phone and lets me safely remove it too, but wont let me see it in my computer.
issues I was having with W7 x64 were resolved by PDANet. you might try it out, although your issue is slightly different than mine... the device was entirely unrecognizable (by adb, fastboot, the whole shebang).
edit: NOTE you don't need to actually use PDAnet, it will just locate an appropriate driver and install it for you, then you can uninstall it from your PC.. unless you want to use it, of course. pretty slick.
pmcqueen said:
issues I was having with W7 x64 were resolved by PDANet. you might try it out, although your issue is slightly different than mine... the device was entirely unrecognizable (by adb, fastboot, the whole shebang).
edit: NOTE you don't need to actually use PDAnet, it will just locate an appropriate driver and install it for you, then you can uninstall it from your PC.. unless you want to use it, of course. pretty slick.
Click to expand...
Click to collapse
ive done this and it found the proper driver. "Android phone" BUT when it tries to connect with device, it says "failed to handshake with device" and proceeds to uninstall pdanet. Is it because its conflicting with windows 7 cant find the MTP driver?.... sooo confused.. never, ever had this problem
edit* after pdanet is uninstalled, the Android phone driver works fine, but MTP does not.
jark99 said:
ive done this and it found the proper driver. "Android phone" BUT when it tries to connect with device, it says "failed to handshake with device" and proceeds to uninstall pdanet. Is it because its conflicting with windows 7 cant find the MTP driver?.... sooo confused.. never, ever had this problem
edit* after pdanet is uninstalled, the Android phone driver works fine, but MTP does not.
Click to expand...
Click to collapse
that's a bugger.
when you plug the phone in, in device manager, does it show as a USB mass storage device under the USB controller section? to check: unplug all usb devices (aside from input devices like keyboard/mouse/what-have-you). plug in your phone and go to device manager (right click my computer->manage->device manager). under USB controllers, check and see if there is a USB mass storage device. assuming you have disconnected any other storage media, this is your phone.
if it does:
uninstall this driver, unplug your phone, restart, plug your phone back in.
if it doesn't:
my next step (take it for what it's worth - I'm sure there's an easier way) would be to unplug all usb devices (including keyboard/mouse - anything USB related), uninstall EVERYTHING under the USB Controller submenu, then restart and plug the phone in.
W7 should automatically recognize and reinstall the USB host controllers and hubs.
edit: are you using any other USB storage devices? thumb drives, ext harddrives, etc? do they work?
pmcqueen said:
that's a bugger.
when you plug the phone in, in device manager, does it show as a USB mass storage device under the USB controller section? to check: unplug all usb devices (aside from input devices like keyboard/mouse/what-have-you). plug in your phone and go to device manager (right click my computer->manage->device manager). under USB controllers, check and see if there is a USB mass storage device. assuming you have disconnected any other storage media, this is your phone.
if it does:
uninstall this driver, unplug your phone, restart, plug your phone back in.
if it doesn't:
my next step (take it for what it's worth - I'm sure there's an easier way) would be to unplug all usb devices (including keyboard/mouse - anything USB related), uninstall EVERYTHING under the USB Controller submenu, then restart and plug the phone in.
W7 should automatically recognize and reinstall the USB host controllers and hubs.
edit: are you using any other USB storage devices? thumb drives, ext harddrives, etc? do they work?
Click to expand...
Click to collapse
Under the usb section in device manager, i have about 8 or so usb controllers and stuff. Im using a Gateway Laptop and only one thing is using a usb port--- the mouse. Thats all. So i dont really have a clue which one is my htc phone because when plugging it in and going into device manager the only devices i remember using the phone were adb, android phone, and Now MTP. If i could pinpoint which usb controller is using my phone ill uninstall it. Other than that, what else is there? This is the strangest problem ever
Sent from my HTC Vision using XDA App
sighh, comeon guys. here ill post some pics of what is going on
Here are the pics of what is going on!!
Normal mode (no phone plugged in) - http://dl.dropbox.com/u/21509455/normal%20mode.jpg
Phone plugged in mode - http://dl.dropbox.com/u/21509455/phone%20plugged%20in.png
Uninstalled MTP & ADB driver Picture (looking for drivers) -http://dl.dropbox.com/u/21509455/phone%20uninstall%20drivers.jpg
Phone with ADB driver but no MTP - http://dl.dropbox.com/u/21509455/phone%20with%20driver%20found%20but%20no%20mtp%20.jpg
hope this helps , if you find something that can make this work let me know ASAP
140 views? and no one knows how to fix this problem?? anyone? hello?
jark99 said:
140 views? and no one knows how to fix this problem?? anyone? hello?
Click to expand...
Click to collapse
Have you tried the drivers from the official HTC Sync software? Also, are you actually trying to use the phone as an MTP device or as a USB mass storage device? I don't think you can use both at the same time (though I don't use this ROM so maybe things have changed). If you don't actually want the MTP functionality, I wouldn't worry about it.
Also, I noticed the notes for the ROM says "USB mounting is not working on a Windows OS computer" is a known issue. Not sure if that could be related...
ianmcquinn said:
Have you tried the drivers from the official HTC Sync software? Also, are you actually trying to use the phone as an MTP device or as a USB mass storage device? I don't think you can use both at the same time (though I don't use this ROM so maybe things have changed). If you don't actually want the MTP functionality, I wouldn't worry about it.
Also, I noticed the notes for the ROM says "USB mounting is not working on a Windows OS computer" is a known issue. Not sure if that could be related...
Click to expand...
Click to collapse
im trying to use it as a mass storage device, MTP isnt supposed to show up from what i read. but now it wont start without MTP
did you try what I pm'd you earlier today?
pmcqueen said:
did you try what I pm'd you earlier today?
Click to expand...
Click to collapse
windows 7 home doesnt have that script gpedit.msc
i looked all over google and it doesnt work . only pro and business versions have it.
Did the HTC Sync software not work? Also, have you tried formatting your SD card? Might be a long shot, but if it was ever used in MTP mode at one point, maybe your comp is detecting the files and thinking it's still an MTP device. Not sure if it works that way though...
Did you ever set the phone to MTP mode in the past? Like if you were ever on a Sense-based ROM. Maybe if you had it in MTP mode prior to flashing the new ROM, it stayed in it. Once again, no clue if it works that way since I've never used MTP on this phone before, but might be worth trying if you are out of options.
STILL havent fixed this MTP driver issue, have tried everything including the post above me!....NOTHING IS WORKING. why is it being recognised as mtp, when all i need is use the sd card.
this has been up for a week, seriously no one knows how to fix it?
jark99 said:
this has been up for a week, seriously no one knows how to fix it?
Click to expand...
Click to collapse
I'm guessing it's because no one else has encountered this problem before...
So what happened when you flashed back to a Sense-based ROM? I've never used one, but I thought when you connect the phone via USB, you have to choose what kind of connection you want (e.g., HTC Sync connection vs Disk Drive). Are you saying even when you choose to connect as a drive, the phone still shows up only as an MTP device (which I'm assuming is what is used when in HTC Sync mode)?
ianmcquinn said:
I'm guessing it's because no one else has encountered this problem before...
So what happened when you flashed back to a Sense-based ROM? I've never used one, but I thought when you connect the phone via USB, you have to choose what kind of connection you want (e.g., HTC Sync connection vs Disk Drive). Are you saying even when you choose to connect as a drive, the phone still shows up only as an MTP device (which I'm assuming is what is used when in HTC Sync mode)?
Click to expand...
Click to collapse
i switched to MIUI rom where i can mount sd card, and it still shows up as MTP in device manager on windows. Its not a rom issue, its a issue with WINDOWS seeing my device as a MTP and not STorage ....stupid windows 7.
jark99 said:
i switched to MIUI rom where i can mount sd card, and it still shows up as MTP in device manager on windows. Its not a rom issue, its a issue with WINDOWS seeing my device as a MTP and not STorage ....stupid windows 7.
Click to expand...
Click to collapse
Well either Windows sees your phone as an MTP device or the phone is actually reporting itself as an MTP device (not sure how it works on phones, but typically Windows communicates with firmware on a USB device to determine its classifications).
I'm guessing you already tried this since it's one of the only threads on the G2 forum when I did a search for MTP...
http://forum.xda-developers.com/showthread.php?t=901449
ianmcquinn said:
Well either Windows sees your phone as an MTP device or the phone is actually reporting itself as an MTP device (not sure how it works on phones, but typically Windows communicates with firmware on a USB device to determine its classifications).
I'm guessing you already tried this since it's one of the only threads on the G2 forum when I did a search for MTP...
http://forum.xda-developers.com/showthread.php?t=901449
Click to expand...
Click to collapse
Thankss i saw some of those. One method i didnt try, but ill try it and let you know how this goes. Thanks for the link
Sent from my HTC Vision using XDA App
Bumppp. Still no proper way to fix this!!
Sent from my HTC Vision using XDA App
anyone find any fix for this MTP ISSUE?

[Q] Cannot initiate USB data connection on GS3 (rooted, CM10; Win 7)

A few weeks after rooting and installing CM10 on my GS3, it stopped recognizing any form of USB data connection. It still charges from both computer and wall adapter, but I cannot initiate a data transfer or recognize my device using ADB.
I have tried:
three different OEM Samsung cables (from SG3/SG4 phones)
all the ports on two different Win 7 laptops
all the ports on an Ubuntu desktop
enabling or disabling USB debugging
with different combinations each time. No "USB connection" dialog has shown up on the phone, and no "new device" dialog has shown up on any of the computers. I know that I can get ADB working with a different Android phone (HTC Inspire 4G) so I know that my main laptop has USB ports that work and the cables I've tried work as well, so I'm left to assume that the issue is with the GS3. External visual inspection does not suggest the USB port on the phone is damaged, and the phone is only a year old, so I don't believe that is the cause.
Is there a system setting that I may have modified on the GS3 that would disable all forms of USB communication?
(The end goal is to get at least ADB working so I can try and recover some deleted files from the internal memory; I haven't found a reliable method that does not require ADB so I'm trying to get that to work. I know that transferring files on or off can be accomplished with the external SD card or over Wifi but that is not what I'm looking for)
Any suggestions from anyone?
I am not sure. Could be a software issue. I would try backing up your current cm ROM and try installing a fresh touchwiz ROM to see of that works, to rule out software issues. This could also be a android 4.3 issue. Could try stickmount or a similar otg app from the market.
Sent from my Nexus 7
stelv said:
I am not sure. Could be a software issue. I would try backing up your current cm ROM and try installing a fresh touchwiz ROM to see of that works, to rule out software issues. This could also be a android 4.3 issue. Could try stickmount or a similar otg app from the market.
Sent from my Nexus 7
Click to expand...
Click to collapse
I don't think any OTG app like stickmount will help; I'm not trying to connect devices to my phone. I'm trying to get my computer to recognize my phone (and vice versa) in order to get ADB working.
If I can avoid flashing a RAM I'd like to, because I'm still interested in recovering those deleted files. If that is the only thing that would help, though, then I'll do it. Any other suggestions?
Install Kies and that should get the drivers for the pc in place. Odin should recognize the device when it is in the download mode. If that works, then the pc to phone connection is OK and I'd look to software instead of hardware.
Or, if you boot into your custom recovery, either CWM or TWRP, you should be able to get ADB to recognize the device and issue commands including pulling the files on Internal storage. TWRP also has a file browser built in that might be useful.
I have tried uninstalling any Samsung drivers then using the SGS3 toolkit to install the official drivers, but that didn't change anything on the PC end.
Additionally, I tried finding my device while it was in recovery using ADB and there was no connection indication either.
I currently have CWM installed, but I didn't see a mounting option like I've seen for TWRP. Can I flash TWRP without a computer?
Or try this out: Download mode>Connect via USB>Let Windows download and update all drivers until the notification in the bottom right says it's ready to use>Unplug>Battery Pull>Boot normally>connect again. Voila! It works every time when it's being wonky and its a simple way that doesn't require a bunch of downloads!
installing insecure adb might help
Rebooting into download mode does nothing.
I believe rooting and installing CM10 means I already have insecure adb?
thanks
thanks
what next?
aEx155 said:
Rebooting into download mode does nothing.
I believe rooting and installing CM10 means I already have insecure adb?
Click to expand...
Click to collapse
I have this same issue, in download mode, the device is still not connecting.
what is the next step? I have followed this thread and have the still have the same issues.

My Nexus 2013 32GB 3G is not detected properly on PC, help!

Hello gentlemen,
i got the tablet for three days and all was fine.
Yesterday i installed unofficial CM 10.2 build and since then when i connect tablet to PC,
my tablet is detected as Nexus 7 with exclamation or as deb also with exclamation,
I tried to install nexus 7 usb driver, but it didnt find any device to which it could install the driver.
USB Debugging is enabled, if i disable it, nothing is detected.
What are my options now? can it be solved?
Everything else is fine.
spajdr said:
Hello gentlemen,
i got the tablet for three days and all was fine.
Yesterday i installed unofficial CM 10.2 build and since then when i connect tablet to PC,
my tablet is detected as Nexus 7 with exclamation or as deb also with exclamation,
I tried to install nexus 7 usb driver, but it didnt find any device to which it could install the driver.
USB Debugging is enabled, if i disable it, nothing is detected.
What are my options now? can it be solved?
Everything else is fine.
Click to expand...
Click to collapse
Can you view it from the pc, see the files on it and whatnot?
RiffyDivine said:
Can you view it from the pc, see the files on it and whatnot?
Click to expand...
Click to collapse
Only via enabling MTP or PTP, i'm screwed?
spajdr said:
Hello gentlemen,
i got the tablet for three days and all was fine.
Yesterday i installed unofficial CM 10.2 build and since then when i connect tablet to PC,
my tablet is detected as Nexus 7 with exclamation or as deb also with exclamation,
I tried to install nexus 7 usb driver, but it didnt find any device to which it could install the driver.
USB Debugging is enabled, if i disable it, nothing is detected.
What are my options now? can it be solved?
Everything else is fine.
Click to expand...
Click to collapse
spajdr said:
Only via enabling MTP or PTP, i'm screwed?
Click to expand...
Click to collapse
No you aren't screwed, you really got to want it to break it. Just so I am clear then it won't show up as an external hard drive or anything unless you do a peer to peer setup? Also are you running the newest nightly of CM?
"I had to turn off USB debugging, delete the ADB drivers in Device Manager, then reboot the device while it’s still plugged in. Windows recognized the device as an MTP device & installed the drivers before it even fully booted."
Found this well reading on it not connecting to the pc. Simple enough to try out.
Yes sir, I can only see it as PTP or MTP, nothing else.
Should MTP be enabled when rebooting the device?
What i should achieve by doing this?
EDIT.: after restart of device it's trying to install AOSP on deb, unsuccessfully.
spajdr said:
Should MTP be enabled when rebooting the device?
What i should achieve by doing this?
EDIT.: after restart of device it's trying to install AOSP on deb, unsuccessfully.
Click to expand...
Click to collapse
i thought that MTP is the only option to connect it to the pc because its sdcard is emulated on the same partition? my galaxy nexus and nexus 7 can only do MTP too, unless in recovery where i mount it somewhere along the lines of mount as usb storage?
NigPod said:
i thought that MTP is the only option to connect it to the pc because its sdcard is emulated on the same partition? my galaxy nexus and nexus 7 can only do MTP too, unless in recovery where i mount it somewhere along the lines of mount as usb storage?
Click to expand...
Click to collapse
You could be right, i don't know, i copied custom rom immediately after i got nexus, so i didn't really watched how PC see the tablet.
Anyway i successfully flashed back original firmware 4.3.1 and after reboot suddenly Nexus 7 is recognized correctly
and it automatically install driver from folder where i got usb driver from google. So .. i will take a few days pause before i flash custom rom again
Thank you all for helping me in this.
Cheers
spajdr

Linux Mint not showing the Pixel C for MTP transfer

When I connect the Pixel C for PTP it shows up in Nemo and I can transfer photos. USB debugging is selected on the tablet. adb and fastboot are installed in Linux. Switching to MTP removes the tablet from Nemo and I won't be able to transfer media.
An old Galaxy Note 10.1 and the One+one connect to my Linux PC without problems. Does anyone here has a clue as to what might be causing this problem.
I got some help on the Google forum but until now I had no luck in solving this problem.
My PC is running Linux Mint 17.3 Rosa 64-bit with the latest 3.19.0-49 kernel.
Pixel C build# MXB48T with feb 1st security patch.
Oshin_ said:
When I connect the Pixel C for PTP it shows up in Nemo and I can transfer photos. USB debugging is selected on the tablet. adb and fastboot are installed in Linux. Switching to MTP removes the tablet from Nemo and I won't be able to transfer media.
An old Galaxy Note 10.1 and the One+one connect to my Linux PC without problems. Does anyone here has a clue as to what might be causing this problem.
I got some help on the Google forum but until now I had no luck in solving this problem.
My PC is running Linux Mint 17.3 Rosa 64-bit with the latest 3.19.0-49 kernel.
Pixel C build# MXB48T with feb 1st security patch.
Click to expand...
Click to collapse
not much help I'm afraid but I can at least report a similar issue.
I have had exactly he same problem running with Ubuntu 14.04 x64.
I have a Nexus 10 which connects quite happily using MTP.
I can quite happily use MTP between the Pixel and Windows 7x64.
I have worked round the issue by using FTP transfers - as I think there must be some incompatibility between the Linux MTP and the Pixel C!
Oshin_ said:
When I connect the Pixel C for PTP it shows up in Nemo and I can transfer photos. USB debugging is selected on the tablet. adb and fastboot are installed in Linux. Switching to MTP removes the tablet from Nemo and I won't be able to transfer media.
An old Galaxy Note 10.1 and the One+one connect to my Linux PC without problems. Does anyone here has a clue as to what might be causing this problem.
I got some help on the Google forum but until now I had no luck in solving this problem.
My PC is running Linux Mint 17.3 Rosa 64-bit with the latest 3.19.0-49 kernel.
Pixel C build# MXB48T with feb 1st security patch.
Click to expand...
Click to collapse
Hi
I have Mint 17.3 Cinnamon 3.19.0-32 kernel
My Pixel C is also on MXB48T
I just plugged the tablet in, it defaulted to PTP. Switched to MTP and Nemo shows Pixel C as a device and I can browse internal content.
Looking at my installed packages, I have libmtp etc. It looks like they got installed when I installed VLC
Maybe try installing the tools package ? https://apps.ubuntu.com/cat/applications/precise/mtp-tools/
MTP has always been a pain in the a$$ in Linux, mostly because it's a Microsoft technology, MTP on Linux has always been hit or miss with me on Linux, after hours of installing different packages or getting it to finally show up but transfers slowing to a crawl, I would just boot back into Windows and have it done in a few seconds. Take a look at dmesg (dmesg|tail in the terminal) after you plug in your Pixel and switch it to MTP to see if there's any issues. I have Arch Linux on my desktop, but I'm in Windows now so I'll give it a try later and report back if I have any odd issues. As acrickie stated above, bypassing MTP in favor of some other protocol is your best bet, I usually use ES File Explorer since you can enable FTP in it and transfer things over wifi or simply connect to your box via SFTP/SMB from within ES and go about your business.

Trouble connecting to pc - usb access to file system

Running the latest Omni rom, and having problems connecting the phone to the pc for usb file transfer.
- Oppo find 7a running latest Nightly Omni rom with LVM
- Windows 10
The pc makes the connection sound but nothing shows up in the file explorer, under device an "android" device shows up but nothing there works either. I can see a "google nexus adb interface" in the hardware tab when running ptp and mtp.
Tried the following :
- Switching usb settings from charging to mtp / ptp and back via the notification and in developer options
- Installing several drivers for the oppo
- Checking if the ADB connection is there , works, sideload works
- Pausing antivirus (Eset)
- Usb 3.0 and Usb 2.0 ports on the pc
Strange is that when the phone was running coloros everything worked instantly.
Omni is great but this is a problem, can still transfer files via adb and the FX app via wifi but it would be nice to have full speed the normal way via an usb cable and mtp.
Thanks for your help !
Magst64 said:
Running the latest Omni rom, and having problems connecting the phone to the pc for usb file transfer.
- Oppo find 7a running latest Nightly Omni rom with LVM
- Windows 10
The pc makes the connection sound but nothing shows up in the file explorer, under device an "android" device shows up but nothing there works either. I can see a "google nexus adb interface" in the hardware tab when running ptp and mtp.
Tried the following :
- Switching usb settings from charging to mtp / ptp and back via the notification and in developer options
- Installing several drivers for the oppo
- Checking if the ADB connection is there , works, sideload works
- Pausing antivirus (Eset)
- Usb 3.0 and Usb 2.0 ports on the pc
Strange is that when the phone was running coloros everything worked instantly.
Omni is great but this is a problem, can still transfer files via adb and the FX app via wifi but it would be nice to have full speed the normal way via an usb cable and mtp.
Thanks for your help !
Click to expand...
Click to collapse
Hi, do you use a N version of windows? In N versions the adb interface not works right. I had the same problem a few months ago, i went crazy until I detected the problem , install Windows 10 Pro, not N version, and everything works without drivers or anything.
roi_xordo said:
Hi, do you use a N version of windows? In N versions the adb interface not works right. I had the same problem a few months ago, i went crazy until I detected the problem , install Windows 10 Pro, not N version, and everything works without drivers or anything.
Click to expand...
Click to collapse
I am running windows 10 pro, so thats not that problem sadly.
Magst64 said:
I am running windows 10 pro, so thats not that problem sadly.
Click to expand...
Click to collapse
Damn, i cant understand it, i dont need drivers of any type, in my case was plug and play... Try to uninstall and delete in device manager any old adb interface, android usb driver, oppo driver, etc, restart and then connect the phone, windows should to install the drivers automatically.
Good luck
roi_xordo said:
Damn, i cant understand it, i dont need drivers of any type, in my case was plug and play... Try to uninstall and delete in device manager any old adb interface, android usb driver, oppo driver, etc, restart and then connect the phone, windows should to install the drivers automatically.
Good luck
Click to expand...
Click to collapse
Finally , after your remark i tried to disable and then remove the driver inclusive the driver software from my pc and after that it works ! Thanks for the hints Here the steps if anyone else got this problem , by the way also removed the antivirus that could have helped too.
- Connect oppo to usb 2.0
- Device manager : disable the android device with adb driver
- Device manager, delete driver
- unplug oppo
- replug , wait for install
- go to developer options , and switch usb from mtp to charging and back to mtp
Thanks

Categories

Resources