mapbox-search-android icon indicating copy to clipboard operation
mapbox-search-android copied to clipboard

Support 16kb page size for Android 15+ devices

Open yousrasd opened this issue 1 year ago • 6 comments

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
image

Additional context

Android doc: https://developer.android.com/guide/practices/page-sizes#compile-16-kb-alignment

yousrasd avatar Aug 01 '24 16:08 yousrasd

We need this too, please!

barnisfar avatar Nov 27 '24 20:11 barnisfar

I also need this

jonathanyee avatar Dec 11 '24 18:12 jonathanyee

We are also waiting for that.

PavlosTze avatar Dec 17 '24 09:12 PavlosTze

➕ 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.

AndriiYanechko avatar Jan 07 '25 18:01 AndriiYanechko

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.

flasher297 avatar Jan 14 '25 08:01 flasher297

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.

hiteshchopra11 avatar Apr 17 '25 17:04 hiteshchopra11

Hey guys, any news on this? Please we need this 🙏

jldelaguila avatar Jun 09 '25 15:06 jldelaguila

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

DzmitryFomchyn avatar Jun 23 '25 20:06 DzmitryFomchyn