P
P
p-oleg2015-11-11 20:15:21
Android
p-oleg, 2015-11-11 20:15:21

java.lang.UnsatisfiedLinkError on Android 6 Marshmallow, how to fix?

Good afternoon.
I have an application that shows an image from IP cameras, and I'm trying to adapt it to targetSdk = 23
Up to and including SDK 22 everything works fine, but with targetSdk = 23 when installed on an emulator on an Android 6 device, the application crashes (it works on devices up to and including Android 5.1).
The application uses third-party native libraries, for which I do not have access to the source codes. Libraries require libcrypto.so and libssl.so excluded in Marshmallow, as well as RECORD_AUDIO and WRITE_EXTERNAL_STORAGE permissions
libcrypto.so and libssl.so I copied from the 4.4 system folder and put it in the libs / armeabi folder of the project and load using System.loadLibrary.
I give the application itself the necessary permission in the settings.
However, when trying to call a method from the native library, the application crashes with the error:
UnsatisfiedLinkError: No implementation found for int com.ipc.sdk.FSApi.Init() (tried Java_com_ipc_sdk_FSApi_Init and Java_com_ipc_sdk_FSApi_Init__) at com.ipc.sdk.FSApi.Init (Native Method)
My biggest fear is that without modifying the source code of the native library, the problem cannot be solved, since there is no access to the source codes.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasilij Aleksashin, 2015-11-19
@TerraMorf

"Now there is a very big tension with telepathic devices that allow you to read the application code" (old folk wisdom)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question