Data exchange via USB

When plugged to USB older devices act as expected and pop up as memory devices. Under Windows they get a drive letter.

Since Android seems to be really attracted to Microsoft, newer devices do not support anymore this expected behavior. Reasons for that might be data security. Those devices support instead of the commonly used memory device behavior MTP. MTP is the Microsoft media transfer protocol (alternatively the Picture Transfer Protocol PTP can be selected). Under Windows those devices pop up as multimedia device where no drive letter is assigned. This has a side effect, most application can not save a file to the device. So two steps are required store the file somewhere and then use the file manager to move it to the device.

mtp under linux

Under Linux the library libmtp needs to be installed libmtp. libtmp comes with simple commands as mtp-detect that should work before going ahead. Linux is able using libmtp to communicate to such devices without mounting them and using the mtp protocol. gmtp is a graphical front end for it.

On the android device it should made sure that USB gets the permission to exchange file (not just charge or exchange photos)

Modern featured Linux desktop environments have file managers that allow to exchange data with mtp devices (but this is not via a mounted file system).

For gentoo there is the mtp useflag that puts mtp functionalities to programs

Note

When having directories with more than thousands files them mtp seems to block. Using ftp might then be the way to go


Linurs startpage