4 ms·
This is also what the .NET CLR does (ngen.exe), and it's maddening. On the other hand, "managed" code is truly safe from the whims of untrusted developers--if
by derefr 12y ago
This is also what the .NET CLR does (ngen.exe), and it's maddening.
On the other hand, "managed" code is truly safe from the whims of untrusted developers--if your bytecode format has no way to express some unsafe/privileged native instruction, then the developer can't do that thing on your device, period.
It'd certainly be better if there was a middle step where, say, the Play Store took your Dex-APK and generated a native APK from it. But if devices can't do that step themselves, then sideloading stops working.
- jordanthoms 12y agoTrue, Although Android's security sandbox enforced using the kernel and user accounts, not JVM limitations - you can ship native code using the NDK and run any instructions you like, but you are still restricted by the permissions given to the application.