Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Install ADB and Fastboot

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

ADB (Android Debug Bridge) and Fastboot are command-line tools that let you communicate with an Android device from your computer. They are essential for unlocking bootloaders, flashing custom recoveries, sideloading OTA updates, and debugging apps. This guide walks you through installing them on Windows, macOS, and Linux. You’ll need a computer, a USB cable, and an Android device with USB debugging enabled (for ADB) or a device in fastboot mode (for Fastboot).

What You'll Need

  • A computer running Windows, macOS, or Linux
  • An Android device with a USB cable
  • For ADB: USB debugging enabled on your device (Settings > Developer Options > USB debugging). If Developer Options are hidden, go to Settings > About phone and tap “Build number” seven times.
  • For Fastboot: Your device must be able to boot into fastboot/bootloader mode (usually by holding Power + Volume Down, but this varies by manufacturer).
  • Internet connection to download the platform tools.

Step-by-Step

  1. Download the official platform tools. Go to the Android developer website (developer.android.com/studio/releases/platform-tools) and download the ZIP file for your operating system (Windows, macOS, or Linux). Do not download from third-party sites—stick to the official source to avoid malware.
  2. Extract the ZIP file. Right-click the downloaded ZIP and choose “Extract All” (Windows) or double-click to unzip (macOS). On Linux, use your archive manager or run unzip platform-tools-latest-linux.zip in a terminal. This creates a folder named platform-tools.
  3. Move the folder to a convenient location (optional but recommended). For example, on Windows, move it to C:\platform-tools (or keep it in your Downloads folder). On macOS/Linux, you can place it in your home directory, e.g., ~/platform-tools.
  4. Open a command prompt or terminal in that folder.
    • Windows: Hold Shift and right-click inside the platform-tools folder, then choose “Open PowerShell window here” or “Open command window here”. Alternatively, open Command Prompt and type cd C:\platform-tools (adjust path if needed).
    • macOS: Open Terminal, type cd ~/platform-tools (or the path where you placed it).
    • Linux: Open a terminal and navigate to the folder, e.g., cd ~/platform-tools.
  5. Verify ADB works. Type adb version and press Enter. You should see output like “Android Debug Bridge version 1.0.41”. If you get “command not found”, you are not in the right directory or the tools aren’t there.
  6. Verify Fastboot works. Type fastboot --version (or fastboot version on some systems). You should see a version number. If it says “command not found”, check that the file exists in the folder.
  7. Add the tools to your PATH (optional but very useful). This lets you run adb and fastboot from any terminal, not just the platform-tools folder. The steps vary by OS:
    • Windows: Open System Properties > Advanced > Environment Variables. Under “System variables”, find “Path”, edit it, add a new entry with the full path to your platform-tools folder (e.g., C:\platform-tools). Click OK. Restart any open Command Prompt windows.
    • macOS/Linux: Open your shell configuration file (e.g., ~/.bashrc, ~/.zshrc, or ~/.profile) with a text editor and add this line: export PATH=$PATH:/path/to/platform-tools (replace with the actual path). Save, then run source ~/.bashrc (or the appropriate file) to apply changes.
  8. Test ADB with a device. Connect your Android phone via USB, make sure USB debugging is enabled, and accept the RSA fingerprint prompt on your phone. Then run adb devices. You should see your device listed as “device” (not “unauthorized” or “offline”). If it says “unauthorized”, unlock your phone and accept the prompt.
  9. Test Fastboot with a device (optional). Reboot your phone into fastboot mode (usually by turning it off, then holding Power + Volume Down for a few seconds, but check your manufacturer’s instructions). Connect it via USB and run fastboot devices. You should see your device listed with its serial number. If nothing shows, you may need to install a USB driver (Windows) or check your cable/port.

