Power Your Software Testing
with AI and Cloud
Supercharge QA with AI for Faster & Smarter Software Testing

Setting up Android Debug Bridge (ADB) involves downloading the platform tools, configuring your system to recognize ADB, and enabling USB debugging on your Android device. Here's a step-by-step guide:
Step 1: Download Android SDK Platform-Tools (ADB & Fastboot)
ADB is part of the Android SDK Platform-Tools. You can get it in two ways:
Option 1: Download Platform-Tools Only (Recommended)
platform-tools-latest-windows.zipplatform-tools-latest-darwin.zipplatform-tools-latest-linux.zipC:\platform-tools).Option 2: Install via Android Studio (Full SDK)
%USERPROFILE%\AppData\Local\Android\Sdk\platform-tools~/Android/Sdk/platform-toolsStep 2: Add ADB to System PATH (Optional but Recommended)
Adding ADB to PATH allows you to run it from any directory in Command Prompt/Terminal.
Windows
C:\platform-tools).macOS/Linux
~/.bashrc, ~/.zshrc, or ~/.bash_profile).nano ~/.bashrcexport PATH="$PATH:$HOME/Android/Sdk/platform-tools"Ctrl+O, Enter, Ctrl+X) and reload:source ~/.bashrcStep 3: Enable USB Debugging on Your Android Device
On the First Connection
Step 4: Verify ADB is Working
adb devices1234567890abcdef device), ADB is working!Step 5: Basic ADB Commands to Try
| Command | Description |
|---|---|
| adb devices | List connected devices |
| adb shell | Open a shell on the device |
| adb install app.apk | Install an APK |
| adb logcat | View device logs |
| adb reboot bootloader | Reboot into Fastboot mode |
❌ "ADB is not recognized"
👉🏼 Ensure ADB is in PATH or run it from the platform-tools folder.
❌ No devices listed
👉🏼 Check USB Debugging is enabled.
👉🏼 Try a different USB cable/port.
👉🏼 Install proper USB drivers (for Windows, download from Google USB Driver).
❌ "Unauthorized" device
👉🏼 Revoke USB debugging authorizations in Developer Options and reconnect.
Now you can use ADB to debug, sideload apps, or control your Android device from a PC.
KaneAI - Testing Assistant
World’s first AI-Native E2E testing agent.

Get 100 minutes of automation test minutes FREE!!