novasamatech / substrate-sdk-android

Native Android SDK for developing client apps for Substrate-based networks
https://novawallet.io
Apache License 2.0
12 stars 7 forks source link

Fix native lib crash #81

Closed valentunn closed 6 months ago

valentunn commented 6 months ago

After #78 certain devices starts to crash with

java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "dl_iterate_phdr" referenced by "/data/app/~~O7xZcBb6BHAK6IbkBUz5lQ==/io.novasama.polkadotapp-UcKdIUU05U6-9-Ae_JZbjw==/base.apk!/lib/arm64-v8a/libsr25519java.so"

Upon investigation, it turned out that PR changed rust compile mode to release to optimize so file size. After rewerting this change, the crash stopped happening for me. So reverting release mode for now untill futher investigation