USB file transfer support for Mac OS X
As a Jolla user, how I can transfer media files and associated meta data between my Mac and Jolla phone?
We have moved to a new Sailfish OS Forum. Please start new discussions there.
As a Jolla user, how I can transfer media files and associated meta data between my Mac and Jolla phone?
Dukto is an easy to install and easy to use multi-platform file transfer tool for all devices in your (W)LAN.
It is Free Software (licensed under GPLv2) and its source code is hosted at SourceForge.
Dukto currently supports these platforms:
So if one does not insist to use an USB cable (though Dukto should work via USB networking, too), the Android version of Dukto is working well under SailfishOS with AlienDalvik. Unfortunately a SailfishOS native version has not been created yet.
In developer tools, add remote connection add password and write down password. Use Cyberduck connect phone via USB in developer mode. Go to network USB connection, here Xperia and copy IP address into SFTP (SSH File Transfer Protocol) Server IP field, Username Nemo. Also enter USB in USB IP address in Developer Tools on Jolla Phone. Connect. It may ask you to authenticate again, so type in password for remote connection again. If it doesn't work unplug USB plug in again.
<sftp: nemo@192.168.2.1=""></sftp:>
I found the explanations given here prior to complicated.
File transfer between Sailfish OS and OSX is possible using Android File Transfer software at least since Aurajoki upgrade. Official webpage: Android File Transfer download
This solution works very well and I don't think we can expect Jolla to develop its own macOS sync-software.
@caprico: The mtp service at jolla side waits until it has enumerated all files in all storage areas before sending replies to OpenSession command -> pc side sw that expects speedy reply to it could get confused -> might explain why your (3) makes a difference (the mtp service gets restarted, but gets the enumeration finished faster due to "warmed up" file system caches). Maybe the biggest change in 2.0.2 is fixing of issues related to creating thumbnail icons that could make the initial delay last minutes rather than seconds on devices with lots of pictures.
spiiroin ( 2016-09-22 11:47:25 +0200 )editSeems apss and the android transfer app get confused by the extra obex communication device (which is not used atm anyway) You can avoid the communication device coming up by using developer mode and editing /etc/usb-moded/dyn-modes/pc_suite-android.ini
And remove the obex on the sysfs_value = ffs,obex line, so it reads afterwards sysfs_value = ffs
After this you will either restarts usb-moded (systemctl restart usb-moded ) or reboot the phone.
This will be also fixed in the upcoming release. (2.0.x)
Not having received my tablet yet I cannot try it, but on my android Fairphone I installed an app named "Samba Filesharing", that'll create a samba server on your LAN, then from the mac you can log in and just see the phone structure as an ordinary server. Efficient for transfering files, pictures etc.
The Samba server app is very straitghtforward, practically being two clicks away (activate app, select 'start server'). Alas it is not on F-droid, so you have to install it via the google market, but IIRC it's free.
I've just noticed that plugging the phone in via USB in PC connection
mode (man I wish they would rename that) to a Mac will open iPhoto and load all the photos there. Still nothing in Finder, so no general purpose file transfer, but iPhoto sync seems to be working. I haven't seen anything about this in the release notes of Saapunki (1.0.7
), Paarlampi (1.0.5
) or Ohijärvi (1.0.4
). The release notes for 1.0.4 say that MTP
support has been added but it did not work back then. IPhoto only showed an empty SDCARD, which is not where the camera stores pictures. Perhaps this is something Jolla is currently working on.
There is a slight problem with that though. IPhoto loads all pictures from the device, including all chat emoticons, map tiles, album art literally everything. I remember having the same problem with old Nokia's, I hope it's not some Apple quirk and that Jolla can do something about it.
I am running 1.0.7.18
An alternative to using USB and MTP is to install BitTorrent Sync (www.bittorrent.com/sync). I've been using that setup since Feb '14 to backup photos from Jolla to my laptop and it works great, no 3rd party servers involved. You can also use it to transfer files to Jolla but there may be some file permission issues as the mobile client is alas android. If you decide to give it a try, make sure you set it as a backup
on the Jolla side. That way the sync is one way Jolla -> Computer.
iPhoto supports MTP devices (Cameras etc) - therefore you can see your Jolla-pictures on iPhoto. Unfortunately OSX itself doesn't support MTP so unless Jolla comes up with some kind of Sync-Software there won't be a possibolity to connect your Jolla. Transfering files to Jolla on Windows or Linux (Ubuntu) works fine for me. I use OSX as well and know how annoying that system is as soon as you want to use a non-Apple device or service.
Same problem exists with Android devices (but there's an "Android File Transfer" app for OSX which solves that problem).
molan ( 2014-07-11 11:10:41 +0200 )editWe really need to have a simple "Joe Sixpack" capability to transfer files to & from OSX. All these solutions are fine if you have the ability or time to be able to enable them but all I want to do is plug in my Jolla and not have to think about dev mode or SSH etc.
I found file transfer working fine with 'Android File Transfer' or XNJB. No need for developer mode or ssh. Drawback is file transfer shows your home directory only (no Android directories I think).
The problem is the phone is detected as 'USB communications device class', so the Mac loads the com.apple.driver.AppleUSBCDC driver. The driver seems to claim device ownership. That's why libtmp can not open the device. Additionally the drivers AppleUSBCDCACMData and AppleUSBCDCECMData will be loaded when connecting the phone.
Check with 'sudo dmesg' and 'kextstat' the drivers loaded. Bottommost entries in 'kextstat' show recently loaded drivers. Just unload all 3 drivers:
$ sudo kextunload -b com.apple.driver.AppleUSBCDC
$ sudo kextunload -b com.apple.driver.AppleUSBCDCACMData
$ sudo kextunload -b com.apple.driver.AppleUSBCDCECMData
The next time you reconnect your phone these drivers will not be loaded unless you restarted your Mac.
libtmp works fine after unloading the drivers. Even without vendor and product id. Check with 'mtp-detect'. You will still get the 'UNKNOWN' device message, but no more connection error. Same for 'Android File Transfer' and XNJB.
Note: The screen should not be locked when transfering files.
The USB CDC drivers are provided by /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns. Not sure if it's safe to remove/rename the AppleUSBCDC.kext in said directory. Especially with /System/Library/Extensions/IOUSBFamily.kext being code signed.
Edit: Playing with libusb on my mac I found these information for my Jolla:
Bus: 029 (0x1d), Address: 007, Port: 01
Class: By Interface
Manufacturer: Jolla (0x2931)
Product: Sailfish (0x0a05)
USB: 2.00, Speed: High[480MBit/s]
Config 0:
Max Power: 500mA
Interface 0:
Setting 0
Class: Image
Description: MTP
Interface 1:
Setting 0
Class: Communications
Description: PC Suite Services
Interface 2:
Setting 0
Class: Data
Description: CDC OBEX Data
Setting 1
Class: Data
Description: CDC OBEX Data
Interface 3:
Setting 0
Class: Communications
Description: SYNCML-SYNC
Interface 4:
Setting 0
Class: Data
Description: CDC OBEX Data
Setting 1
Class: Data
Description: CDC OBEX Data
In comparison my Nexus 7 displays:
Bus: 029 (0x1d), Address: 007, Port: 01
Class: By Interface
Manufacturer: asus (0x18d1)
Product: Nexus 7 (0x4ee1)
USB: 2.00, Speed: High[480MBit/s]
Config 0:
Max Power: 500mA
Interface 0:
Setting 0
Class: vendor-specific.
Description: MTP
And my Samsung Galaxy Nexus:
Bus: 029 (0x1d), Address: 007, Port: 01
Class: By Interface
Manufacturer: samsung (0x04e8)
Product: Galaxy Nexus (0x685c)
USB: 2.00, Speed: High[480MBit/s]
Config 0:
Max Power: 500mA
Interface 0:
Setting 0
Class: vendor-specific.
Description: MTP
With all these additional interfaces exposed by the Jolla phone, your Mac/Linux computer may load additional drivers claiming the interface, thusly libmtp (which is supposed to be used by Android File Transfer and XNJB) can not open the device. That's why you have to find and kill other applications having claimed the interface and unload some drivers.
Would be nice if we can make Sailfish OS to offer only the MTP interface for file transfer mode.
It works for me. After unloading the driver I was able to use XNJB to download and upload files. But the App "Android File Transfer" did not work.
monomartin ( 2015-03-22 22:20:06 +0200 )edit@raimue: Thanks for confirming this works. Based on this feedback the obex option has already been dropped and this fix should be in the early access release that was announced today.
Philippe De Swert ( 2015-09-10 02:19:33 +0200 )editAnd since by converting things to an answer the actual steps to achieve this results have disappeared from this thread... It is described here : https://together.jolla.com/question/282/usb-file-transfer-support-for-mac-os-x/?answer=105226#post-id-105226
Philippe De Swert ( 2015-09-16 17:03:52 +0200 )editMy two cents tips for OSX users. I managed to use three different solutions, one native, one free (as in speech) and the other donationware. Both require Development mode enabled on Jolla, and the password set for ssh access. Of course your device must be network reachable, via WiFi or USB networking. Take note of the IP showed in Development mode screen (mine is 10.0.1.100).
Hope it helps.
Hi @magullo , could you be more precice in the steps once Cyberduck is installed please? I have my phone in dev mode and connected with USB. I tried to open a new SFTP connection with the username "nemo" and my pwd but no connection, what am I doing wrong? Thanks,
damourti ( 2014-03-09 23:46:54 +0200 )editIn fact, HoRNDIS (http://joshuawise.com/horndis) must be installed first to allow transfers via usb. It has been explained in the first answer page.
Vivien ( 2014-03-10 00:22:38 +0200 )editThis thread is public, all members of Together.Jolla.Com can read this page.
Asked: 2013-12-18 15:31:33 +0200
Seen: 23,677 times
Last updated: Dec 22 '17
SD-Card access via USB is needed [released]
Add option to hide dotfiles in USB/MTP connection [answered]
Remove individual transfers [released]
MicroSD as removable drive in Windows [released]
usb symbol on charger [not relevant]
Transfer/sync photos from N9 ? [answered]
HowTo: Connecting to Jolla via SSH over USB [answered]
Browsing device over USB confusing and very slow (using KDE)
Would be nice get it working with iPhoto and iMovie without need to use Image Capture app on OS X. Getting access to other files would be nice too and preferably so that mounting a file system would be the solution. That would solve the iPhoto issue too.
Penguin ( 2013-12-24 22:30:26 +0200 )editThanks for all fine answers! Actually a ready-made solution is needed for accessing Jolla's files from Mac and other computers without developer mode. [Says somebody who has developed enough and only wants to use his device]
jpek-m ( 2014-02-03 21:42:32 +0200 )editI have to say I'm rather shocked this does not work. I knew I was going to lack the bliss of iCloud syncing everything, but not even showing up as a USB drive (like the N9)? Basically it seems there is no user-friendly way of hooking up the Jolla with a Mac. Really unfortunate considering how popular Macs are these days.
Setok ( 2014-02-17 00:25:03 +0200 )editWould be nice if USB Mass storage would be supported in addition to MTP.
avdwoude ( 2014-02-20 02:09:38 +0200 )editApparently the Jolla USB vendor/product IDs changed in the 1.0.4.20 update. When selecting "PC Connection" mode, the device comes up as 2931:0a05 now, but it used to be 2931:0a01. Only the latter was added to the development version of libmtp, so this might need yet another entry now.
raimue ( 2014-03-18 03:38:57 +0200 )edit