adbd opened TCP 5555 on 0.0.0.0 and tcp:5037 on 127.0.0.1 on every panel.
Rockchip's 0015 android-tools patch enables the TCP listener whenever USB is
up, and S50usbdevice starts adbd with no arguments.
Board patch 0015 adds android-tools-patches/0017-no-adb-tcp-listener.patch,
which removes both listener calls from the device half of adb_main(). USB
stays the only transport.
The same patch makes the adbd build depend on a stamp of its inputs. The old
gate rebuilt adbd only when out/usr/bin/adbd was missing, so a patch-set change
never reached an SDK tree that already held the binary (bfe-core1106-sdk#44).
tests/test-adbd-no-tcp.sh replays the android-tools build on the base tree and
checks the listener calls and the rebuild gate. It compiles nothing; the
unpatched base fails it.
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B1W6qGbdxD3FcrGMcjLNhv