← Back to Blogs

ADB - Android Debug Bridge

Your command-line gateway to any Android device

1 min read

ADB (Android Debug Bridge) is a command-line tool that lets you communicate with an Android device or emulator. Whether you're pushing files, reading logs, running shell commands, or installing apps, ADB is the tool you'll reach for constantly in Android development and AOSP work.

How ADB Works

ADB Architecture

  Your Computer                  Android Device
  ┌───────────────┐              ┌───────────────┐
  │  adb client   │   USB / TCP  │   adbd        │
  │  (your shell) │◄────────────►│  (adb daemon) │
  └───────┬───────┘              └───────────────┘
          │
  ┌───────▼───────┐
  │  adb server   │  ← runs on your machine (port 5037)
  │               │  ← manages device connections
  └───────────────┘

The ADB client (your shell) talks to the ADB server running locally on port 5037. The server manages connections to one or more devices, each running adbd (ADB daemon). Communication happens over USB or TCP/IP.

Essential ADB Commands

Useful ADB Shell Commands

ADB Over Wi-Fi (Wireless)

Tip: Use 'adb -s <serial>' to target a specific device when multiple are connected. Get serials from 'adb devices'. Alias it in your shell profile for convenience.