1906243017
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 |
||
---|---|---|
.. | ||
include/adbd | ||
auth.cpp | ||
file_sync_service.cpp | ||
file_sync_service.h | ||
framebuffer_service.cpp | ||
framebuffer_service.h | ||
jdwp_service.cpp | ||
main.cpp | ||
mdns.cpp | ||
mdns.h | ||
remount_service.cpp | ||
remount_service.h | ||
services.cpp | ||
set_verity_enable_state_service.cpp | ||
set_verity_enable_state_service.h | ||
shell_service.cpp | ||
shell_service.h | ||
shell_service_test.cpp | ||
usb.cpp |