Questions tagged [mtp]

MTP stands for Media Transfer Protocol, which supports the transfer of music files on digital audio players and media files on portable media players, as well as personal information on personal digital assistants.

The Media Transfer Protocol is a devised set of custom extensions to the Picture Transfer Protocol (PTP). Whereas PTP was designed for downloading photographs from digital cameras, Media Transfer Protocol supports the transfer of music files on digital audio players and media files on portable media players, as well as personal information on personal digital assistants.

Media Transfer Protocol (commonly referred to as MTP) is part of the "Windows Media" framework and thus closely related to Windows Media Player. Windows Vista has built-in support for MTP. Support for Media Transfer Protocol in Windows XP requires the installation of Windows Media Player 10 or higher. Mac and Linux systems have software packages to support it.

The USB Implementers Forum device working group standardized MTP as a fully fledged Universal Serial Bus (USB) device class in May 2008. Since then MTP is an official extension to PTP and shares the same class code.

libmtp is a library for MTP. Its official documentation can be found here.

188 questions
0
votes
1 answer

Getting info from MTP device: "friendly name" is always empty

I am using this project to fetch data via MTP: https://github.com/notpod/wpd-lib My problem: the "friendly name" of the device is always empty. Windows shows a friendly name under "This PC", so it should be feasible. This is how the mentioned github…
Xavier Peña
  • 7,399
  • 9
  • 57
  • 99
0
votes
1 answer

Android API 23 mkdir created folder is shown as single file in windows explorer

So basically i create a folder with mkdir and then write a simple text file into that folder. As last step i use MediaScannerConnection.ScanFile to make them visible for the file explorer. The folder and text file are both visible in my file…
Orti
  • 11
  • 3
0
votes
0 answers

Access files on Samsung Galaxy S4 w. Android Marshmallow from Python/Windows 10

I'm trying to get access to the filesystem of my Samsung Galaxy S4 by means of Python. There are apparently two different ways to access the files: via MTP using either python-mtp or PyMTP via USB mass storage mode 1) does not work because I can't…
Hendrik Wiese
  • 2,010
  • 3
  • 22
  • 49
0
votes
1 answer

Directory created on external sd card is seen as binary when mounted via MTP

My app is recording a video which is stored in '/Movies' in a subdir that I create like /Movies/myapp. When browsing from the device with OI filemanager everything looks fine - I can go into my dir and list the videos. When I mount the device to my…
Ognyan
  • 13,452
  • 5
  • 64
  • 82
0
votes
1 answer

How handle exception while copying files from phone to pc in C#?

I'm trying to copy files from connected android device to my pc. public void CopyFiles(Folder srcFolder, Folder FolderImages, Folder FolderDatabase) { ImageFileCounter = 0; SqlLiteCounter = 0; foreach (FolderItem…
Ant
  • 129
  • 1
  • 11
0
votes
1 answer

External storage folders of Android 4.4.2 device do not appear in windows 10 browser

I would like that the users of my Android application be able to copy data files to their computer via USB. They should additionaly be able to erase the files on the android device once copied. To this end, my application creates .csv files which…
0
votes
0 answers

My computer does not detect android phones on MTP

I was able to connect android phones as a MTP device a few weeks ago. Then, I started to use my xperia z3c as an emulator in Android studio. Now i cant reach my folders on computer by connecting with MTP. My OS is Windows 8.1 . I tried many ways to…
user5923647
0
votes
1 answer

Delete a file in Android APP, but the file is still exist in MTP

I'm working on this these days... My app delete somes files by itself. But when I connect my phone with PC by MTP mode, the files which have been delete are still 'alive', but cannot be copied or opened. I know infact the files are already deleted,…
南山怀槿
  • 71
  • 1
  • 6
0
votes
1 answer

Accessing MTP vendor extended properties through WPD

I am using Windows Portable Device API to access some MTP devices. I want to read the vendor extended properties from the device, it should look something like this: "microsoft.com/WPDNA" or "microsoft.com/MTPZ" It seems like this should be a quite…
Olppah
  • 790
  • 1
  • 10
  • 21
0
votes
0 answers

How to connect Android from PC via MTP in command line?

I am trying to implement a program on PC which will retrive pcitures from like 100 Android phones all pluged in. However after running some test, I already found out on Ubuntu it can automatically mount up 40 phones, others can be recognized on the…
0
votes
1 answer

Why am I not getting the WPD_OBJECT_ORIGINAL_FILE_NAME(i.e the filename) of the object on mtp device

I am using WPD (windows portable devices) API in my windows service, to transfer files from a folder on the mtp device to a designated folder on my hard disk. For testing purposes I create xyzdata.txt file under a folder on the mtp device. So, when…
sp497
  • 2,363
  • 7
  • 25
  • 43
0
votes
1 answer

Moto G2 not detected by Ubuntu 14.04 LTS

I want to use my Moto G2 for learning app development. I have turned on the debugger and developer settings. It connected to Windows 7 PC of a friend but not with my Ubuntu 14.04. I tried the MTP thing as well, but no use.I went through many…
0
votes
1 answer

Accessing MTP device from Windows 10 universal app

I have troubles accessing an MTP device (music player) from Windows 10 universal app. I can get the device root folder, but I can only enumerate subfolders, StorageFolder.GetFilesAsync returns empty list. I also cannot find way to find the device…
user1744147
  • 1,099
  • 13
  • 30
0
votes
1 answer

MtpDevice.importFile and DocumentFile

MtpDevice.importFile(int objectHandle, String destPath) fails on 4.4 and above. Is there a way to import from an MtpDevice with the SD card write lock?
Anthony
  • 7,638
  • 3
  • 38
  • 71
0
votes
3 answers

Unable to mount USB_SAMSUNG in Ubuntu 14.04

I really appreciate Ubuntu 14.04 and my Samsung Galaxy S3 mini (8200N). However, I had strange issues when plugging in the phone and Ubuntu wasn't able to mount properly. I want to share my experience with you, as it was a struggle for quite some…