[Android] SQLCipher support for Android SDK 35/16K page sizes?

Experimenting at the moment with updating our app to support 16K page sizes as per Support 16 KB page sizes  |  Android Developers

I haven’t noticed this being mentioned in any recent release notes for SQLCipher for Android , so just wondering if libsqlcipher.so is known to be 16K page size compliant? (at the moment using 4.5.3 which doesn’t appear to be, but I haven’t tried upgrading it to a later version)

Cheers,

Alex.

Hi @archifishalbtc,

Thank you for reaching out regarding SQLCipher for Android. We will investigate adjusting the builds to support 16k page sizes when Android 15 is released.

Hi @developernotes ,

Do you have an estimate of when a new version of SQLChiper for Android that supports 16 kb page sizes will be available? Android 15 Beta 3 was released, that marks the Platform Stability milestone, which means that Android 15 has reached final internal and external APIs and final app-facing behaviors.

Thank you!

Hello @dkeri - we’re targeting this feature for the next release of SQLCipher. We have not scheduled that release yet, but keep an eye out for updates. Note that the existing builds of SQLCipher will work on Android 15. New 16kb builds would only be required for specific new devices and emulators using a 16kb page size in conjunction with Android 15.

Hello @dkeri

Please note that this compatibility is now a requirement from Google:
" - With the support for a 16KB page size in Android V, both the kernel, platform, and apps running on Android V must also support a 16KB page size.

16K alignment requirement from V OS (Google policy).

(It is not mandatory to change the app.)

We have testing our apk using the following test:

  1. tools - platform/system/extras - Git at Google
  2. Download : check_elf_alignment.sh
  3. TEST using check_elf_alignment.sh

And got the following result:

=== APK zip-alignment ===

13279232 lib/arm64-v8a/libsqlcipher.so (BAD - 8192)

19103744 lib/x86_64/libsqlcipher.so (OK)

Verification FAILED

=========================

=== ELF alignment ===

find: -executable: unknown primary or operator

ELF Verification Successful

Would it be possible to have an estimate target for the new version including this 16Kb page size build so we can do plan accordingly ?

Best regards

Hello @Tof - This will be addressed in the next release of SQLCipher. We don’t have an release date schedule for that yet, but we expect it to be soon.

Hello @Tof - thanks for getting in touch about this. We’re aware of the upcoming requirements for 16 kb page sizes with Android 15. This will be addressed in the next release of SQLCipher. We don’t have an release date schedule for that yet, but we expect it to be soon. Prerelease versions are available to Commercial and Enterprise customers upon request to support@zetetic.net.

Hello, any news on when the release might come?

Hi @grdn,

SQLCipher 4.6.1 was released yesterday [1], this included support for the 16 kb page size in SQLCipher for Android.


  1. SQLCipher 4.6.1 Release | Zetetic ↩︎

Thanks for the quick answer, I looked into sqlcipher-android github repository and did not see any new releases, is that the wrong place to look?

Regards
grdn

Hi @grdn,

I just pushed the v4.6.1 tag to the sqlcipher-android repository. We publish a post on our blog [1], along with the SQLCipher Updates category [2] when a new public SQLCipher release is made available. Additionally, the core SQLCipher project has started to use the GitHub releases feature [3] so there are many ways for you to become aware of new public releases.


  1. Blog | Zetetic ↩︎

  2. Updates - Zetetic Community Discussion ↩︎

  3. Releases · sqlcipher/sqlcipher · GitHub ↩︎

1 Like

I see, thanks again for the quick answers and your work :slight_smile: