Describe the bug
com.google.android.gms:play-services-mlkit-document-scanner:16.0.0 appears to include a native library that is not compatible with 16 KB page size requirements for Android 15+ / Google Play submissions.
Google Play flags the generated app artifact as not compatible with 16 KB devices and specifically points to:
lib/arm64-v8a/libyuv-decoder.so
I inspected the packaged native library and its ELF program headers show LOAD segment alignment of 2**12 (4 KB), while 16 KB-compatible libraries use 2**14.
This blocks publishing to Google Play for apps targeting Android 15+.
To Reproduce
- Create or open an Android app that uses ML Kit Document Scanner API.
- Add dependency:
com.google.android.gms:play-services-mlkit-document-scanner:16.0.0
- Build an APK/AAB for release or upload the app to Google Play.
- Google Play reports that the app is not compatible with 16 KB page size devices.
- The flagged library is
lib/arm64-v8a/libyuv-decoder.so.
Optional local verification:
- Extract the packaged native library.
- Inspect it with
llvm-objdump -p libyuv-decoder.so
- Observe program headers such as:
LOAD ... align 2**12
Code snippet:
implementation("com.google.android.gms:play-services-mlkit-document-scanner:16.0.0")
Kotlin usage:
val options = GmsDocumentScannerOptions.Builder()
.setGalleryImportAllowed(true)
.setResultFormats(GmsDocumentScannerOptions.RESULT_FORMAT_JPEG)
.setScannerMode(GmsDocumentScannerOptions.SCANNER_MODE_BASE_WITH_FILTER)
.setPageLimit(10)
.build()
val scanner = GmsDocumentScanning.getClient(options)
Expected behavior
The Document Scanner SDK should be fully compliant with 16 KB page size requirements so apps using the SDK can be submitted to Google Play when targeting Android 15+.
SDK Info:
- SDK Name & Version:
com.google.android.gms:play-services-mlkit-document-scanner:16.0.0
Smartphone:
- Device/Simulator: N/A
- Device/Simulator OS: Android 15+ / Google Play compliance check
Development Environment:
- IDE Version: Android Studio
- Laptop/Desktop: Mac
- Laptop/Desktop OS/version: macOS
Describe the bug
com.google.android.gms:play-services-mlkit-document-scanner:16.0.0appears to include a native library that is not compatible with 16 KB page size requirements for Android 15+ / Google Play submissions.Google Play flags the generated app artifact as not compatible with 16 KB devices and specifically points to:
lib/arm64-v8a/libyuv-decoder.soI inspected the packaged native library and its ELF program headers show
LOADsegment alignment of2**12(4 KB), while 16 KB-compatible libraries use2**14.This blocks publishing to Google Play for apps targeting Android 15+.
To Reproduce
com.google.android.gms:play-services-mlkit-document-scanner:16.0.0lib/arm64-v8a/libyuv-decoder.so.Optional local verification:
llvm-objdump -p libyuv-decoder.soLOAD ... align 2**12Code snippet:
implementation("com.google.android.gms:play-services-mlkit-document-scanner:16.0.0")Kotlin usage:
Expected behavior
The Document Scanner SDK should be fully compliant with 16 KB page size requirements so apps using the SDK can be submitted to Google Play when targeting Android 15+.
SDK Info:
com.google.android.gms:play-services-mlkit-document-scanner:16.0.0Smartphone:
Development Environment: