Skip to content

Festive sale: the best deals in one sheet. See the deals

How to Install ADB on Mac Using Homebrew: A Simple Step-by-Step Guide

Three steps to get ADB on a Mac: install it with Homebrew or Google's zip, check it works, and connect your phone. Every command can be copied, and every link goes to the official source.

A MacBook on a wooden desk with a plant and a mug
  1. Step 1

    Install ADB

    Pick one of the two ways

    Way 1

    With Homebrew

    1

    No Homebrew yet? Open Terminal and run

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    2

    Apple silicon Mac? Then run

    echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile && eval "$(/opt/homebrew/bin/brew shellenv)"
    3

    Install ADB

    brew install --cask android-platform-tools
    or

    Way 2

    With Google's zip

    1

    Download the platform tools

    dl.google.com
    2

    Unzip it to your home folder

    unzip ~/Downloads/platform-tools-latest-darwin.zip -d ~
    3

    Add it to your PATH

    echo 'export PATH="$HOME/platform-tools:$PATH"' >> ~/.zprofile && source ~/.zprofile
  2. Step 2

    Check it works

    Open a new Terminal window and run

    adb version
  3. Step 3

    Connect your phone

    1

    Turn on USB debugging

    Settings > About phone > tap Build number 7 times, then Developer options > USB debugging

    2

    Plug in your phone and run

    adb devices
    3

    Tap Allow on your phone

  4. Update or remove

    Update

    brew upgrade --cask android-platform-tools

    Remove

    brew uninstall --cask android-platform-tools
  5. Official links

    Homebrew

    brew.sh

    SDK Platform Tools

    developer.android.com

    ADB documentation

    developer.android.com

Was this article helpful?

Comments

0

Share your thoughts, questions, or feedback about this guide.

Leave a Comment

0/2000