Hacker News new | ask | show | jobs
by chuckadams 46 days ago
Android has never used the JVM: it used to translate Java bytecode to its Dalvik VM format, called DEX, and executed that. Nowadays, all Android apps are compiled to native code ahead of time, though still using DEX as an intermediate representation in the .apk, and compiling on the device itself before first load.
1 comments

Does this project do something like that OR does it use the JVM OR does it do something else altogether?
Yep, it runs on the JVM by basically doing the reverse of Dalvik, translating the DEX back into JVM bytecode, and they supply Java implementations of the Android APIs. https://github.com/kksimp/Mac.apk/wiki/How-Mac.apk-Works has all the interesting details.