Denizen runs Android Flutter APKs as native Mac apps, no emulator
An experimental layer runs Android Flutter APKs as native macOS apps on Apple Silicon with no emulator, and runs Flutter integration tests without booting one.
Junaid Qadir, whose public work is mostly Laravel and Vue, released Denizen 0.1.0 on 5 December: an experimental compatibility layer that runs Android Flutter APKs as native macOS apps on Apple Silicon. There is no emulator, no VM and no Android underneath. It takes the compiled Dart code out of an APK, at lib/arm64-v8a/libapp.so, and loads it into a Flutter engine built for macOS, while a native host answers what the app expects from Android: plugins, permissions, camera, files, keyboard and lifecycle events. The README’s own comparison is Wine.
What you get is a real Mac app. It takes its icon from the APK and gets a Dock entry, a menu bar, Spotlight indexing and a remembered window frame. Rendering goes through Impeller on Metal, with a first frame in roughly 150 to 300 ms.
The second use is the one most Flutter teams will care about. denizen test runs a project’s integration tests without booting an emulator, and denizen device presents itself to adb as an Android 14 arm64 phone, so flutter run -d denizen works with hot reload and DevTools attached. The benchmarks in the README, measured on an M4 Pro against a booted Android Emulator, claim no boot wait against 10.2 seconds cold, 78 to 104 MB of memory per app against 2.6 to 3.0 GB for the VM, about 1% idle CPU against 9 to 10%, and a 31 MB runtime against 5.5 GB of emulator and system image. It concedes that the emulator launches an app faster once it is already running.
Install is one Homebrew command:
brew install junaidqadirb/denizen/denizen
It needs Apple Silicon, macOS 15 or later, and the Android SDK build-tools for aapt2.
Why it matters: the Android Emulator is usually the slowest part of a Flutter test loop and the heaviest thing running on the laptop. An Android emulator alternative that skips the VM entirely is worth a look, and this one is Apache-2.0 and runs entirely on your own machine.
The caveat: read “experimental” literally. The release ships runtimes for Flutter 3.50.0 only, and a release APK built against a different Dart version will not run until you build a runtime yourself, which the README puts at about an hour and 4 GB each. Java and Kotlin apps do not work yet. Neither do platform views such as WebView or Google Maps, nor anything touching Play Services, which rules out Firebase Auth and Messaging. It is a first release with no stars on the repo at the time of writing, so treat it as something to try on a branch, not something to put in CI this week.