Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[buteo-mtp] Add support for android.com 1.0 MTP extension. Fixes JB#4…
…9409 It is not possible to copy/move files within device via linux desktop file browser such as nautilus. This is because libmtp based backend implements these features using android.com 1.0 MTP extension instead of older / more standard Copy/MoveObject commands, and while the latter is supported by buteo-mtp, former is not. Implement BeginEditObject, SendPartialObject64, EndEditObject, GetPartialObject64 and TruncateObject64 commands. Update file reading and transmitting logic so that it supports 64 bit offsets required by GetPartialObject64 command. Implement file update/overwriting logic that supports 64 bit offsets required by SendPartialObject64. Omit ObjectChanged notifications during object editing sessions to avoid excess interrupt endpoint transfers. Flush object property caches after ending object edit session to avoid feeding stale data to initiator. Update deviceinfo configuration file template to match implementation and relax configuration parsing to keep devices that already have existing configuration files derived from old templates functioning as expected. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
12 changed files
with
797 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.