diff options
author | Mike Lockwood <lockwood@android.com> | 2010-09-02 14:57:30 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2010-09-02 14:59:26 -0400 |
commit | 59e3f0db0855567a95f783f6d1ec36a7cfc4ea83 (patch) | |
tree | fdbc67ccc1fb82526fd0b6f6decb156f905c4d95 /media/mtp/MtpServer.cpp | |
parent | 1770b872897d208a6f1fd4c7c9c4203cd3b6af4d (diff) | |
download | frameworks_base-59e3f0db0855567a95f783f6d1ec36a7cfc4ea83.zip frameworks_base-59e3f0db0855567a95f783f6d1ec36a7cfc4ea83.tar.gz frameworks_base-59e3f0db0855567a95f783f6d1ec36a7cfc4ea83.tar.bz2 |
MTP: Implement support for getting/setting device properties
Added support for the "device friendly name" and "synchonization partner"
properties, which are required by Microsoft.
Change-Id: Ic0443333d75f7d98a2d902a790b9d505a56d4eef
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'media/mtp/MtpServer.cpp')
-rw-r--r-- | media/mtp/MtpServer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/media/mtp/MtpServer.cpp b/media/mtp/MtpServer.cpp index c982114..3d3bd62 100644 --- a/media/mtp/MtpServer.cpp +++ b/media/mtp/MtpServer.cpp @@ -55,7 +55,7 @@ static const MtpOperationCode kSupportedOperationCodes[] = { // MTP_OPERATION_SELF_TEST, // MTP_OPERATION_SET_OBJECT_PROTECTION, // MTP_OPERATION_POWER_DOWN, -// MTP_OPERATION_GET_DEVICE_PROP_DESC, + MTP_OPERATION_GET_DEVICE_PROP_DESC, MTP_OPERATION_GET_DEVICE_PROP_VALUE, MTP_OPERATION_SET_DEVICE_PROP_VALUE, MTP_OPERATION_RESET_DEVICE_PROP_VALUE, @@ -288,6 +288,9 @@ bool MtpServer::handleRequest() { case MTP_OPERATION_GET_OBJECT_PROP_DESC: response = doGetObjectPropDesc(); break; + case MTP_OPERATION_GET_DEVICE_PROP_DESC: + response = doGetDevicePropDesc(); + break; default: response = MTP_RESPONSE_OPERATION_NOT_SUPPORTED; break; |