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
4
votes
3 answers

Controlling Nikon camera with MTP

I was wondering how i would be able to get started with controlling my nikon DSLR camera? I have been reading on the Nikon SDK and MPT/PTP and is really confused on how to start with writing a script to control it. Thanks for helping me.
Sinjon
  • 41
  • 1
  • 5
4
votes
0 answers

How to use pymtp

I have been trying to get my GalaxyS3 to play nice with Ubuntu12.04 to no avail. I've tried a bunch of different apps that dont work and now I'm trying to make one that does. Now I am told that Samsung did some 'bad magic' with it's new devices and…
Sheena
  • 15,590
  • 14
  • 75
  • 113
3
votes
0 answers

WindowsPortableDevice IPortableDeviceContent::Delete Causes My Device to hang. How can I solve this?

I have been trying to build a file explorer of my Android phone content that would be optimized to my needs. As FindFirstFile api could not work for MTP devices I had to learn Windows Portable Device Api. I met alot of obstacles but got most things…
user13947194
  • 337
  • 5
  • 7
3
votes
2 answers

Enable MTP using ADB

How do I enable MTP mode on an Android phone, solely using ADB on the command line? The screen cannot be used and I need to access files. I have USB debugging enabled, though. adb shell svc usb setFunction mtp does not work.
Shlok Jhawar
  • 277
  • 2
  • 3
  • 19
3
votes
0 answers

Error Connecting Centos 7 to Android phone with jmtpfs

I have a Samsung Galaxy S4 running Android version 5.0.1 (which is the last version supplied for that phone, apparently). When I run jmtpfs -l I get the following (this is CentOS 7): Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models…
3
votes
4 answers

Mtp not detecting Android in Ubuntu 16.04

Ubuntu is not showing my android device. I tried to install libmtp* mtp* and also reinstalled it And also try to put device information in udev.rules' relevant file
MEHUL09
  • 49
  • 1
  • 1
  • 4
3
votes
1 answer

Does Android keep logs of MTP connections it made?

Does Android keep logs of MTP connections it made? What info (if any) does it log of the device it wss logged to (say, computer host name, MAC address, etc) and how can I access this log?
oyed
  • 739
  • 2
  • 7
  • 18
3
votes
0 answers

Access iphone photos and videos from cygwin or powershell

I would like to write a cygwin application that interacts with an iPhone that is connected to a windows 10 computer via the usb port. The iphone shows up in windows as a device, not as a drive. I have tried to compile and run the libmtp cygwin…
user1279887
  • 489
  • 4
  • 20
3
votes
3 answers

Cannot copying file from Android to Linuxmint 17.3 Desktop "libmtp error: Could not get file from device"

I am trying to copy image file to backup it on my desktop which is linux mint (17.3 or Rosa) installed. I am using Infinix X510 phone with the newest version of android 6. At the beginning it was OK. But, at the end i get the message “libmtp…
3
votes
1 answer

Connecting Centos 7 to Android phone

I'm trying to connect a Centos 7 operating system to a Moto3G Android phone (running Android v6 - marshmallow) libmtp is installed Package libmtp-1.1.6-5.el7.x86_64 already installed and latest version Nothing to do Most of the searches on the…
jayuu
  • 443
  • 1
  • 4
  • 17
3
votes
2 answers

File manager detects Android device but gvfs folder is empty. How can I access the MTP device from terminal?

Directories /run/user/1000/gvfs and ~/.gvfs are emtpy and non-existing, respectively. My graphical file manager (Thunar) is able to detect and access the internal and external memory of the device. Command gvfs-mount -l yields: Volume(0): SAMSUNG…
Gavriil Pascalau
  • 151
  • 1
  • 12
3
votes
1 answer

Linux machine not recognizing android device

I'm using a Linux Mint 18.1 Serena machine and have recently done some upgrades (including the Kernel to 4.4.0-62) and since my computer does not recongnize my Samsung j5 2016 phone. I have tried to downgrade the kernel (and delete the newest…
gerceval
  • 31
  • 3
3
votes
1 answer

UWP Windows.Devices.Portable cannot be referenced

In my UWP app I'm trying to get an access to Portable Devices (MTP,PTP) storage. In the following question the OP used the namespace Windows.Devices.Portable without problems. Here. But in my case: Windows.Devices contains no Portable class
Kinani
  • 484
  • 1
  • 4
  • 19
3
votes
2 answers

Mount Physical device to Notebook

I need to mount by phone (Huawei Honor 6) to the notebook. This is the python code, what I wrote : (python phonedirectory.py) import os os.getcwd() os.chdir("/media/") os.system("killall gvfs-gphoto2-volume-monitor") os.system("killall…
Karthik
  • 315
  • 1
  • 4
  • 16
3
votes
1 answer

How to get the list of all the files(objects) in a folder exposed by an MTP device using Windows Portable Devices C++ API?

It is possible to enumerate all the files in an MTP device's file system and then get object id's for each file/folder in the system. My questions are: Is there a method to find if an object is a file or a folder? Once the folder is found how to…
sp497
  • 2,363
  • 7
  • 25
  • 43
1 2
3
12 13