commit | 0a1b0ec558938bce93075b12d3cf952a1980fe0e | [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 | 904006ee84b9e0e4486789f9bc132174fdca5af9 | |
parent | 75696fa88f73e6a03f7de959e6059453970d46c7 [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 7078ca71cfbfa71d024e35e956c8779a80ae1e4b. Bug: http://b/135155652 Test: manually enabled MTP