Migrate to LiteRT 1.4.0 for Proper 16KB Page Size Support#299
Merged
PaulTR merged 1 commit intotensorflow:mainfrom Oct 28, 2025
Merged
Migrate to LiteRT 1.4.0 for Proper 16KB Page Size Support#299PaulTR merged 1 commit intotensorflow:mainfrom
PaulTR merged 1 commit intotensorflow:mainfrom
Conversation
- Replace TensorFlow Lite 2.12.0 with LiteRT 1.4.0 - TFLite 2.12.0 (from 2022) lacks 16KB aligned native libraries - LiteRT 1.4.0 provides proper 16KB page alignment - Bump version to 0.12.1
47962eb to
9f69578
Compare
Contributor
Author
|
@PaulTR Could you please review, merge, and publish v0.12.1 to pub.dev as soon as possible? Developers using v0.12.0 are blocked from submitting to Google Play with the November 1st deadline approaching. Critical Issue with v0.12.0After publishing v0.12.0, developers are reporting that Google Play still rejects apps for 16KB incompatibility. The issue: v0.12.0 uses TensorFlow Lite 2.12.0 (from 2022), which has 4KB-aligned native libraries that cannot be fixed with build flags. The FixThis PR migrates to LiteRT 1.4.0 - Google's official TensorFlow Lite successor with proper 16KB-aligned native libraries. I've tested this and confirmed Google Play no longer shows 16KB warnings. Thank you |
Collaborator
|
Alright give 0.12.1 a shot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Critical: Fix for Google Play 16KB Compliance
Version 0.12.0 claimed to support 16KB page sizes, but Google Play Store is still rejecting apps because the native TensorFlow Lite libraries lack proper 16KB alignment. This PR provides the actual fix by migrating to LiteRT 1.4.0.
The Problem with v0.12.0
While v0.12.0 updated build tools and infrastructure, it continued using TensorFlow Lite 2.12.0 (released in 2022), which contains prebuilt native libraries compiled with 4KB page alignment:
libtensorflowlite_jni.so- 4KB alignedlibtensorflowlite_gpu_jni.so- 4KB alignedThese prebuilt binaries cannot be recompiled with linker flags. The libraries must come from a version that was compiled with 16KB support from the source.
The Solution: LiteRT 1.4.0
This PR migrates from TensorFlow Lite to Google AI Edge LiteRT 1.4.0, which is Google's official successor to TensorFlow Lite and includes native libraries compiled with proper 16KB page alignment.
What Changed
Before (v0.12.0):
After (v0.12.1):
References