Skip to content

emulator fast mode#5

Merged
ignaciotcrespo merged 1 commit into
mainfrom
emulator-fast-mode
Apr 26, 2026
Merged

emulator fast mode#5
ignaciotcrespo merged 1 commit into
mainfrom
emulator-fast-mode

Conversation

@ignaciotcrespo
Copy link
Copy Markdown
Owner

Emulator fast mode & kill emulator

Summary

  • Add fast mode for launching emulators: headless, no audio, Quick Boot snapshots, and host GPU acceleration — significantly faster than cold boot, ideal for previewing without the emulator UI
  • Fast mode is enabled by default and can be toggled with f in the device picker
  • Add kill emulator command (x): opens a picker listing running emulators to stop them, especially useful for headless emulators that have no window to close

Changes

  • internal/adb/adb.goStartEmulator now supports fast mode flags (-no-window -no-audio -gpu auto); added ListRunningEmulators(), KillEmulator(), and AVD name resolution via adb emu avd name
  • internal/ui/app.go — Fast mode toggle state, kill picker modal with navigation and enter-to-kill, emulatorKilledMsg handling, x keybind
  • internal/ui/view.go — Fast mode checkbox (white text) in device picker, kill emulator picker modal
  • internal/ui/render.go — Added x kill emu to help bar
  • README.md — Documented both features: key bindings, feature list, new sections with examples

Test plan

  • Press d to open device picker — fast mode checkbox should show [✓] by default
  • Press f in picker to toggle fast mode off/on
  • Select an AVD with fast mode on — emulator should launch headless (no window)
  • Select an AVD with fast mode off — emulator should launch with GUI
  • Press x with running emulators — picker should list them with AVD name and serial
  • Select an emulator and press Enter — it should be killed and removed from device list
  • Press x with no running emulators — should show "No running emulators found"

@ignaciotcrespo ignaciotcrespo merged commit 5c64a07 into main Apr 26, 2026
3 checks passed
@ignaciotcrespo ignaciotcrespo deleted the emulator-fast-mode branch April 28, 2026 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant