android_system_core/adb
Lingfeng Yang 1197952e71 Fix adb flakiness on reboot
bug: 31950237

There are two lists of active ADB transports (devices),
and with the emulator, they can go out of sync.

This CL more conservatively checks if there are no
transports in either list before commiting to
register a new transport for the emulator.

(cherry picked from commit edaedfd5da)

Change-Id: Id1201dc59c70825881dad80925c2e5bcc13dbd5e
2016-10-11 23:19:51 +00:00
..
client Merge "Ignore setsid error in some cases." 2016-09-22 06:28:51 +00:00
daemon Switch adb to <android-base/properties.h>. 2016-09-26 13:14:14 -07:00
sysdeps Use <condition_variable> and <mutex.h> from MinGW 2016-09-06 13:49:07 -07:00
.clang-format
Android.mk Merge "adb: split up adb_auth.cpp." 2016-10-06 19:37:31 +00:00
CPPLINT.cfg
MODULE_LICENSE_APACHE2
NOTICE
OVERVIEW.TXT
SERVICES.TXT
SYNC.TXT
adb.cpp adb: rationalize types. 2016-10-06 14:50:02 -07:00
adb.h Fix adb flakiness on reboot 2016-10-11 23:19:51 +00:00
adb_auth.h adb: rationalize types. 2016-10-06 14:50:02 -07:00
adb_auth_host.cpp adb: rationalize types. 2016-10-06 14:50:02 -07:00
adb_client.cpp Fix adb. 2016-09-01 20:48:45 -07:00
adb_client.h adb: allow use of arbitrary socket specs for command socket. 2016-09-01 15:49:06 -07:00
adb_io.cpp
adb_io.h
adb_io_test.cpp
adb_listeners.cpp adb: factor out socket specification. 2016-08-25 17:12:26 -07:00
adb_listeners.h adb: support forwarding TCP port 0. 2016-05-09 16:55:10 -07:00
adb_listeners_test.cpp adb: support forwarding TCP port 0. 2016-05-09 16:55:10 -07:00
adb_trace.cpp Switch adb to <android-base/properties.h>. 2016-09-26 13:14:14 -07:00
adb_trace.h Fix misc-macro-parentheses warnings in adb, debuggerd, libbacktrace. 2016-05-18 15:53:15 -07:00
adb_unique_fd.h adb: extract the adb-specific unique_fd out into its own header. 2016-09-01 15:49:06 -07:00
adb_utils.cpp adb: kill adb_mutex_t, adb_cond_t. 2016-09-21 17:22:22 -07:00
adb_utils.h adb: extract the adb-specific unique_fd out into its own header. 2016-09-01 15:49:06 -07:00
adb_utils_test.cpp Merge changes I1d398d19,I8f20b3cd 2016-08-01 21:54:00 +00:00
adbd_auth.cpp adb: rationalize types. 2016-10-06 14:50:02 -07:00
bugreport.cpp DO NOT MERGE: Split 'generating' and 'pulling' in 2 messages. 2016-08-30 13:06:37 -07:00
bugreport.h DO NOT MERGE: Removed extra 'pulling file' message. 2016-08-30 13:06:30 -07:00
bugreport_test.cpp DO NOT MERGE: Split 'generating' and 'pulling' in 2 messages. 2016-08-30 13:06:37 -07:00
commandline.cpp Improve "adb help" output. 2016-09-28 15:29:19 -07:00
commandline.h DO NOT MERGE: Refactored functions that copy sdout and stderr to strings to use a callback. 2016-08-30 13:06:26 -07:00
console.cpp adb: add helper to get the ~/.android directory. 2016-09-01 15:43:22 -07:00
diagnose_usb.cpp
diagnose_usb.h
fdevent.cpp Fix google-explicit-constructor warnings. 2016-04-29 15:44:04 -07:00
fdevent.h
fdevent_test.cpp
fdevent_test.h adb: fix socket tests. 2016-04-25 19:51:58 -07:00
file_sync_client.cpp adb: let `adb push` follow symlinks. 2016-09-14 17:08:22 -07:00
file_sync_service.cpp liblog: adb: move security interfaces to private 2016-10-10 15:15:45 +00:00
file_sync_service.h
framebuffer_service.cpp
jdwp_service.cpp adb: extract the adb-specific unique_fd out into its own header. 2016-09-01 15:49:06 -07:00
line_printer.cpp adb: add missing newline when printing transfer rate. 2016-08-04 14:56:53 -07:00
line_printer.h
protocol.txt Precise command constants on adb/protoxol.txt 2016-08-30 01:30:12 +02:00
remount_service.cpp Switch adb to <android-base/properties.h>. 2016-09-26 13:14:14 -07:00
remount_service.h
security_log_tags.h
services.cpp Switch adb to <android-base/properties.h>. 2016-09-26 13:14:14 -07:00
services.h
set_verity_enable_state_service.cpp Switch adb to <android-base/properties.h>. 2016-09-26 13:14:14 -07:00
shell_service.cpp liblog: adb: move security interfaces to private 2016-10-10 15:15:45 +00:00
shell_service.h
shell_service_protocol.cpp
shell_service_protocol_test.cpp
shell_service_test.cpp
socket.h
socket_spec.cpp adb: parse tcp socket specs with base::ParseNetAddress. 2016-09-20 13:55:43 -07:00
socket_spec.h adb: parse tcp socket specs with base::ParseNetAddress. 2016-09-20 13:55:43 -07:00
socket_spec_test.cpp adb: parse tcp socket specs with base::ParseNetAddress. 2016-09-20 13:55:43 -07:00
socket_test.cpp adb: fix host-side serial number parsing for IPv6. 2016-09-21 13:00:32 -07:00
sockets.cpp adb: rationalize types. 2016-10-06 14:50:02 -07:00
sockets.dia
sysdeps.h adb: kill adb_mutex_t, adb_cond_t. 2016-09-21 17:22:22 -07:00
sysdeps_test.cpp adb: kill adb_mutex_t, adb_cond_t. 2016-09-21 17:22:22 -07:00
sysdeps_unix.cpp
sysdeps_win32.cpp adb: kill adb_mutex_t, adb_cond_t. 2016-09-21 17:22:22 -07:00
sysdeps_win32_test.cpp
test_adb.py libcutils: try all addresses in socket_network_client_timeout. 2016-09-01 15:56:58 -07:00
test_device.py adb: let `adb push` follow symlinks. 2016-09-14 17:08:22 -07:00
transport.cpp adb: rationalize types. 2016-10-06 14:50:02 -07:00
transport.h adb: rationalize types. 2016-10-06 14:50:02 -07:00
transport_local.cpp Fix adb flakiness on reboot 2016-10-11 23:19:51 +00:00
transport_test.cpp adb: kill adb_mutex_t, adb_cond_t. 2016-09-21 17:22:22 -07:00
transport_usb.cpp Remove useless arguments from is_adb_interface. 2016-10-10 13:44:00 -07:00
usb_linux.cpp Remove useless arguments from is_adb_interface. 2016-10-10 13:44:00 -07:00
usb_linux_client.cpp Switch adb to <android-base/properties.h>. 2016-09-26 13:14:14 -07:00
usb_osx.cpp Remove useless arguments from is_adb_interface. 2016-10-10 13:44:00 -07:00
usb_windows.cpp Remove useless arguments from is_adb_interface. 2016-10-10 13:44:00 -07:00