Summary: | Unable to modify file on Android device using kio-mtp | ||
---|---|---|---|
Product: | [Frameworks and Libraries] kio-extras | Reporter: | muzuiget <muzuiget> |
Component: | MTP | Assignee: | Philipp Schmidt <kde-bugs> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | accounts+kde, agsimmons0, alansari218, alexinq6, batonxleba, ben, donjajo4all, efelthauser, k.salver, kde, nate, notuxius, postix, rauchwolke, sitter, skierpage, sudhir, tesfabpel, yvan |
Priority: | NOR | Keywords: | usability |
Version: | 21.08.3 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=318980 | ||
Latest Commit: | https://invent.kde.org/network/kio-extras/commit/5c343d3d82d751e171f03745d695c872764f7edd | Version Fixed In: | 23.08 |
Sentry Crash Report: | |||
Attachments: | Interim-solution for mtp |
Description
muzuiget
2013-10-03 08:03:40 UTC
same here. can't rename,edit and replace it also not possible to download files. it's only possible to upload files, folders work too but not in the root folder only in subfolders Sorry it took me so long. Can confirm it here. Hopefully my vacation at the end of the month will give me some time do delve into this ;). Having this problem on Kubuntu 15.04. Also failing on Kubuntu 16.04 with the backports PPA: Dolphin Version 15.12.3 Using: * KDE Frameworks 5.23.0 * Qt 5.5.1 (built against 5.5.1) * The xcb windowing system There are two Device Notifier actions to "Open with File Manager". In the first if I navigate to Downloads Dolphin's location bar shows camera:/Motorola%2520Moto%2520X%2520(XT1058)@usb:001,004/store_00010001/Download/ . In the second it shows mtp:/XT1053/Internal storage/Download/ But with either URL I can't copy files to the device. Copying phone files from Download or DCIM/Camera to a folder on the computer works fine. I also have KDE Connect installed, maybe it interferes. Same issue here in Debian Unstable with my ASUS ZenFone 2 Also happens to me on ArchLinux 64bit with a Nexus 7 and a Nexus 5 (KDE Frameworks 5.30, Qt 5.7.1, Plasma 5.8.5 and Applications 16.12.1) Confirming this bug in: Qt Version: 5.9.1 Frameworks Version: 5.36.0 Operating System: Linux 4.9.40-1-MANJARO x86_64 Distribution: "Netrunner Rolling" Created attachment 107713 [details]
Interim-solution for mtp
really kio-mtp crashes in dolphin when trying to connect to a device, even UBUNTU-Phone (p.ex. BQ-Aquaris 4.5).
!! my Interim-solution:
install nautilus + gnome-icin-theme-symbolic
starting with nautilus i can connect to the device and get data.
not tested (i will test these days):
to rename or to move a file.
to connect a android 6.x.
-->so, i think the problem is in dolphin.
user1@testkub:~$ locate mtp | grep lib | grep .so
/lib/modules/3.19.0-25-generic/kernel/sound/drivers/snd-mtpav.ko
/lib/modules/3.19.0-80-generic/kernel/sound/drivers/snd-mtpav.ko
/usr/lib/i386-linux-gnu/libmtp.so.9
/usr/lib/i386-linux-gnu/libmtp.so.9.1.0
/usr/lib/kde4/amarok_collection-mtpcollection.so
/usr/lib/kde4/kio_mtp.so
/usr/lib/kde4/kio_smtp.so
/usr/lib/libreoffice/share/config/soffice.cfg/cui/ui/applyautofmtpage.ui
/usr/lib/vlc/plugins/access/libaccess_mtp_plugin.so
/usr/lib/vlc/plugins/services_discovery/libmtp_plugin.so
/usr/share/apport/package-hooks/source_libmtp.py
user1@testkub:~$
really kio-mtp crashes in dolphin when trying to connect to a device, even UBUNTU-Phone (p.ex. BQ-Aquaris 4.5). !! my Interim-solution: install nautilus + gnome-icin-theme-symbolic starting with nautilus i can connect to the device and get data. not tested (i will test these days): to rename or to move a file. to connect a android 6.x. -->so, i think the problem is in dolphin. user1@testkub:~$ locate mtp | grep lib | grep .so /lib/modules/3.19.0-25-generic/kernel/sound/drivers/snd-mtpav.ko /lib/modules/3.19.0-80-generic/kernel/sound/drivers/snd-mtpav.ko /usr/lib/i386-linux-gnu/libmtp.so.9 /usr/lib/i386-linux-gnu/libmtp.so.9.1.0 /usr/lib/kde4/amarok_collection-mtpcollection.so /usr/lib/kde4/kio_mtp.so /usr/lib/kde4/kio_smtp.so /usr/lib/libreoffice/share/config/soffice.cfg/cui/ui/applyautofmtpage.ui /usr/lib/vlc/plugins/access/libaccess_mtp_plugin.so /usr/lib/vlc/plugins/services_discovery/libmtp_plugin.so /usr/share/apport/package-hooks/source_libmtp.py user1@testkub:~$ Can confirm it on openSUSE TW (21.08.3) and for Android 12 (Pixel 4a). Does anyone know what the underlying issue is? *** Bug 383313 has been marked as a duplicate of this bug. *** Two problems: a) rename() is not correctly implemented so moving across folders does not work currently (probably should use LIBMTP_Move_Object but that requires substantial rejiggering of the existing code) b) supposedly because of that "moving": false, is set in the json definition (that is what disables the relevant actions in dolphin) Just occuring to me I also commented on this. I'll try to replicate this now. *** Bug 460784 has been marked as a duplicate of this bug. *** A possibly relevant merge request was started @ https://invent.kde.org/network/kio-extras/-/merge_requests/235 *** Bug 466745 has been marked as a duplicate of this bug. *** Git commit 5c343d3d82d751e171f03745d695c872764f7edd by Harald Sitter. Committed on 31/03/2023 at 10:09. Pushed by sitter into branch 'master'. mtp: support moving through get-put and increase concurrency to 2 this is a bit tricky. to support moving from one device to another properly we need KIO to take control since doing it inside the worker is exceptionally tricky with the current feature set. at the same time KIO is a bit defective and presumes that it can have a concurrent getjob and putjob running at the same time. to allow for that we now have 2 workers instead of 1. technically they could be deadlocking each other, practically they shouldn't because all the work is outsourced to the kiod though anyway and thus getting multiplexed M +8 -0 mtp/kio_mtp.cpp M +2 -2 mtp/mtp.json https://invent.kde.org/network/kio-extras/commit/5c343d3d82d751e171f03745d695c872764f7edd i applied the patch on 22.12.3 and it's still not possible to move files between folders, as i get the following error before the operation would finish: "Changing the attributes of files is not supported with protocol mtp." *** Bug 468241 has been marked as a duplicate of this bug. *** |