platform_system_core/adb
Josh Gao 6519ad6355 adb: defer acknowledgement of pushed files until the end.
Previously, we were waiting for the other end to respond after every
file sent, which results in massive slowdown when there's any amount of
latency on the transport.

This improves performance on a cuttlefish instance with ~7ms RTT from:

    system/: 2037 files pushed, 0 skipped. 2.8 MB/s (762803979 bytes in 262.964s)

to:

    system/: 2037 files pushed, 0 skipped. 11.9 MB/s (762803979 bytes in 61.278s)

Bug: https://issuetracker.google.com/150827486
Test: ./test_device.py
Change-Id: I3a0c893faa5d455cc6ccbc86915a17e1b5abbfbe
(cherry picked from commit 64ff82ba68)
2020-03-09 18:57:15 -07:00
..
apex Mark updatable APEXes 2020-02-24 18:39:23 +09:00
client adb: defer acknowledgement of pushed files until the end. 2020-03-09 18:57:15 -07:00
crypto Remove pairing_auth, pairing_connection from recovery. 2020-02-28 19:02:28 +00:00
daemon Reland "adb: turn CHECKs into an error + transport restart." 2020-03-02 22:59:54 -08:00
fastdeploy adbd: remove static dependency on libcutils. 2020-02-24 17:58:06 -08:00
fdevent [adbwifi] Add adbwifi_libs, TLS connection, and MDNS implementation. 2020-02-21 21:06:40 +00:00
libs adbd: remove static dependency on libcutils. 2020-02-24 17:58:06 -08:00
pairing_auth Remove pairing_auth, pairing_connection from recovery. 2020-02-28 19:02:28 +00:00
pairing_connection Remove pairing_auth, pairing_connection from recovery. 2020-02-28 19:02:28 +00:00
proto [adbwifi] Add adb protos. 2020-02-11 20:49:15 -08:00
sysdeps Allow the adb server to bind on ::1 2019-11-07 08:32:01 -08:00
tls Remove pairing_auth, pairing_connection from recovery. 2020-02-28 19:02:28 +00:00
tools Add stub code to read MS OS 2.0 descriptors. 2019-09-06 14:45:11 -07:00
.clang-format
adb.bash
adb.cpp adbd: add runtime-configurable logging. 2020-03-02 12:44:54 -08:00
adb.h [adbwifi] Add A_STLS command. 2020-02-21 21:07:13 +00:00
adb_auth.h [adbwifi] Add A_STLS command. 2020-02-21 21:07:13 +00:00
adb_integration_test_adb.xml
adb_integration_test_device.xml
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_listeners_test.cpp adb: move fdevent to its own folder. 2019-07-08 14:37:27 -07:00
adb_mdns.h add a version TXT record to adb secure mdns services 2020-02-18 05:13:06 +00:00
adb_trace.cpp Incremental installations in adb, client/host side. 2020-02-19 08:01:06 -08:00
adb_trace.h adbd: remove static dependency on libcutils. 2020-02-24 17:58:06 -08:00
adb_unique_fd.cpp
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 Allow overriding the log path. 2019-07-30 12:26:31 -07:00
adb_utils.h [adb] Use STL for ParseUInt() implementation 2019-08-02 11:33:41 -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
adb_wifi.h [adbwifi] Add adbwifi_libs, TLS connection, and MDNS implementation. 2020-02-21 21:06:40 +00:00
Android.bp adbd: add runtime-configurable logging. 2020-03-02 12:44:54 -08: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
file_sync_protocol.h adb: add ls_v2. 2019-08-12 13:46:34 -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
OWNERS
protocol.txt [adbwifi] Add A_STLS command. 2020-02-21 21:07:13 +00:00
security_log_tags.h
services.cpp [adbwifi] Add adbwifi_libs, TLS connection, and MDNS implementation. 2020-02-21 21:06:40 +00:00
services.h Support adb rescue wipe command 2019-04-29 15:21:50 -07:00
SERVICES.TXT
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
SOCKET-ACTIVATION.txt Revert "Revert "Support socket activation of adb server"" 2019-12-11 08:20:20 +00:00
socket.h adb: move fdevent to its own folder. 2019-07-08 14:37:27 -07:00
socket_spec.cpp Merge "Enable "localfilesystem" UNIX domain socket for ADB." 2019-12-18 05:34:30 +00:00
socket_spec.h Enable "localfilesystem" UNIX domain socket for ADB. 2019-12-04 10:05:05 +09:00
socket_spec_test.cpp Enable "localfilesystem" UNIX domain socket for ADB. 2019-12-04 10:05:05 +09:00
socket_test.cpp adb: move fdevent to its own folder. 2019-07-08 14:37:27 -07:00
sockets.cpp Enable "localfilesystem" UNIX domain socket for ADB. 2019-12-04 10:05:05 +09:00
sockets.dia
SYNC.TXT
sysdeps.h [adbwifi] Add adbwifi_libs, TLS connection, and MDNS implementation. 2020-02-21 21:06:40 +00:00
sysdeps_test.cpp adb: win32: silence wine test failure. 2019-07-16 15:22:51 -07:00
sysdeps_unix.cpp Incremental installations in adb, client/host side. 2020-02-19 08:01:06 -08:00
sysdeps_win32.cpp [adbwifi] Add adbwifi_libs, TLS connection, and MDNS implementation. 2020-02-21 21:06:40 +00: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 adb: don't hardcode ports in test_adb. 2020-03-02 12:44:50 -08:00
test_device.py adbd: add a perfunctory abb test. 2020-02-07 15:59:49 -08:00
trace.sh
transport.cpp [adbwifi] Add A_STLS command. 2020-02-21 21:07:13 +00:00
transport.h [adbwifi] Add A_STLS command. 2020-02-21 21:07:13 +00:00
transport_benchmark.cpp Revert "adb: make benchmarks build on the host." 2018-11-13 11:28:29 -08:00
transport_fd.cpp [adbwifi] Add A_STLS command. 2020-02-21 21:07:13 +00:00
transport_local.cpp [adbwifi] Add A_STLS command. 2020-02-21 21:07:13 +00:00
transport_test.cpp adb: move fdevent to its own folder. 2019-07-08 14:37:27 -07:00
transport_usb.cpp [adbwifi] Add A_STLS command. 2020-02-21 21:07:13 +00:00
types.cpp [adb] Optimize adbd's usb reading 2019-11-28 18:24:01 -08:00
types.h adb: fix use after free of atransport. 2019-12-13 13:28:21 -08:00
types_test.cpp [adb] Optimize adbd's usb reading 2019-11-28 18:24:01 -08:00
usb.h adb: make adb reconnect perform a USB reset. 2019-03-28 15:47:44 -07:00