Shutdown
This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET
Shut down an emulator or a simulator, after ending this daemon's session on it — the order that leaves nothing driving a device that is going away — and wait until it is gone. These call app_shutdown.
Shutdown
func (d *Device) Shutdown(ctx context.Context, name string) error
Shutdown shuts down an emulator or a simulator — by serial, AVD name, UDID or simulator name — after ending the daemon's session on it, and returns once it is gone. A real phone is refused.
Examples
Shut it down, its session ended first
if err := dev.Shutdown(ctx, "mobium-test"); err != nil {
return err
}