Observed since 20 Oct, 19:14 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Pair an Android 11+ device for wireless ADB by scanning a QR code rendered in your terminal.
Pair an Android 11+ device for wireless ADB by scanning a QR code rendered in your terminal.
This is a Python port of adb-wifi by
saleehk. All credit for the original idea and
JavaScript implementation goes to him.
WIFI:T:ADB;S:<name>;P:<password>;;) directly
in your terminal._adb-tls-pairing._tcp.local mDNS advertisement.adb pair <host>:<port> <password> against the first device it finds.--connect, also discovers _adb-tls-connect._tcp.local
and runs adb connect, so the device shows up in adb devices and is ready
for adb shell, adb install, etc.zeroconf branch is
the last to support 3.8).adb on PATH (or pass --adb /path/to/adb). Install it with the
Android SDK platform-tools.pip install adb-wifi-qr
adb-wifi-qr
The terminal prints a QR code. On the Android device:
The tool detects the device via mDNS and runs adb pair automatically.
Pair only (default — matches the original adb-wifi):
adb-wifi-qr
Pair and auto-connect, so the device immediately shows up in adb devices:
adb-wifi-qr --connect
Wait up to two minutes for the device (default is 60 s):
adb-wifi-qr --timeout 120
Enable debug logging (mDNS events, full subprocess output):
adb-wifi-qr -v
Use a non-default adb binary:
adb-wifi-qr --adb /opt/android-sdk/platform-tools/adb
Combine flags freely:
adb-wifi-qr --connect --timeout 120 -v
| Flag | Default | Description |
|---|---|---|
--timeout SECONDS | 60 | How long to wait for the device to advertise itself. |
--connect | off | After pairing, also run adb connect so the device joins adb devices. |
--adb PATH | adb | Path to the adb binary. |
-v, --verbose | off | Debug logging to stderr. |
--version | – | Print the package version and exit. |
--help | – | Print full help and exit. |
Android 11 introduced wireless debugging. When the user opens Pair device
with QR code, the phone briefly advertises an mDNS service of type
_adb-tls-pairing._tcp.local on the local network. Scanning the QR code tells
the phone which (random) credentials the pairing request will use; the
computer-side adb pair host:port password completes the handshake.
adb-wifi-qr starts the mDNS listener before rendering the QR so the
discovery is already running the moment the user taps Pair device with QR
code — the advert is short-lived.
adb not found. Install Android platform-tools, or pass --adb with the
full path.--timeout 120 if you need more time, or -v to watch
the mDNS events live.adb pair fails. Just re-run adb-wifi-qr — each invocation generates
fresh credentials. The previous QR cannot be reused.git clone https://github.com/matevosashot/adb-wifi-python
cd adb-wifi-python
pip install -e ".[dev]"
pytest
Tests mock the zeroconf and subprocess boundaries, so they do not require a
real Android device or network access.
ISC — see LICENSE.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2.0 | 3 Jun 2026 | 3 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 19:14 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:5878644ddbbd5e1499a30f40cf81ff249ca8d3fe0b199d27cc36d5f155e9165e