Migrate to LiteRT 1.4.0 for Proper 16KB Page Size Support #299
+12
−5
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