This forum has been archived. All content is frozen. Please use KDE Discuss instead.

MTP with Android OS fails: writing to camera not supported

Tags: None
(comma "," separated)
shmerl
Registered Member
Posts
251
Karma
1
OS
I installed Cyanogen Mod 11 on Nexus 7 tablet (2013 version), and enabled MTP access to storage in settings there (USB access is removed in that version). After that, when plugged into a USB, the device appears in KDE (current Debian testing) as "camera" device. I can delete files there, but when I try to copy anything from my computer to the device, it fails with KDE showing a message "writing to camera not supported". Am I missing something there, or MTP access doesn't allow transfer?

Thanks.

UPDATE1: Actually, device notifier shows two "File Manager" actions. First opened "camera" device, and second just did nothing. I found this advice: http://forums.opensuse.org/showthread.p ... ansfer-fix
Changing in /usr/share/kde4/apps/solid/actions/solid_mtp.desktop
Code: Select all
Exec=kioclient exec mtp:udi=%i/
to
Code: Select all
Exec=dolphin "mtp:/"
Made second File Manager option to work and now I can transfer files. For some reason it doesn't work with the root (Internal storage), but works with subdirectores.

About the above change. Is this a bug in KDE, or something is wrong with Debian?

Last edited by shmerl on Fri Apr 18, 2014 2:12 am, edited 3 times in total.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
The "Camera" interface is using the PTP protocol - it is likely that Android's implementation of PTP (upon which MTP is based I believe) is lacking the lower level bits it requires to upload files.

As an alternative, can you try installing kio_mtp and using it instead to access your device?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
shmerl
Registered Member
Posts
251
Karma
1
OS
See my updated post, I found a workaround.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
The above change you mentioned is likely a bug in KDE - specifically the MTP KIOSlave, as it is shipping a rule which doesn't work correctly.
Please file a bug at bugs.kde.org regarding that so it can be corrected.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
shmerl
Registered Member
Posts
251
Karma
1
OS
Sure, I'll file a bug. Just for the reference, I also installed kio-mtp package, since it wasn't included in Debian/KDE by default (that's what brings in that .desktop file).


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]