I’m making a project for the GearVR on Android. I’m using a library which dynamically loads another .so library (i.e. using dlopen), which depends on openssl, (libssl.so). On phones running Android 6.0+, the ssl library on the device is severely stripped down, so the dlopen fails with a “missing symbol” error.
I’ve compiled openSSL from source, so that I have a full ssl library, but I don’t know how to properly include the new ssl library and make dlopen look for the dependencies inside it.
Edit: If it helps any, the I’m trying to work with python stuff, the library that’s being loaded is _ssl.so;
I’ve tried including my libssl in the .apk by putting it in Engine/Build/Android/Java/jni and editing the Android.mk file. After doing that, I did dlopen() on my libssl with the GLOBAL flag, before doing the python initialization, and that didn’t work.
After that I recompiled, my libssl to have a versioned soname (I think), and recompiled the python _ssl.so to have the version in it’s dependency, and now it seems to be loading the libraries properly on Android 6, but it’s broken on Android 5, saying it can’t find the libssl.so.1.0.0 that it depends on