Skip to content

[Bug report] play-services-mlkit-document-scanner:16.0.0 is not compatible with 16 KB page size devices #1020

@serhatozdal

Description

@serhatozdal

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

  1. Create or open an Android app that uses ML Kit Document Scanner API.
  2. Add dependency: com.google.android.gms:play-services-mlkit-document-scanner:16.0.0
  3. Build an APK/AAB for release or upload the app to Google Play.
  4. Google Play reports that the app is not compatible with 16 KB page size devices.
  5. The flagged library is lib/arm64-v8a/libyuv-decoder.so.

Optional local verification:

  1. Extract the packaged native library.
  2. Inspect it with llvm-objdump -p libyuv-decoder.so
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions