From a3020baeb9ae304fd72cee1adf814b8946517efb Mon Sep 17 00:00:00 2001 From: agra Date: Wed, 13 May 2026 17:34:40 +0300 Subject: [PATCH] =?UTF-8?q?camera:=20bump=20CameraX=201.3.4=20=E2=86=92=20?= =?UTF-8?q?1.4.2=20for=2016-KB=20page=20alignment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CameraX 1.3.4 (May 2024) ships `libimage_processing_util_jni.so` with 0x1000 (4 KB) ELF LOAD alignment. Android 15's 16-KB page requirement rejects that — the user hit "elf alignment check failed" on device. 1.4.0+ corrected the linker flags; 1.4.2 is the current stable. Also adds `camera-video` to the dep set so Phase 4b can use `VideoCapture` without another bump. Verified post-bump: $ zipalign -v -c -p 16 app-release.apk → all lib/*/*.so (OK) $ llvm-readelf -l libimage_processing_util_jni.so → LOAD … 0x4000 (16 KB) on all four ABIs. --- android/build.gradle | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index c8af120..7dfa0a4 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -54,13 +54,15 @@ android { } dependencies { - // CameraX for scanner preview + frame analysis. Pinned to a stable - // train; the `view` module pulls in the rest transitively. - def cameraxVersion = '1.3.4' + // CameraX for scanner preview + frame analysis + ux.camera. + // 1.4.0+ ships 16-KB-aligned `libimage_processing_util_jni.so` + // (Android 15 requirement); 1.3.x failed the elf-alignment check. + def cameraxVersion = '1.4.2' implementation "androidx.camera:camera-core:$cameraxVersion" implementation "androidx.camera:camera-camera2:$cameraxVersion" implementation "androidx.camera:camera-lifecycle:$cameraxVersion" implementation "androidx.camera:camera-view:$cameraxVersion" + implementation "androidx.camera:camera-video:$cameraxVersion" // Pure-Kotlin/Java QR decoder. ~470 KB jar, no Play Services dep. implementation 'com.google.zxing:core:3.5.3' }