Context: The Fragmentation Problem in Android Emulation
When building software for non-phone Android devices like AI glasses, emulators are essential to scale development without relying on scarce physical hardware. But not all emulators are created equal.
Meta Reality Labs faced a classic trade-off:
- Goldfish – lightweight, runs everywhere, but low fidelity. Bugs slip through.
- Cuttlefish – high-fidelity, boots the same system images as real hardware, but Linux-only.
Their developers work on Apple silicon Macs, forcing them to maintain two separate emulator platforms side by side. This fragmentation drained resources, confused developers, and slowed down the emulator team.
The solution? Port Cuttlefish natively to macOS. Here's how they did it and why it matters.

Solution: Porting Cuttlefish to macOS
Cuttlefish is the orchestration layer; the actual virtual machine monitor (VMM) on Linux is typically crosvm (with legacy QEMU support). To enable native Apple silicon support, Meta revived QEMU support and tackled three major macOS gaps.
1. Making vhost-user Portable Beyond Linux
Many Cuttlefish virtual devices use vhost-user backends (separate processes providing virtio devices to QEMU over a socket). These were gated to Linux. Meta relaxed the build restrictions so vhost-user frontends and libraries (libvhost-user, vhost-user-blk) can build on macOS.
// Before: vhost-user build was Linux-only
#ifdef __linux__
// vhost-user code
#endif
// After: relaxed to allow macOS
#if defined(__linux__) || defined(__APPLE__)
// vhost-user code
#endif
This lets Cuttlefish's device backends hand off to QEMU on a Mac just like on Linux.
2. Living Within Hypervisor.framework (HVF)
On Apple silicon, QEMU accelerates via HVF instead of KVM. QEMU's HVF backend didn't track enough memory regions for larger Cuttlefish configurations. Meta increased the tracking-slot count.
// Increase HVF memory slot tracking for larger configs
#define HVF_MAX_MEM_SLOTS 512 // was lower before
3. Native Display and Build System
- BGRA pixel format support for accurate rendering on Apple silicon.
- Mouse-click-as-touch for interacting with touchscreen devices.
- Custom geometry options via
-gflag. - Build and signing: initial Darwin build support, arm64 QEMU builds, JIT entitlement, code signing, and notarization.
# Example build command for QEMU on macOS arm64
./configure --target-list=aarch64-softmmu --enable-hvf --disable-werror
make -j$(sysctl -n hw.ncpu)
On the Cuttlefish side, they added macOS host support so the orchestration layer builds and runs on a Mac.
Key takeaway: The port required deep changes in QEMU's vhost-user path, HVF backend, and build system. The result is a single high-fidelity virtual device that runs on both Linux and macOS.

Benefits and Caveats
What You Gain
- Unified platform: One emulator stack for all developers, reducing maintenance and infrastructure costs.
- High fidelity: Test against the exact same Cuttlefish virtual devices used in CI.
- Feature parity: Bluetooth, Wi-Fi, cellular, 3D graphics, OTA updates, fastboot, snapshotting – all on macOS.
- AI-ready: Virtual devices enable isolated, concurrent environments for AI agents to execute and iterate rapidly.
Limitations and Cautions
- Not upstream yet: Meta's changes are distributed as a fork (
qemu-wearables) and patch set (cuttlefish-wearables). Upstreaming to QEMU/AOSP is still in progress. - Performance overhead: Running QEMU with HVF on macOS may not match bare-metal Linux performance for heavy workloads.
- Ecosystem lock-in: The fork is Meta-maintained; long-term support depends on community adoption.
Pro tip: If you're building for Android on macOS, evaluate whether the fidelity gain justifies the fork dependency. For lightweight testing, Goldfish may still suffice.
For a related deep dive into how another tech giant streamlined its release process, check out Inside Spotify's Release Engine Dashboard Design & Automation Insights.

Conclusion and Next Steps
Meta's work to bring Cuttlefish to macOS is a significant win for Android developers on Apple silicon. By reviving QEMU support, making vhost-user portable, and integrating with Hypervisor.framework, they eliminated the fragmentation between Goldfish and Cuttlefish.
The repositories are open:
qemu-wearables– Meta's QEMU fork.cuttlefish-wearables– patch files for AOSP.
What to learn next:
- Explore QEMU's vhost-user architecture.
- Understand Hypervisor.framework on macOS.
- Experiment with Cuttlefish for your own Android device testing.
For insights on AI agent governance in development workflows, see NVIDIA Verified Agent Skills Capability Governance for Trustworthy AI Agents.
Source: This article is based on Meta Engineering's blog post.