Tech
A New Open-source Tool, Klepton, Lets Developers Run Android Arm64 VR Apps on Apple Vision Pro and Macos Without Requiring a JIT Compiler
The project translates Android.so libraries into loadable Apple.dylib and.framework files, which then link into the Klepton runtime. It currently supports Java-thin applications only, with no ART or JVM. For graphics, GLES 3.2 is translated to a vendored ANGLE GLES 3.0 with a Metal backend, while Vulkan is translated to MoltenVK.
Since macOS zeros the x18 register on context switches and some older Android apps use it, klepton-ld patches all x18 usage to use per-library TLS slots instead. The tool can also load and patch.so files at runtime via mmap, useful on macOS where JIT is allowed. Some apps using scripting runtimes like LuaJIT or V8 may still require JIT. Beat Saber reportedly works on macOS and visionOS with minor graphical issues; Steam VR Link support and broader build tooling are still in progress.
Source: Hacker News
Most read in this category
Loading article…