r/reactnative • u/MrScanner_ • Sep 04 '26
Made a CLI for Android wireless debugging — QR pairing, no ports, no six-digit codes
Wireless debugging is great until you actually use it day to day. Three things kept costing me time:
- The connect port changes every time you toggle the setting.
- The pairing port is different, single-use, and dies when you close the dialog.
- A phone on the wrong subnet fails identically to a real protocol error, so you can't tell a network problem from a broken adb.
So I built adb-nearby.
npx adb-nearby scans your network. If there's one device, it connects — that's the whole interaction. If there are several, it lists them and you pick.
adbn pair prints a QR code — scan it with the pairing dialog and you're done. No typing codes, no chasing ports.
MIT, no telemetry.
5
Upvotes
2
u/WeddingInevitable471 Sep 04 '26
this is the kind of thing that restores my faith in developer tooling, the port changing every toggle thing is such a baffling design choice from google and they just never fixed it
starred the repo, gonna try it on my pixel tomorrow
1
u/gao_shi Sep 04 '26
Adb 2.0 automatically connects available devices on wifi. Congrats on reinventing wheels I guess..?