Hmm, thought inserting a JNI_OnLoad in my module might catch it, but it doesn’t work. Probably because my module isn’t loaded by java System.LoadLibrary.
The question is, can I inject that code into the unity.so, catch the JNI_OnLoad, then store off the JavaVM* and expose a function to retrieve it from my module.
As of beta7 the native .so libs should be added to the Java VM and thus have the JNI_OnLoad being called. If not please file a bug with a repro project, thanks.