How to Install Google ADB

Cody Schneider8 min read

Android Debug Bridge, or ADB, is the command-line tool every Android power user should know. It’s your control panel for issuing commands to an Android device from your computer, allowing you to install apps, move files, and access powerful developer features. This guide will walk you through setting up ADB on Windows, macOS, and Linux, step-by-step.

What is ADB, Anyway?

ADB stands for Android Debug Bridge. It's a versatile command-line utility included in Google's Android SDK Platform-Tools. Think of it as a secure tunnel that allows your computer to communicate directly with your Android phone or tablet. Developers use it extensively for debugging apps, but it's also incredibly useful for anyone who wants to modify their device, install apps from outside the Play Store (sideloading), or access system logs.

Here are just a few common things you can do with ADB:

  • Install and uninstall apps: Sideload an APK file directly to your device with a simple command.
  • Transfer files: Push files from your computer to your phone or pull files from your phone to your computer.
  • Reboot your device: Remotely restart your phone into normal mode, recovery mode, or its bootloader.
  • View device logs (logcat): See a real-time stream of system messages, which is invaluable for troubleshooting app crashes.
  • Run shell commands: Access a Unix shell on your device to run advanced commands and modify system settings.

Before You Begin: Enable USB Debugging on Your Device

Before your computer can communicate with your Android device via ADB, you must first enable USB Debugging. This option is hidden within a secret "Developer options" menu that you need to unlock first.

Step 1: Unlock Developer Options

The process is the same on almost all Android devices, though the menu locations might differ slightly.

  1. Open the Settings app on your Android device.
  2. Scroll down and tap on About phone.
  3. Find the entry labeled Build number. On some phones (like Samsung), you might need to tap on "Software information" first to find it.
  4. Tap on Build number seven times in a row. After a few taps, you'll see a small message telling you how many more taps are needed.
  5. After the seventh tap, you'll be asked to enter your phone's lock screen PIN, pattern, or password. Once you do, a message will appear saying, "You are now a developer!"

You have now successfully unlocked the Developer options menu.

Step 2: Turn on USB Debugging

With the hidden menu now visible, you can enable the USB Debugging feature.

  1. Go back to the main Settings menu.
  2. Tap on System, then find and tap on Developer options. (On some devices, "Developer options" might appear at the very bottom of the main Settings screen).
  3. Scroll down until you find the USB debugging toggle and turn it on.
  4. A pop-up will appear, warning you about the security implications of this feature. Read it, and tap OK to confirm.

Your device is now ready to accept ADB commands from an authorized computer.

How to Install ADB on Your Computer

First, you need to download the official Android SDK Platform-Tools package, which contains ADB. It's an essential best practice to only download these tools from the official Android developer website to ensure you’re getting the latest, most secure version.

  1. Go to the official SDK Platform-Tools download page.
  2. Download the package for your specific operating system: Windows, macOS, or Linux.
  3. Accept the terms and conditions to start the download. It will be saved as a .zip file.

Once downloaded, follow the specific instructions below for your operating system.

Setting Up ADB on Windows

The most important part of the Windows setup is adding ADB to your system's "Path," which allows you to run the `adb` command from any directory in the Command Prompt.

Step 1: Extract the Platform-Tools

Extract the contents of the downloaded .zip file. To keep things clean and simple, it's recommended to move the extracted folder - which should be named platform-tools - to a memorable location. A great choice is directly on your root C: drive, so the path would be C:\platform-tools.

Step 2: Add ADB to your System Environment Variables

This sounds technical, but it’s straightforward. By adding the platform-tools folder directory to your PATH, Windows will know where to find the ADB executable (`adb.exe`) no matter where you open a command line.

  1. In the Windows search bar, type env and select Edit the system environment variables.
  2. In the System Properties window that opens, click the Environment Variables... button.
  3. In the new window, under the "System variables" section (the bottom box), find and double-click on the variable named Path.
  4. Click the New button and paste the full path to the platform-tools folder you created in the step above. For example: C:\platform-tools.
  5. Click OK on all the windows to close them and save your changes.

Step 3: Verify the Installation

To make sure everything is working, open a new Command Prompt or PowerShell window (the changes won’t affect already-open windows). Type the following command and press Enter:

adb version

If the installation was successful, you'll see information about the Android Debug Bridge version and its installation path. You're all set!

Setting Up ADB on macOS

The process on a Mac is similar, but instead of editing system variables through a GUI, you'll edit a configuration file for the Terminal.

