Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported for Android 15 - 16KB page size devices #94

Closed
jakhil232 opened this issue Mar 12, 2025 · 6 comments
Closed

Unsupported for Android 15 - 16KB page size devices #94

jakhil232 opened this issue Mar 12, 2025 · 6 comments

Comments

@jakhil232
Copy link

jakhil232 commented Mar 12, 2025

Getting this crash when the app is launched on 16 kb page size device - UnsatisfiedLinkError
dlopen failed: empty/missing DT_HASH/DT_GNU_HASH in "/data/app/~~_YETNo3v4ocKqbIwcLYD7A==/com.athenaone.integration-4gfNKJX5w4mhOsGAGzyOsw==/base.apk!/lib/arm64-v8a/libfast-rsa.so" (new hash type from the future?). The app is crashed on launch only. We would need support for such device from the library as there are some unaligned shared objects that need to be addressed. Any solution for this?

One of the ways would be to bump NDK to 27+, and do the suggested changes as mentioned here - https://developer.android.com/guide/practices/page-sizes

@jerson
Copy link
Owner

jerson commented Mar 12, 2025

@jakhil232 thanks for report this issue, I'm updating the Android SDK version in rsa-mobile, should be ready later today

@jerson
Copy link
Owner

jerson commented Mar 13, 2025

@jakhil232 a new version was released, take a look and let me know if works for you https://www.npmjs.com/package/react-native-fast-rsa/v/2.5.1

@jakhil232
Copy link
Author

@jerson The crash was resolved after consuming 2.5.1, but the existing issue is still there which was even there on 2.5.0 - 'ReferenceError: Property 'TextDecoder' doesn't exist'. I think this is reference in other thread as well - #93 . When I downgrade to 2.4.4, the TextDecoder issue is resolved, but since the latest SDK changes are in 2.5.1, I am unable to proceed. Can you please look into this issue as well of TextDecoder?

@jerson
Copy link
Owner

jerson commented Mar 14, 2025

temporary you can install text-encoding and add this code, I'm gonna be adding a native implementation for it but is gonna take more time

if (typeof global.TextEncoder === 'undefined' || typeof global.TextDecoder === 'undefined') {
  require('text-encoding');
}

@jerson
Copy link
Owner

jerson commented Mar 15, 2025

a new version was published with this fixed:
https://www.npmjs.com/package/react-native-fast-rsa/v/2.6.0

@jerson
Copy link
Owner

jerson commented Mar 15, 2025

I'm going to close this ticket, feel free to reopen it if needed

@jerson jerson closed this as completed Mar 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants