Skip to content

UnsatisfiedLinkError: Program Alignment Mismatch on Pixel 8 (16KB page size) with Conscrypt 2.5.3 #1413

@jsiddharth911

Description

@jsiddharth911

Issue Description:

I'm encountering the following error on a Pixel 8 device (with a 16KB page size):

FATAL EXCEPTION:
java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/*******/ lib/arm64/libconscrypt_jni.so" program alignment (4096) cannot be smaller than system page size (16384)

This occurs when calling:

Security.insertProviderAt(Conscrypt.newProvider(), 1);

Environment:

Conscrypt Version: 2.5.3 (latest)

Device: Pixel 8 (16KB page size)

Platform: Android

The issue is due to a misalignment between the libconscrypt_jni.so library's program alignment (4096 bytes) and the system's page size (16384 bytes), which causes the UnsatisfiedLinkError.

Would appreciate any guidance or fixes for this issue.

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