Android 16 KB fix map

JNA 16 KB page-size fix: upgrade to 5.16.0

Artifact net.java.dev.jna:jna · Maintained by hermonLabs · last measured 1 Oct 2026 · methodology · all libraries

fixed

JNA versions up to and including 5.15.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.16.0; the newest measured, 5.19.1, is aligned (16 KB).

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

Last offending 5.15.0: p_align = 4 KB (4096)
First aligned 5.16.0: 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 32 measured versions of net.java.dev.jna:jna run as 3 stretches: net.java.dev.jna:jna:3.0.3 to 4.3.0 without an arm64-v8a/x86_64 .so (16 measured); then net.java.dev.jna:jna:4.5.0 to 5.15.0 offending (4 KB-aligned) (10 measured); then net.java.dev.jna:jna:5.16.0 to 5.19.1 aligned (16 KB) (6 measured). Versions are ordered by number, not by publish date, because backports are released after newer lines.

The boundary is exact: 5.16.0 is the very next published version after the last offending 5.15.0.

By repository file date, the last offending file (5.15.0) is from 2024-09-15 and the first aligned file (5.16.0) is from 2024-12-22, a gap of 98 days. Both dates are file times, not vendor release announcements.

Measured files by the year of their repository date:

  • 2009: 1 without an arm64-v8a/x86_64 .so
  • 2010: 10 without an arm64-v8a/x86_64 .so
  • 2011: 1 without an arm64-v8a/x86_64 .so
  • 2012: 1 without an arm64-v8a/x86_64 .so
  • 2013: 1 without an arm64-v8a/x86_64 .so
  • 2015: 1 without an arm64-v8a/x86_64 .so
  • 2017: 1 without an arm64-v8a/x86_64 .so, 1 offending (4 KB-aligned)
  • 2018: 2 offending (4 KB-aligned)
  • 2019: 1 offending (4 KB-aligned)
  • 2020: 1 offending (4 KB-aligned)
  • 2021: 2 offending (4 KB-aligned)
  • 2022: 1 offending (4 KB-aligned)
  • 2023: 1 offending (4 KB-aligned)
  • 2024: 1 offending (4 KB-aligned), 1 aligned (16 KB)
  • 2025: 3 aligned (16 KB)
  • 2026: 2 aligned (16 KB)

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

Every version measured

32 of 55 published versions of net.java.dev.jna:jna were downloaded and read: 10 offending, 6 aligned, 16 with no arm64-v8a/x86_64 .so. Measured files date from 2009-07-26 to 2026-06-12. Newest first. Each version links to the file measured.

