# SQLCipher for Android ver.4.1.3 crashes on Android 5.1.1

**URL:** <https://discuss.zetetic.net/t/sqlcipher-for-android-ver-4-1-3-crashes-on-android-5-1-1/3657>\
**Category:** Issues\
**Created:** [May 10, 2019, 5:00am UTC](https://discuss.zetetic.net/t/sqlcipher-for-android-ver-4-1-3-crashes-on-android-5-1-1/3657 "2019-05-10T05:00:02Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shintaro](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@Shintaro](https://discuss.zetetic.net/u/Shintaro)\
**Post date:** [May 10, 2019, 5:00am UTC](https://discuss.zetetic.net/t/sqlcipher-for-android-ver-4-1-3-crashes-on-android-5-1-1/3657/1 "2019-05-10T05:00:02Z")

</div>

Dear Team,

After updating SQL Chipper from 3.1.0 to 4.1.3 and releasing it to the market for 64 bit support, many Android 5.1.1 users have reported crashes.

As a result that we analyzed with Android 5.1.1,  
It seems to be crashing with SQLiteDatabase.loadLibs.

```
**``**
```
  
W / linker: ourapp / lib / arm64 / libsqlcipher.so: unused DT entry: type 0x6ffffffe arg 0x7768  
W / linker: ourapp / lib / arm64 / libsqlcipher.so: unused DT entry: type 0x6fffffff arg 0x3  

As a trial, I incorporated an AAR using elf cleaner posted at the following URL, but it did not improve.

> <https://github.com/sqlcipher/android-database-sqlcipher/issues/438>

Finally, the problem was solved when a new application that incorporated SQL Chiper ver.4.0.1 was installed.  
However, applications incorporating SQL Chipper ver.4.1.3 have already been released to the market and can not be easily downgraded.

Is there a problem with compatibility between SQL Chiper ver.4.1.3 and Android 5.1.1?  
Please tell me the solution.

---

<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 10, 2019, 9:53pm UTC](https://discuss.zetetic.net/t/sqlcipher-for-android-ver-4-1-3-crashes-on-android-5-1-1/3657/2 "2019-05-10T21:53:52Z")

</div>

Hello @Shintaro,

We just restored a factory image of Android OS 5.1.1 onto a Nexus 9, then ran the SQLCipher for Android test suite using 4.1.3 and all tests pass. Out of curiosity, what device(s) are you seeing the error on? Are they the Oppo devices mentioned in the GitHub Issue you linked to?

---

<div class="post-metadata">

**Author:** ![Shintaro](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@Shintaro](https://discuss.zetetic.net/u/Shintaro)\
**Post date:** [May 13, 2019, 2:14pm UTC](https://discuss.zetetic.net/t/sqlcipher-for-android-ver-4-1-3-crashes-on-android-5-1-1/3657/3 "2019-05-13T14:14:01Z")

</div>

Thank you for answer immediately!

We also restored ver.5.1.1 to Nexus 7 and confirmed its operation, but it worked without problems.

Apparently, it does not occur with all Android 5.1.1, but seems to be limited to some devices.

However, although the devices for which a crash was reported here are all models manufactured by a Japanese manufacturer, these are reports from multiple manufacturers, so it is unlikely to be a defect by the manufacturer.

The OPPO we referred to is the same error code, so I think it’s the same cause.

If possible, is it possible to check a little more on other Android 5.1.1 smartphones?

In addition, because SQL Chiper 4.0.1 works without any problems, is there no cause for the difference between 4.0.1 and 4.1.x?

---

<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 13, 2019, 9:33pm UTC](https://discuss.zetetic.net/t/sqlcipher-for-android-ver-4-1-3-crashes-on-android-5-1-1/3657/4 "2019-05-13T21:33:45Z")

</div>

Hi @Shintaro

Can you provide a list of devices models, with their Android OS version that have reported this issue? Also, are you a Commercial Edition license holder of SQLCipher for Android?

---

<div class="post-metadata">

**Author:** ![Shintaro](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@Shintaro](https://discuss.zetetic.net/u/Shintaro)\
**Post date:** [May 15, 2019, 6:18am UTC](https://discuss.zetetic.net/t/sqlcipher-for-android-ver-4-1-3-crashes-on-android-5-1-1/3657/5 "2019-05-15T06:18:24Z")

</div>

Hello Nick,

Thank you for your consideration.  
Very sorry, we do not have Commercial Edition license.

A list of devices models is below.

- KYOCERA DIGNO rafre Android 5.1.1
- FUJITSU ARROWS M02 Android 5.1.1

The phenomenon appears to be limited to Android 5.1.1 and manufacturer models only.

---

<div class="post-metadata">

**Author:** ![vit](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/vit/32/1104_2.png) [@vit](https://discuss.zetetic.net/u/vit)\
**Post date:** [August 6, 2019, 2:44pm UTC](https://discuss.zetetic.net/t/sqlcipher-for-android-ver-4-1-3-crashes-on-android-5-1-1/3657/6 "2019-08-06T14:44:37Z")

</div>

Hello all,

@Shintaro have you fixed your problem?

@developernotes I have the similar issue, same log message and same behavior - an app can not be opened. An App is closed without any dialog. I tried sqlcipher 4.1.3 and 4.2.0.  
With sqlcipher 4.0.1 there is no issue, but I have an issue with db migration.

My device is very specific - **Bluebird ef500** with Android 5.1.1.

Is there is any way to fix the issue?

Thanks!

---

<div class="post-metadata">

**Author:** ![sjlombardo](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/sjlombardo/32/3_2.png) [@sjlombardo](https://discuss.zetetic.net/u/sjlombardo)\
**Post date:** [August 6, 2019, 9:15pm UTC](https://discuss.zetetic.net/t/sqlcipher-for-android-ver-4-1-3-crashes-on-android-5-1-1/3657/7 "2019-08-06T21:15:30Z")

</div>

@vit - do you actually have a Bluebird ef500 with Android 5.1.1 in your possession? If so, can you please run the SQLCipher for Android [Test Suite](https://github.com/sqlcipher/sqlcipher-android-tests) on the device and tell us if you are able to reproduce any crashes, and if so, in what tests?

---

<div class="post-metadata">

**Author:** ![vit](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/vit/32/1104_2.png) [@vit](https://discuss.zetetic.net/u/vit)\
**Post date:** [August 7, 2019, 9:09am UTC](https://discuss.zetetic.net/t/sqlcipher-for-android-ver-4-1-3-crashes-on-android-5-1-1/3657/8 "2019-08-07T09:09:43Z")

</div>

I have run all the test, and they all failed. Please see logs taken from Logcat:

08-07 05:06:00.979 3153-3153/? I/art: Late-enabling -Xcheck:jni  
08-07 05:06:00.997 3153-3163/? I/art: Debugger is no longer active  
08-07 05:06:01.153 3153-3153/? I/InstantRun: starting instant run server: is main process  
08-07 05:06:01.270 3153-3153/? I/ViewRootImpl: CPU Rendering VSync enable = false  
08-07 05:06:01.271 3153-3172/? D/OpenGLRenderer: Use EGL\_SWAP\_BEHAVIOR\_PRESERVED: true  
08-07 05:06:01.276 3153-3153/? D/Atlas: Validating map…  
08-07 05:06:01.310 3153-3172/? I/Adreno-EGL: \<qeglDrvAPI\_eglInitialize:379\>: EGL 1.4 QUALCOMM build: AU\_LINUX\_ANDROID\_LA.BR.1.1.3\_RB1.05.01.00.032.017\_msm8916\_64\_LA.BR.1.1.3\_RB1\_\_release\_AU (I3578547039)  
OpenGL ES Shader Compiler Version: E031.25.03.04  
Build Date: 05/26/15 Tue  
Local Branch: mybranch10361660  
Remote Branch: quic/LA.BR.1.1.3\_rb1.15  
Local Patches: NONE  
Reconstruct Branch: AU\_LINUX\_ANDROID\_LA.BR.1.1.3\_RB1.05.01.00.032.017 + 26a3cba + 6f69ea6 + 8bc2bc8 + 649fcde + a52cccf + dbf281f + 15f0bf8 + 8d02f76 + 9b2cb1a + 25f3b04 + NOTHING  
08-07 05:06:01.311 3153-3172/? I/OpenGLRenderer: Initialized EGL, version 1.4  
08-07 05:06:01.320 3153-3172/? D/OpenGLRenderer: Enabling debug mode 0  
08-07 05:06:01.373 3153-3153/? I/Timeline: Timeline: Activity\_idle id: android.os.BinderProxy@313d2bb4 time:945882260  
08-07 05:06:04.049 3153-3153/net.zetetic.sqlcipher.test I/Timeline: Timeline: Activity\_launch\_request id:net.zetetic.sqlcipher.test time:945884936  
08-07 05:06:04.115 3153-3168/net.zetetic.sqlcipher.test W/art: Suspending all threads took: 19.585ms  
08-07 05:06:04.119 3153-3168/net.zetetic.sqlcipher.test I/art: Background sticky concurrent mark sweep GC freed 4657(259KB) AllocSpace objects, 0(0B) LOS objects, 26% free, 847KB/1161KB, paused 20.650ms total 57.817ms  
08-07 05:06:04.200 3153-3153/net.zetetic.sqlcipher.test W/linker: /data/app/net.zetetic.sqlcipher.test-1/lib/arm64/libsqlcipher.so: unused DT entry: type 0x6ffffffe arg 0x7810  
08-07 05:06:04.200 3153-3153/net.zetetic.sqlcipher.test W/linker: /data/app/net.zetetic.sqlcipher.test-1/lib/arm64/libsqlcipher.so: unused DT entry: type 0x6fffffff arg 0x3

The tests were run on **Bluebird ef500** with Android 5.1.1.

---

<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:** [August 7, 2019, 1:38pm UTC](https://discuss.zetetic.net/t/sqlcipher-for-android-ver-4-1-3-crashes-on-android-5-1-1/3657/9 "2019-08-07T13:38:19Z")

</div>

Hello @vit

Unfortunately, we do not have that specific device to test on. We do have a suggestion, however it will require you to compile a command line utility using the Android NDK and post process the native libraries found within the SQLCipher for Android AAR artifact available [here](https://repo1.maven.org/maven2/net/zetetic/android-database-sqlcipher/4.2.0/android-database-sqlcipher-4.2.0.aar). The AAR package was built using the Android NDK version `r15c` available [here](https://developer.android.com/ndk/downloads/older_releases).

1. Download the AAR file linked above, rename the file extension to `.zip` and unzip it
2. Compile the [`android-elf-cleaner`](https://github.com/kost/android-elf-cleaner#android-elf-cleaner) utility using [these](https://www.dllhook.com/post/211.html) instructions
3. Run the `android-elf-cleaner` binary on all `libsqlcipher.so` files located within the following folders of the unzipped archive:  
a. `jni/armeabi/libsqlcipher.so`  
b. `jni/armeabi-v7a/libsqlcipher.so`  
c. `jni/x86/libsqlcipher.so`  
d. `jni/x86_64/libsqlcipher.so`  
e. `jni/arm64-v8a/libsqlcipher.so`
4. Zip the `android-database-sqlcipher-4.2.0` folder and rename the extension from `.zip` to `.aar`.
5. Adjust your project to reference this locally modified AAR package instead of the Community Edition version
6. Test your project again

We look forward to hearing your results. Thanks!

---

<div class="post-metadata">

**Author:** ![rsarma](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@rsarma](https://discuss.zetetic.net/u/rsarma)\
**Post date:** [August 14, 2019, 2:10pm UTC](https://discuss.zetetic.net/t/sqlcipher-for-android-ver-4-1-3-crashes-on-android-5-1-1/3657/10 "2019-08-14T14:10:55Z")

</div>

Few of our users are facing the same issue on Kyocera/Sony devices with 5.1.1. We are trying to get hold of some of them.

---

<div class="post-metadata">

**Author:** ![snouv](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@snouv](https://discuss.zetetic.net/u/snouv)\
**Post date:** [August 23, 2019, 6:36pm UTC](https://discuss.zetetic.net/t/sqlcipher-for-android-ver-4-1-3-crashes-on-android-5-1-1/3657/11 "2019-08-23T18:36:40Z")

</div>

Hi @developernotes

Followed the steps. The app crashes with error message below:

08-23 14:21:45.315 12997 12997 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot find verneed/verdef for version index=2 referenced by symbol “strcmp” at “jS9-qSkjTYXcq0PRa\_FL5Q==/lib/arm64/libsqlcipher.so”

---

<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:** [August 23, 2019, 6:51pm UTC](https://discuss.zetetic.net/t/sqlcipher-for-android-ver-4-1-3-crashes-on-android-5-1-1/3657/12 "2019-08-23T18:51:28Z")

</div>

Hi @snouv

Are you using `abiFilter` when building your application?

---

<div class="post-metadata">

**Author:** ![snouv](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@snouv](https://discuss.zetetic.net/u/snouv)\
**Post date:** [August 23, 2019, 7:11pm UTC](https://discuss.zetetic.net/t/sqlcipher-for-android-ver-4-1-3-crashes-on-android-5-1-1/3657/13 "2019-08-23T19:11:59Z")

</div>

yes

ndk {  
abiFilters “x86”,“x86\_64”, “armeabi-v7a”, “arm64-v8a”  
}

---

<div class="post-metadata">

**Author:** ![sjlombardo](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/sjlombardo/32/3_2.png) [@sjlombardo](https://discuss.zetetic.net/u/sjlombardo)\
**Post date:** [August 26, 2019, 12:44pm UTC](https://discuss.zetetic.net/t/sqlcipher-for-android-ver-4-1-3-crashes-on-android-5-1-1/3657/14 "2019-08-26T12:44:21Z")

</div>

@snouv - are you using any other libraries that include native components?

---

<div class="post-metadata">

**Author:** ![snouv](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@snouv](https://discuss.zetetic.net/u/snouv)\
**Post date:** [August 26, 2019, 2:54pm UTC](https://discuss.zetetic.net/t/sqlcipher-for-android-ver-4-1-3-crashes-on-android-5-1-1/3657/15 "2019-08-26T14:54:14Z")

</div>

Yes, there are other native libraries. I can confirm that each abi folder contains the same number of \*.so files.

---

<div class="post-metadata">

**Author:** ![vit](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/vit/32/1104_2.png) [@vit](https://discuss.zetetic.net/u/vit)\
**Post date:** [August 28, 2019, 9:29am UTC](https://discuss.zetetic.net/t/sqlcipher-for-android-ver-4-1-3-crashes-on-android-5-1-1/3657/16 "2019-08-28T09:29:54Z")

</div>

Hello all,

Followed the steps provided by @developernotes the app also crashes with error message:  
java.lang.UnsatisfiedLinkError: dlopen failed: cannot find verneed/verdef for version index=2 referenced by symbol “strcmp” at “lib/arm/libsqlcipher.so”

However on my specific device - **Bluebird ef500** the app also cannot be opened. It`s closed without any exception.

---

<div class="post-metadata">

**Author:** ![rsarma](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@rsarma](https://discuss.zetetic.net/u/rsarma)\
**Post date:** [August 30, 2019, 1:44pm UTC](https://discuss.zetetic.net/t/sqlcipher-for-android-ver-4-1-3-crashes-on-android-5-1-1/3657/17 "2019-08-30T13:44:23Z")

</div>

@developernotes Do you have enough information to address this issue. Let us know if there is anything we can help you with.

---

<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:** [August 30, 2019, 2:42pm UTC](https://discuss.zetetic.net/t/sqlcipher-for-android-ver-4-1-3-crashes-on-android-5-1-1/3657/18 "2019-08-30T14:42:59Z")

</div>

Hi @rsarma

Do you have a device available that you can reproduce the issue on?

---

<div class="post-metadata">

**Author:** ![rsarma](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@rsarma](https://discuss.zetetic.net/u/rsarma)\
**Post date:** [August 30, 2019, 3:13pm UTC](https://discuss.zetetic.net/t/sqlcipher-for-android-ver-4-1-3-crashes-on-android-5-1-1/3657/19 "2019-08-30T15:13:35Z")

</div>

Its with one of our support in a different location. If you have instrumented libraries, we can help get logs/test. @snouv from our team, had some issues testing with the modified aar you suggested.

---

<div class="post-metadata">

**Author:** ![ramakant](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@ramakant](https://discuss.zetetic.net/u/ramakant)\
**Post date:** [November 6, 2019, 1:20pm UTC](https://discuss.zetetic.net/t/sqlcipher-for-android-ver-4-1-3-crashes-on-android-5-1-1/3657/20 "2019-11-06T13:20:38Z")

</div>

Reproducible on Oppo A37 and VIVO Y51.  
This issue happening mostly on devices with MSM8916 processor with Android Lollipop.

[Next page](https://discuss.zetetic.net/t/sqlcipher-for-android-ver-4-1-3-crashes-on-android-5-1-1/3657.md?page=2)
