flavd is a cross-platform desktop GUI built with Flutter that wraps the
Android Virtual Device (AVD) command-line
tools (avdmanager / emulator), giving you a clean interface for creating and managing Android
emulators without needing the full Android Studio IDE.
| Home screen | Create device |
|---|---|
![]() |
![]() |
| Feature | Description |
|---|---|
| Device list | See all your existing AVDs at a glance. |
| Physical devices | View USB and wirelessly connected physical Android devices. |
| Wireless ADB | Pair and connect to a real phone over Wi-Fi (Android 11+ wireless debugging) — scan a QR code or enter a pairing code; the device connects automatically. |
| QR code pairing | flavd generates a QR code; scan it with Pair device with QR code and the phone is paired and connected in one step. |
| Start / Stop | Launch an emulator or gracefully stop a running one. |
| Headless emulators | Start an emulator without a window, audio or boot animation – from the GUI's start menu or the CLI. |
| CLI | flavd command to list, create, start, wait for, stop and delete emulators from scripts and CI. |
| MCP server | flavd mcp lets AI agents create and boot emulators on demand. |
| Delete | Remove an AVD with a confirmation dialog. |
| Edit devices | Rename an AVD and change its screen size/density, RAM, CPU cores, storage, GPU mode, keyboard, cameras, orientation and boot mode. API level and ABI are fixed. |
| Create device | Guided form to create a new AVD. |
| Form-factor presets | Phone, Small Phone, Tablet, Small Tablet, Foldable, TV, Wear OS, or fully custom width/height/density. |
| API Level picker | Choose from Android 8.0 (API 26) through Android 15 (API 35). |
| Auto system-image install | If the required system image is missing, flavd installs it for you via sdkmanager. |
| Auto SDK setup | If no Android SDK is detected, flavd downloads and installs the command-line tools into ~/.flavd/android-sdk. |
| Light & dark themes | Follows the system theme preference (Material 3). |
| Dependency | Notes |
|---|---|
| Flutter ≥ 3.19 | Desktop support enabled |
| Dart ≥ 3.0 | Bundled with Flutter |
unzip (Linux/macOS) |
Used for extracting the SDK tools archive |
Java is NOT required.
avdmanagerandsdkmanagerin modern Android SDK command-line tools ship with their own JRE.
git clone https://github.com/PersonalClientCare/flavd.git
cd flavdflutter config --enable-linux-desktop # Linux
flutter config --enable-macos-desktop # macOS
flutter config --enable-windows-desktop # WindowsBecause the platform directories (linux/, macos/, windows/) are generated by Flutter tooling
and are not committed to the repository, you need to generate them once:
flutter create --platforms=linux,macos,windows .flutter pub getflutter run -d linux # Linux
flutter run -d macos # macOS
flutter run -d windows # Windowsflutter build linux --release
# Binary: build/linux/x64/release/bundle/flavdWhen you open flavd on a machine that does not have the Android SDK installed, a banner is shown with an Install SDK button. Clicking it will:
- Download the Android command-line tools ZIP from
dl.google.cominto the standard platform-specific SDK directory (see below). - Extract and move the tools to the expected
cmdline-tools/latest/layout. - Accept all SDK licences automatically.
- Install
platform-toolsandemulatorviasdkmanager.
The SDK install location is resolved in this order:
ANDROID_HOMEorANDROID_SDK_ROOTenvironment variable (if set).- Platform default:
- Windows –
%LOCALAPPDATA%\Android\Sdk(if it exists) or%USERPROFILE%\Android\android-sdk - macOS –
~/Library/Android/sdk - Linux –
~/Android/Sdk
- Windows –
After installation, the rest of the app becomes available.
If you already have the Android SDK installed (e.g. via Android Studio), flavd detects it
automatically using the environment variables above, well-known platform paths, or by scanning
PATH.
- Click the + New Device button.
- Enter a device name (letters, digits, underscores, hyphens and dots only).
- Select an API level.
- Pick a form factor preset:
- Phone – 1080 × 2400, 420 dpi
- Small Phone – 720 × 1280, 320 dpi
- Tablet – 1600 × 2560, 240 dpi
- Small Tablet – 1200 × 1920, 213 dpi
- Foldable – 1768 × 2208, 420 dpi
- TV (1080p) – 1920 × 1080, 213 dpi
- Wear OS – 384 × 384, 320 dpi
- Custom – enter width, height and density manually
- Optionally expand Advanced Options to change the ABI and system image tag.
- Click Create Device.
If the required system image is not installed, flavd downloads and installs it automatically before creating the AVD.
Click the edit (✏️) button on a device card to rename it or change its hardware settings. The emulator must be stopped first, and the storage size can only grow. API level and ABI cannot be changed.
flavd also ships a flavd command that manages emulators without the GUI. It is pure Dart, so it
can be compiled into a standalone executable:
dart compile exe bin/flavd.dart -o flavd # standalone binary
# or run it from the repository:
dart run flavd:flavd --helpflavd options # API levels, form factors, tags, ABIs
flavd create pixel --api 35 -f phone # installs the system image if needed
flavd start pixel --headless # waits for boot, prints the serial
adb -s emulator-5554 install app.apk
flavd list # name, serial, boot state
flavd stop pixel # by AVD name or serial
flavd edit pixel --ram 4096 --cores 4 # change settings; only the given ones change
flavd edit pixel # show the current settings
flavd delete pixel--json(before the command) prints machine-readable results on stdout; progress always goes to stderr. Errors exit with status1, usage errors with64.startpicks a free console port itself, so the serial is known even when several emulators boot at once. Pass--no-waitto return immediately andflavd wait <name|serial>later.start --read-onlyruns several copies of one AVD in parallel (changes are discarded). The emulator requires every instance, including the first, to be read-only.- The system image ABI defaults to the host CPU (
arm64-v8aon Apple Silicon, otherwisex86_64). editrenames an AVD (--rename) and changes its screen (--form-factor,--width,--height,--density),--ramand--cores(MB and count),--storage(MB, can only grow),--gpu,--[no-]keyboard,--[no-]cold-boot,--front-camera,--back-cameraand--orientation. Unset options keep their value. Runeditwith no options to show the settings. The AVD must be stopped.- Emulator output is written to
~/.flavd/logs/<serial>.log.
flavd mcp runs a Model Context Protocol server over stdio.
Register the compiled binary with your agent, for example in Claude Code:
claude mcp add flavd -- /path/to/flavd mcp| Tool | Description |
|---|---|
list_avds |
AVDs with running state, serial and boot state |
list_options |
Valid API levels, form factors, tags and ABIs |
create_avd |
Create an AVD (installs the system image when missing) |
edit_avd |
Rename an AVD or change its settings; with no changes, returns the current settings (AVD must be stopped) |
start_avd |
Start an AVD – headless by default – and wait for boot; returns the serial |
wait_for_boot |
Wait for a running emulator to finish booting |
stop_avd |
Stop an emulator by AVD name or serial |
delete_avd |
Delete a stopped AVD |
install_sdk |
Install the Android SDK when it is missing |
Long-running calls report progress via notifications/progress when the client sends a
progressToken.
flavd supports connecting physical Android devices over Wi-Fi using Android 11+ wireless debugging. Click the Wi-Fi icon (📡) in the app bar to open the Wireless ADB screen.
- On your phone, go to Settings → Developer options → Wireless debugging and enable it.
- In flavd, open the Wireless ADB screen. The QR Code tab is selected by default and shows a QR code.
- On your phone, tap Pair device with QR code and scan the code shown in flavd.
- flavd discovers the phone via ADB mDNS, pairs with it and connects automatically. The device then appears under Physical Devices on the home screen.
Click New QR code to regenerate the code, for example if pairing times out.
QR pairing requires the computer and the phone to be on the same network, with mDNS/multicast traffic allowed. Some corporate or guest Wi-Fi networks block this. If QR pairing does not work, use the pairing code instead.
- On your phone, go to Settings → Developer options → Wireless debugging and enable it.
- Tap Pair device with pairing code — note the IP address, the pairing port and the 6-digit code.
- In flavd, open the Wireless ADB screen, switch to the Manual tab, enter the IP address, pairing port and code, and click Pair.
- Once pairing succeeds, the device connects automatically and appears under Physical Devices on the home screen.
You only need this for two cases; the QR and pairing-code flows already connect the device for you.
- Android 10 and below (legacy
adb tcpip): connect the phone via USB and ensure ADB debugging is authorised, runadb tcpip 5555in a terminal, then unplug the cable. In flavd, enter the phone's IP address with port 5555 and click Connect. - Reconnecting an already-paired phone: enter the phone's IP address and the connect port shown on the Wireless debugging screen (this is different from the pairing port) and click Connect. Pairing only needs to be done once per computer.
Wirelessly connected devices show a disconnect button (🔗✕) on their card in the home screen. USB-connected devices are shown but cannot be disconnected from the GUI (just unplug the cable).
bin/
└── flavd.dart CLI entry point (`flavd`)
lib/
├── main.dart Entry point
├── app.dart MaterialApp + provider wiring
├── models/
│ ├── adb_device.dart Data class for a physical ADB device
│ ├── qr_pairing.dart QR pairing session (credentials and payload)
│ ├── avd_device.dart Data class for an AVD
│ ├── form_factor.dart Form-factor presets
│ └── api_level.dart Supported API levels
├── cli/ Flutter-free; shared by the CLI and MCP server
│ ├── emulator_manager.dart High-level emulator operations
│ ├── flavd_cli.dart Command-line commands
│ ├── mcp_server.dart MCP stdio server
│ └── version.dart Version reported by the CLI
├── services/
│ ├── avd_service.dart Wraps avdmanager / emulator / adb
│ └── sdk_installer_service.dart Downloads & installs the Android SDK
├── providers/
│ └── device_provider.dart ChangeNotifier state management
├── screens/
│ ├── home_screen.dart Main screen (device list)
│ ├── create_device_screen.dart Create-device form
│ └── wireless_adb_screen.dart Wireless ADB pairing (QR + pairing code) & connect screen
└── widgets/
├── adb_device_card.dart Physical device card
├── device_card.dart Virtual device (AVD) card
├── log_output_widget.dart Streaming process log view
└── qr_painter_widget.dart QR code renderer using the `qr` package
test/
├── flavd_test.dart Unit tests for models and service parsing
└── cli_test.dart Unit tests for the CLI and MCP server
| Platform | Status |
|---|---|
| Windows | ✅ Verified |
| Linux | ⬜ Untested |
| macOS | ✅ Untested |
This project was mostly generated with the help of AI (Claude). Contributions and improvements are welcome — just keep in mind that the original codebase was not hand-written.
flutter testPull requests are welcome. Please run flutter analyze and flutter test before opening a PR.
MIT – see LICENSE for details.

