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​

public Map<String, Object> boot(String name)
public Map<String, Object> boot(String name, boolean window)

Starts an Android emulator by its AVD's name, or an iOS simulator by its name or UDID, and returns once it has booted, headless.

@param name an AVD's name, or a simulator's name or UDID @return device (its serial or UDID), name, platform, and already when it was running

Starts an emulator or a simulator, as boot(String) does, with the emulator's window shown when asked.

@param name an AVD's name, or a simulator's name or UDID @param window show the emulator's window @return device (its serial or UDID), name, platform, and already when it was running

Examples​

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

Map<String, Object> booted = device.boot("mobium-test");
System.out.println(booted.get("device"));