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). --- app/src/main/res/values/strings.xml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'app/src/main/res/values') diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index a9a552c..d7c45ac 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,16 +1,17 @@ scrcpy - 192.168.1.42 + 192.168.1.42:41234 37123 6 digits - 41234 On the target: Settings > Developer options > Wireless debugging - Host / IP address + Device address + The “IP address & Port” on the Wireless debugging screen Pairing port and code - From the “Pair device with pairing code” dialog - Connection port - Shown on the Wireless debugging screen + From the “Pair device with pairing code” dialog. Same IP, different port + Enter the device address as 192.168.1.42:41234 + Pairing port must be a number from 1 to 65535 + Enter the 6-digit pairing code Pair and save Pair a device Saved devices -- cgit v1.2.3