Android Setup
Prerequisites
- Android SDK installed (via Android Studio or standalone)
adbavailable on your PATH
Enable USB debugging
- On your device, go to Settings > About phone
- Tap Build number 7 times to enable Developer options
- Go to Settings > Developer options
- Enable USB debugging
- 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