ADB Installation Guide
Complete step-by-step instructions for Windows & Mac
📋 Table of Contents
What is ADB?
ADB (Android Debug Bridge) is a command-line tool that allows you to communicate with Android devices. It's essential for:
- Getting detailed device information (IMEI, Android version, battery status)
- Installing/uninstalling apps
- Debugging applications
- Accessing device shell
- Transferring files
🪟 Windows Installation
Method 1: Platform Tools (Recommended)
Step 1: Download
- Go to: Android Platform Tools
- Click "Download SDK Platform-Tools for Windows"
- Accept terms and download (10-15 MB)
Step 2: Extract Files
- Locate downloaded ZIP file (usually in Downloads)
- Right-click → "Extract All..."
- Choose destination:
C:\platform-tools - Click "Extract"
Step 3: Add to PATH
- Press Windows + S (search)
- Type: "environment variables"
- Click "Edit the system environment variables"
- Click "Environment Variables" button
- In "System variables", find and select "Path"
- Click "Edit" → "New"
- Type:
C:\platform-tools - Click OK on all windows
Step 4: Verify Installation
✅ Expected: You should see "Android Debug Bridge version 1.0.41..."
Method 2: Chocolatey (Alternative)
If you have Chocolatey installed:
🍎 Mac Installation
Method 1: Homebrew (Easiest)
Step 1: Install Homebrew (if needed)
Check if Homebrew is installed:
If not installed, run:
Step 2: Install ADB
Step 3: Verify Installation
✅ Expected: "Android Debug Bridge version 1.0.41..."
Method 2: Manual Installation
Download & Extract
Add to PATH
📱 Enable USB Debugging on Android
Step 1: Enable Developer Options
- Open Settings on your Android device
- Scroll to "About phone" (or "About device")
- Find "Build number"
- Tap "Build number" 7 times rapidly
- Enter PIN/password if prompted
- You'll see: "You are now a developer!"
Step 2: Enable USB Debugging
- Go back to Settings
- Find and tap "Developer options"
- Toggle ON: "Developer options"
- Scroll down and find "USB debugging"
- Toggle ON: "USB debugging"
- Tap OK on the warning dialog
Step 3: Connect & Authorize
- Connect your device to computer via USB cable
- Unlock your device
- On device, you'll see: "Allow USB debugging?"
- ✅ Check "Always allow from this computer"
- Tap "OK" or "Allow"
Step 4: Verify Connection
✅ Expected output: Your device serial number followed by "device"
🔧 Common ADB Commands
Basic Device Information
Advanced Information
🔍 Troubleshooting
"adb is not recognized" (Windows)
Solution:
- Verify ADB location:
C:\platform-tools\adb.exe - Re-add to PATH (see Step 3 above)
- Restart Command Prompt
- Try full path:
C:\platform-tools\adb.exe version
"command not found: adb" (Mac)
Solution:
Device shows "unauthorized"
Solution:
- Disconnect device
- Settings → Developer Options → Revoke USB debugging authorizations
- Reconnect device
- Accept authorization popup
Device not detected
Solutions:
- Try different USB cable (use original if possible)
- Try different USB port (avoid USB hubs)
- Enable "File Transfer" mode on Android
- Install device-specific USB drivers (Windows)
- Restart both device and computer