Android Tutorial Android database encryption with SQLCipher library

Status
Not open for further replies.

clarionero

Active Member
Licensed User
Longtime User
Hi. I can't found the update. The first post library is 1.3 version.

Thanks

Rubén
 

tucano2000

Active Member
Licensed User
Longtime User
V1.40 is released with support for async SQL methods.

I am getting a issue after update 1.40. Now compiling is a sucessfull, but when run application in my phone, it crash and close.

In Debug mode you can see that the problem occurs when initialize sqlcipher.
log:


Logger connected to: samsung SM-A910F
--------- beginning of main
--------- beginning of system
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (menuprincipal) Create, isFirst = true **
art/runtime/jni_internal.cc:497] JNI FatalError called: RegisterNatives failed for 'net/sqlcipher/database/SQLiteDatabase'; aborting...
art/runtime/runtime.cc:368] Runtime aborting...
art/runtime/runtime.cc:368]
Fatal signal 6 (SIGABRT), code -6 in tid 26095

Using B4A 7.01, copied and replaced 5 files to libraries folder and icudt46l.zip to assets folder.

I created a new separate project, containing only basic instructions for sqlcipher. The result was the same.
 
Last edited:

tucano2000

Active Member
Licensed User
Longtime User
Which device are you using? Which Android version?

Android 6.01 Samsung Galaxy A9 to before test.

Now another device Motorola XT1078 Android 6.0 log:

 

tucano2000

Active Member
Licensed User
Longtime User
sqlcipher_native.jar is with different size and date. anothers files are with different date.

But I downloaded the link that was removed from post 142.

The link that was in the browser history when I downloaded it was this.

https://www.b4x.com/android/files/SQLCipher.zip

There is another correct link for 1.40 ?
 

Attachments

  • sqlcipher.png
    12.6 KB · Views: 473
Last edited:

Rusty

Well-Known Member
Licensed User
Longtime User
I have updated my v1.3 to v1.4 and now my app will not run.
I'm getting the following in my unfiltered logs: This occurs on the first initialization of the first SQLCipher database I try to open.
Any ideas are greatly appreciated.
Rusty
 

Rusty

Well-Known Member
Licensed User
Longtime User
Hi Erel,
Yes, it does work on my device. (BTW, BridgeCLI is cool and I agree, it would be great to "mass install" an app on all discovered devices. It would make my install/burn in of devices easier I frequently install/burn in 100 tablets at a time )
My PC SQLCipher creates my database and is using
Version 9
03.29.16
I'm wondering if this version isn't compatible with 1.4?
Regards,
Rusty
 

SMOOTSARA

Active Member
Licensed User
Longtime User
Hey guys

I used this library to protect data

Before the encryption, the database size was 104 MB, but after the encryption 98.2 MB.
(The volume of the database was reduced to 6 MB).

But

After the release of the program, we see that the APK file size has changed from 22.5 MB to 104 MB !!!!!!

If after the encryption the volume of the database is reduced 6 MB, how is the program size larger(22.5 MB ==> 104 MB)?
Could you describe this phenomenon to me?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…