From 30ee8be82e44d1a8250d1f6e27e71f7d5f24aec5 Mon Sep 17 00:00:00 2001 From: Lena Date: Wed, 1 Jul 2026 00:00:00 +0000 Subject: app: enter the device address as one host:port field The form asked for a host, a pairing port and a connection port as three separate fields. Nothing on screen says which port is which, and the two are only distinguishable if the reader already knows how adb pair works on Android 11+. Take the connection endpoint the way the target prints it, as a single "ip:port" string copied off the Wireless debugging screen, and leave the pairing dialog with just its port and code. Devices.parseAddress() does the split and rejects anything malformed rather than guessing: an unbracketed IPv6 literal would otherwise be split at the wrong colon. Reported on the F-Droid submission (fdroiddata!41394). --- README | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'README') diff --git a/README b/README index 99714ff..b6618cf 100644 --- a/README +++ b/README @@ -34,13 +34,14 @@ binary checksum. For a signed release APK, see "How to build a release APK" below. -On the target device: Settings -> Developer options -> Wireless debugging -> -Pair device with pairing code. Note the pairing port and 6-digit code from -that dialog. Also note the usually different connection port shown on the -parent Wireless debugging screen. - -In the app on the source device: enter the target address, pairing port, -pairing code, and connection port, then tap Pair. Tap the saved device row to +On the target device: Settings -> Developer options -> Wireless debugging. +Note the "IP address & Port" on that screen; it is the device address and +the port is permanent. Then open "Pair device with pairing code" and note +the port from its dialog (a different, short-lived one) and the 6-digit +code. + +In the app on the source device: enter the device address as `ip:port`, +then the pairing port and code, and tap Pair. Tap the saved device row to connect and mirror. -- cgit v1.2.3