diff options
| author | Lena <lena@omega> | 2026-07-01 00:00:00 +0000 |
|---|---|---|
| committer | Lena <lena@omega> | 2026-07-01 00:00:00 +0000 |
| commit | 30ee8be82e44d1a8250d1f6e27e71f7d5f24aec5 (patch) | |
| tree | ef45988151ad217ecf2fcc81875b43e334e3aa85 /app/src/main/res/values/strings.xml | |
| parent | c03f0464c1f834c2f4d8642cbfad322033d368b7 (diff) | |
| download | scrcpy-android-30ee8be82e44d1a8250d1f6e27e71f7d5f24aec5.tar.gz | |
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).
Diffstat (limited to 'app/src/main/res/values/strings.xml')
| -rw-r--r-- | app/src/main/res/values/strings.xml | 13 |
1 files changed, 7 insertions, 6 deletions
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 @@ <?xml version="1.0" encoding="utf-8"?> <resources> <string name="app_name">scrcpy</string> - <string name="host_hint">192.168.1.42</string> + <string name="address_hint">192.168.1.42:41234</string> <string name="pair_port_hint">37123</string> <string name="pair_code_hint">6 digits</string> - <string name="connect_port_hint">41234</string> <string name="pair_help">On the target: Settings > Developer options > Wireless debugging</string> - <string name="label_host">Host / IP address</string> + <string name="label_address">Device address</string> + <string name="sub_address">The “IP address & Port” on the Wireless debugging screen</string> <string name="label_pairing">Pairing port and code</string> - <string name="sub_pairing">From the “Pair device with pairing code” dialog</string> - <string name="label_connect">Connection port</string> - <string name="sub_connect">Shown on the Wireless debugging screen</string> + <string name="sub_pairing">From the “Pair device with pairing code” dialog. Same IP, different port</string> + <string name="bad_address">Enter the device address as 192.168.1.42:41234</string> + <string name="bad_pair_port">Pairing port must be a number from 1 to 65535</string> + <string name="bad_pair_code">Enter the 6-digit pairing code</string> <string name="pair_and_save">Pair and save</string> <string name="pair_a_device">Pair a device</string> <string name="saved_devices">Saved devices</string> |