Android 16 KB fix map

Mapbox legacy v9 16 KB page-size status: no aligned release found

Artifact com.mapbox.mapboxsdk:mapbox-android-sdk · measured 2026-10-01 · all libraries

no aligned release found

No measured release of Mapbox legacy v9 is 16 KB-aligned. The newest measured version, 9.2.1, is still offending.

Caveats

Measured evidence

VersionLibrary filep_alignFile dateSource
Last offending9.2.1jni/x86_64/libmapbox-gl.so4 KB (2^12)Fri, 15 May 2020 02:25:38 GMTartifact

p_align is the smallest PT_LOAD segment alignment of the ELF. 16 KB-compatible needs at least 16384 (2^14). Method: min PT_LOAD p_align of arm64-v8a/x86_64 .so inside the published AAR/JAR; aligned = >=16384 for every lib. Dates are repository file times, not official release dates.

Offending versions measured (29)

4.0.0-beta.2, 4.2.0-beta.1, 5.0.0-beta.2, 5.1.0, 5.2.0-beta.4, 5.3.2, 6.0.0-beta.1, 6.1.0, 6.2.0, 6.5.0-alpha.2, 6.6.3, 6.7.2, 7.0.0, 7.2.0-alpha.1, 7.4.0-alpha.1, 7.5.0-beta.1, 8.2.0-alpha.1, 8.3.0-beta.1, 8.5.0-alpha.1, 8.6.0-alpha.2, 9.0.0, 9.1.0, 9.1.0-alpha.1, 9.1.0-beta.1, 9.1.0-beta.2, 9.2.0, 9.2.0-alpha.1, 9.2.0-beta.1, 9.2.1

Native libraries seen: libmapbox-gl.so.

The Gradle change

no 16 KB-aligned release of com.mapbox.mapboxsdk:mapbox-android-sdk measured (latest measured 9.2.1); ask the vendor, check for a fork, or re-link the .so yourself; replacing is the last resort // ARCHITECTURE-SPECIFIC: the last offending measurement 9.2.1 is x86_64-only; its arm64-v8a libraries are aligned

Confirm what Gradle actually resolves, since another dependency may pull an older version:

./gradlew :app:dependencyInsight --dependency mapbox-android-sdk --configuration releaseRuntimeClasspath

Re-verify it yourself

Download the artifact and run the free checker (check16k.py, Python 3, no dependencies):

curl -LO https://repo1.maven.org/maven2/com/mapbox/mapboxsdk/mapbox-android-sdk/9.2.1/mapbox-android-sdk-9.2.1.aar
python3 check16k.py mapbox-android-sdk-9.2.1.aar

Exit 0 = aligned, 1 = an unaligned library found. Better still, run it on your final .aab/.apk.

Need the full map for every library, not just Mapbox legacy v9?

The paid kit ($12, v2) contains the complete measured fix map for all 80+ libraries as JSON and a table, every raw per-version measurement, the spot-check evidence, and the step-by-step guide for Play's 16 KB requirement. This page and the checker script stay free.

Get the kit ($12)