ML Kit face-detection (bundled) 16 KB fix: upgrade to 16.1.7
Artifact com.google.mlkit:face-detection · Maintained by hermonLabs · last measured 1 Oct 2026 · methodology · all libraries
fixed
ML Kit face-detection (bundled) versions up to and including 16.1.6 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 16.1.7; the newest measured, 16.1.7, is aligned (16 KB).
7of 8 measured versions with native code ship 4 KB-aligned libraries
16.1.6: p_align = 4 KB (4096)16.1.7: 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 16 measured versions of com.google.mlkit:face-detection run as 3 stretches: com.google.mlkit:face-detection:16.0.0 to 16.0.7 without an arm64-v8a/x86_64 .so (8 measured); then com.google.mlkit:face-detection:16.1.0 to 16.1.6 offending (4 KB-aligned) (7 measured); then com.google.mlkit:face-detection:16.1.7 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: 16.1.7 is the very next published version after the last offending 16.1.6.
By repository file date, the last offending file (16.1.6) is from 2024-02-20 and the first aligned file (16.1.7) is from 2024-08-07, a gap of 169 days. Both dates are file times, not vendor release announcements.
Measured files by the year of their repository date:
- 2020: 4 without an arm64-v8a/x86_64 .so
- 2021: 4 without an arm64-v8a/x86_64 .so, 4 offending (4 KB-aligned)
- 2022: 2 offending (4 KB-aligned)
- 2024: 1 offending (4 KB-aligned), 1 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
16 of 16 published versions of com.google.mlkit:face-detection were downloaded and read: 7 offending, 1 aligned, 8 with no arm64-v8a/x86_64 .so. Measured files date from 2020-06-02 to 2024-08-07. Newest first. Each version links to the file measured.
- ARCHITECTURE-SPECIFIC: the last offending measurement 16.1.6 is x86_64-only; its arm64-v8a libraries are aligned
Measured evidence
4 KBp_align 4096 = 2^12
- verdict
- below the 16 KB requirement
- library file
jni/x86_64/libface_detector_v2_jni.so- file date
- Tue, 20 Feb 2024 17:54:15 GMT
- source
- artifact
16 KBp_align 16384 = 2^14
- verdict
- exactly the 16 KB requirement
- library file
jni/arm64-v8a/libface_detector_v2_jni.so- file date
- Wed, 07 Aug 2024 01:22:15 GMT
- source
- artifact
Native libraries inside the artifact
The newest measured version with native code is 16.1.7; the last offending one is 16.1.6. It ships 1 native library per ABI: libface_detector_v2_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):
libface_detector_v2_jni.so: 4 KB (offending) incom.google.mlkit:face-detection:16.1.0to16.1.6(7 versions); 16 KB (16 KB-compatible) incom.google.mlkit:face-detection:16.1.7(1 version)
| Library file | ABI | p_align @ 16.1.6 | p_align @ 16.1.7 |
|---|---|---|---|
libface_detector_v2_jni.so | arm64-v8a | 16 KB | 16 KB |
libface_detector_v2_jni.so | x86_64 | 4 KB | 16 KB |
The Gradle change
implementation("com.google.mlkit:face-detection:16.1.6")implementation("com.google.mlkit:face-detection:16.1.7")an aligned version, lowest measured above the last offending one; newer measured versions are aligned too (latest 16.1.7). Check: ./gradlew :app:dependencyInsight --dependency face-detection --configuration releaseRuntimeClasspath // ARCHITECTURE-SPECIFIC: the last offending measurement 16.1.6 is x86_64-only; its arm64-v8a libraries are aligned
Method and sources
Measured from the published files in dl.google.com/android/maven2/com/google/mlkit/face-detection/. How the verdicts are derived and what they do not cover: methodology. Google's requirement: Support 16 KB page sizes.
All 16 published versions were downloaded and measured.
Related artifacts
- ML Kit barcode-scanning (bundled)com.google.mlkit:barcode-scanning14 of 15 measured versions offending · fixed
- ML Kit translatecom.google.mlkit:translate7 of 8 measured versions offending · fixed
- MMKVcom.tencent:mmkv16 of 30 measured versions offending · fixed
- MMKV staticcom.tencent:mmkv-static16 of 30 measured versions offending · fixed
- MapLibreorg.maplibre.gl:android-sdk17 of 38 measured versions offending · fixed
See also the Play 16 KB warning, per stack · deadlines · check all your dependencies. Want every library offline? The kit ($12), 14-day refund.