mapbox-search-android
mapbox-search-android copied to clipboard
Support 16kb page size for Android 15+ devices
New Feature
I would like for mapbox-search to support 16kb page size phones so that apps supporting sdk 35 that run on a 16kb page size phone do not crash
Why
I am encountering issues when running my app on Android 15 devices with a 16 KB page size, particularly with some native components. Are there any plans to recompile the library to address these issues and ensure compatibility with phones that have a 16 KB page size?
As stated on Android doc,
Beginning with Android 15, Android supports devices that are configured to use a page size of 16 KB (16 KB devices). If your app uses any NDK libraries, either directly or indirectly through an SDK, then you will need to rebuild your app for it to work on these 16 KB devices.
An analysis of my app using the APK Analyzer as described by Android shows that it does use libSearchCore as native code.
This is the native binary reported by the APK analysis:
- libSearchCore
Additional context
Android doc: https://developer.android.com/guide/practices/page-sizes#compile-16-kb-alignment
We need this too, please!
I also need this
We are also waiting for that.
➕ this is actually stopping us from adopting Mapbox 16 KB page size version, because we're using both map and search SDKs and they are not compatible (if use sdk-27 map and standard search), so we need this one to finalize our work.
Thank you for raising a decent request. Our team is aware of the issue and it's in our backlog, but for now, we're not ready to provide any timeline for it.
Hey, has this been officially released? It looks like the Play Console has added support for a 16KB page size emulator, which is now causing our Pre-launch reports to fail.
Hey guys, any news on this? Please we need this 🙏
Hello everyone,
This feature is finally supported, you'll need to use NDK 27 compatible SDK varian. To use NDK 27 compatible dependencies, add the -ndk27 suffix to the module name. For example, use com.mapbox.search:offline-ndk27 instead of com.mapbox.search:offline.
This is supported starting from the Search SDK v2.14.0-alpha.2