OSDN Git Service
(root)
/
android-x86
/
frameworks-av.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1df67b1
)
Add support for MTP_RESET_DEVICE operation.
author
Jerry Zhang
<zhangjerry@google.com>
Fri, 24 Feb 2017 00:39:30 +0000
(16:39 -0800)
committer
Jerry Zhang
<zhangjerry@google.com>
Wed, 8 Mar 2017 00:18:25 +0000
(
00:18
+0000)
Since we only support one open session, this
command is the same as CLOSE_SESSION.
Test: mtp-reset
Change-Id: I2e95687a685af239c92473feb7c98419fcd55a1e
media/mtp/MtpServer.cpp
patch
|
blob
|
history
diff --git
a/media/mtp/MtpServer.cpp
b/media/mtp/MtpServer.cpp
index
5a1d6dc
..
88dabff
100644
(file)
--- a/
media/mtp/MtpServer.cpp
+++ b/
media/mtp/MtpServer.cpp
@@
-54,7
+54,7
@@
static const MtpOperationCode kSupportedOperationCodes[] = {
MTP_OPERATION_SEND_OBJECT,
// MTP_OPERATION_INITIATE_CAPTURE,
// MTP_OPERATION_FORMAT_STORE,
-
//
MTP_OPERATION_RESET_DEVICE,
+ MTP_OPERATION_RESET_DEVICE,
// MTP_OPERATION_SELF_TEST,
// MTP_OPERATION_SET_OBJECT_PROTECTION,
// MTP_OPERATION_POWER_DOWN,
@@
-362,6
+362,7
@@
bool MtpServer::handleRequest() {
case MTP_OPERATION_OPEN_SESSION:
response = doOpenSession();
break;
+ case MTP_OPERATION_RESET_DEVICE:
case MTP_OPERATION_CLOSE_SESSION:
response = doCloseSession();
break;