The new Klepton project enables Android ARM64 VR applications to run on Apple Vision Pro and macOS by translating native libraries without requiring Just-In-Time compilation.
Key Points
- Klepton uses the
klepton-ldtool to convert Android .so libraries into Apple-compatible .dylib and .framework formats. - Graphics rendering is handled by translating GLES 3.2 to ANGLE GLES 3.0 and Vulkan to MoltenVK for Metal compatibility.
- The runtime provides reimplementations of Android-specific components like ALooper, ANativeWindow, and JNIEnv to bridge the OS gap.
- Developers can currently run the game Beat Saber on visionOS and macOS, though some minor graphical issues remain.
- The project includes automated build scripts for macOS and visionOS, with ongoing work to support Steam VR Link.