Skip to content

[Feature request] 32-bit face-detection native libraries are still built with 4 KB page alignment (not 16 KB) #986

@arvismobile

Description

@arvismobile

ENVIRONMENT
Phone make and model: Pixel 9 Pro XL
OS version:
Google Play services version (only Android):
ML Kit APIs and versions:

STEPS
Build an Android app including ML Kit Face Detection (com.google.mlkit:face-detection:16.1.7).
Inspect the generated APK or AAB using: check_elf_alignment.sh app_debug.apk

EXPECTED
All native libraries should be 16 KB page-aligned.

ACTUAL
The arm64-v8a and x86_64 versions of libface_detector_v2_jni.so are correctly aligned to 16 KB. However, the armeabi-v7a and x86 variants remain aligned to 4 KB, indicating they are still produced via the older build pipeline.

Example (verified output): lib/x86_64/libface_detector_v2_jni.so: ALIGNED (214) lib/arm64-v8a/libface_detector_v2_jni.so: ALIGNED (214) lib/x86/libface_detector_v2_jni.so: UNALIGNED (212) lib/armeabi-v7a/libface_detector_v2_jni.so: UNALIGNED (212)

ADDITIONAL INFORMATION
This issue appears to originate from how the 32-bit variants of face-detection is published.

### Can you explain why this difference occurs?

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