Start Emulator
Overview
Section titled “Overview”Start an emulator and wait for it to boot. Supports cold boot, headless mode, and data wipe options.
The tool diffs adb devices before and after launching to identify the exact serial (e.g. emulator-5554) assigned to the emulator it just started, and polls that specific device with adb -s <serial> until sys.boot_completed is set. This means the reported result — and any boot-completion check — always refers to the emulator this call started, even if other emulators are already running.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
avdName | string | Yes | — | Name of the AVD to start |
coldBoot | boolean | No | false | Force cold boot (ignore snapshots) |
noWindow | boolean | No | false | Run headless (no GUI window) |
wipeData | boolean | No | false | Reset to factory state |
Examples
Section titled “Examples”Start the TestDevice emulator
Start the emulator with cold boot
Start the emulator in headless mode with wiped data
Related Tools
Section titled “Related Tools”- Stop Emulator — Stop a running emulator
- Device List — Verify the emulator started