mlkit icon indicating copy to clipboard operation
mlkit copied to clipboard

[Bug report] Support 16kb page size in digital ink dependency

Open Sharkaboi opened this issue 10 months ago • 4 comments

Hello

When checking ELF alignment for my app with com.google.mlkit:digital-ink-recognition:18.1.0 dependency, it reports as UNALIGNED when running check_elf_alignment.sh.

lib/arm64-v8a/libdigitalink.so: \e[31mUNALIGNED\e[0m (2**12)
lib/x86_64/libdigitalink.so: \e[31mUNALIGNED\e[0m (2**12)

I had seen issue #839 for language-id, which seems to be fixed in 2024. The digital ink dependency com.google.mlkit:digital-ink-recognition has not received any update past 2023.

The release which has 16kb page size support mentions no change in digital ink dependency.

Is there any task in the pipeline to get digital ink also updated? Thanks

Sharkaboi avatar Apr 16 '25 13:04 Sharkaboi

Hey Is there any updates on this issue?

16kb support deadline for apps has now been announced to be Nov 1st 2025 - source

The Target SDK 35 deadline is probably near Aug 31 2025 - discussion

Sharkaboi avatar May 12 '25 08:05 Sharkaboi

  • same issue report by google play, base/lib/arm64-v8a/libdigitalink.so not support 16 KB.
  • com.google.mlkit:digital-ink-recognition:18.1.0 . This is the sdk version

zubinxiong avatar May 16 '25 03:05 zubinxiong

I'm using 'com.google.mlkit:segmentation-selfie:16.0.0-beta6' and I can confirm that armeabi-v7a and x86 does not support the 16KB page size

Mouadabdelghafouraitali avatar May 26 '25 12:05 Mouadabdelghafouraitali

I am using implementation "com.google.mlkit:barcode-scanning:17.3.0" i am facing same issue \e[31mFound 2 unaligned libs (only arm64-v8a/x86_64 libs need to be aligned).\e[0m

adarsh-dhakad avatar May 27 '25 17:05 adarsh-dhakad

Is there any updates on when this will be released? Other models part of mlkit also seem to have this issue (#947, #945).

Sharkaboi avatar Jun 30 '25 11:06 Sharkaboi

same here, 17.3.0 kit - bumping for update o/

Melynt3 avatar Jul 07 '25 14:07 Melynt3

same issue here with "com.google.mlkit:barcode-scanning:17.3.0" - bumping for update.

bruno-garces avatar Jul 10 '25 09:07 bruno-garces

Not sure why no one from Google has stepped in here regarding com.google.mlkit:barcode-scanning:17.3.0, but 16kb page alignment is useless for non 64-bit libraries. See my comment here.

The issue around libdigitalink.so sounds legitimate, however.

mefsap avatar Jul 10 '25 22:07 mefsap

Bumping up. Any news on com.google.mlkit:digital-ink-recognition?

Still getting the issue:

The native library arm64-v8a/libdigitalink.so (from com.google.mlkit:digital-ink-recognition:18.1.0) is not 16 KB aligned

CloudLevi avatar Jul 31 '25 22:07 CloudLevi

Same issue here. Digital ink does not work on devices targeting 15+ (16KB) and need to update target API level by August according to the warning by Google Play Store.

It's a essential part of the application, is there an alternative or a planned version release?

Thanks in advance

Segovfrank avatar Aug 06 '25 04:08 Segovfrank

Same issue here

BrunoTerra-iabcd avatar Aug 08 '25 13:08 BrunoTerra-iabcd

Facing same issue, I am using com.google.mlkit:barcode-scanning:17.3.0 and found that arm64-v8a and x86_64 are still NOT supports 16 KB Which is mandatory by Play Store in coming months. However x86 and armeabi-v7a are 16 KB Supported

pankaj89 avatar Aug 11 '25 11:08 pankaj89

Facing same issue, I am using com.google.mlkit:barcode-scanning:17.3.0 and found that arm64-v8a and x86_64 are still NOT supports 16 KB Which is mandatory by Play Store in coming months. However x86 and armeabi-v7a are 16 KB Supported

Hi pankaj89, com.google.mlkit:barcode-scanning:17.3.0 should already support 16 KB page size (release note). Could you double check this SDK standalone using check_ef_alignment.sh?

zhouyiself avatar Aug 16 '25 05:08 zhouyiself

Is there any updates on the digital ink library 16Kb support? Soft deadline of August 31 is 13 days away.

Sharkaboi avatar Aug 18 '25 07:08 Sharkaboi

Facing same issue, I am using com.google.mlkit:barcode-scanning:17.3.0 and found that arm64-v8a and x86_64 are still NOT supports 16 KB Which is mandatory by Play Store in coming months. However x86 and armeabi-v7a are 16 KB Supported

Hi pankaj89, com.google.mlkit:barcode-scanning:17.3.0 should already support 16 KB page size (release note). Could you double check this SDK standalone using check_ef_alignment.sh?

Confirming it is working as expected (All are 16kb), Thanks

pankaj89 avatar Aug 21 '25 11:08 pankaj89

Hello.

After updating mlkit dependencies version to latest, I still notice that there still one of mlkit "so" file remaining unaligned. It is "libtensorflowlite_jni.so" as UNALIGNED.

Image

The libs I have used are below:

  • com.google.mlkit:barcode-scanning:17.3.0
  • com.google.mlkit:image-labeling-custom:17.0.3
  • com.google.mlkit:face-detection:16.1.7

uypanha avatar Aug 29 '25 04:08 uypanha

The newly released Digital Ink SDK (com.google.mlkit:digital-ink-recognition:19.0.0) should support 16 KB page size. https://developers.google.com/ml-kit/release-notes#august_29_2025

zhouyiself avatar Aug 29 '25 21:08 zhouyiself

Can confirm the new release works fine and is 16KB aligned when checking with check_elf_alignment.sh.

Just a note for others using this SDK, The minimum SDK version seems to have been bumped from 21 to 23 with version 19.0.0.

A small chunk of our users are still on lollipop, Will have to figure out what to do for them.

Sharkaboi avatar Sep 02 '25 06:09 Sharkaboi

The minimum supported SDK version for all newly released Google SDKs is now 23. I'll close the bug as the 16kb page size is resolved.

zhouyiself avatar Sep 15 '25 05:09 zhouyiself

I'm using 'com.google.mlkit:segmentation-selfie:16.0.0-beta6' and I can confirm that armeabi-v7a and x86 does not support the 16KB page size

I'm using the same library (com.google.mlkit:segmentation-selfie:16.0.0-beta6) and running into the same issue with 16KB page size not being supported for armeabi-v7a and x86, However arm64-v8a and x86_64 does support 16Kb Page size . Have you been able to resolve this, or is there any known workaround/solution?

suleman81 avatar Sep 17 '25 06:09 suleman81

@suleman81 no i am also facing same issue , segmentation-selfie is not updated

tapan-xenabler avatar Sep 17 '25 09:09 tapan-xenabler

@tapan-xenabler I’ve tested a solution that works for me.

Only the arm64-v8a and x86_64 libraries need to be aligned. If you’re doing this to comply with Google’s upcoming Play Store requirement , you don’t need to worry about 32-bit architectures.

The 16 KB page size support is only required for 64-bit devices, so 32-bit architectures can be safely ignored even if they don’t align. Google Play will still accept the build.

suleman81 avatar Sep 17 '25 10:09 suleman81

@zhouyiself I'm using com.google.android.gms:play-services-mlkit-subject-segmentation:16.0.0-beta1 and it doesn't support 16kb page size yet.

From Google Play Console:

Libraries that do not support 16 KB:
base/lib/arm64-v8a/libmlkit-segmentation.so

fanwgwg avatar Oct 07 '25 03:10 fanwgwg

Image

so even with this, the app is still using 16kb page size? because i check with base/lib/arm64-v8a/libbarhopper_v3.so utilized by jetified-barcode-scanning-17.2.0 then use by com.google.mlkit:barcode-scanning:17.2.0, if i am not misunderstanding.

ng-jk avatar Nov 22 '25 05:11 ng-jk