commit | af4d786572a3b9828f3cb92fad8f11d8a3e35aa0 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Fri Jun 14 16:21:21 2019 -0700 |
committer | Josh Gao <jmgao@google.com> | Fri Jun 14 16:21:21 2019 -0700 |
tree | deae39795283669227fb80c5726b43980317ba14 | |
parent | e96269099d8d800febc2d7df64de2188ad7fb3e8 [diff] |
Revert "adbd: don't close ep0 until we receive FUNCTIONFS_UNBIND." We're only reading FUNCTIONFS_BIND on creation upon the first creation of the control fd, which results in an abort when rebind happens (e.g. when MTP is enabled) and we unexpectedly read FUNCTIONFS_BIND in the second instantiation of the connection. This reverts commit 2b668d3906a9b54d735113807c7a95a6dbdd270f. Bug: http://b/135155652 Test: manually enabled MTP