Common Mistakes

  • Downloading from unofficial sources. Many sites offer “ADB installer” bundles that contain outdated or malicious files. Always use the official Google platform tools.
  • Not enabling USB debugging. Without it, ADB will not see your device. Make sure it’s on and that you accept the RSA prompt.
  • Using the wrong USB mode. Your phone may be in “charging only” mode. Switch to “File Transfer” (MTP) mode if ADB doesn’t detect it.
  • Forgetting to add to PATH. If you only run adb from the platform-tools folder, it works, but it’s easy to get “command not found” later. Adding to PATH avoids confusion.
  • On Windows, missing USB drivers. Some devices (especially older ones) need a specific driver. Install the manufacturer’s USB driver or use the generic Google USB driver from the SDK Manager.

Tips

  • Keep the platform-tools folder updated. Google releases updates regularly; check the official page occasionally and replace the folder with the latest ZIP.
  • Use a quality USB cable and a direct USB port on your computer (avoid hubs). Loose connections cause random disconnects.
  • If you’re on Windows, you can right-click the platform-tools folder and select “Open in Terminal” (Windows 11) to get a command prompt there without navigating.
  • For fastboot on Windows, if your device isn’t detected, try installing the Google USB Driver via the Android SDK Manager (from Android Studio) or your device manufacturer’s driver.
  • When using fastboot, be careful: commands like fastboot flash can overwrite partitions. Only use commands you understand, and always back up important data first.

Troubleshooting

If ADB or fastboot doesn’t work as expected, follow these steps in order:

  1. Restart everything. Restart your computer, your phone, and the command prompt. This clears many temporary glitches.
  2. Check the connection. Unplug the USB cable, re-plug it, and make sure the phone is unlocked and on the home screen. Try a different USB port or cable.
  3. Verify USB debugging is on. Go to Settings > Developer Options and toggle USB debugging off and on again. If you see “unauthorized” in adb devices, revoke USB debugging authorizations (in Developer Options) and then reconnect, accepting the prompt again.
  4. Update the platform tools. Download the latest ZIP from the official site and replace your current folder.
  5. On Windows, reinstall the USB driver. Go to Device Manager, find your device (it may show as “Android” or with a yellow warning), right-click, and “Update driver”. Choose “Browse my computer” and point to the usb_driver folder inside the extracted platform-tools (if present) or download the manufacturer’s driver.
  6. If fastboot doesn’t detect the device, check the bootloader mode. Some devices require you to be in “fastboot” mode specifically, not “recovery” or “download” mode. Consult your device’s manual for the correct key combination.
  7. As a last resort, reinstall the tools. Delete the platform-tools folder completely and re-download the ZIP. This fixes corrupted files.

Frequently Asked Questions

Do I need to install ADB and Fastboot separately?

No. They come together in the official “platform-tools” package. You get both adb and fastboot in one download.

Can I install ADB on a Chromebook?

ChromeOS has a built-in Linux environment (if enabled). You can install ADB inside that Linux container using the same steps as Linux, but it requires enabling Linux on your Chromebook first. It’s not officially supported for all Chromebooks, so results may vary.

Why does my device show as “unauthorized” in adb devices?

This means you haven’t accepted the RSA key prompt on your phone. Unlock your phone, look for a dialog asking “Allow USB debugging?”, and tap “Allow”. If it doesn’t appear, revoke USB debugging authorizations in Developer Options and reconnect.

What is the difference between ADB and Fastboot?

ADB works when your Android device is fully booted into the OS (or recovery). Fastboot works when the device is in bootloader/fastboot mode, before the OS loads. Fastboot is used for flashing partitions, while ADB is used for app debugging, file transfer, and shell commands.

Is it safe to use ADB and Fastboot?

Yes, when used correctly. They are official Google tools. However, fastboot commands can modify system partitions, so only use commands you understand. Incorrect flashing can brick your device or void its warranty.

Do I need to root my phone to use ADB?

No. ADB works on stock, unrooted devices as long as USB debugging is enabled. Fastboot also works on unrooted devices, but some fastboot commands (like flashing) may require an unlocked bootloader, which can void your warranty.