Skip to content

Update native .so files to support 16 KB page size for Android 15+ devices [Deadline- November 1st, 2025] #117

@IMRISHABH08

Description

@IMRISHABH08

❓ Add Support for 16 KB Page Size for Android 15+ devices

  • While verifying the alignment between our Flutter app and the native dependencies (.so files) for the 16KB Page Size update, we’ve identified an issue with the native libararies bundled in flutter_cached_pdfview.
  • When inspecting the .so files in the generated .aab with your SDK(latest: 1.10.6), we found that several native libraries are built with a Page size 0x1000 = 2¹² (4 KB) instead 0x4000 = 2¹⁴ (~16 KB). This mismatch is preventing our Flutter app from fully supporting the 16KB page size requirement.

- UNALIGNED .so files from flutter_cached_pdfview where Page Size 0x1000 = 2¹² (4 KB)

  • armeabi-v7a, arm64-v8a, and x86_64
.so files UNALIGNED ELF .aar & .so file mapping
libjniPdfium.so Image
libmodpdfium.so
libc++_shared.so
libmodft2.so
libmodpng.so
  • Script to check ELF Alignment

  • Solution

  • For detailed mapping b/w .aar and .so files run this command from your home directory(MacOS).
    cd ~/.gradle/caches/modules-2/files-2.1 find . -name "*.aar" -exec sh -c 'echo {}; unzip -l "{}" | grep "\.so"' \;

  • flutter_cached_pdfview: 0.4.3

  • Flutter (Channel stable, 3.27.3, on macOS 15.1.1 24B91 darwin-arm64, locale en-IN)
    • Flutter version 3.27.3 on channel stable
    • Dart version 3.6.1
    • DevTools version 2.40.2

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