# Migration from Android legacy to regular SQLCipher version

**URL:** <https://discuss.zetetic.net/t/migration-from-android-legacy-to-regular-sqlcipher-version/5802>\
**Category:** Issues\
**Created:** [March 3, 2023, 2:22pm UTC](https://discuss.zetetic.net/t/migration-from-android-legacy-to-regular-sqlcipher-version/5802 "2023-03-03T14:22:06Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [March 13, 2023, 1:38pm UTC](https://discuss.zetetic.net/t/migration-from-android-legacy-to-regular-sqlcipher-version/5802/4 "2023-03-13T13:38:46Z")

</div>

Hi @Chezlui,

There are two different version of SQLCipher for Android. The legacy edition: [android-database-sqlcipher](https://github.com/sqlcipher/android-database-sqlcipher/) and the new edition: [sqlcipher-android](https://github.com/sqlcipher/sqlcipher-android).

The legacy edition uses an external test suite available [here](https://github.com/sqlcipher/sqlcipher-android-tests), while the tests for the new sqlcipher-android library are bundled within the library [here](https://github.com/sqlcipher/sqlcipher-android/tree/master/sqlcipher/src/androidTest).

> [@Chezlui](#):
>
> I have a similar problem, after trying to migrate a v3.x to a v4.x I have ended out of solutions after looking at the forum.

If you are migrating from a SQLCipher 3.x to 4.x library version, you should review the migration options detailed here:

> [@Upgrading to SQLCipher 4](https://discuss.zetetic.net/t/upgrading-to-sqlcipher-4/3283):
>
> The recent release of [SQLCipher 4](https://www.zetetic.net/blog/2018/11/30/sqlcipher-400-release/) introduces many new performance and security enhancements for applications that use SQLCipher for secure local data storage. However, the introduction of new default algorithms, increased KDF iterations and a larger page size means that SQLCipher 4 will not open older databases by default. This document provides guidance on the upgrade options available to applications that have previously integrated SQLCipher versions 1 through 3. Option 1: Database File Migr…

---

_[View the full topic](https://discuss.zetetic.net/t/migration-from-android-legacy-to-regular-sqlcipher-version/5802)._
