r/opencode • u/ItaloMatosSouza • 9m ago
I'm working on a Wine-like compatibility layer for Android apps on macOS
Hey everyone,
I've been working on a personal project called Aether. The idea is to run Android apps on macOS without booting an Android VM or emulating the CPU.
I'm starting with Apple Silicon, and most of the project is written in Rust, with some ARM64 assembly where necessary.
Rather than implementing a new Android runtime from scratch, I'm trying to reuse as much of the original Android userspace as possible.
So far, I've managed to load and execute native Android ELF binaries, bootstrap the original Android linker and Bionic, and get ART running up to heap initialization.
The current challenge is ART's 32-bit heap references and macOS's address space layout. I'm experimenting with a high-memory arena that preserves compressed references without requiring allocations below 4 GiB.
It's still very early. You can't run regular Android apps yet.
I'm a mobile developer, so one of my long-term goals is to have something that can also be used for Android development, including ADB, Flutter hot reload and debugging, without having to run a full Android emulator.
The project is open source:
https://github.com/DIMAAGR/Aether
I'd be interested in hearing from anyone who's worked with ART, Android internals, compatibility layers or similar projects. Especially if you've dealt with the differences between Linux and Darwin on ARM64.