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
7
votes
1 answer

Mounting a Samsung Galaxy Tab 2 7.0 with MTP on Linux

I'm trying to get a Samsung Galaxy Tab2 7.0" connected to a Debian Wheezy box over MTP. The askubuntu page at https://askubuntu.com/questions/186681/getting-mtp-to-work-with-a-galaxy-tab-2-7-0 details precisely my problem, but none of the suggested…
Frotz
  • 535
  • 4
  • 21
6
votes
1 answer

Access last modification date in powershell MTP connection

I just tried to automate a file transfer from my mobile phone (iPhone) to my hard disk. It works via MTP and Powershell (seems the only working approach according to other Stackoverflow posts). In general it works nice. I use $shell = new-object…
Matthias Muth
  • 71
  • 1
  • 1
  • 4
6
votes
2 answers

Android: How to detect a change in MediaStore when connected over MTP

I have big problems with MediaStore. I need to handle events when MediaStore is changed over MTP. I already have a receiver for android.intent.action.MEDIA_SCANNER_FINISHED action, but it is useful only for Universal Mass Storage(UMS). The scanner…
Bhiefer
  • 1,613
  • 4
  • 16
  • 31
5
votes
0 answers

Android FileObserver not working when copying files with MTP on Marshmallow

I have a FileObserver observing ALL_EVENTS (for test purpose) on a folder in the external storage. The FileObserver will trigger for any events originating from the tablet. For example, if my application or another application on the tablet creates…
JM Lord
  • 1,031
  • 1
  • 13
  • 29
5
votes
0 answers

iOS application using USB MSC or MTP(Mass Storage or Media Transfer Protocol)

currently I'm considering the iOS application like below, Application: Using the lightning USB3 camera adapter, by MSC(Mass Storage Class) or MTP(Media Transfer Protocol), browse and copy files from devices which have USB connector to…
M.Masa
  • 532
  • 4
  • 20
5
votes
1 answer

What is the File path to specify to transfer a file from Android to Windows PC?

I am going to create an c# windows application for transfering image file from an android phone to my Wondows PC - when I connect phone with my PC(using data cable). When I given the path "Computer/Nuxes5/..." in C# for accessing files from mobile,…
Sajith A.K.
  • 716
  • 9
  • 21
5
votes
1 answer

Desktop java app copy and transfer android data via USB

I have a desktop java app, and also an android app. Two app work together. The user in desktop app have a button to launch the transfer between device data app to computer app and vice versa. So I need to transfer data with a simple USB cable, and…
Slasch
  • 275
  • 1
  • 6
  • 20
4
votes
2 answers

Flush MTP connection with Android tablet?

I connect a Samsung Galaxy Android tablet with a USB cable to computer running Windows 7. It connects using MTP. Step 1. Copy my SQLite database from Windows 7 to tablet via Windows Explorer. Step 2. Open it on the tablet (which adds the…
mhenry1384
  • 7,538
  • 5
  • 55
  • 74
4
votes
1 answer

Show USB permission dialog over Android Kiosk application?

So I have an application that is pinned to the device with startLockTask command and it has several restrictions so the user cannot escape from the application or change settings of the device. However, the user should be able to transfer files…
4
votes
1 answer

Android Galaxy S3 stopped mounting mtp to debian testing

So it used to just work. Plug in the phone and folder pops open showing files. Then one day it didn't. That was about two months ago. Most likely this is due to some update to debian. I have reached a dead end trying to figure this out and need…
Bert
  • 49
  • 2
4
votes
1 answer

What happened to USB MTP gadget driver in mainline Linux kernel?

I'm trying to make a embedded device work as a MTP device, using USB gadget driver. I know have Android switched from mass storage gadget to MTP gadget for quite a while, and found the source code for MTP gadget driver in a few Android…
user3528438
  • 2,737
  • 2
  • 23
  • 42
4
votes
0 answers

How to access MTP device (e.g. GoPro) through python on windows

I'm trying to access a GoPro camera storage via the MTP interface on Windows using Python. I found two options that both do no work: pymtp: it needs a mtp dll library that I cannot find, so it fails here: _module_path =…
Roalt
  • 8,330
  • 7
  • 41
  • 53
4
votes
1 answer

How to detect MTP device and start copying files?

I have a VB app which currently detects when external drives are added (which get drive letters), and begins copying certain files from them. Pretty handy, to just plug in a camera (say) and my app extracts the files it needs (optionally deleting…
Dave
  • 401
  • 2
  • 5
  • 13
4
votes
1 answer

Copy files with WPD to Windows Phone C#

I want to copy at least one file to a windows phone via MTP. I am able to connect to the phone and copy files from the phone to the computer following this tutorial: WPD: Transferring Content However I am unable to copy files the other way round…
j0h4nn3s
  • 2,016
  • 2
  • 20
  • 35
4
votes
1 answer

Storage Access Framework does not update MediaScanner (MTP)

Using the SAF provided in KitKat, the MediaScanner is not called on files saved to the internal or external storage points of a device. As such I have to determine based on the returned URI if I should attempt to run MediaScanner. // The SAF uses…
ian.shaun.thomas
  • 3,468
  • 25
  • 40
1
2
3
12 13