Guide

Install adb on Windows, Linux and macOS

Set up Android Debug Bridge on your computer — the prerequisite for every head-unit article on this site — and check that it runs.

BYD LabVerified 4 min read

Difficulty
Easy
Time
10 min
Risk
None

Tested on

Vehicle
BYD Sealion 7 · 2025 · Morocco
Verified

adb (Android Debug Bridge) is the command-line tool that talks to an Android device from your computer. Every lab note on this site and most head-unit guides start with adb shell, so this is the one setup step you cannot skip. This guide installs adb and checks that it runs; connecting it to the car is a separate guide.

Before you start#

  • You need a normal user account plus the ability to edit your own PATH (Windows), sudo (Linux) or Homebrew (macOS, optional). No admin rights are needed for the manual method on any system.
  • The download is 8–16 MB. adb ships inside Google’s SDK Platform Tools zip; you do not need Android Studio.
  • Any release from the last few years does what this site needs. Prefer the current one anyway — it is the only one Google supports. At the time of writing the official zip, winget and Homebrew all give 37.0.1.
  • “On PATH” below means: your terminal finds adb from any folder. If adb version prints a version, it is on PATH.

Windows#

Step 1 — Download and unpack#

Download platform-tools-latest-windows.zip from the official page and extract it. Move the platform-tools folder somewhere permanent, for example C:\platform-tools. Avoid Downloads — you will delete it one day.

Alternative: winget installs the same zip as a portable package and puts it on PATH for you.

Shell
winget install --id Google.PlatformTools --exact

Step 2 — Add it to PATH#

Settings → System → About → Advanced system settingsEnvironment Variables → under User variables select PathEditNewC:\platform-tools → OK. Or from PowerShell:

Shell
$p = [Environment]::GetEnvironmentVariable('Path', 'User'); [Environment]::SetEnvironmentVariable('Path', "$p;C:\platform-tools", 'User')

Close and reopen the terminal — PATH changes only apply to new windows.

Step 3 — Check#

Shell
adb version

Over Wi-Fi (adb connect) no driver is needed on Windows. Over USB, Windows needs a vendor driver before a device shows up; whether and how the head unit exposes USB debugging belongs to the connection guide.

Linux#

Step 1 — Install from your distribution, or the official zip#

Distribution Command Version shipped (checked 26 Aug 2026)
Ubuntu 24.04 sudo apt install adb 34.0.4
Debian 13 sudo apt install adb 34.0.5
Debian 12 sudo apt install adb 29.0.6 — old; use the zip
Fedora sudo dnf install android-tools current
Arch sudo pacman -S android-tools 37.0.0

Distribution packages put adb on PATH for you. For the current Google build instead:

Shell
curl -LO https://dl.google.com/android/repository/platform-tools-latest-linux.zip
unzip platform-tools-latest-linux.zip -d ~/.local
echo 'export PATH="$HOME/.local/platform-tools:$PATH"' >> ~/.bashrc

Use ~/.zshrc if your shell is zsh, then open a new terminal.

Step 2 — USB permissions (USB only)#

Over Wi-Fi nothing else is needed. Over USB, Linux needs a udev rule that lets your user open the device. Debian and Ubuntu’s adb package installs the rules; you only need to be in the plugdev group:

Shell
sudo usermod -aG plugdev $USER

Log out and back in. The zip install ships no udev rules — writing one needs the head unit’s USB vendor ID, which is in the connection guide.

Step 3 — Check#

Shell
adb version

macOS#

Step 1 — Install with Homebrew, or the official zip#

Shell
brew install --cask android-platform-tools

Or manually:

Shell
curl -LO https://dl.google.com/android/repository/platform-tools-latest-darwin.zip
unzip platform-tools-latest-darwin.zip -d ~/.local
echo 'export PATH="$HOME/.local/platform-tools:$PATH"' >> ~/.zshrc

Open a new terminal afterwards. If you downloaded the zip with a browser rather than curl, macOS quarantines it and the first run is blocked with “adb cannot be opened because the developer cannot be verified”. Clear the flag:

Shell
xattr -dr com.apple.quarantine ~/.local/platform-tools

Homebrew installs are not affected.

Step 2 — Check#

Shell
adb version

Check that it runs — all systems#

Shell
adb version
adb devices

adb version from the Windows machine this guide was written on (install path shortened):

Log
Android Debug Bridge version 1.0.41
Version 37.0.0-14910828
Installed as C:\…\platform-tools\adb.exe
Running on Windows 10.0.26200

adb devices starts a background server on first use (you may see * daemon not running; starting now at tcp:5037) and then lists connected devices:

Log
List of devices attached

An empty list is the correct result at this point — nothing is connected yet. Once you connect to the car, one line per device appears, ending in device (ready), unauthorized (accept the prompt on the device) or offline.

If it doesn’t work#

  • adb: command not found or “‘adb’ is not recognized” — PATH was not applied. Open a new terminal. Then where.exe adb (Windows) or which adb (Linux, macOS) shows what the shell found, if anything.
  • adb server version (41) doesn't match this client — two different adb builds on the machine, usually one from Android Studio’s SDK and one from this guide. Run adb kill-server, then make sure PATH lists only the one you want; adb version prints which file is running under Installed as.
  • macOS: “cannot be opened because the developer cannot be verified” — the quarantine flag; see the xattr command above.
  • Linux: no permissions (user in plugdev group; are your udev rules wrong?) — USB only. Add yourself to plugdev and log out and in; with a zip install, add a udev rule for the device.
  • Windows: USB device never appears in adb devices — a driver problem, not an adb problem. Use Wi-Fi, or install the vendor driver described in the connection guide.
  • unauthorized — the device is waiting for you to accept the “Allow USB debugging?” prompt on its screen.

What we tested#

The Windows steps and both outputs above are from a Windows 11 machine (build 26200) running platform-tools 37.0.0 from the official zip, 26 Aug 2026. The Linux and macOS steps are written from the official release page, the Homebrew cask and the distribution package indexes, all checked on 26 Aug 2026 — they have not yet been run by us on a Linux or macOS machine. Connecting to the head unit was not part of this test.