android_system_core/adb
Spencer Low 142ec75cf8 adb: win32: fix adb emu command
The adb emu command was never working because the socket connection to
the emulator was closed without reading all of the data that the
emulator sent. On Windows, this caused the emulator's recv() call to
error-out, so it never got the command that was sent.

Before settling on this fix, I also experimented changing the arguments
to the socket shutdown() call and that didn't seem to help. I also tried
removing the call to shutdown() and that didn't help. So that should
rule out shutdown() as the problem. One experiment that helped was
delaying before calling adb_close(), but that is of course fragile and
doesn't address the real issue, which is not closing the socket until
the commands have been read.

https://code.google.com/p/android/issues/detail?id=21021

Change-Id: I8fa4d740a2faa2c9922ec50792e16564a94f6eed
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2015-05-06 18:54:08 -07:00
..
tests Implement the ssh(1) escaping rules. 2015-05-05 11:17:03 -07:00
.clang-format Fix clang-format file for correct indent settings. 2015-03-19 13:27:20 -07:00
adb.cpp Give enum types CamelCase names for clarity. 2015-05-05 13:10:43 -07:00
adb.h Give enum types CamelCase names for clarity. 2015-05-05 13:10:43 -07:00
adb_auth.cpp File header cleanup. 2015-03-19 15:32:33 -07:00
adb_auth.h Remove extern "C" barriers to using C++. 2015-04-17 09:47:42 -07:00
adb_auth_client.cpp File header cleanup. 2015-03-19 15:32:33 -07:00
adb_auth_host.cpp adb: win32: fix adb emu command 2015-05-06 18:54:08 -07:00
adb_client.cpp adb: win32: fix adb emu command 2015-05-06 18:54:08 -07:00
adb_client.h adb: win32: fix adb emu command 2015-05-06 18:54:08 -07:00
adb_io.cpp Add WriteFdFmt and clean up more code. 2015-05-01 17:36:46 -07:00
adb_io.h Add WriteFdFmt and clean up more code. 2015-05-01 17:36:46 -07:00
adb_io_test.cpp Add WriteFdFmt and clean up more code. 2015-05-01 17:36:46 -07:00
adb_listeners.cpp Give enum types CamelCase names for clarity. 2015-05-05 13:10:43 -07:00
adb_listeners.h Give enum types CamelCase names for clarity. 2015-05-05 13:10:43 -07:00
adb_main.cpp Include the git sha in the adb version. 2015-05-05 18:04:37 -07:00
adb_trace.h More adb buffer fixes. 2015-05-01 15:55:37 -07:00
adb_utils.cpp More adb buffer fixes. 2015-05-01 15:55:37 -07:00
adb_utils.h More adb buffer fixes. 2015-05-01 15:55:37 -07:00
adb_utils_test.cpp Use ' quoting to escape arguments. 2015-04-17 20:55:04 -07:00
Android.mk adb: win32: fix adb emu command 2015-05-06 18:54:08 -07:00
commandline.cpp adb: win32: fix adb emu command 2015-05-06 18:54:08 -07:00
console.cpp adb: win32: fix adb emu command 2015-05-06 18:54:08 -07:00
CPPLINT.cfg Ignore another stupid lint warning. 2015-02-20 17:19:22 -08:00
fdevent.cpp File header cleanup. 2015-03-19 15:32:33 -07:00
fdevent.h Remove extern "C" barriers to using C++. 2015-04-17 09:47:42 -07:00
file_sync_client.cpp Add some missing 'static's. 2015-05-05 18:26:10 -07:00
file_sync_service.cpp File header cleanup. 2015-03-19 15:32:33 -07:00
file_sync_service.h Fix "adb sync" for devices without vendor and oem. 2015-04-21 10:17:07 -07:00
framebuffer_service.cpp Move adb to C++. 2015-03-09 14:06:11 -07:00
get_my_path_darwin.cpp Move get_my_path_darwin to C++. 2015-04-16 13:24:58 -07:00
get_my_path_linux.cpp Move adb to C++. 2015-03-09 14:06:11 -07:00
get_my_path_windows.cpp Move adb to C++. 2015-03-09 14:06:11 -07:00
jdwp_service.cpp Remove extern "C" barriers to using C++. 2015-04-17 09:47:42 -07:00
MODULE_LICENSE_APACHE2 eclair snapshot 2009-11-12 18:46:23 -08:00
mutex_list.h adb: Cleanup dead code 2013-04-24 21:31:45 -07:00
NOTICE eclair snapshot 2009-11-12 18:46:23 -08:00
OVERVIEW.TXT Fixing spelling errors in adb docs 2010-04-28 11:38:39 -04:00
protocol.txt adb: Add public key authentification 2012-08-23 00:20:06 -07:00
qemu_tracing.cpp Move adb to C++. 2015-03-09 14:06:11 -07:00
qemu_tracing.h Remove extern "C" barriers to using C++. 2015-04-17 09:47:42 -07:00
remount_service.cpp Add WriteFdFmt and clean up more code. 2015-05-01 17:36:46 -07:00
remount_service.h Revert "Revert "adb: support /oem partition"" 2015-03-16 20:05:21 -07:00
services.cpp Simplify adb_thread_create. 2015-05-05 13:41:21 -07:00
SERVICES.TXT adb: implement "adb reverse <local> <remote>" 2014-05-27 16:42:13 +02:00
set_verity_enable_state_service.cpp Add WriteFdFmt and clean up more code. 2015-05-01 17:36:46 -07:00
sockets.cpp Give enum types CamelCase names for clarity. 2015-05-05 13:10:43 -07:00
sockets.dia
SYNC.TXT Adding documentation on the sync part of the adb protocol previously missing. 2014-03-20 20:36:46 +01:00
sysdeps.h _beginthread returns uintptr_t. 2015-05-05 14:34:41 -07:00
sysdeps_win32.cpp adb: win32: fix adb emu command 2015-05-06 18:54:08 -07:00
test_track_devices.cpp Make test_track_devices.cpp output easier to read. 2015-05-04 15:51:50 -07:00
transport.cpp Be tolerant of devices that don't report serials. 2015-05-06 16:48:52 -07:00
transport.h Give enum types CamelCase names for clarity. 2015-05-05 13:10:43 -07:00
transport_local.cpp Simplify adb_thread_create. 2015-05-05 13:41:21 -07:00
transport_test.cpp Add some basic tests to adb. 2015-02-25 10:57:26 -08:00
transport_usb.cpp File header cleanup. 2015-03-19 15:32:33 -07:00
usb_linux.cpp Be tolerant of devices that don't report serials. 2015-05-06 16:48:52 -07:00
usb_linux_client.cpp Add some missing 'static's. 2015-05-05 18:26:10 -07:00
usb_osx.cpp Simplify adb_thread_create. 2015-05-05 13:41:21 -07:00
usb_windows.cpp Simplify adb_thread_create. 2015-05-05 13:41:21 -07:00