Jolla device running Sailfish OS not recognized

Bug #1710348 reported by Spheniscus
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rapid Photo Downloader
Fix Released
Medium
Damon Lynch

Bug Description

Logfile attached; I'll try to send a screenshot as well

When plugging my Jolla smartphone with Sailfish OS 2.x, it is shown in RPD, but images/videos section remains blank. SD card unplugged from Jolla and mounted via USB behaves just perfect.

I am using Linux Mint 18.1 64 bit Cinnamon. Usually, my Jolla phone can be accessed via mtp. Device is NOT shown in /media/..., but copy/paste and drag/drop of files etc. is possible via file manager.

lsusb -v says:
Bus 003 Device 018: ID 2931:0a07 Jolla Oy
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  idVendor 0x2931 Jolla Oy
  idProduct 0x0a07
  bcdDevice 2.28
  iManufacturer 1 Jolla
  iProduct 2 Jolla
  iSerial 3 DU4CQ00245
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 39
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0x80
      (Bus Powered)
    MaxPower 500mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 3
      bInterfaceClass 6 Imaging
      bInterfaceSubClass 1 Still Image Capture
      bInterfaceProtocol 1 Picture Transfer Protocol (PIMA 15470)
      iInterface 4 MTP
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x01 EP 1 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x82 EP 2 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0040 1x 64 bytes
        bInterval 5
Device Qualifier (for other device speed):
  bLength 10
  bDescriptorType 6
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  bNumConfigurations 1
Device Status: 0x0000
  (Bus Powered)

Tags: jolla sailfish

Related branches

Revision history for this message
Spheniscus (spheniscus) wrote :
Revision history for this message
Spheniscus (spheniscus) wrote :

Picture shows Jolla phone plugged

Revision history for this message
Damon Lynch (dlynch3) wrote :

Are the photos / videos in the DCIM folder? If not, where are they? Maybe Jolla decided not to follow the DCIM specification.

Changed in rapid:
status: New → Incomplete
Revision history for this message
Spheniscus (spheniscus) wrote :

No DCIM folder, not (yet).
Jolla phone comes with internal memory + slot for micro SD card. Both WITHOUT a DCIM folder.

1) SD card
I could simply add a folder called DCIM on the SD card. Luckily, Sailfish OS allows to save pictures taken by phone camera to SD card location. So if RPD searches the whole device for a DCIM folder - no matter where it is nested - this would be the first half of the solution. Please confirm, then I'll gladly give it a try and reply here?
Path is /media/sdcard/###unique-number-of-sdcard-### (like 1234-4AB7), so no way in going deeper here.

2) Well... to run Android Apps, Sailfish OS starts some kind of a virtual machine (VM). Folder is located at: /home/nemo/android_storage/.....
a) DCIM/ can be found here, but is empty on my wife's device
b) Pictures/ -same-
c) Movies/ -same-
d) WhatsApp/ -plus subfolders, like .Shared/ + /Media *)-

*) I hope/guess subfolders are similar to any Android device from here, e.g. WhatsApp Images.

3) Default location for images etc. is on /home/nemo/Pictures/Camera. Jolla phone user may change this to e.g. path-to-SD-card, see 1) above. Yes, P and C are UPPER CASE letters.

Or is there an option for the user of RPD to add search paths?

I appreciate your reply very much, as my wife and I are probably rare (one among many, many other) users and I'd fully understand if this topic has low priority ;-).

Revision history for this message
Damon Lynch (dlynch3) wrote :

With cameras, Rapid Photo Downloader searches for photos / videos only under a top level DCIM folder. Scanning the whole device is not what 99% of Android users want, because otherwise all kinds of irrelevant stuff is found, and libgphoto2 can even run into serious problems when trying to access folders it's barred from accessing by the device.

Scanning only within the DCIM folder works when manufacturers follow the DCIM spec. Apparently Jolla does not (and neither did Ubuntu Phone).

I've recently learned some Sony cameras do not save their videos under the DCIM folder. Instead they save under two other folders. That breaks the DCIM spec too.

So that's two current manufacturers that don't follow the DCIM spec properly. I'll have to code a generic solution for both in a future release, which is annoying and confusing for users, but that's life.

If you can remove the SD card and download from it directly, consult http://damonlynch.net/rapid/documentation/#scannodcim

Changed in rapid:
status: Incomplete → Triaged
assignee: nobody → Damon Lynch (dlynch3)
importance: Undecided → Medium
milestone: none → 0.9.3
Revision history for this message
Spheniscus (spheniscus) wrote :

I agree, searching ALL (sub) folders is not a good idea. DCIM spec is new to me, but makes sense.

Yes, I can remove the SD card from phone (switch Jolla phone off / shutdown, remove back cover, remove SD card, plug to card reader, use e.g. RPD to download the files to my workstation, and all the way back again). That's what I did for my very first post here. So there is a workaround.

I checked with the Jolla phone camera settings. You can chose a) internal memory or b) SD card. Then, Sailfish OS strictly requires [sd-card]/Pictures/Camera. Unfortunately I cannot pick a DCIM folder. If Pictures/Camera does not exist, it is created when taking a first picture.

Before trying that, I renamed Pictures --> DCIM on the SD card.

Plugging the Jolla phone to my workstation and running RDP shows the content of the DCIM folder ;-).

Creating a (symbolic) link called DCIM pointing at Pictures is not allowed.

So, as of now, my workaround is
-On my phone (without WhatsApp): take SD card out of device and plug to USB card reader directly, then use RPD
-On my wife's phone (using WA): copy files via file browser from WA subdir to computer (in addition to the SD card approach)

Just in case you are looking for someone to run tests for your generic solution, you'd make me proud if I could assist.

Damon Lynch (dlynch3)
Changed in rapid:
milestone: 0.9.3 → 0.9.3b1
Revision history for this message
Damon Lynch (dlynch3) wrote :

You can add which folders you like in the new preference value "Scan only specific folders on
   devices" in 0.9.3b1. That should solve your issue.

Changed in rapid:
status: Triaged → Fix Released
Revision history for this message
Spheniscus (spheniscus) wrote :

Thank you very much!

Works fine on my native Jolla / Sailfish OS phone: Just added the folders "Videos" and "Pictures". Preview (thumbnails) are fine, and so is the download.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.