# `mix dala.emulators`
[🔗](https://github.com/ohhi-vn/dala_dev/blob/main/lib/mix/tasks/dala.emulators.ex#L1)

Manage virtual devices: Android emulators (AVDs) and iOS simulators.

## Examples

    mix dala.emulators                        # list all (default)
    mix dala.emulators --list                 # same as above
    mix dala.emulators --list --android       # Android only
    mix dala.emulators --list --ios           # iOS only

    mix dala.emulators --start --id Pixel_8_API_34
    mix dala.emulators --start --id 78354490
    mix dala.emulators --start --id Pixel_8_API_34 --recipe selinux-off
    mix dala.emulators --start --id Pixel_8_API_34 --emulator_args "-no-audio -gpu host"

    mix dala.emulators --stop --id emulator-5554
    mix dala.emulators --stop --id 78354490
    mix dala.emulators --stop --all           # everything booted

`--id` accepts the same display IDs `mix dala.devices` shows, plus AVD
names. For Android the running serial (`emulator-5554`) also works.

## Launch recipes (Android)

  * `selinux-off` — boot with SELinux disabled; workaround for the Android
    17 preview where BEAM startup dies on cgroup SELinux denials.
    Dev-only, never on real hardware.
  * `cold-boot` — skip quick-boot state (`-no-snapshot`)
  * `wipe-data` — start with wiped userdata (`-wipe-data`, destructive)
  * `no-audio` — `-no-audio`
  * `gpu-host` — use host GPU (`-gpu host`)

Free-form extra flags: `--emulator_args "-flag value ..."`.
Recipes and flags combine when both are given.

Out of scope: creating new AVDs or installing simulator runtimes — those
involve license acceptance and multi-GB downloads. Use Android Studio /
Xcode for that.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
