Back to browse
GitHub Repository

ADB pair using a QR code from the command line

0 starsShell

Adbqr – ADB pair via QR code from the CLI

by kristjan·Jun 21, 2026·1 point·0 comments

AI Analysis

●●SolidCozyNiche Gem

Terminal-aware QR rendering with Kitty, iTerm2, and block-character fallbacks.

Strengths
  • Runtime terminal capability detection instead of hardcoded terminal name lists.
  • mDNS listening auto-completes the adb pair command without manual entry.
  • Warns about client isolation on public networks where mDNS won't work.
Weaknesses
  • Narrow use case—only matters if you regularly do wireless ADB pairing.
  • Still requires qrencode and adb as external dependencies.
Target Audience

Android developers and power users who do wireless ADB debugging

Similar To

Android Studio · scrcpy

Post Description

I got tired of typing my phone's ADB pairing info, but also don't usually have Android Studio open to display a QR code, so I Clauded up an all-bash (with qrencode installed) command to do it straight from the CLI.

> brew install kristjan/tap/adbqr

All that's needed is a join-network style string written through qrencode for the phone to scan:

> WIFI:T:ADB;S:<service>;P:<pairing-code>;;

For sake of pleasantness, if you're in iTerm2 or a terminal that supports Kitty, it'll print crisp imagery. Otherwise it falls back to character-level blocks. Then the process listens for an mDNS announcement from the phone and runs the `adb pair` command for you.

Last thing I added is from when I tried to run it on a public network with client isolation turned on, so the tool tries to notice warning signs and give you a heads up. It's very basic, so if anyone knows clever ways to detect that kind of setup, I'd love to learn it.

Similar Projects

SaaS●●Solid

AI writes code – humans fix it

Fixes AI code bugs at $49 flat rate; clever arbitrage play, but scaling human QA is the real bottleneck.

Dark HorseSolve My Problem
stasman
843mo ago