Skip to content

Discover the active Wireless ADB port - #167

Open
Avlaak wants to merge 1 commit into
zacharee:masterfrom
Avlaak:master
Open

Discover the active Wireless ADB port#167
Avlaak wants to merge 1 commit into
zacharee:masterfrom
Avlaak:master

Conversation

@Avlaak

@Avlaak Avlaak commented Jul 1, 2026

Copy link
Copy Markdown

Summary

Automatically discover the active Wireless ADB port when Wireless ADB is enabled and display it in the preference summary and switch dialog.

Implementation

  • Discover _adb-tls-connect._tcp. services using Android NSD.
  • Verify that resolved mDNS services belong to the local device.
  • Fall back to a bounded local TCP scan of port 5555 and the dynamic range 33000–47000.
  • Validate discovered ports using an ADB CNXN handshake.
  • Release NSD listeners, sockets, coroutine jobs, and the Wi-Fi multicast lock with the preference lifecycle.
  • Add English and Russian UI strings. Other locales retain the default fallback until Crowdin synchronization.

Testing

  • ./gradlew :app:assembleDebug — passed.
  • ./gradlew :app:testDebugUnitTest — no test sources.
  • Android Lint reports no new feature-specific errors. Four unrelated pre-existing project errors remain.

Use Android NSD and a bounded local ADB handshake scan to detect the dynamic wireless debugging port. Display the result in the preference summary and switch dialog.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant