Go to file
Yabin Cui 638420ef31 adb: close ep0 on disconnection.
adbd on device kicks the usb connection when usb IO fails. But to notify
adb on host to reconnect it, adbd needs to close ep0 to reset the usb
connection. Otherwise, adb on host cann't connect the device unless the
usb cable is reconnected or adb host server is restarted.

This can be tested by using `adb reconnect device` command.

Bug: 25935458

Change-Id: I80979d6029e60b9cfd218f7b9b5201810238ec07
(cherry picked from commit 69e97e4bee)
2016-05-23 17:17:46 -07:00
adb adb: close ep0 on disconnection. 2016-05-23 17:17:46 -07:00
adf Adf: Remove unused variable 2015-07-27 22:08:16 -07:00
base adb/base: allow use of unique_fd inside adb. 2016-05-14 18:25:51 -07:00
bootstat Don't hardcode gtest paths. 2016-04-26 13:28:23 -07:00
cpio fs_config: replace getenv('OUT') by new fs_config parameter 2015-07-09 21:47:07 -07:00
crash_reporter crash_reporter: Mark the euid parameter as __unused. 2016-02-26 15:44:46 -08:00
debuggerd Fix misc-macro-parentheses warnings in adb, debuggerd, libbacktrace. 2016-05-18 15:53:15 -07:00
fastboot Report errno more often in fastboot. 2016-05-11 12:39:27 -07:00
fingerprintd Fix google-explicit-constructor warnings. 2016-04-29 15:44:04 -07:00
fs_mgr fs_mgr: update block device reference in verity metadata 2016-05-16 16:37:24 +00:00
gatekeeperd Fix google-explicit-constructor warnings. 2016-04-29 15:44:04 -07:00
healthd Export libbinder headers from libhealhd.default 2016-04-18 09:33:53 -07:00
include Fix SharedBuffer. Remove aref. 2016-05-23 17:28:52 +00:00
init init: support matching sysfs class paths in ueventd.rc 2016-05-13 13:46:46 -07:00
libbacktrace Fix misc-macro-parentheses warnings in adb, debuggerd, libbacktrace. 2016-05-18 15:53:15 -07:00
libbinderwrapper binderwrapper: Resolve ambiguous base::Closure reference 2016-04-12 13:19:29 -07:00
libcrypto_utils Fix include-what-you-use problem in android-pubkey.c. 2016-04-15 17:44:05 -04:00
libcutils Don't expose ashmem constants on the host. 2016-05-13 14:47:30 -07:00
libdiskconfig Move libdiskconfig headers into libdiskconfig. 2016-02-13 12:48:23 -08:00
libion Fix misc-macro-parentheses warnings in libion, libsparse, libmem* 2016-05-18 15:41:16 -07:00
liblog Merge "Fix misc-macro-parentheses warnings in liblog." 2016-05-19 00:48:44 +00:00
libmemtrack Fix misc-macro-parentheses warnings in libion, libsparse, libmem* 2016-05-18 15:41:16 -07:00
libmemunreachable Fix misc-macro-parentheses warnings in libion, libsparse, libmem* 2016-05-18 15:41:16 -07:00
libnativebridge Add Mips64 Runtime ISA type. 2016-02-08 14:02:47 -08:00
libnativeloader Set parent namespace for linker-namespaces 2016-05-16 18:13:49 -07:00
libnetutils HACK: libnetutils: Remove parameters from dhcpcd service call 2016-05-18 16:01:15 -07:00
libpackagelistparser Remove two bogus libutils dependencies. 2016-02-17 11:54:47 -08:00
libpixelflinger Don't include <machine/cpu-features.h>. 2016-05-16 17:55:27 -07:00
libprocessgroup Remove useless #include. 2016-04-30 09:10:07 -07:00
libsparse Fix misc-macro-parentheses warnings in libion, libsparse, libmem* 2016-05-18 15:41:16 -07:00
libsuspend Adds a parameter to the wakeup_callback to report sucessful wakeup or suspend aborts. 2015-06-25 13:15:22 -07:00
libsync Cleanup uses of sprintf so we can deprecate it. 2016-03-07 18:40:40 -08:00
libsysutils Clean up CLOEXEC in SocketListener. 2016-02-19 18:14:22 -08:00
libusbhost libusbhost: Fix problem reading USB string descriptors on some quirky devices 2015-06-18 13:38:31 -07:00
libutils Fix SharedBuffer. Remove aref. 2016-05-23 17:28:52 +00:00
libziparchive Fix google-explicit-constructor warnings. 2016-04-25 14:57:11 -07:00
lmkd Fix misc-macro-parentheses warnings in lmkd. 2016-05-18 15:37:20 -07:00
logcat logcat: confirm -g result after -c 2016-04-29 11:33:26 -07:00
logd Fix misc-macro-parentheses warnings in liblog. 2016-05-18 15:48:50 -07:00
logwrapper Don't go busy loop when waiting child process. 2016-02-16 10:13:48 -08:00
metricsd metricsd: Remove release/aquire semantic from scoped_ptr/unique_ptr 2016-04-08 09:59:05 -07:00
mkbootimg mkbootimg: use int for os_version and os_patch_level 2016-03-29 16:06:37 -07:00
reboot reboot: Turn on -Werror 2014-05-21 12:58:38 -07:00
rootdir Merge "init: usb: disable usb function switch until adbd is ready" 2016-05-16 19:34:51 +00:00
run-as Fix the run-as environment to better match su. 2015-11-03 14:31:46 -08:00
sdcard enable integer sanitizer for sdcard service 2016-05-05 16:03:32 -04:00
toolbox Lose ps to toybox. 2016-05-04 15:20:02 -07:00
trusty trusty: storage: implement storage proxy daemon 2016-05-02 15:12:01 -07:00
tzdatacheck Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
.gitignore Ignore adb/*.pyc files 2015-08-11 12:59:58 -07:00
Android.mk Remove the simulator target from all makefiles. 2011-07-11 22:12:32 -07:00
CleanSpec.mk trusty: add gatekeeper module 2016-05-02 15:12:01 -07:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
NOTICE Fix omission in NOTICE file. 2013-07-30 13:56:55 -07:00