Confirmed users
681
edits
(v2) |
|||
| Line 30: | Line 30: | ||
When MTP is enabled, then the AutoMounter mode should be changing like the following: | When MTP is enabled, then the AutoMounter mode should be changing like the following: | ||
# Phone is unplugged - AutoMounter should be in UMS mode | |||
# Phone is plugged in but has never been unlocked - AutoMounter should be in UMS mode | |||
# Phone is plugged in and has been unlocked at least once - AutoMounter should be in MTP mode | |||
# 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. | 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. | ||
| Line 39: | Line 39: | ||
So there are really 3 modes that the AutoMounter has: | So there are really 3 modes that the AutoMounter has: | ||
#In UMS mode and no volumes are being shared with the PC | |||
#In UMS mode and volumes are being shared with the PC | |||
#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. | 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. | ||