Android 16 KB fix map

OpenCV 16 KB page-size fix: upgrade to 5.0.0.1

Artifact org.opencv:opencv · Maintained by hermonLabs · last measured 1 Oct 2026 · methodology · all libraries

fixed

OpenCV versions up to and including 5.0.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 5.0.0.1; the newest measured, 5.0.0.1, is aligned (16 KB).

5of 9 measured versions with native code ship 4 KB-aligned libraries

Last offending 5.0.0: p_align = 4 KB (4096)
First aligned 5.0.0.1: p_align = 16 KB (16384)

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

Per-major-line fixes

Different major versions have separate fix paths:

  • 4.x: upgrade to 4.12.0
  • 5.x: upgrade to 5.0.0.1

How the verdict was reached

In version order, the 9 measured versions of org.opencv:opencv run as 4 stretches: org.opencv:opencv:4.9.0 to 4.11.0 offending (4 KB-aligned) (4 measured); then org.opencv:opencv:4.12.0 to 4.14.0 aligned (16 KB) (3 measured); then org.opencv:opencv:5.0.0 offending (4 KB-aligned) (1 measured); then org.opencv:opencv:5.0.0.1 aligned (16 KB) (1 measured). Versions are ordered by number, not by publish date, because backports are released after newer lines.

The boundary is exact: 5.0.0.1 is the very next published version after the last offending 5.0.0.

By repository file date, the last offending file (5.0.0) is from 2026-06-11 and the first aligned file (5.0.0.1) is from 2026-06-26, a gap of 15 days. Both dates are file times, not vendor release announcements.

Measured files by the year of their repository date:

  • 2023: 1 offending (4 KB-aligned)
  • 2024: 2 offending (4 KB-aligned)
  • 2025: 1 offending (4 KB-aligned), 1 aligned (16 KB)
  • 2026: 3 aligned (16 KB), 1 offending (4 KB-aligned)

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

9 of 9 published versions of org.opencv:opencv were downloaded and read: 5 offending, 4 aligned, 0 with no arm64-v8a/x86_64 .so. Measured files date from 2023-12-28 to 2026-07-21. Newest first. Each version links to the file measured.

Coordinate (group:artifact:version)File dateResultarm64-v8a p_alignx86_64 p_align
org.opencv:opencv:5.0.0.12026-06-26aligned16 KB16 KB
org.opencv:opencv:5.0.02026-06-11offending4 KB4 KB
org.opencv:opencv:4.14.02026-07-21aligned16 KB16 KB
org.opencv:opencv:4.13.02026-01-22aligned16 KB16 KB
org.opencv:opencv:4.12.02025-07-08aligned16 KB16 KB
org.opencv:opencv:4.11.02025-01-16offending4 KB4 KB
org.opencv:opencv:4.10.0-kleidicv2024-07-11offending4 KB4 KB
org.opencv:opencv:4.10.02024-06-07offending4 KB4 KB
org.opencv:opencv:4.9.02023-12-28offending4 KB4 KB
Specific to OpenCV
  • Non-monotone history. An aligned stable release exists before a later offending one (parallel release lines or backports). A higher version number does not guarantee alignment: pick your exact version and measure it. The version below is only the lowest aligned stable version above the highest offending one.
  • NON-MONOTONE: an aligned release can be followed by an offending one; do not assume newer is safe. Per-release-line guidance: 4.x -> use measured aligned 4.12.0 (after offending 4.11.0); 5.x -> use measured aligned 5.0.0.1 (after offending 5.0.0). Re-run the checker on the version you resolve

Measured evidence

4 KB8 KB16 KB64 KB16 KB: the requirementlast offending 5.0.0first aligned 5.0.0.1
Last offendingversion 5.0.0

4 KBp_align 4096 = 2^12

016 KB linestarts inside the page
verdict
below the 16 KB requirement
library file
jni/x86_64/libc++_shared.so
file date
Thu, 11 Jun 2026 06:34:30 GMT
source
artifact
First alignedversion 5.0.0.1

16 KBp_align 16384 = 2^14

016 KB linestarts on the line
verdict
exactly the 16 KB requirement
library file
prefab/modules/opencv_java5/libs/android.x86_64/libopencv_java5.so
file date
Fri, 26 Jun 2026 15:10:30 GMT
source
artifact

Native libraries inside the artifact

The newest measured version with native code is 5.0.0.1; the last offending one is 5.0.0. It ships 2 native libraries per ABI: libc++_shared.so, libopencv_java5.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):

  • libc++_shared.so: 4 KB (offending) in org.opencv:opencv:4.9.0 to 4.11.0 (4 versions); 16 KB (16 KB-compatible) in org.opencv:opencv:4.12.0 to 4.14.0 (3 versions); 4 KB (offending) in org.opencv:opencv:5.0.0 (1 version); 16 KB (16 KB-compatible) in org.opencv:opencv:5.0.0.1 (1 version)
  • libopencv_java4.so: 4 KB (offending) in org.opencv:opencv:4.9.0 to 4.10.0-kleidicv (3 versions); 16 KB (16 KB-compatible) in org.opencv:opencv:4.11.0 to 4.14.0 (4 versions)
  • libopencv_java5.so: 16 KB (16 KB-compatible) in org.opencv:opencv:5.0.0 to 5.0.0.1 (2 versions)
Library fileABIp_align @ 5.0.0p_align @ 5.0.0.1
libc++_shared.soarm64-v8a4 KB16 KB
libc++_shared.sox86_644 KB16 KB
libopencv_java5.soarm64-v8a16 KB16 KB
libopencv_java5.sox86_6416 KB16 KB

The Gradle change

build.gradle.kts
-implementation("org.opencv:opencv:5.0.0")
+implementation("org.opencv:opencv:5.0.0.1")

an aligned version, lowest measured above the last offending one; newer measured versions are aligned too (latest 5.0.0.1). Check: ./gradlew :app:dependencyInsight --dependency opencv --configuration releaseRuntimeClasspath // NON-MONOTONE: an aligned release can be followed by an offending one; do not assume newer is safe. Per-release-line guidance: 4.x -> use measured aligned 4.12.0 (after offending 4.11.0); 5.x -> use measured aligned 5.0.0.1 (after offending 5.0.0). Re-run the checker on the version you resolve

Method and sources

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

All 9 published versions were downloaded and measured.

Email me if OpenCV'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.