Bug 1184728 - gvfs mounts to Android (Samsung s4 mini stock Android) do not give direct access to data.
Summary: gvfs mounts to Android (Samsung s4 mini stock Android) do not give direct acc...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: gvfs
Version: 21
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Ondrej Holy
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1204907 1239174 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-22 06:59 UTC by lejeczek
Modified: 2016-01-20 11:08 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-01-22 15:59:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
mtp detect log (34.91 KB, text/plain)
2015-01-22 13:45 UTC, lejeczek
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 743359 0 None None None Never

Description lejeczek 2015-01-22 06:59:52 UTC
Description of problem:

eg, photos, it mounts & you can see the files but not as miniatures, also properties of files are unavailable.

Location:   mtp://[usb:003,002]/Card/DCIM/Camera
Access: unknown

Further it is impossible to open any file directly from mount. In Image Viewer:
"Could not load image: xxxx
Failed to open input stream for file"

This goes for any type of file.
You can copy the file though and open it later successfully.

gvfs-mount -l
Drive(0): SAMSUNG SSD PM830 mSATA 256GB
  Type: GProxyDrive (GProxyVolumeMonitorUDisks2)
Volume(0): SAMSUNG Android
  Type: GProxyVolume (GProxyVolumeMonitorMTP)
  Mount(0): SAMSUNG Android -> mtp://[usb:003,002]/
    Type: GProxyShadowMount (GProxyVolumeMonitorMTP)
Mount(1): mtp -> mtp://[usb:003,002]/
  Type: GDaemonMount

Version-Release number of selected component (if applicable):

gvfs-1.22.3-1.fc21.x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Ondrej Holy 2015-01-22 09:00:42 UTC
Hey, thanks for your bug report.

Miniatures aren't shown by default for remote mounts, but you can enable it. If you are using "Files" you can do this by "Preferences" -> "Preview" -> "Show thubmnails: Always".

There isn't so much properties which we can get from MTP. But you can compare it with my output (which should be complete), just replace my path by yours:
$ gvfs-info  mtp://[usb:002,005]/Karta\ SD/DCIM/Camera/IMG_20150121_131454.jpg
display name: IMG_20150121_131454.jpg
name: IMG_20150121_131454.jpg
type: regular
size:  624662
uri: mtp://[usb:002,005]/Karta%20SD/DCIM/Camera/IMG_20150121_131454.jpg
attributes:
  standard::type: 1
  standard::name: IMG_20150121_131454.jpg
  standard::display-name: IMG_20150121_131454.jpg
  standard::icon: image-jpeg, image-x-generic
  standard::content-type: image/jpeg
  standard::size: 624662
  id::filesystem: mtp:host=%5Busb%3A002%2C005%5D
  access::can-read: TRUE
  access::can-write: TRUE
  access::can-execute: FALSE
  access::can-delete: TRUE
  access::can-trash: FALSE
  access::can-rename: TRUE
  time::modified: 1421842494
  time::modified-usec: 0
  preview::icon: GVfsIcon:0x7fc9e0009260

Opening files directly works for me correctly. Could you try (replace the path by yours):
gvfs-cat mtp://[usb:002,005]/Karta\ SD/DCIM/Camera/IMG_20150121_131454.jpg

Does it print some errors or just raw data?

Comment 2 lejeczek 2015-01-22 10:37:51 UTC
$ gvfs-info mtp://[usb:003,005]/Card/Pictures/screenshot_2014-10-10_2250.png
display name: screenshot_2014-10-10_2250.png
name: screenshot_2014-10-10_2250.png
type: regular
size:  147514
uri: mtp://[usb:003,005]/Card/Pictures/screenshot_2014-10-10_2250.png
attributes:
  standard::type: 1
  standard::name: screenshot_2014-10-10_2250.png
  standard::display-name: screenshot_2014-10-10_2250.png
  standard::icon: image-png, image-x-generic
  standard::content-type: image/png
  standard::size: 147514
  id::filesystem: mtp:host=%5Busb%3A003%2C005%5D
  access::can-read: TRUE
  access::can-write: TRUE
  access::can-execute: FALSE
  access::can-delete: TRUE
  access::can-trash: FALSE
  access::can-rename: TRUE
  time::modified: 1412981460
  time::modified-usec: 0
  preview::icon: GVfsIcon:0x7fb420009560

$ gvfs-cat mtp://[usb:003,005]/Card/Pictures/screenshot_2014-10-10_2250.png
gvfs-cat: mtp://[usb:003,005]/Card/Pictures/screenshot_2014-10-10_2250.png: error opening file: Operation unsupported

right-click properties in Files shows nothing
Show Thumbnails - Always - show no thumbnails.

Comment 3 lejeczek 2015-01-22 10:40:49 UTC
ok, tried different usb port (might have been just a fluke), I have thumbnails but properties in Files -> Image = nothing, still cannot open directly off the phone.

Comment 4 Ondrej Holy 2015-01-22 12:26:11 UTC
Thanks for the output. All supported attributes seems to be set correctly by gvfs. Information in Files->Image isn't provided by gvfs, but it is probably connected with your problem with reading.

Seems android extensions aren't detected from some reason. Could you install "libmtp-examples" package and provide output of "mtp-detect" command (with the connected device), please?

Comment 5 lejeczek 2015-01-22 13:45:21 UTC
Created attachment 982822 [details]
mtp detect log

Comment 6 Ondrej Holy 2015-01-22 15:59:29 UTC
Thanks for the log. The device doesn't support android.com extension, so the reading/writing support is disabled. But I think reading support should be possible if some changes will be made. Lets move it upstream...

Comment 7 Ondrej Holy 2015-07-21 14:47:02 UTC
*** Bug 1239174 has been marked as a duplicate of this bug. ***

Comment 8 Ondrej Holy 2016-01-20 11:08:11 UTC
*** Bug 1204907 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.