Go to file
Josh Gao def91c0abf adb: disable ReconnectHandler in adbd.
Previously, when a TCP connection was disconnected from adbd, we were
registering it with ReconnectHandler, which led to the transport
sticking around after the socket was closed. Due to the naming of
TCP transports in adbd (host-<fd number>), this results in incoming
connections being immediately closed if their file descriptor number
ends up being the same as a TCP transport that had previously
disconnected.

Guard all of the reconnect logic with ADB_HOST, to fix this.

Bug: http://b/112054041
Test: while true; do adb connect <device>; adb connect <device>; adb shell true; done
Change-Id: Ib55d304d7e07d6d744e8321d34671bb6d4b91afe
2018-07-31 18:28:32 -07:00
adb adb: disable ReconnectHandler in adbd. 2018-07-31 18:28:32 -07:00
adf
base Merge "Revert "Revert "base: add support for tagged fd closure to unique_fd.""" 2018-07-20 23:09:27 +00:00
bootstat Merge "bootstat: record reboot reason history in persist.sys.boot.reason.history" 2018-07-02 20:28:49 +00:00
cpio
debuggerd crasher: add close(fileno(FILE*)) and close(dirfd(DIR*)). 2018-07-18 18:11:46 -07:00
demangle Build adbd for recovery 2018-05-24 14:11:11 +09:00
diagnose_usb Build adbd for recovery 2018-05-24 14:11:11 +09:00
fastboot fastboot: Fix hang when sparse images end in small chunks. 2018-07-30 14:48:13 -07:00
fs_mgr liblp: Allow building liblp as a shared library. 2018-07-27 19:34:56 -07:00
gatekeeperd Add OWNERS file to gatekeeperd 2018-07-25 15:02:38 -07:00
healthd charger: minui error handling fixups 2018-07-30 08:45:52 -07:00
include
init Merge "liblp: Allow building liblp as a shared library." 2018-07-28 22:52:23 +00:00
libappfuse bpfmt. 2018-02-16 17:58:14 -08:00
libasyncio Build adbd for recovery 2018-05-24 14:11:11 +09:00
libbacktrace [libutils] Modernize codebase by replacing NULL with nullptr 2018-07-16 18:11:34 -07:00
libbinderwrapper Make libbinderwrapper available in /vendor partition 2018-04-06 08:41:21 +09:00
libcrypto_utils Build adbd for recovery 2018-05-24 14:11:11 +09:00
libcutils Add support for /product-services partition. 2018-07-26 16:27:28 +00:00
libdiskconfig
libgrallocusage
libion libion: cleanup logging 2018-03-07 10:56:06 -08:00
libkeyutils Build adbd for recovery 2018-05-24 14:11:11 +09:00
liblog Suppress gnu-zero-variadic-macro-arguments warning. 2018-07-26 14:33:12 -07:00
libmemtrack
libmemunreachable Move libbacktrace off cutils. 2018-07-11 13:55:07 -07:00
libmetricslogger Add support for logging complex events from C++. 2018-05-08 10:27:09 +01:00
libnativebridge bpfmt. 2018-02-16 17:58:14 -08:00
libnativeloader Separate namespace acquisition from library loading 2018-07-12 15:44:35 +02:00
libnetutils
libpackagelistparser Mark as recovery_available: true 2018-05-15 09:47:04 +09:00
libpixelflinger
libprocessgroup Add recovery_available: true to init dependencies 2018-07-24 13:45:50 -07:00
libprocinfo libprocinfo: return error msg instead of printing it. 2018-07-24 14:34:06 -07:00
libqtaguid
libsparse Revert "libsparse: Add sparse typed callback" 2018-07-26 05:23:45 +00:00
libstats Remove a redundant check in statsd socket code. 2018-05-22 16:06:21 -07:00
libsuspend Add force_suspend function 2018-01-19 12:30:39 -08:00
libsync NDK: add availability comments to <sync.h>. 2018-07-27 15:13:33 -07:00
libsystem Mark as recovery_available: true 2018-05-15 09:47:04 +09:00
libsysutils [libsysutils] Modernize codebase by replacing NULL with nullptr 2018-07-24 16:34:27 -07:00
libunwindstack Create lookup table of DEX symbols. 2018-07-20 10:48:59 -07:00
libusbhost Remove urb request size maximum. 2018-02-07 16:12:14 -08:00
libutils libutils: switch Looper's fds to unique_fd. 2018-07-18 18:12:12 -07:00
libvndksupport bpfmt. 2018-02-16 17:58:14 -08:00
libziparchive libziparchive: use fdsan in ZipArchive. 2018-07-18 18:11:46 -07:00
llkd llkd: bootstat: propagate detailed livelock canonical boot reason 2018-04-18 14:02:16 -07:00
lmkd Declare __fake_use_va_args as a variadic function. 2018-07-25 14:36:35 -07:00
logcat add event log range for audioserver 2018-07-10 14:21:38 -07:00
logd [logd] Modernize codebase by replacing NULL with nullptr 2018-07-13 17:50:55 -07:00
logwrapper Build adbd for recovery 2018-05-24 14:11:11 +09:00
mkbootimg Add recovery_available: true to init dependencies 2018-07-24 13:45:50 -07:00
property_service Add recovery_available: true to init dependencies 2018-07-24 13:45:50 -07:00
qemu_pipe Build adbd for recovery 2018-05-24 14:11:11 +09:00
reboot
rootdir Merge "Make /acct have 0555 permissions after mounting" 2018-07-30 23:37:59 +00:00
run-as run-as: Migrate to blueprint 2018-06-27 11:15:23 -07:00
sdcard Remove FUSE logic; it's only a sdcardfs wrapper. 2018-01-12 15:41:55 -07:00
shell_and_utilities Restore tcpdump. 2018-07-27 09:31:01 -07:00
storaged Merge "storaged: lower capabilities in init" 2018-04-12 15:55:26 +00:00
toolbox Revert "Switch to PCRE grep." 2018-07-26 14:52:45 -07:00
trusty Merge "trusty: tipc_test: Read output and test result from ta2ta_ipc_test" 2018-07-26 00:17:54 +00:00
usbd bpfmt. 2018-02-16 17:58:14 -08:00
.clang-format
.clang-format-2 Remove PenaltyExcessCharacter from clang-formats. 2018-07-19 13:50:41 -07:00
.clang-format-4 Remove PenaltyExcessCharacter from clang-formats. 2018-07-19 13:50:41 -07:00
.gitignore
Android.bp
Android.mk
CleanSpec.mk Shared libs are supported in recovery mode 2018-06-10 08:32:24 +09:00
MODULE_LICENSE_APACHE2
NOTICE
OWNERS Move per-file OWNERS directives to their directories. 2018-06-06 11:49:40 +09:00
PREUPLOAD.cfg
platform_tools_tool_version.mk