Gaia/System/FileManagement: Difference between revisions

Jump to navigation Jump to search
v2
(v2)
Line 20: Line 20:
** portable (sd card)
** portable (sd card)


== v2 ==
== v2 Add MTP support ==
 
Based on {{bug|1142450}} comment 15,
 
The AutoMounter does switch to UMS mode (for technical reasons) but that should only happen when the USB cable is unplugged.
 
When in UMS mode, what's important is whether a volume is shared with the PC or not.
 
When MTP is enabled, then the AutoMounter mode should be changing like the following:
 
1 - Phone is unplugged - AutoMounter should be in UMS mode
2 - Phone is plugged in but has never been unlocked - AutoMounter should be in UMS mode
3 - Phone is plugged in and has been unlocked at least once - AutoMounter should be in MTP mode
4 - When the phone is unplugged or USB Sharing is disabled, then the AutoMounter will switch back to UMS mode.
 
For both UMS and MTP, nothing should be shared with the PC until the phone is unlocked for the first time. Once something is shared with the PC, then it should stay shared with the PC even if the phone is locked, until USB sharing is explicitly disabled, or the phone is unplugged from the PC.
 
So there are really 3 modes that the AutoMounter has:
 
1 - In UMS mode and no volumes are being shared with the PC
2 - In UMS mode and volumes are being shared with the PC
3 - In MTP mode and volumes are being shared with the PC
 
MTP doesn't have a notion of being in MTP mode and not sharing volumes (well, I suppose we could have the MTP server running awith no volumes). When I wrote it I decided to instead switch to UMS mode and have no volumes shared - this allows us to reclaim all of the memory used by the MTP server.
 
If the phone was in MTP mode with no volumes being shared, then it would still show up as a device to the PC, and it would look like there were no volumes, which I thought would be confusing to the user.
 
== v3 ==
* Transfer files to and from devices from cloud based services such as Dropbox, SkyDrive, MozCloud.
* Transfer files to and from devices from cloud based services such as Dropbox, SkyDrive, MozCloud.
* Moving and copying files to or from SD card storage.
* Moving and copying files to or from SD card storage.
Confirmed users
681

edits

Navigation menu