Mtp ���������� mac os

Transfer files Between Mac OS X & Android in MTP USB Mode

Share

Mac OS X doesn’t natively support the MTP Connection mode of Android devices. The newer Android phones however use MTP Connections for USB Data transfer. The reason behind the same is MTP Mode allows disk or storage access to memory without the need to close apps, unlike Data Storage mode which requires force closing of apps. So, As Mac OS X doesn’t natively support MTP, here’s a tutorial which will show you How to Transfer files from Mac OS X to Android in USB MTP mode. Our tutorial uses the Official Android File Transfer App for Mac OS X hence it can be used to Transfer files from Android to your Mac OS X device too.

We will be dividing our tutorial into two Parts –

  1. How to Transfer Files from Mac OS X to Android in USB MTP.
  2. How to Transfer Files from Android to Mac OS X in USB MTP.

Pre-Requistes / Requirements –

Drag & Drop the Android USB Icon to Applications folder to Install

As Mac OS X doesn’t natively support MTP , first of all download the Android File Transfer app from the below link –
Click here to Download Android File Transfer App for Mac OS X.
The above app itself contains necessary Android MTP Drivers for Mac OS X.

  • Now, to Install the Android File Transfer App , double click on the downloaded .dmg file.
  • A window labelled “Android File Transfer” simply drag and drop the Android Icon on to the Applications folder as shown in the image alongside.
  • That’s it you have successfully Installed the required Android MTP USB Drivers.
  • Launch the Android File Transfer App

    Part . 1 – Method to Transfer files from Mac OS X to Android via USB MTP

    • First of all, Download & Install the Android File Transfer App for Mac OS X as mentioned earlier in the article .
      Click here to Download Android File Transfer App for Mac OS X.
    • Now, connect your Android Phone in MTP Mode to your Mac OS device via USB Cable.
    • Launch the Android File Transfer app from the “Applications” folder or from the “Launchpad” as shown in the alongside image.
    • Once you have connected your Phone via USB & launched the Android FileTransfer app it will show up your Phone contents, thus you can browse your Android Phone contents here as shown below –

    Browse your Phone Contents in Android File Transfer App for Mac

    Android File Transfer app doesn’t have the copy, paste , share or the normal import export options. So, here’s how You Can transfer Files from Mac OS to Android –

  • Launch Finder App , and navigate to the directory location of the file which you want to copy to your Android Device.
  • Now, Simply “Drag & Drop the file “ from Finder window to the Android File Transfer app window (on the folder where you want to copy your file on Android) as shown in the image below –

    Transfer File from Mac OS to Android File Transfer (Android Phone)

    Thus, in the above screenshot our File will be copied from Mac Documents folder to Pokkt Video folder on Android.

    Part . 2 – Method to Copy / Share Files from Android to Mac via USB

    • The Basic Method of connecting your Android Phone to Mac via Android File Transfer remains the same.
    • In order to Copy files/documents from Android to Mac all you need to do is –
    • Launch the Finder app.
    • Navigate to the directory in Finder where you want to copy / save file from Android.
    • Now, Simply “Drag & Drop” the files you want to transfer from Android to Mac from the Android File Transfer window to Finder window as shown below –

    Drag & Drop file from Android File Transfer Windows to Finder Window

    Update – If the USB MTP Method doesn’t work for you, you can even transfer files between Android & Mac over WiFi by this linked tutorial.

    Thus, you have now successfully copied & shared files from Android devices to Mac OS & even vice versa using Android File Transfer app. The Major advantage of using Android File Transfer app is that it can easily transfer music files, documents PDFs from Mac to Android and Android to Mac as well.

    Источник

    Media Transfer Protocol

    The Media Transfer Protocol (MTP) can be used to transfer media files to and from many mobile phones (all Windows Phone 7/8/10 devices, most newer Android devices) and media players (e.g. Creative Zen).

    Contents

    Connecting

    To connect your computer to a device via MTP:

    • the device needs to be connected to your computer via USB
    • MTP needs to be enabled on the device
    • the device’s screen needs to be unlocked (for security reasons)

    FUSE filesystems

    The following programs let you access MTP devices via a FUSE filesystem.

    For the FUSE-based file systems, you might need to create the mount-point directory first. The directory

    /mnt is used in the examples below.

    FUSE mounts can generally be unmounted using fusermount -u mountpoint .

    Android File Transfer

    Android File Transfer — MTP client with CLI, Qt UI, and FUSE wrapper which uses a custom MTP implementation

    Mount your device on

    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.

    If you want to interact with it via the command line interface, run the command:

    Type help in order to list all the commands available, exit to quit.

    If you want to interact with it via the graphical user interface, start the android-file-transfer application, choose a destination folder and click any button on the toolbar. Available options are: Upload Album, Upload Directory and Upload Files. The latter two are self-explanatory. Upload album searches the source directory for album covers, and sets the best available cover.

    MTPfs

    MTPfs — based on libmtp, it is a FUSE filesystem that supports reading and writing from any MTP device

    First edit your /etc/fuse.conf and uncomment the following line:

    Mount your device on

    jmtpfs

    jmtpfs — based on libmtp for accessing MTP (Media Transfer Protocol) devices

    Mount device on

    Make this cohere to the rest of Linux (use regular mount/umount commands) by doing two steps

    add this line to /etc/fstab ;

    Now mount the device and see if the options «took»

    SIMPLE-MTPFS

    SIMPLE-MTPFS — based on libmtp Simple Media Transfer Protocol FileSystem is a file system capable of operating on files on MTP devices attached via USB to local machine

    Run simple-mtpfs -l to list detected devices.

    To mount the first device in the list to

    /mnt , run simple-mtpfs —device 1

    go-mtpfs

    go-mtpfs — FUSE filesystem with custom MTP implementation, written in Go

    Install android-udev , which will allow you to edit /etc/udev/rules.d/51-android.rules and apply to your idVendor and idProduct , which you can see after running mtp-detect. To the end of the line, add your user OWNER=» » .

    Mount device on

    libmtp

    libmtp is a library MTP implementation, which also comes with some example command-line tools (which you can list using pacman -Ql libmtp ).

    Run mtp-detect to detect your device.

    If an error is returned, make sure your user is in the uucp user group.

    You can transfer files using the mtp-connect command.

    Frontends

    gMTP — A graphical frontend for libmtp. It lets you connect to Android devices and manage files using a desktop agnostic GUI.

    Media players

    You can also use your MTP device in music players such as Amarok. To achieve this, you might have to edit /etc/udev/rules.d/51-android.rules (the MTP device used in the following example is a Galaxy Nexus). Run:

    Search for your device. It should be something like that:

    And entry to /etc/udev/rules.d/51-android.rules will be this:

    Also reload udev rules:

    File manager integration

    To view the contents of your Android device’s storage via MTP in your file manager, install the corresponding plugin:

    • For file managers that use GVFS (GNOME Files), install gvfs-mtp for MTP or gvfs-gphoto2 for PTP support.
    • For file managers that use KIO (KDE’s Dolphin), MTP support is included in kio-extras (dependency of dolphin).

    After installing the required package, the device should show up in the file manager automatically and be accessible via an URL, for example mtp://[usb:002,013]/ .

    gvfs-mtp

    This article or section is a candidate for merging with udev.

    The gvfs-mtp is available in the official repositories.

    With lsusb you can get information about your device where Bus and Device numbers can be used with gvfs-mtp and device ID for creating of an udev rule.

    To see detected device with enabled MTP

    To mount all available connected MTP devices use inline script

    To mount or dismount from a command with gvfs-mtp use Bus and Device numbers, e.g. to mount gio mount mtp://[usb:001,007]/ and to unmount gio mount -u mtp://[usb:001,007]/ . The mounted device will be available in a directory that begins with mtp:host= and is located under /run/user/$UID/gvfs/.

    Disable automount of MTP devices with gvfs you will need to change value true to false for variable AutoMount that is located in /usr/share/gvfs/mounts/mtp.mount .

    If your device is not showing up in the file manager then #libmtp is missing a native support and is not currently available in the list of the supported devices. If you will try to mount by using command line you may also get an error

    The workaround to make it shown in the file manager is to write an udev rule for the device but it is no guaranty that you will be able to mount it with by using MTP connection.

    Use ID number that represents by pattern vendorId:productID,e.g. 04b7:88a9, and make an udev rule by creating a configuration file

    Reload the udev rules.

    The file managers with support for gvfs will be able to show MTP devices and mount them if supported by #libmtp but if has no support and cannot be opened then change settings in the phone to PTP and install gvfs-gphoto2 for having access at least to the photos, command line mounting of PTP is a little similar to mounting of the MTP devices: gio mount gphoto2://[usb:002,019]/ .

    Troubleshooting

    libmtp (gvfs-mtp): filemanager (nautilus, pcmanfm, vifm and etc) hangs on accessing DCIM/Camera of Android device

    Symptoms: everything works fine till moment of entering DCIM/Camera directory. In this case filemanager freezes and even in command line you cannot run even ls on that directory.

    Possible and very probable reason is the bug of libmtp.

    It seems that it is caused by file with name like 20180915_180351(0).jpg . Samsung phones for example like to create files with such names.

    There are several tickets (one, two and etc) and questions (one, two) about it.

    So possible workaround is to use different mtp option from #FUSE filesystems like go-mtpfs for such directories or somehow change file naming policy of your phone camera (or switch to another camera app like Open Camera for example).

    jmtpfs: Input/output error upon first access

    Symptoms: jmtpfs successfully mounts, but as soon as one attempts to access files on the device (e.g. via ls ), an error is reported:

    This appears to be a security feature: MTP does not work when the phone is locked by the lockscreen. Unlock the phone and it should work again as long as the cord remains connected.

    kio-mtp: cannot use «Open with File Manager» action

    If you are not able to use the action «Open with File Manager», you may work around this problem by editing the file /usr/share/solid/actions/solid_mtp.desktop .

    Change the line Exec=kioclient exec mtp:udi=%i/ to Exec=dolphin «mtp:/» .

    kio-mtp being called simultaneously by different services

    Parallel usage of mtpfs and kio-mtp, as well as conflicting services using kio-mtp -music players included- should be avoided, as mentioned in this forum.

    Amarok’s plugin for MTP services, for example, might be preventing Dolphin (plasma) to access different phone model’s files. Switching it off was a solution for at least one user.

    Android File Transfer: connect failed: no MTP device found

    After installing android-file-transfer , while trying to mount any MTP device if you get the following error:

    then install the package: android-udev . This package contains per manufacturer/device udev rules for MTP devices, making it easier to use ADB or MTP.

    Источник

    Как работать с Android в MacOS (поддержка MTP)

    Казалось бы — используешь MacOS — используй iPhone… Да только то ли не «дорос», то ли мне нафиг не впился iPhone.

    Казалось бы — используешь MacOS — используй iPhone… Да только то ли не «дорос», то ли мне нафиг не впился iPhone.

    Как и многое в мире IT, инфраструктура Apple огорожена забором от всего остального мира. Забор странной формы, присутствуют дырки, сквозь которые всё равно можно делать всё, что заблагорассудится.

    В частности, когда я впервые подключил своего китайского друга к MacBook, я с удивлением обнаружил, что зарядка таки идёт. А ведь могли по vendor id и не заряжать… Но лазить Finder’ом по андройдному китайцу мне не позволили.

    Сегодня я таки решил разобраться с этим упущением. Для начала — вариант, который сработал, после — моя глупая попытка «сделать красиво».

    Оказалось, если нужно приложение для Android — иди на сайт Android!

    Я просто пошёл на сайт android.com и нашёл Android File Transfer. Я уже несколько отвык от скачивания программ из интернета — сначала поискал в AppStore:

    Моя глупая попытка найти приложение для работы с Android на AppStore

    Возможно, что-то из этого, например, HandShaker — то, что мне нужно. Но я был уже достаточно разочарован предыдущей попыткой. Поэтому — вернёмся к скачиванию dmg с сайта.

    Ставим приложение для доступа к Android в MacOS

    «Потяни за верёвочку — дверь и откроется» — так я и поставил потенциально вредоносное ПО с NoName сайта android.com.

    Навигатор по файлам телефона на Android из MacOS

    Внезапно, всё завелось с «полпинка» — вот уже передо мной директория Music на MTP устройстве! Давайте перетащим сюда из Finder папку с музыкой, которую мне хотелось послушать:

    Копируем файлы из MacOS на Android телефон

    И о чудо! Всё поднялось, заколосилось и байты поняслись на «богомерзкий» Android. Не так уж и сложно.

    Так зачем не включать поддержку MTP в стандартную поставку? Ей богу! Я думал, что в этот раз мне придётся делать весёленькую статью, где через fuse я бы подключал драйвер для работы с Android и всё это бы ставилось через ./configure && make && make install… И у меня эти опасения возникли не просто так!

    Само собой, я сначала погуглил — а как это делают «нормальные поцаны». Одним из самых вменяемых вариантов был Commander One. «О!» — подумал я: «Total Commander под MacOS!».

    И сразу же реклама pro версии… Ну ок.

    Commander One — этакий Total Commander под MacOS за пару тысяч рублей

    И тут я заподозрил неладное — «подключение устройств» значится в прошной версии. Ну, попытка не пытка…

    MTP устройство подключено через Commander One

    Так, кажется, всё же можно воспользоваться благами этой программы!

    Интерфейс двухпанельного менеджера Commander ONE

    И он даже открыл мне содержимое моего бедного телефона… Но что бы я ни пытался сделать — выскакивает окно покупки pro версии.

    При чём, так не только для MTP-устройства, так даже с созданием папки в домашнем каталоге. Этой «демкой» даже пользоваться нельзя! Хотя это даже не demo, а Free версия. Ну да ладно, не стал тратить время и деньги на этот софт — всё же решение нашёл. Но ощущение, что что-то не так в AppStore осталось…

    Источник

    Читайте также:  Chown all users linux
  • Оцените статью