Let me explain my problem:
I have an api for java, that is used in a sample program for an android device, which includes some functions for different uses with the device, like reading a card inserting it.
The point is that the sample program uses native methods within the jni layer to execute that methods from a .so file, from which I don't have the source code nor a header file.
My question is if I can, somehow, use the functions in the .so file invoking them from android-ndk (without calling a native method from java)
For extra details, I use Android Studio with CMake. If more information is required, feel free to ask and I will update the question. Thanks.
Edit 1:
#add_custom_command(TARGET native-lib POST_BUILD
# COMMAND ${CMAKE_COMMAND} -E copy
# ${CMAKE_CURRENT_SOURCE_DIR}/libs/${ANDROID_ABI}/libAndroid.so
# ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libAndroid.so)