Skip to content

Update to support 16kb page sizes #718

@bobzurad

Description

@bobzurad

I have a React Native app that targets Android 15 (API 35).

After adding react-native-camera-kit to my React Native project, I am now getting a popup when I start my app that says "This app isn't 16 KB compatible. ELF alignment check failed."

As Google states on the following page: https://developer.android.com/guide/practices/page-sizes

Starting November 1st, 2025, all new apps and updates to existing apps submitted to Google Play and targeting Android 15+ devices must support 16 KB page sizes.

Per the instructions found in the link above, I ran the check_elf_alignment.sh script on my apk file before and after adding react-native-camera-kit to my React Native project. Running the check_elf_alignment.sh on the apk file before adding react-native-camera-kit did not return any UNALIGNED files. However, running check_elf_alignment.sh on the apk file after adding react-native-camera-kit, I see the following output:

/var/folders/h6/nvkl49sj0zsgtny4d19d_6sc0000gn/T/app-debug_out_XXXXX.qoC2vPyJQV/lib/arm64-v8a/libimage_processing_util_jni.so: \e[31mUNALIGNED\e[0m (2**12)

To get around this, I applied the patch found in this PR: #699

With the code changes in that PR applied, I no longer get any files reported as UNALIGNED, and I no longer get the popup warning about 16KB compatibility when I start my app.

Are there plans to merge PR 699 and include it with an upcoming release?

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