Debian android file transfer

Desktop support

GNOME

GNOME applications (like GNOME_Files and Archive_Manager) use GIO-based GVFS (the GNOME virtual file system) to mount MTP volumes and access files on MTP devices:

  • launch on attaching your device (e.g., with USB cable)
  • interact with an attached device (e.g., by double-clicking the device’s icon in the device list).

KDE Plasma

KDE uses the MTP KIO Slave with a similar level of integration as GVfs. This requires the kio-extras package to be installed. When a phone is connected and set to transfer files with MTP, KDE will open the Device Notifier and show an entry for it. From here, you can take actions such as opening it as a folder in Dolphin, or viewing the photos on your device through Gwenview.

Others

A desktop-agnostic tool that allows you to simply mount and manage files on MTP-connected devices is gMTP, which can be obtained by installing the gmtp package.

libmtp

libmtp provides support for MTP devices. Its device support changes with each version of its code, thus you may need a particular version of libmtp (or greater) to support your particular device: e.g., the MotoG phone is not supported directly before libmtp version == 1.1.8 per its maintainers.

Commandline

Several tools provide a FUSE based file system for mounting MTP devices within the Unix filesystem hierarchy, making it accessible to any program that operates on files and directories. Examples include mtpfs, jMTPFS, go-mtpfs and simple-mtpfs, etc.

install package name= mtp-tools

TODO: document usage, but see below.

Uses FUSE to mount your device’s MTP structure into a POSIX filesystem, and fusermount to unmount the device.

    install package name= jmtpfs

    create as your mount point: $ mkdir -p

    make sure you have write access to : $ sudo chown $USER:$USER

    to mount your device: $ jmtpfs

    On some MTP devices: your screen must be unlocked in order to mount. However, you might get a (spurious) input/output error even if the screen is unlocked.

to unmount your device: $ fusermount -u

mtpfs has been orphaned since Squeeze, anyway mtpfs is very similar to jmtpfs, except for the executable name, package name, and package status

    install package name= mtpfs

    to mount your device: $ mtpfs

    to unmount your device: $ fusermount -u

testing and debugging device connection

Connect your target device (e.g., Android phone) to your Debian host (e.g., laptop) via USB cable, and unlock the target device. Relatively quickly, you should see the following:

