# SQLCipher Upgrade

**URL:** https://discuss.zetetic.net/t/sqlcipher-upgrade/1824
**Category:** SQLCipher
**Created:** [November 30, 2016, 6:11pm UTC](https://discuss.zetetic.net/t/sqlcipher-upgrade/1824 "2016-11-30T18:11:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sjanardhanan](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@sjanardhanan](https://discuss.zetetic.net/u/sjanardhanan)
#### Post date: [November 30, 2016, 6:11pm UTC](https://discuss.zetetic.net/t/sqlcipher-upgrade/1824/1 "2016-11-30T18:11:44Z")

</div>

We are currently using android-database-sqlcipher:3.3.1-2 in our product. Our server creates SQLCipher database (based on SQLCipher 1.0) and we use PRAGMA cipher\_migrate; to migrate the database which is from 1.0. We are planning to support our app with Android N. We are planning to keep the Android TargetSDK as 23. I know that for supporting N, we need to upgrade SQLCipher to 3.5.4. Can we upgrade SQLCipher with Android Target SDK as 23. If so, what all will change to migrate the Server created database in1.0 to 3.5.4. Please help.

---

<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: [November 30, 2016, 7:30pm UTC](https://discuss.zetetic.net/t/sqlcipher-upgrade/1824/2 "2016-11-30T19:30:19Z")

</div>

Hello @sjanardhanan

You should be able to transition from 3.3.1-2 over to 3.5.4 without any additional changes; you will want to continue to use the `PRAGMA cipher_migrate;` command if you are generating SQLCipher 1.x databases.

---

<div class="post-metadata">

### Author: ![sjanardhanan](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@sjanardhanan](https://discuss.zetetic.net/u/sjanardhanan)
#### Post date: [November 30, 2016, 11:11pm UTC](https://discuss.zetetic.net/t/sqlcipher-upgrade/1824/3 "2016-11-30T23:11:54Z")

</div>

We are releasing soon and it will be unable for us to upgrade libraries. Will 3.3.1-2 library work Android N or Is it mandatory to upgrade libraries for it to work with Android N?

I am just clarifying that we have 23 as target SDK and 19 as minimum SDK.

---

<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: [December 1, 2016, 2:37pm UTC](https://discuss.zetetic.net/t/sqlcipher-upgrade/1824/4 "2016-12-01T14:37:59Z")

</div>

Hi @sjanardhanan

> [@sjanardhanan](#):
>
> Will 3.3.1-2 library work Android N or Is it mandatory to upgrade libraries for it to work with Android N?

No, 3.3.1-2 will not work with Android N, you will need to upgrade your library if you wish to run on Android N.
