Skip to main content

Android Setup

Prerequisites

  • Android SDK installed (via Android Studio or standalone)
  • adb available on your PATH

Enable USB debugging

  1. On your device, go to Settings > About phone
  2. Tap Build number 7 times to enable Developer options
  3. Go to Settings > Developer options
  4. Enable USB debugging
  5. Connect via USB and accept the debugging prompt

Verify

adb devices

Expected output:

List of devices attached
XXXXXXXXX device

Then confirm MobileCLI sees it:

mobilecli devices

Using an emulator

emulator -avd <avd_name>

The emulator appears as a connected device automatically.

Troubleshooting

Device shows as "unauthorized"

Disconnect and reconnect USB. Accept the debugging prompt on the device. If the prompt doesn't appear, revoke USB debugging authorizations in Developer options and reconnect.

Device not detected

  • Check USB drivers (Windows)
  • Try a different cable or port
  • adb kill-server && adb start-server