Hello,
According to the official Android documentation (https://developer.android.com/guide/practices/page-sizes), it is recommended to build .so files to support a 16KB page size when using native code in an app.
Following this guideline, we modified and tested our app to build .so files that support a 16KB page size. On a 16KB page size virtual device (pre-release 16KB page size), we confirmed that .so files built with the traditional 4KB page size failed to load when calling System.load(), whereas those built with a 16KB page size loaded and functioned normally.
However, whether .so files built with a 16KB page size run without issues on devices using the older 4KB page size still requires further verification.
The Android Developers Blog (https://android-developers.googleblog.com/2024/08/adding-16-kb-page-size-to-android.html) mentions that .so files built with 16KB are compatible with 4KB page-size devices, and our initial tests also showed normal operation in that environment. Nevertheless, as our application is security-focused, any backward compatibility issues could directly impact service reliability. Therefore, we seek a clear guideline or official confirmation regarding whether loading and running .so files built with a 16KB page size is officially supported on devices that use a 4KB page size.
Thank you.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/android-ndk/36c7b8ba-ed54-4caf-8ba3-d28338fcdd1an%40googlegroups.com.