forked from scream3r/java-simple-serial-connector
-
Notifications
You must be signed in to change notification settings - Fork 56
Closed
Description
Android-13 device, apk runs in primaryCpuAbi=armeabi-v7a
Error info:
java.lang.UnsatisfiedLinkError: Could not load the jssc library: Couldn't load library library jssc
at jssc.SerialNativeInterface.<clinit>(SerialNativeInterface.java:126)
at jssc.SerialPortList.<clinit>(SerialPortList.java:49)
at jssc.SerialPortList.getPortNames(SerialPortList.java:184)
Then I extracted libjssc.so from jssc-2.10.2.jar!/natives/linux_arm/libjssc.so to /system/lib/libjssc.so
Error info added extra line:
E linker : library "/system/lib/libjssc.so" ("/system/lib/libjssc.so") needed or dlopened by
"/apex/com.android.art/lib/libnativeloader.so" is not accessible for the namespace: [
name="classloader-namespace",
ld_library_paths="",
default_library_paths="/data/app/~~ue0HqhafAeea4KKaQypzFw==/.......-wMf7W_Chlx25VqCge9cAfQ==/lib/arm:
/data/app/~~ue0HqhafAeea4KKaQypzFw==/......-wMf7W_Chlx25VqCge9cAfQ==/base.apk!/lib/armeabi-v7a",
permitted_paths="/data:/mnt/expand:/data/user/0/......."]
Then I copied libjssc.so to my project/app/libs/armeabi-v7a/libjssc.so and reinstall apk,
the linker error log disappeared, I found libjssc.so in my apps /data/app/..../lib/arm directory, but system still reported UnsatisfiedLinkError
Metadata
Metadata
Assignees
Labels
No labels