CameraX support for 16KB page size

126 views
Skip to first unread message

Javier Gerardo Martinez Salomon

unread,
Sep 18, 2024, 6:47:26 PMSep 18
to Android CameraX Discussion Group
Hi CameraX folks,
As you're likely aware Android 15 added support for 16kb memory page size and requires all shared libraries to be re-compiled with support to run on such devices: https://developer.android.com/about/versions/15/behavior-changes-all#16-kb.

I'm using `CameraX 1.3.4` in my project and noticed that the library `image_processing_util_jni` included in the `androidx.camera.core.ImageProcessingUtil` class is not compiled with support for 16kb page size.

I explored the `CameraX 1.4.0-rc01` and could see that the version included does have support for 16kb page size which is nice, however, I also noticed that you bumped your java version which causes incompatibilities with my project as I'm using AGP 4.2.2 with gradle 6.8.3, I'm looking for options to keep compatibility and satisfy the 16kb page size requirement, could you please advise in the following:
  1. Despite using `CameraX 1.3.4` my project runs fine in devices with 16kb page size, I'm suspecting that it is because the library is not being loaded/used at runtime. When is that library used? would it be safe to remain in `CameraX 1.3.4` if such API isn't used?
  2. Are there plans to backport the re-built library for a `CameraX 1.3.5` release?
  3. I could workaround the issue with upgrading to `CameraX 1.4.0` by using the newer D8/R8 as described here: https://issuetracker.google.com/issues/342522142#comment8 is there any potential side-effect of this workaround?
  4. Is there a tentative date already for releasing CameraX 1.4.0?

Thanks for your help.

Scott Nien

unread,
Oct 28, 2024, 4:02:59 AM (9 days ago) Oct 28
to Javier Gerardo Martinez Salomon, Android CameraX Discussion Group
Hi  so sorry to reply so lately, 

Here are some answers to your questions. 

1.  There probably are very few devices that support 16KB page size. So using CameraX 1.3.4 will work on almost all existing devices.  Google Play could possibly request apps to support 16KB page size next year. 
2. No CameraX 1.3.5 plan as our release branch is now CameraX 1.4.0 , there is no way we can release 1.3.x again. 
3. Regarding the newer D8/R8 issues,  I am afraid you need to confirm it with D8/R8 engineers. I suggest you ask questions on the bug 
4. Good news !  CameraX 1.4.0 will be released on Oct 30th. 

--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.
To view this discussion on the web visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/ee4591b0-a095-407f-934e-4ecb6b18590bn%40android.com.
Reply all
Reply to author
Forward
0 new messages