Skip to content

Does this jssc support android? #194

@imxys

Description

@imxys

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions