8bde191202
This patch introduce "service.adb.listen_addrs", a new string type property, while keeping the old properties. The new property added in this patch is used to listen on UNIX domain socket "localfilesystem". "service.adb.listen_addrs" can be used to listen on multiple addresses, such as tcp:5555 and tcp:5556. It is separated by ',' (comma) character. In the process of introducing the new socket type, the method tcp_connect is removed and combined into socket_spec_connect. Without specifying using the new property, adb will try to listen on both tcp and vsock (following the previous implementation). Some examples of the new property value are: - "tcp:5555" - "vsock:5555" - "localfilesystem:/tmp/test" - "tcp:5555,vsock:5555" Bug: 133378083 Test: On master-arc-dev: adb root; setprop service.adb.listen_addrs localfilesystem: <path_to_socket>; adb connect localfilesystem:<path_to_socket>; adb -s localfilesystem:<path_to_socket> shell; inside Chrome OS. Test: On aosp_bluefin: setprop service.adb.listen_addr tcp:5555; adb connect <IP>:5555; adb shell; Test: On aosp_bluefin: setprop service.adb.tcp.port 5555; adb connect <IP>:5555; adb shell; Test: On aosp_bluefin: setprop service.adb.listen_addrs tcp:5555,tcp:6666; adb connect <IP>:5555; adb shell; adb connect <IP>:6666; adb shell; Test: On aosp_bluefin: ./adb_test; Test: On cuttlefish: launch_cvd; adb -s 127.0.0.1:6520 shell; Test: Ran host tests: ./adb_test; ./adb_integration_test_adb; ./adb_integration_test_device; Change-Id: I8289bf0ab3305cf23ce5695ffba46845d58ef6bb |
||
---|---|---|
.. | ||
apex | ||
client | ||
daemon | ||
fastdeploy | ||
fdevent | ||
sysdeps | ||
tools | ||
.clang-format | ||
adb.bash | ||
adb.cpp | ||
adb.h | ||
adb_auth.h | ||
adb_integration_test_adb.xml | ||
adb_integration_test_device.xml | ||
adb_io.cpp | ||
adb_io.h | ||
adb_io_test.cpp | ||
adb_listeners.cpp | ||
adb_listeners.h | ||
adb_listeners_test.cpp | ||
adb_mdns.h | ||
adb_trace.cpp | ||
adb_trace.h | ||
adb_unique_fd.cpp | ||
adb_unique_fd.h | ||
adb_utils.cpp | ||
adb_utils.h | ||
adb_utils_test.cpp | ||
Android.bp | ||
benchmark_device.py | ||
bugreport_test.cpp | ||
file_sync_protocol.h | ||
MODULE_LICENSE_APACHE2 | ||
NOTICE | ||
OVERVIEW.TXT | ||
OWNERS | ||
protocol.txt | ||
security_log_tags.h | ||
services.cpp | ||
services.h | ||
SERVICES.TXT | ||
shell_protocol.h | ||
shell_service_protocol.cpp | ||
shell_service_protocol_test.cpp | ||
socket.h | ||
socket_spec.cpp | ||
socket_spec.h | ||
socket_spec_test.cpp | ||
socket_test.cpp | ||
sockets.cpp | ||
sockets.dia | ||
SYNC.TXT | ||
sysdeps.h | ||
sysdeps_test.cpp | ||
sysdeps_unix.cpp | ||
sysdeps_win32.cpp | ||
sysdeps_win32_test.cpp | ||
test_adb.py | ||
test_device.py | ||
trace.sh | ||
transport.cpp | ||
transport.h | ||
transport_benchmark.cpp | ||
transport_fd.cpp | ||
transport_local.cpp | ||
transport_test.cpp | ||
transport_usb.cpp | ||
types.cpp | ||
types.h | ||
types_test.cpp | ||
usb.h |