Bug 325924 - MTP (android phone) Unknown size in dolphin
Summary: MTP (android phone) Unknown size in dolphin
Status: RESOLVED FIXED
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: MTP (show other bugs)
Version: 18.04.3
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-12 13:36 UTC by Maksim
Modified: 2018-10-08 17:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim 2013-10-12 13:36:50 UTC
Dolphin doesn't show free space on a MTP device. 
Also I'm not sure that this is dolphin issue My android phone show as two point mtp:/ and camera:/  . Second  one is useless and make may be better no show it in dolphin. 

Reproducible: Always

Steps to Reproduce:
1. Connect Android 4.1 device
2. Open dolphin on device
3. Unknown size instead of free space in the right corner.


Expected Results:  
I want know free space on my phone. It possible for win users
Comment 1 Frank Reininghaus 2013-10-13 09:14:58 UTC
Thanks for the bug report.

The status bar uses KDiskFreeSpaceInfo from kdelibs/kio to determine the free space. It seems that it cannot handle MTP devices though, and I'm not sure if it could be modified such that it could.

Probably one would need a generic way to ask kioslaves (kile kio_mtp) for the "free space", but AFAIK, such a thing does not exist (yet).

In any case, if I'm not mistaken, there is no way to implement this in Dolphin without support from KIO, so I'll reassign this report.
Comment 2 KarlheinzS 2017-09-06 10:10:52 UTC
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-icon-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:~$
Comment 3 andreas.krutzler 2018-10-08 17:39:48 UTC
Git commit aaa1edbb74c4fb01affbde7b79bb45d3a9b61f83 by Andreas Krutzler.
Committed on 08/10/2018 at 17:39.
Pushed by akrutzler into branch 'master'.

[mtp] Move MTP device handling from kioslave to kiod-module

Summary:
Consult T9390 for more information.
Related: bug 319880, bug 336456, bug 372860, bug 382046, bug 383314, bug 396527

Closes T9390

Reviewers: elvisangelaccio, ltoscano, hetzenecker, dfaure, mlaurent

Reviewed By: elvisangelaccio, dfaure, mlaurent

Subscribers: mlaurent, kde-frameworks-devel, kfm-devel

Tags: #dolphin, #frameworks

Maniphest Tasks: T9390

Differential Revision: https://phabricator.kde.org/D15277

M  +5    -5    mtp/CMakeLists.txt
D  +0    -229  mtp/devicecache.cpp
D  +0    -86   mtp/devicecache.h
D  +0    -73   mtp/filecache.cpp
D  +0    -81   mtp/filecache.h
M  +483  -576  mtp/kio_mtp.cpp
M  +14   -8    mtp/kio_mtp.h
D  +0    -358  mtp/kio_mtp_helpers.cpp
D  +0    -46   mtp/kio_mtp_helpers.h
A  +19   -0    mtp/kiod_module/CMakeLists.txt
A  +171  -0    mtp/kiod_module/kmtpd.cpp     [License: GPL (v2+)]
A  +63   -0    mtp/kiod_module/kmtpd.h     [License: GPL (v2+)]
A  +12   -0    mtp/kiod_module/kmtpd.json
A  +127  -0    mtp/kiod_module/mtpdevice.cpp     [License: GPL (v2+)]
A  +78   -0    mtp/kiod_module/mtpdevice.h     [License: GPL (v2+)]
A  +635  -0    mtp/kiod_module/mtpstorage.cpp     [License: GPL (v2+)]
A  +142  -0    mtp/kiod_module/mtpstorage.h     [License: GPL (v2+)]
A  +21   -0    mtp/shared/CMakeLists.txt
A  +70   -0    mtp/shared/kmtpdeviceinterface.cpp     [License: LGPL]
A  +64   -0    mtp/shared/kmtpdeviceinterface.h     [License: LGPL]
A  +85   -0    mtp/shared/kmtpdinterface.cpp     [License: LGPL]
A  +70   -0    mtp/shared/kmtpdinterface.h     [License: LGPL]
A  +147  -0    mtp/shared/kmtpfile.cpp     [License: LGPL]
A  +90   -0    mtp/shared/kmtpfile.h     [License: LGPL]
A  +98   -0    mtp/shared/kmtpstorageinterface.cpp     [License: LGPL]
A  +77   -0    mtp/shared/kmtpstorageinterface.h     [License: LGPL]
A  +50   -0    mtp/shared/org.kde.kmtp.daemon.xml
A  +62   -0    mtp/shared/org.kde.kmtp.device.xml
A  +154  -0    mtp/shared/org.kde.kmtp.storage.xml

https://commits.kde.org/kio-extras/aaa1edbb74c4fb01affbde7b79bb45d3a9b61f83