android_system_core/adb
chihhao.chen 8c544b6fd8 Fix non-aio USB read issue for fastbootd
non-aio USB read function was stuck in a loop waiting for more data
because data length parameter is always set 64 for fastbootd commands.
It should be a normal case to get less data than expected
since lengths of these commands are usually less than 64.
Add logic to check this and one more parameter to distinguish
fastbootd from general adbd case.

Bug: 133189029
Test: try various fastbootd commands
Change-Id: I6690324840d78f3f1e04235040301520329976db
Merged-In: I6690324840d78f3f1e04235040301520329976db
2019-05-29 23:10:50 +00:00
..
client Merge "Add deprecation warning to adb backup/restore" 2019-05-10 08:40:50 +00:00
daemon Fix non-aio USB read issue for fastbootd 2019-05-29 23:10:50 +00:00
fastdeploy Clean up copy & paste from frameworks/base/cmds. 2019-05-09 22:05:13 -07:00
sysdeps Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
.clang-format Remove extraneous .clang-format files 2017-03-14 14:06:31 -07:00
adb.bash Adb and fastboot completion supports zsh users. 2018-07-17 14:19:35 +08:00
adb.cpp libbase: add ConsumePrefix/ConsumeSuffix. 2019-05-03 12:49:31 -07:00
adb.h adb: Recognize rescue mode. 2019-04-17 13:47:02 -07:00
adb_auth.h adb: stop using adbkey.pub. 2018-11-15 17:50:57 -08:00
adb_integration_test_adb.xml Add adb integration test to general-tests 2018-08-08 12:08:50 -07:00
adb_integration_test_device.xml Add adb_integration_test_device to general-tests 2018-10-12 13:48:14 -07:00
adb_io.cpp Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
adb_io.h Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
adb_io_test.cpp switch to using android-base/file.h instead of android-base/test_utils.h 2018-11-14 09:35:34 -08:00
adb_listeners.cpp adb: convert more stuff to unique_fd. 2019-01-23 17:11:13 -08:00
adb_listeners.h adb: move all cleanup to a function with defined ordering. 2017-05-09 14:32:47 -07:00
adb_listeners_test.cpp
adb_mdns.h Add mDNS device discovery for adb client 2017-03-07 14:45:51 -08:00
adb_trace.cpp adbd: compile for host. 2019-01-23 12:59:41 -08:00
adb_trace.h adb: don't spew to logcat when tracing is enabled. 2018-02-06 15:55:06 -08:00
adb_unique_fd.cpp adb: actually enable fdsan. 2018-08-06 18:50:10 -07:00
adb_unique_fd.h Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
adb_utils.cpp Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
adb_utils.h Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
adb_utils_test.cpp Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
Android.bp Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
benchmark_device.py adb: add benchmarks for sink/source. 2019-02-28 15:53:48 -08:00
bugreport_test.cpp adb: Avoid extra std::string copies 2019-03-26 12:00:19 -07:00
fdevent.cpp adb: implement fdevent_set_timeout. 2019-01-31 23:36:41 -08:00
fdevent.h adb: implement fdevent_set_timeout. 2019-01-31 23:36:41 -08:00
fdevent_test.cpp adb: implement fdevent_set_timeout. 2019-01-31 23:36:41 -08:00
fdevent_test.h adb: convert more stuff to unique_fd. 2019-01-23 17:11:13 -08:00
file_sync_protocol.h adb: split file_sync_service.h into client and daemon parts. 2018-07-25 18:08:32 -07:00
MODULE_LICENSE_APACHE2
NOTICE Revert "Revert "Revert "adb: append the libwinpthread COPYING to adb's NOTICE.""" 2018-11-29 23:14:02 +00:00
OVERVIEW.TXT adb: fix obsolete documentation. 2018-06-22 13:12:19 -07:00
OWNERS Add OWNERS. 2017-12-07 13:30:03 -08:00
protocol.txt adb: convert Connection to a nonblocking interface. 2018-03-05 13:00:28 -08:00
security_log_tags.h
services.cpp libbase: add ConsumePrefix/ConsumeSuffix. 2019-05-03 12:49:31 -07:00
services.h Support adb rescue wipe command 2019-04-26 10:37:13 -07:00
SERVICES.TXT adb: fix obsolete documentation. 2018-06-22 13:12:19 -07:00
shell_protocol.h Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
shell_service_protocol.cpp Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
shell_service_protocol_test.cpp adb: split shell_service.h into client/daemon/protocol parts. 2018-07-25 18:08:44 -07:00
socket.h adb: convert more stuff to unique_fd. 2019-01-23 17:11:13 -08:00
socket_spec.cpp Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
socket_spec.h adb: attempt to exec newer adb servers on Linux. 2019-03-14 15:41:41 -07:00
socket_spec_test.cpp Combine tcp_connect and socket_spec_connect. 2019-01-17 15:58:41 -08:00
socket_test.cpp adb: don't close sockets before hitting EOF. 2019-01-31 23:36:41 -08:00
sockets.cpp libbase: add ConsumePrefix/ConsumeSuffix. 2019-05-03 12:49:31 -07:00
sockets.dia
SYNC.TXT Fix typos in ADB documentation 2017-11-30 10:57:51 -08:00
sysdeps.h Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
sysdeps_test.cpp adb: fix FdeventTest.invalid_fd on Windows. 2018-03-29 14:24:03 -07:00
sysdeps_unix.cpp Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
sysdeps_win32.cpp Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
sysdeps_win32_test.cpp switch to using android-base/file.h instead of android-base/test_utils.h 2018-11-14 09:35:34 -08:00
test_adb.py Temporarily @ignore test_reconnect 2019-02-20 09:42:49 -08:00
test_device.py adb: don't close sockets before hitting EOF. 2019-01-31 23:36:41 -08:00
trace.sh adb: add script to trace adbd. 2016-12-13 14:31:17 -08:00
transport.cpp adb: Recognize rescue mode. 2019-04-17 13:47:02 -07:00
transport.h adb: make adb reconnect perform a USB reset. 2019-03-28 15:47:44 -07:00
transport_benchmark.cpp Revert "adb: make benchmarks build on the host." 2018-11-13 11:28:29 -08:00
transport_fd.cpp adb: fix NonblockingFdConnection's behavior with large writes. 2018-11-12 20:54:39 -08:00
transport_local.cpp Restrict scanning port range, not emulator count 2019-03-07 12:28:31 +00:00
transport_test.cpp adb: set main thread in transport tests. 2018-10-19 15:38:10 -07:00
transport_usb.cpp adb: make adb reconnect perform a USB reset. 2019-03-28 15:47:44 -07:00
types.h adb: defuse CHECK on IOVector::append of an empty block. 2019-04-03 12:56:22 -07:00
types_test.cpp Adapt to switch to libc++ for Windows 2018-09-21 10:46:25 -07:00
usb.h adb: make adb reconnect perform a USB reset. 2019-03-28 15:47:44 -07:00