Skip to main content

Boot

This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET

Start an Android emulator by its AVD's name, or an iOS simulator by its name or UDID, and wait until it has booted — adb sees it and Android says boot completed, or simctl's boot status returns — answering with its serial or UDID. These call app_boot.

Boot​

func (d *Device) Boot(ctx context.Context, name string, window bool) (Booted, error)

Boot starts an Android emulator by its AVD's name, or an iOS simulator by its name or UDID, and returns once it has booted. One already running is returned as it is. An emulator cold-boots headless unless window is true.

Examples​

Boot an emulator by its AVD's name, and wait until it is up​

booted, err := dev.Boot(ctx, "mobium-test", false)
if err != nil {
return err
}
fmt.Println(booted.Device)