News for hackers. Stuff that matters.
Re:Bare-metal Rust in Android by flohofwoe on Monday October 09, 2023 @04:48PM (#37825307)
You can call into any Android Java API from native code using JNI. It's not exactly convenient, but you are not limited to the C APIs exposed by the NDK.
Re:Bare-metal Rust in Android by grishka on Monday October 09, 2023 @05:12PM (#37825544)
Many Android APIs expect you to extend classes and implement interfaces for things like callbacks. You can't do that with JNI alone, you will have to have a .dex of your own anyway.