Hello i've been trying to call a JNI library in Android Keyguard (frameworks/base/packages/SystemUI). I was able to do it in Android Settings but now I need it to be called in Keyguard. Currently, the Shared object is being built. It's located in the /system/lib64 (my one used in android settings is also located in the 32 bit lib) location. It's not being called when I'm supposed to use it. No errors are shown on logcat saying that the jni is missing.
My Android.mk File in the /jni folder.
LOCAL_PATH := $(call my-dir)This is the declaration in my function for the java class.
JNIEXPORT jstring JNICALL Java_com_android_keyguard_LockJni_stringFromJNI(JNIEnv *env, jobject thisObj , jstring inJNIStr) {I've got a method defined like this to call it in my jni class. This is located in SystemUI/Keygard.
Thanks for the help!!