Repository navigation
6.4.0: Android open ports for TCP from the tunnel (#225) - #226
Conversation
…r listens (adb 5555, ssh 2222 in the camex app; o= in the link) (#225)
PR Summary by Qodo6.4.0: Android open ports for TCP from the tunnel (#225)
AI Description
Merge Risk
|
Code Review by Qodo
1.
|
…x app opts in), the link page splits on ASCII blanks only, the e2e fails without a listener on the open port, decode keeps its comment
|
The review of 60f03fe, all four fixed in bbfc474:
Also run: |
Closes #225.
Since #187 the Android library let a new TCP connection from the tunnel through only to the app's own web port. A TV box with the camex app had no web port, so another client could reach it neither over adb nor over ssh:
Connection refused, and the app loggedTCP from the tunnel refused … not this app's web port.open_ports, labelledOpen ports (TCP from the tunnel). It holds up to 16 ports split by commas or blanks. A new connection to a listed port passes whoever listens there, because adbd and an ssh app are not the app's own sockets. The web port keeps its owner check even when it is listed. Other ports are still refused. An app that does not set the key opens none, as before. The list goes to the JNI gate with each start, not into camex's command line: camex on Linux has no gate.5555, 2222, for adb over the network and SimpleSSH and similar (an app cannot listen below 1024). Empty closes all of them.o=5555,2222, checked and shown by the link's page as well. An emptyo=closes all ports.android.md(the field, the link'so) andandroid-library.md(the value, the gate, a note onclient_isolationand adb).weak_name = yesfor its short network name, which a server refuses without it since 5.0.Checked locally:
gradle testReleaseUnitTest lintDebug assembleRelease, and the native build with-Werror.docker/test-connect-page.shpasses.tests/android/tunnel-e2e.sh 34: 18 passed, 0 failed. Open port 8083 with the shell's nc listening is reached; the app's other port 8081 and port 8082 (the web port, with another process listening) are still refused.adbdon 5555 is reached and other ports are refused;o=8099%2C5555fills the field, and Save stores it;o=closes 5555 after the next start.6.4.0: a new setting (MINOR).