mtpfs: transfer protocol between Linux box and Android Linux 05.06.2016

The Media Transfer Protocol (MTP) is an extension to the Picture Transfer Protocol (PTP) communications protocol that allows media files to be transferred atomically to and from portable devices.

To get started, you need to install the libmtp library. This is the only and the most important Linux library to connect devices that support MTP. Open a terminal and type the following command to install the package:

# archlinux
sudo pacman -S libmtp gvfs-mtp

# ubuntu
sudo apt-get -y install mtp-tools mtpfs gmtp

You can detect your device with command mtp-detect.

After you've installed both packages, connect the Android device to your PC/laptop by USB cable and make sure that it says something like "Connected as a media device."