Step 1: Extract the Platform-Tools

Unzip the downloaded file. A good place to store the platform-tools folder is in your user's Home directory. You can easily get there by opening Finder and pressing Command+Shift+H.

Step 2: Add ADB to your Shell Profile

Modern versions of macOS use Zsh as the default shell, which has a configuration file called .zshrc. You'll need to add the platform-tools path here.

  1. Open the Terminal app (you can find it in Applications/Utilities or by using Spotlight search).
  2. Type the following command to open the Zsh configuration file in a simple text editor called Nano:

nano ~/.zshrc

  1. Use the arrow keys to go to the bottom of the file and add this line. This tells the Terminal where to find the ADB executables. Remember to replace 'YourUsername' with your actual macOS username:

export PATH=$PATH:/Users/YourUsername/platform-tools/

  1. Press Ctrl+O (Write Out) and then Enter to save the changes. Then press Ctrl+X to exit the Nano editor.
  2. Finally, to apply the changes to your current Terminal session, run:

source ~/.zshrc

Step 3: Verify the Installation

In the same Terminal window, type adb version. You should see the version details, confirming the setup was a success.

Setting Up ADB on Linux

Linux users have two options: installing from the official repositories (easier) or setting it up manually (giving you the absolute latest version).

Method 1: Install Using a Package Manager (Recommended)

For Ubuntu/Debian-based distributions, this is the quickest way. It handles all the path configuration for you automatically.

  1. Open a terminal window.
  2. Update your package list:

sudo apt update

  1. Install the platform-tools package:

sudo apt install android-sdk-platform-tools

Method 2: Manual Installation

If you prefer having the latest version directly from Google, follow the same manual steps as macOS. The key difference is that on many Linux distributions (like Ubuntu), the default shell is Bash, so you'll edit the .bashrc file instead of .zshrc.

  1. Extract the downloaded platform-tools.zip to your Home directory.
  2. Open your shell's configuration file in Nano:

nano ~/.bashrc

  1. Add the path to the end of the file. Replace 'YourUsername':

export PATH=$PATH:/home/YourUsername/platform-tools/

  1. Save (Ctrl+O) and Exit (Ctrl+X).
  2. Apply the changes:

source ~/.bashrc

Step 3: Verify the Installation

To confirm, type adb version into your terminal. A successful readout of the version info means you're good to go.

Testing the Connection to Your Device

Now that ADB is installed, it’s time to connect your phone and confirm it's visible to your computer.

  1. Connect your Android device to your computer using a high-quality USB cable.
  2. On your phone, a prompt labeled Allow USB debugging? will appear. This is your phone confirming that you trust the computer you've connected to.
  3. Check the box for Always allow from this computer to avoid this pop-up every time, and then tap Allow.
  4. On your computer, open a Command Prompt or Terminal window and run the following command:

adb devices

You should see an output that lists your device's serial number followed by the word device. This confirms a successful connection. If it says unauthorized, you may have denied the prompt on your phone - unplug and replug the device to try again. If the list is empty, try a different USB cable or port.

Final Thoughts

Installing ADB is a one-time setup that unlocks a massive amount of control over your Android device. By making the platform tools accessible from your system path, you've streamlined the process for running commands, saving you from navigating to the same folder repeatedly and opening the door to easier troubleshooting and customization.

Just as ADB gives you direct, powerful access to your mobile device's underlying system, we built Graphed to give you the same kind of effortless control over your business data. Instead of spending hours digging through different platforms or wrestling with complicated reporting tools, you can simply ask for what you need in plain English and get live dashboards in seconds. It allows anyone on your team, technical or not, to get the insights they need to do their job more effectively.

Related Articles

How to Connect Facebook to Google Data Studio: The Complete Guide for 2026

Connecting Facebook Ads to Google Data Studio (now called Looker Studio) has become essential for digital marketers who want to create comprehensive, visually appealing reports that go beyond the basic analytics provided by Facebook's native Ads Manager. If you're struggling with fragmented reporting across multiple platforms or spending too much time manually exporting data, this guide will show you exactly how to streamline your Facebook advertising analytics.

Appsflyer vs Mixpanel​: Complete 2026 Comparison Guide

The difference between AppsFlyer and Mixpanel isn't just about features—it's about understanding two fundamentally different approaches to data that can make or break your growth strategy. One tracks how users find you, the other reveals what they do once they arrive. Most companies need insights from both worlds, but knowing where to start can save you months of implementation headaches and thousands in wasted budget.