Coordinate (group:artifact:version)File dateResultarm64-v8a p_alignx86_64 p_align
net.java.dev.jna:jna:5.19.12026-06-12aligned16 KB16 KB
net.java.dev.jna:jna:5.19.02026-06-02aligned16 KB16 KB
net.java.dev.jna:jna:5.18.12025-09-30aligned16 KB16 KB
net.java.dev.jna:jna:5.18.02025-09-22aligned16 KB16 KB
net.java.dev.jna:jna:5.17.02025-03-16aligned16 KB16 KB
net.java.dev.jna:jna:5.16.02024-12-22aligned16 KB16 KB
net.java.dev.jna:jna:5.15.02024-09-15offending64 KB4 KB
net.java.dev.jna:jna:5.14.02023-12-10offending64 KB4 KB
net.java.dev.jna:jna:5.12.12022-06-29offending64 KB4 KB
net.java.dev.jna:jna:5.10.02021-11-08offending64 KB4 KB
net.java.dev.jna:jna:5.8.02021-03-22offending64 KB4 KB
net.java.dev.jna:jna:5.6.02020-07-14offending64 KB4 KB
net.java.dev.jna:jna:5.3.12019-04-28offending64 KB4 KB
net.java.dev.jna:jna:5.2.02018-12-23offending64 KB4 KB
net.java.dev.jna:jna:5.0.02018-10-07offending64 KB4 KB
net.java.dev.jna:jna:4.5.02017-09-13offending64 KB4 KB
net.java.dev.jna:jna:4.3.02017-01-14no 64-bit .so––
net.java.dev.jna:jna:4.2.02015-09-15no 64-bit .so––
net.java.dev.jna:jna:4.0.02013-07-04no 64-bit .so––
net.java.dev.jna:jna:3.5.12012-10-28no 64-bit .so––
net.java.dev.jna:jna:3.3.02011-06-06no 64-bit .so––
net.java.dev.jna:jna:3.2.62010-07-19no 64-bit .so––
net.java.dev.jna:jna:3.2.42010-05-20no 64-bit .so––
net.java.dev.jna:jna:3.2.12009-07-26no 64-bit .so––
net.java.dev.jna:jna:3.1.02010-05-20no 64-bit .so––
net.java.dev.jna:jna:3.0.92010-05-20no 64-bit .so––
net.java.dev.jna:jna:3.0.82010-05-20no 64-bit .so––
net.java.dev.jna:jna:3.0.72010-05-20no 64-bit .so––
net.java.dev.jna:jna:3.0.62010-05-20no 64-bit .so––
net.java.dev.jna:jna:3.0.52010-05-20no 64-bit .so––
net.java.dev.jna:jna:3.0.3-patch-12010-05-20no 64-bit .so––
net.java.dev.jna:jna:3.0.32010-05-20no 64-bit .so––
Specific to JNA
  • ARCHITECTURE-SPECIFIC: the last offending measurement 5.15.0 is x86_64-only; its arm64-v8a libraries are aligned

Measured evidence

4 KB8 KB16 KB64 KB16 KB: the requirementlast offending 5.15.0first aligned 5.16.0
Last offendingversion 5.15.0

4 KBp_align 4096 = 2^12

016 KB linestarts inside the page
verdict
below the 16 KB requirement
library file
jni/x86_64/libjnidispatch.so
file date
Sun, 15 Sep 2024 15:54:55 GMT
source
artifact
First alignedversion 5.16.0

16 KBp_align 16384 = 2^14

016 KB linestarts on the line
verdict
exactly the 16 KB requirement
library file
jni/arm64-v8a/libjnidispatch.so
file date
Sun, 22 Dec 2024 10:08:29 GMT
source
artifact

Native libraries inside the artifact

The newest measured version with native code is 5.19.1; the last offending one is 5.15.0. It ships 1 native library per ABI: libjnidispatch.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):

  • libjnidispatch.so: 4 KB (offending) in net.java.dev.jna:jna:4.5.0 to 5.15.0 (10 versions); 16 KB (16 KB-compatible) in net.java.dev.jna:jna:5.16.0 to 5.19.1 (6 versions)
Library fileABIp_align @ 5.15.0p_align @ 5.19.1
libjnidispatch.soarm64-v8a64 KB16 KB
libjnidispatch.sox86_644 KB16 KB

The Gradle change

build.gradle.kts
-implementation("net.java.dev.jna:jna:5.15.0")
+implementation("net.java.dev.jna:jna:5.16.0")

an aligned version, lowest measured above the last offending one; newer measured versions are aligned too (latest 5.19.1). Check: ./gradlew :app:dependencyInsight --dependency jna --configuration releaseRuntimeClasspath // ARCHITECTURE-SPECIFIC: the last offending measurement 5.15.0 is x86_64-only; its arm64-v8a libraries are aligned

Method and sources

Measured from the published files in repo1.maven.org/maven2/net/java/dev/jna/jna/. 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 (23 of 55; their status is unknown): 5.13.0, 5.12.0, 5.11.0, 5.9.0, 5.7.0, 5.5.0, 5.4.0, 5.3.0, 5.1.0, 4.5.2, 4.5.1, 4.4.0, 4.2.2, 4.2.1, 4.1.0, 3.5.2, 3.5.0, 3.4.0, 3.2.7, 3.2.5, 3.2.3, 3.2.2, 3.2.0.

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