# Large file support for SQLCipher (android)?

**URL:** <https://discuss.zetetic.net/t/large-file-support-for-sqlcipher-android/567>\
**Category:** SQLCipher\
**Created:** [May 13, 2015, 1:30pm UTC](https://discuss.zetetic.net/t/large-file-support-for-sqlcipher-android/567 "2015-05-13T13:30:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![troemer](https://avatars.discourse-cdn.com/v4/letter/t/48db29/32.png) [@troemer](https://discuss.zetetic.net/u/troemer)\
**Post date:** [May 13, 2015, 1:30pm UTC](https://discuss.zetetic.net/t/large-file-support-for-sqlcipher-android/567/1 "2015-05-13T13:30:52Z")

</div>

Hello,  
We’re using SQLCipher for an android app and so far we’re very happy with it.

But I recently found a link to a discussion about file size limitations in SQLCipher: [https://groups.google.com/forum/#!topic/sqlcipher/DoJzRVBUisQ](https://groups.google.com/forum/#!topic/sqlcipher/DoJzRVBUisQ)

It seems that the file size limit for SQLCipher (android) is 2gb. (at least it was 2012)

Because some of our users now came close to 1,5 gb db files i wondered if the limit is still active or if it was fixed at some point.

If the file size limit wasn’t fixed already and it is not planned to get fixed:  
During the discussion the op was asked to compile his own version with large file support.  
You gave him advices and there even was a patch file attached at some point. But since the discussion is already 2,5 years old I don’t know how much of that is still usefull for SQLCipher 3.3.  
At the very least it seems you succeeded in creating a version with large file support but didn’t publish it because of some incompatibilities.

So if we’re supposed to compile our own version it would be very nice if you could provide us with the necessary changes. 😄

PS:  
I already set up a virtual linux pc and was able to compile sqlcipher as it is now following the guideline provided at [https://www.zetetic.net/sqlcipher/sqlcipher-for-android/](https://www.zetetic.net/sqlcipher/sqlcipher-for-android/)  
But I’m at a loss when it comes to finding and fixing the required parts for large file support.

regards  
Thomas

---

<div class="post-metadata">

**Author:** ![Rob](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@Rob](https://discuss.zetetic.net/u/Rob)\
**Post date:** [May 24, 2015, 12:42am UTC](https://discuss.zetetic.net/t/large-file-support-for-sqlcipher-android/567/2 "2015-05-24T00:42:25Z")

</div>

I’m also very keen to find out about this. If anyone with knowledge on this could shed some light it would be greatly appreciated.

Rob.

---

<div class="post-metadata">

**Author:** ![developernotes](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/developernotes/32/1309_2.png) [@developernotes](https://discuss.zetetic.net/u/developernotes)\
**Post date:** [May 26, 2015, 2:58pm UTC](https://discuss.zetetic.net/t/large-file-support-for-sqlcipher-android/567/3 "2015-05-26T14:58:20Z")

</div>

Hello @troemer, @Rob

There has not been any additional work toward supporting larger files within the Android ecosystem for SQLCipher. If your organization has specific interest, we do offer custom SQLCipher builds and support available, please feel free to reach out at [support@zetetic.net](mailto:support@zetetic.net) if you would like to discuss it further. Thanks!
