What You Need
- Android SDK Platform Tools (includes ADB)
- Android Device or Emulator
- USB Cable (for physical devices)
Installation by Platform
macOS
- Homebrew (Recommended)
- Android Studio
The easiest method on macOS:Verify installation:You should see output like
Android Debug Bridge version 1.0.41.Windows
- Android Studio
- Manual SDK Download
- Install Android Studio
- During installation, ensure Android SDK is installed
- Open Settings > System > Environment Variables
-
Add the SDK
platform-toolsfolder to PATH- Typically:
C:\Users\YourUsername\AppData\Local\Android\Sdk\platform-tools
- Typically:
-
Open Command Prompt and verify:
Linux
Using apt (Debian/Ubuntu):Connect Your Device
Physical Android Device
-
Enable USB Debugging:
- Go to Settings > Developer Options
- If “Developer Options” isn’t visible: Go to Settings > About Phone > tap “Build Number” 7 times
- Enable “USB Debugging”
-
Connect via USB:
- Plug your device into your computer with a USB cable
- On your device, you’ll see a prompt asking to allow USB debugging
- Tap “Allow” or “Always allow from this computer”
-
Verify Connection:
You should see your device listed:
Android Emulator
The emulator is simpler—it auto-detects. Just make sure it’s running:OpenTester Configuration
Auto-Detection
OpenTester automatically looks for ADB in:- System PATH
ANDROID_HOMEenvironment variable- Common Android SDK locations
Manual ADB Path
If OpenTester can’t find ADB, manually set the path when installing:- Claude Code
- Environment Variable
Troubleshooting
”adb: command not found”
Problem: ADB is not in your PATH. Solution:-
Find where ADB is installed:
-
Add its directory to PATH by editing
~/.zshrcor~/.bash_profile: -
Reload your shell:
“No devices detected”
Problem: ADB is installed but shows no devices. Solution:-
Verify connection:
-
For physical devices:
- Check that USB debugging is enabled in Settings > Developer Options
- Unplug and replug the USB cable
- You should see an “Allow USB debugging?” prompt on your device—tap “Allow”
-
Restart ADB:
-
Check device permissions (macOS/Linux):
If you see
unauthorized, unplug and replug, then approve the prompt on your device.
”Device offline”
Problem: Device appears as “offline” inadb devices.
Solution:
- Unplug the USB cable
- Wait 5 seconds
- Plug back in
- On your device, approve the USB debugging prompt
- Try again:
adb devices
”Multiple devices detected”
Problem: You have multiple devices and OpenTester doesn’t know which one to use. Solution: OpenTester defaults to the first device. If you need a specific device:ANDROID_DEVICE_ID environment variable if you need to specify which device to use.
Emulator Issues
Emulator won’t start:- Make sure you have enough disk space
- Try restarting Android Studio
- Check that hardware acceleration is enabled in your emulator settings
- Restart the emulator
- Restart ADB:
adb kill-server; adb devices
Verify Complete Setup
Test that everything is working:Setting ANDROID_HOME (Optional)
Many tools expectANDROID_HOME to be set. Add to your shell profile:
macOS/Linux (~/.zshrc or ~/.bash_profile):
