Skip to content

Request to Update Native Library Alignment to 16 KB for Android Compatibility #73

@carlosmera24

Description

@carlosmera24

Hi,

I hope you're doing well. I’m reaching out regarding the Android library com.github.tzutalin:dlib-android-app:1.0.4, which your plugin depends on.

When building my Android app, I’ve started receiving the following lint warning:

The native library x86_64/libandroid_dlib.so is not 16 KB aligned. Android has traditionally used 4 KB memory page sizes. However, to support future devices that only work with 16 KB aligned libraries, apps containing native libraries need to be built with 16 KB alignment.

Apps with 4 KB aligned native libraries may not work correctly on devices requiring 16 KB alignment. To ensure compatibility and future-proof your app, it is strongly recommended that your native libraries are aligned to 16 KB boundaries.

This warning indicates that the current build of libandroid_dlib.so uses 4 KB alignment, which may cause compatibility issues on upcoming Android devices that enforce 16 KB page alignment.

Could you please consider rebuilding the native library (or updating the dependency) with 16 KB page alignment? This would involve adjusting the linker flags (e.g., using -Wl,-z,max-page-size=16384) during the NDK build process.

Doing so would ensure continued compatibility with current and future Android devices and help developers using your plugin avoid potential runtime issues or Play Store compliance problems down the line.

Thank you for your work on this plugin—any support in addressing this would be greatly appreciated!

Best regards,
Carlos

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions