platform_system_core/adb/daemon
Josh Gao 1906243017 adb: move list-forward, kill-forward back into handle_forward_request.
The daemon-side reverse functions depended on handle_forward_request:
move them back instead of duplicating the logic we had in
handle_host_request. Accomplish what we originally wanted to do in this
change by changing the transport argument of handle_forward_request to a
std::function that acquires a transport, either via
acquire_one_transport or immediately returning a value that we already
have.

As a side effect, fix a bug where we would emit spurious errors for host
service requests.

Bug: http://b/112009742
Test: echo "001chost:connect:127.0.0.1:5555" | nc localhost 5037
Test: python test_device.py
Test: python test_adb.py
Change-Id: Iccc555575df6dbd7de10382854c4ea2c6f4beeaa
2018-07-31 15:36:55 -07:00
..
include/adbd adb: Add io size and zero packet to usb_handle 2018-07-17 11:54:38 -07:00
auth.cpp [adb] Modernize codebase by replacing NULL with nullptr 2018-07-13 18:21:00 -07:00
file_sync_service.cpp adb: use adb's unique_fd instead of android::base. 2018-07-25 18:08:45 -07:00
file_sync_service.h adb: use adb's unique_fd instead of android::base. 2018-07-25 18:08:45 -07:00
framebuffer_service.cpp adb: use adb's unique_fd instead of android::base. 2018-07-25 18:08:45 -07:00
framebuffer_service.h adb: use adb's unique_fd instead of android::base. 2018-07-25 18:08:45 -07:00
jdwp_service.cpp adb: split daemon services out of service_to_fd. 2018-07-25 18:49:37 -07:00
main.cpp adbd: turn on fdsan warnings. 2018-07-25 18:49:37 -07:00
mdns.cpp adb: kill adb_thread_{create, join, detach, exit}. 2017-04-12 17:12:32 -07:00
mdns.h Make ADBD announce its presence over mDNS 2017-03-07 14:42:06 -08:00
remount_service.cpp adb: Correctly detect deduplicated ext4 partitions. 2018-07-30 16:08:29 -07:00
remount_service.h adb: use adb's unique_fd instead of android::base. 2018-07-25 18:08:45 -07:00
services.cpp adb: move list-forward, kill-forward back into handle_forward_request. 2018-07-31 15:36:55 -07:00
set_verity_enable_state_service.cpp adb: use WriteFdExactly when no format 2018-07-27 10:53:54 -07:00
set_verity_enable_state_service.h adb: use adb's unique_fd instead of android::base. 2018-07-25 18:08:45 -07:00
shell_service.cpp adb: split daemon services out of service_to_fd. 2018-07-25 18:49:37 -07:00
shell_service.h adb: split daemon services out of service_to_fd. 2018-07-25 18:49:37 -07:00
shell_service_test.cpp adb: split daemon services out of service_to_fd. 2018-07-25 18:49:37 -07:00
usb.cpp Merge changes I31e444f3,If07ff05f,If3ba190d 2018-07-17 22:35:36 +00:00