ARM64-to-x86_64 binary translation for Android
Berberis is AOSP's binary translation framework, part of Android's NativeBridge system. It provides the core infrastructure for translating guest architecture instructions to host machine code at runtime — including a JIT compiler, an interpreter, an instruction decoder, syscall emulation, and proxy libraries. Berberis currently supports RISC-V-to-x86_64 translation in upstream AOSP.
Digitalis extends Berberis with an ARM64 backend, enabling ARM64-only Android apps to run on x86_64 emulators. It reuses Berberis's translation infrastructure while adding ARM64 instruction decoding, JIT code generation, and interpreter support.
Translates ARM64 regions to native x86_64 machine code. Handles ~98% of instructions. Translated regions are cached for reuse.
~98% coveragePer-instruction fallback for syscalls, complex SIMD operations, and edge cases the JIT can't handle.
fallback pathLite Translator converts ARM64 to native x86_64 machine code. Translated regions are cached for reuse, delivering near-native performance.
Per-instruction execution for syscalls, complex SIMD, and anything the JIT can't handle. Ensures complete ARM64 coverage.
Vulkan, libc, libm forwarded to host APIs. GPU-accelerated rendering via GFXStream VkDecoder for full Vulkan support.
Ported NDK samples prove end-to-end translation: Vulkan, OpenGL ES, audio, camera, sensors, and more.
ARM64-only APKs running on an x86_64 emulator via NativeBridge translation.