Fix Android boot completion and emulator launch modes

Merged
TH
8mo ago
+744-26

Summary

  • add Android boot support for explicit emulator startup by AVD name, including optional --headless
  • make boot --platform android --device "Pixel 9 Pro XL" resolve running emulators faster and return immediately when already booted
  • avoid flaky emulator-name lookup hangs by preferring AVD getprop-based resolution before console fallback
  • add unit coverage for headless/non-headless Android boot flows and selector resolution, plus docs/skill updates for new CLI behavior
  • touched files: 10 (scope stayed in boot/session + Android device resolution + docs/tests)

Validation

  • pnpm typecheck
  • pnpm test:unit
  • pnpm test:smoke
  • pnpm build
  • /usr/bin/time -p node bin/agent-device.mjs boot --platform android --device "Pixel 9 Pro XL" --json --debug (already-booted emulator path; exits quickly)
  • /usr/bin/time -p node bin/agent-device.mjs boot --platform android --device "Pixel 9 Pro XL" --headless --json