Android 16 KB fix map

ONNX Runtime 16 KB page-size fix: upgrade to 1.21.1

Artifact com.microsoft.onnxruntime:onnxruntime-android · Maintained by hermonLabs · last measured 1 Oct 2026 · methodology · all libraries

fixed

ONNX Runtime versions up to and including 1.21.0 that we measured ship 4 KB-aligned native libraries (offending for Google Play's 16 KB page-size requirement). The first measured aligned stable version is 1.21.1; the newest measured, 1.30.0, is aligned (16 KB).

16of 31 measured versions with native code ship 4 KB-aligned libraries

Last offending 1.21.0: p_align = 4 KB (4096)
First aligned 1.21.1: p_align = 16 KB (16384)

Thin lines: 4 KB cells. Heavy lines: 16 KB page boundaries.

How the verdict was reached

In version order, the 31 measured versions of com.microsoft.onnxruntime:onnxruntime-android run as 2 stretches: com.microsoft.onnxruntime:onnxruntime-android:1.11.0 to 1.21.0 offending (4 KB-aligned) (16 measured); then com.microsoft.onnxruntime:onnxruntime-android:1.21.1 to 1.30.0 aligned (16 KB) (15 measured). Versions are ordered by number, not by publish date, because backports are released after newer lines.

The boundary is exact: 1.21.1 is the very next published version after the last offending 1.21.0.

By repository file date, the last offending file (1.21.0) is from 2025-03-07 and the first aligned file (1.21.1) is from 2025-04-21, a gap of 45 days. Both dates are file times, not vendor release announcements.

Measured files by the year of their repository date:

  • 2022: 4 offending (4 KB-aligned)
  • 2023: 7 offending (4 KB-aligned)
  • 2024: 4 offending (4 KB-aligned)
  • 2025: 4 aligned (16 KB), 1 offending (4 KB-aligned)
  • 2026: 11 aligned (16 KB)

The offending versions fail on arm64-v8a and x86_64; Google's rule covers the 64-bit ABIs, so those are the two libraries the verdict reads.

Every version measured

31 of 38 published versions of com.microsoft.onnxruntime:onnxruntime-android were downloaded and read: 16 offending, 15 aligned, 0 with no arm64-v8a/x86_64 .so. Measured files date from 2022-03-25 to 2026-09-14. Newest first. Each version links to the file measured.

Coordinate (group:artifact:version)File dateResultarm64-v8a p_alignx86_64 p_align
com.microsoft.onnxruntime:onnxruntime-android:1.30.02026-09-14aligned16 KB16 KB
com.microsoft.onnxruntime:onnxruntime-android:1.29.02026-08-12aligned16 KB16 KB
com.microsoft.onnxruntime:onnxruntime-android:1.28.02026-07-27aligned16 KB16 KB
com.microsoft.onnxruntime:onnxruntime-android:1.27.02026-06-29aligned16 KB16 KB
com.microsoft.onnxruntime:onnxruntime-android:1.26.0-rc.12026-05-04aligned16 KB16 KB
com.microsoft.onnxruntime:onnxruntime-android:1.26.02026-05-08aligned16 KB16 KB
com.microsoft.onnxruntime:onnxruntime-android:1.25.12026-04-28aligned16 KB16 KB
com.microsoft.onnxruntime:onnxruntime-android:1.25.02026-04-20aligned16 KB16 KB
com.microsoft.onnxruntime:onnxruntime-android:1.24.32026-03-06aligned16 KB16 KB
com.microsoft.onnxruntime:onnxruntime-android:1.24.2-rc.12026-02-13aligned16 KB16 KB
com.microsoft.onnxruntime:onnxruntime-android:1.24.12026-02-05aligned16 KB16 KB
com.microsoft.onnxruntime:onnxruntime-android:1.23.12025-10-08aligned16 KB16 KB
com.microsoft.onnxruntime:onnxruntime-android:1.23.02025-09-25aligned16 KB16 KB
com.microsoft.onnxruntime:onnxruntime-android:1.22.02025-05-09aligned16 KB16 KB
com.microsoft.onnxruntime:onnxruntime-android:1.21.12025-04-21aligned16 KB16 KB
com.microsoft.onnxruntime:onnxruntime-android:1.21.02025-03-07offending4 KB4 KB
com.microsoft.onnxruntime:onnxruntime-android:1.20.02024-10-31offending4 KB4 KB
com.microsoft.onnxruntime:onnxruntime-android:1.19.02024-08-20offending4 KB4 KB
com.microsoft.onnxruntime:onnxruntime-android:1.17.32024-04-10offending4 KB4 KB
com.microsoft.onnxruntime:onnxruntime-android:1.17.12024-02-26offending4 KB4 KB
com.microsoft.onnxruntime:onnxruntime-android:1.16.32023-11-21offending4 KB4 KB
com.microsoft.onnxruntime:onnxruntime-android:1.16.22023-11-09offending4 KB4 KB
com.microsoft.onnxruntime:onnxruntime-android:1.16.0-rc12023-09-09offending4 KB4 KB
com.microsoft.onnxruntime:onnxruntime-android:1.16.02023-09-19offending4 KB4 KB
com.microsoft.onnxruntime:onnxruntime-android:1.15.12023-06-16offending4 KB4 KB
com.microsoft.onnxruntime:onnxruntime-android:1.15.02023-05-24offending4 KB4 KB
com.microsoft.onnxruntime:onnxruntime-android:1.14.02023-02-10offending4 KB4 KB
com.microsoft.onnxruntime:onnxruntime-android:1.13.12022-10-24offending4 KB4 KB
com.microsoft.onnxruntime:onnxruntime-android:1.12.12022-08-04offending4 KB4 KB
com.microsoft.onnxruntime:onnxruntime-android:1.12.02022-07-22offending4 KB4 KB
com.microsoft.onnxruntime:onnxruntime-android:1.11.02022-03-25offending4 KB4 KB

Measured evidence

4 KB8 KB16 KB64 KB16 KB: the requirementlast offending 1.21.0first aligned 1.21.1
Last offendingversion 1.21.0

4 KBp_align 4096 = 2^12

016 KB linestarts inside the page
verdict
below the 16 KB requirement
library file
jni/arm64-v8a/libonnxruntime4j_jni.so
file date
Fri, 07 Mar 2025 21:58:51 GMT
source
artifact
First alignedversion 1.21.1

16 KBp_align 16384 = 2^14

016 KB linestarts on the line
verdict
exactly the 16 KB requirement
library file
jni/arm64-v8a/libonnxruntime.so
file date
Mon, 21 Apr 2025 09:55:17 GMT
source
artifact

Native libraries inside the artifact

The newest measured version with native code is 1.30.0; the last offending one is 1.21.0. It ships 2 native libraries per ABI: libonnxruntime.so, libonnxruntime4j_jni.so. The verdict is the lowest p_align among them.

Lowest p_align of each native library file across the measured versions (in version order):

  • libonnxruntime.so: 4 KB (offending) in com.microsoft.onnxruntime:onnxruntime-android:1.11.0 to 1.19.0 (14 versions); 16 KB (16 KB-compatible) in com.microsoft.onnxruntime:onnxruntime-android:1.20.0 to 1.30.0 (17 versions)
  • libonnxruntime4j_jni.so: 4 KB (offending) in com.microsoft.onnxruntime:onnxruntime-android:1.11.0 to 1.21.0 (16 versions); 16 KB (16 KB-compatible) in com.microsoft.onnxruntime:onnxruntime-android:1.21.1 to 1.30.0 (15 versions)
Library fileABIp_align @ 1.21.0p_align @ 1.30.0
libonnxruntime.soarm64-v8a16 KB16 KB
libonnxruntime.sox86_6416 KB16 KB
libonnxruntime4j_jni.soarm64-v8a4 KB16 KB
libonnxruntime4j_jni.sox86_644 KB16 KB

The Gradle change

build.gradle.kts
-implementation("com.microsoft.onnxruntime:onnxruntime-android:1.21.0")
+implementation("com.microsoft.onnxruntime:onnxruntime-android:1.21.1")

an aligned version, lowest measured above the last offending one; newer measured versions are aligned too (latest 1.30.0). Check: ./gradlew :app:dependencyInsight --dependency onnxruntime-android --configuration releaseRuntimeClasspath

Method and sources

Measured from the published files in repo1.maven.org/maven2/com/microsoft/onnxruntime/onnxruntime-android/. How the verdicts are derived and what they do not cover: methodology. Google's requirement: Support 16 KB page sizes.

Published but not downloaded for this page (7 of 38; their status is unknown): 1.24.2, 1.23.2, 1.23.0-rc.2, 1.19.2, 1.18.0, 1.17.0, 1.16.1.

Email me if ONNX Runtime's measured 16 KB status changes

You get an email when a re-measurement changes the status. No newsletter.

Double opt-in. Stored: email, library ids, this wording, the time. No IP.