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

Java access to lib

I'm trying to develop a java app based in the lib jusbpmp. it's a java mtp lib to connect to android device over usb. I have added jusbpmp-0.1.5.jar file in my project. It appears in the Libraries folder on my Java project under Netbean. I have…
Seb
  • 2,929
  • 4
  • 30
  • 73
0
votes
1 answer

Can't access stored files in public folder in Android (MTP)

I want to save a simple .txt file in Android and later I want to copy this file from the device to a PC where the device is mounted as a MTP-Device. I own two Android Devices: Nexus 4, Stock Android 5.0.1 Nexus 7 2012, CyanogenMod 12, Android…
0
votes
0 answers

Control files provided by MTP in Android device

I wonder if it is possible to write an app to control the file access when the device is connected via USB (in Devices which support MTP). I think it would be very useful when you are about to connect your phone to a foreign computer and could…
KCD
  • 678
  • 5
  • 20
0
votes
0 answers

WPD MTP stream hangs on commit

I am using the following code to copy a file wrapped by a FileInfo object to an MTP device using the Windows Portable Device API: public static void CopyFileToDevice(PortableDeviceFolder parent, string name, FileInfo file) { …
NinjaTuna
  • 41
  • 5
0
votes
1 answer

How to handle progressbar in QT/C++ when update value is used as a callback

I'm writing an app to tranfer files between an Android device and Mac. Tha File transfer is working but in terms of user experience I would like to add a progressbar to be able to see when the transfer is ended. AS I'm transfering to an android…
Seb
  • 2,929
  • 4
  • 30
  • 73
0
votes
1 answer

unallocation and copy failed even if allocation works

I'm currently working on a mac application to the transfer file from mac to mtp device such as usb. I use the code below to add it: LIBMTP_file_t *genfile; char *AbsolutePath = NULL; char *FileNameOnly = NULL; QFileInfo…
Seb
  • 2,929
  • 4
  • 30
  • 73
0
votes
1 answer

WPD Service api implimentation (Status Service) to get free space on WPD device

I want to get the free space on the WPD device. I am trying to implement the WPDServiceApi. I am currently implementing the status service of WPD services. i picked up the the code samples from Windows7DEK. There are lots of type mismatches coming…
Ahsan
  • 87
  • 1
  • 10
0
votes
1 answer

libmtp do not build with the HAVE_USB1 flag on MacOSX

I'm currently trying to build the libmtp version 1.1.8 using the lib usb-1 (1.0.19) and usb-compat(0.1.5) on mac OS X to generate a dynamic lib. I'm not sure if libmtp really support USB1 lib mainly because I have an issue in building libusb-glue.c.…
Seb
  • 2,929
  • 4
  • 30
  • 73
0
votes
0 answers

Access Background image in phones via USB connection

I'm developing a PC c++ application running on windows. The application shall communicate with a phone connected thru USB, using MTP. I want to specifically access the background image in phone. Is there a way to do so? Is there a specific way to…
0
votes
1 answer

How can i copy data from pc to phone storage and ensure my app detects the change correctly?

is it possible for my app to do one or more of the following: read, write and detect data changes to phone storage while the phone is connected to the pc? Note: The app is used on Android 4.1 and up
belliv
  • 11
  • 1
  • 2
0
votes
3 answers

There is an easy way to connect Moto X on Ubuntu 13.10?

I bought a Moto X recently, and i'm trying to access his files on linux using mtp, I've found some ways, but all have many steps and don't work. There is not an easy way to connect Moto X on linux? EDIT I'm using ubuntu 13.10, and i don't have…
rneves
  • 2,013
  • 26
  • 35
0
votes
1 answer

Android copying sqlite database via MTP mode

I have strange problem. It is on LG E440 (bought yesterday). We have warehouse inventory app for android. Data is stored in SQLite database. After copying database file from phone to computer sometime i get error when reading sqlite database:…
Guntis
  • 496
  • 1
  • 5
  • 19
0
votes
1 answer

Cannot link libmtp in a firebreath project on OSx

I have a functioning plugin I've written using the firebreath framework. I need to add MTP read write support to it. After some research I landed on the libmtp (http://libmtp.sourceforge.net/). I downloaded the source built it and was able to run…
Joel
  • 1,309
  • 2
  • 10
  • 20
0
votes
1 answer

How to rename an object on a WPD device

I am making a fork of PortableDeviceLib which works with Storage service on a WPD/MTP device. And stumbled upon a problem. I want to rename a file object on a device, so the first thought is to change WPD_OBJECT_ORIGINAL_FILE_NAME property of an…
naixx
  • 1,176
  • 11
  • 17
0
votes
1 answer

Via MTP on WinXP - Digitalcamera instead of Portable Device

I'm using Meego's MTP code (Buteo MTP = daemon + functionfs) on a TI814X evaluation board. When connecting to Win7 it's detected as Protable Device and I'm offered to open the explorer. But on WinXP it's detected as Digital Camera and thus I get…
Charly
  • 1,270
  • 19
  • 42
1 2 3
12
13