tauri-plugin-camera icon indicating copy to clipboard operation
tauri-plugin-camera copied to clipboard

16 KB page size alignment: libimage_processing_util_jni.so not compatible with Android 15+ devices

Open acaprino opened this issue 9 months ago • 0 comments

Problem

app-x86_64-debug.apk (and likely release builds) is flagged as incompatible with 16 KB page size devices:

APK is not compatible with 16 KB devices. Some libraries have LOAD segments
not aligned at 16 KB boundaries:
  lib/x86_64/libimage_processing_util_jni.so

This warning is triggered by Android Studio's APK Analyzer and will block Google Play submissions targeting Android 15+ after November 1, 2025 (mandatory deadline for new apps and updates).

Root cause

libimage_processing_util_jni.so is a pre-built JNI library bundled via a transitive dependency of this plugin (likely androidx.camera:camera-core or a related CameraX / ML Kit library). The .so was not compiled with -Wl,-z,max-page-size=16384, so its ELF LOAD segments are not aligned to 16 KB boundaries.

Environment

  • tauri-plugin-camera version: 0.1.4 (latest)
  • NDK: r28.0.12674087
  • Target: x86_64-linux-android (debug) and aarch64-linux-android (release)
  • Android Gradle Plugin: 8.x

Expected behaviour

All bundled .so files should have LOAD segments aligned to 16 KB boundaries so the plugin is compatible with Android 15+ devices using 16 KB page sizes.

Requested fix

Update the transitive dependency that ships libimage_processing_util_jni.so to a version rebuilt with 16 KB page size support. If the library is CameraX-based, bumping to a recent androidx.camera version (1.4.x+) that rebuilds native code with NDK r27+ should resolve it.

Reference: Android 16 KB page size developer guide

acaprino avatar Mar 01 '26 17:03 acaprino