Your Debian host’s desktop should open a file browser (e.g., a nautilus window) showing the browsable contents of a location. If the location is mounted in your filespace, you should not need to read further from this article. Alternatively, the location will be shown with a URI beginning with mtp://, which will not be mounted, but can be manipulated via the usual means provided by your file browser (including copying and deleting files). If you wish to actually mount that location (i.e., your target device), read on.

  • The target device may also show some GUI, such as choosing the connection mode. If so, choose mode=MTP.
  • If neither of those occur, you should

      Check your connection, e.g., the USB cable. If fixing that does not make your target device browseable as described above, then .

    Check which version of libmtp and associated packages you have installed on your Debian host: see following section=device statuses. Install them if not already done. You will minimally need to have the executable mtp-detect in your path.

    Run mtp-detect from your host with your target device attached.

    If you see results like

    . stop and seek help elsewhere. If you see results like

    . your target device is not currently supported. As noted in the result, you should report it to the libmtp maintainers by making a feature request like this one.

    If you see results like

    then you should be able to mount the target device onto your host’s filespace as discussed in the following example.

    Example: laptop, MotoG, USB, libmtp, jmtpfs

    device statuses

    I have a (working) 1st-generation Motorola MotoG running Android version=4.4.4 that I wish to mount on a Debian laptop. Latter has

    Note that libmtp version >= 1.1.8 supports the MotoG per its maintainers. After fiddling with APT and my repositories, I have

    setup/check Debian host

    With no MTP devices connected to the laptop, I see (from the laptop)

    successful jmtpfs mount

    I then unlocked the MotoG’s screen and connected it to the laptop with a USB cable.

    Immediately upon connecting, a nautilus window opened on the laptop showing the browsable contents of location= mtp://[usb:001,040]/ with device name= XT1028. I can also see (from the laptop)

    I can then mount the MotoG’s storage with

    . and unmount the MotoG’s storage with

    failed jmtpfs mount

    I initially tried to mount the MotoG using sudo. Don’t do that! You’ll get results like

    Remember: MTP filesystems are implemented as FUSE, which means Filesystem in your Userspace.

    copy files off your smarphone with mtp-getfile

    First install the mtp-tools package:

    Then get the list of available files:

    file_list.txt will now contain entries like this:

    where «Parent ID» is something like the folder where the file resides on the smartphone. So you’ll want to do something like this to get that particular file:

    Yes, the mkdir «12» and the 12 from the Parent ID in the local file is important.

    Источник

    Блог начинающего линуксоида.

    советы, руководства, инструкции.

    Страницы

    понедельник, 2 ноября 2015 г.

    Android File Transfer for Linux — утилита для работы с файлами Android-устройств

    Android File Transfer for Linux — свободная и стабильная реализация протокола MTP, который используется для многих современных мобильных устройств. Может закачивать файлы любых размеров, не тормозит и не виснет. В отличии от других реализаций MTP в Linux, AFTL работает значительно быстрее и стабильнее.
    Поддерживается работа как в терминале, так и через встроенный графический интерфейс на Qt 5. Также утилита может работать с Windows Phone, и является наверное единственным способом заставить нормально работать, например, Nokia Lumia в Linux. Далеко не все устройства на Android могут работать в режиме накопителя. Большинство используют протокол MTP для синхронизации данных. И если в Windows с этим нет проблем (оно и понятно, протокол-то Майкрософтовский), то в Linux и OS X, нужны сторонние реализации.

    Данная утилита является аналогичной таковой в Mac OS X (кстати, в последних версиях AFTL, добавлена поддержка Mac OS X). Имеется два варианта утилиты — графическая (на Qt5) и консольная. Установка в Ubuntu/Linux Mint:

    sudo add-apt-repository ppa:samoilov-lex/aftl-stable
    sudo apt-get update
    sudo apt install android-file-transfer

    Для установки консольной утилиты выполните:

    sudo apt install aft-mtp-cli

    Пакет с последней стабильной версией для Debian 8/SteamOS2/LMDE 2 вы можете установить из моего репозитория.

    На сайте программы есть инструкция по сборке под любые дистрибутивы Linux, а также под Mac OS X.

    Источник

    Debian android file transfer

    Android File Transfer For Linux (FreeBSD and Mac OS X!)

    Android File Transfer for Linux — reliable MTP client with minimalistic UI similar to Android File Transfer for Mac.

    If you’re happy with gmtp / gvfs / mtpfs or any other mtp software, you might not need this software (but give it a try!).

    If you’re suffering from crashes, missing tags, album covers, usb freezes and corrupted files, this software is right for you.

    If your distribution does not provide android-file-transfer-linux package, you can still install it in your system. There’s quite a few packages available:

    If you want to help me with development, click on the link below and follow the instructions. I’m developing AFTL in my spare time and try to fix everything as fast as possible, sometimes adding features in realtime (more than 100 tickes closed by now). Any amount would help relieving pain of using MTP. 😀

    • Simple Qt UI with progress dialogs.
    • FUSE wrapper (If you’d prefer mounting your device), supporting partial read/writes, allowing instant access to your files.
    • No file size limits.
    • Automatically renames album cover to make it visible from media player.
    • Supports Zune/Zune HD.
    • USB ‘Zerocopy’ support found in recent Linux kernel (no user/kernel data copying)
    • No extra dependencies (e.g. libptp / libmtp ).
    • Available as static/shared library.
    • Command line tool (aft-mtp-cli)
    • Python bindings

    Please take a look at FAQ if you have issues with your operating system. It’s not that big, but those are the questions asked very often.

    AFT for Linux is now included in Gentoo, you don’t have to build anything, just run

    If you need fuse mount helper to mount MTP filesystem, you have to enable fuse use flag, e.g. adding the following in /etc/portage/package.use (which can either be a directory or a file)

    You can use sys-fs/android-file-transfer-linux-9999 ebuild if you want the latest git-version by adding the following entry into /etc/portage/package.accept_keywords (which can either be a directory or a file)

    You will need Qt libraries for building ui program. If you’re planning to use only library (Qt is not needed), you could turn the option BUILD_QT_UI off.

    For ubuntu and other debian-based distros use the following command:

    Basically, you need libqtX-dev for UI, libfuse-dev for FUSE interface, cmake , ninja or make for building the project. You could use libqt5-dev as well.

    Building with ninja

    Building with make

    Installing binary package on OS X / macOS

    There is a binary package that can be installed via Homebrew:

    • First install brew if you don’t have it already installed.
    • Then the stable package may be installed via:
    • Nighlty build may be installed via;
    • Please note: they are in conflict, so please make sure to uninstall it when you want switch between stable and nightly.

    Building app package on OS X / macOS

    You’ll need Qt installed to build the GUI app. Here are the build instructions with qt5 from homebrew ( brew install qt5 ):

    sudo ninja install or sudo make install will install program into cmake prefix/bin directory (usually /usr/local/bin)

    Remember, if you want album art to be displayed, it must be named ‘albumart.xxx’ and placed first in the destination folder. Then copy other files. Also, note that fuse could be 7-8 times slower than ui/cli file transfer.

    Qt user interface

    Start application, choose destination folder and click any button on toolbar.

    The options available there are: Upload Album , Upload Directory and Upload Files . The latter two are self-explanatory. Upload album tries searching source directory for album cover and sets best available cover.

    You could drop any files or folders right into application window, the transfer will start automatically.

    • Samsung removed android extensions from MTP, so fuse will be available readonly, sorry. Feel free to post your complaints to http://developer.samsung.com/forum/en
    • Sometimes downloading fails with usb timeout, then phone becomes unresponsive. Android bug #75259
    • Objects created in UI will not show up in FUSE filesystem. Android bug #169547

    Up to date list of all known problems and bugs available here

    Please do not hesitate to contact me if you have any further questions, my email address is vladimir.menshakov@gmail.com.

    • All who filed bugs on github and wrote emails, many features appeared only because of your feedback. Thanks!
    • Alexey gazay Gaziev for useful suggestions, support and invaluable help with MacBook and MacOSX port.
    • @ssnjrthegr8 for the new logo!

    Android File Transfer for Linux is released under GNU LGPLv2.1 License.

    Источник

    Передача файлов между Android Ubuntu / Linux Mint / Debian / Fedora

    Для Linux доступно несколько приложений для передачи файлов в Android. Android File Transfer — это утилита MTP для передачи данных между Android и Linux. Это клон Android File Transfer, который доступен для Mac OS. Он очень прост. Имеет очень минималистичный простой в использовании пользовательский интерфейс, эта программа написана в Qt. Если у вас возникли трудности с подключением устройства Android, установите это приложение, и вы не пожалеете об этом «Всё работает просто».

    Он позволяет загружать файлы / каталоги, создавать новые каталоги и удалять что-либо с вашего устройства Android. Он поддерживает перетаскивание, вы можете просмотреть ход передачи файлов. Также доступен инструмент CLI, если вы более опытный пользователь.

    Особенности:

    • Простой пользовательский интерфейс Qt с диалогами прогресса.
    • FUSE, поддерживает частичное чтение / запись, позволяет мгновенный доступ к вашим файлам.
    • Нет ограничений размера файла.
    • Автоматически переименовывает обложку альбома, чтобы сделать ее видимой с медиа плеера.
    • Поддержка USB ‘Zerocopy’, найденная в последнем ядре Linux (без копирования данных пользователя / ядра)
    • Никаких дополнительных зависимостей (например, libptp / libmtp).
    • Доступно как статическая / разделяемая библиотека.
    • Инструмент командной строки (aft-mtp-cli)

    Android File Transfer доступен для Ubuntu 17.10 Artful / 17.04 Zesty / 16.04 Xenial / Linux Mint 18/17 / и других производных Ubuntu. А также для Debian и Fedora.

    Установка Android File Transfer в Ubuntu / Linux Mint

    Установите Android File Transfer в Ubuntu / Linux Mint посредством терминала (нажмите Ctrl+Alt+T) и скопируйте следующие команды в терминал:

    Доступно для Debian и других производных дистрибутивов Debian

    Установка Android File Transfer в Debian

    Установите Android File Transfer в Debian и его производные. Откройте терминал и скопируйте в терминал следующие команды:

    Чтобы запустить эту программу скомандуйте:

    Android File Transfer доступен для Fedora

    Установите Android File Transfer в Fedora открыв терминал и вставив туда следующие команды:

    Источник

    Читайте также:  Armorfly browser для андроид
    Оцените статью