# Migration from 4.5.4 regarding System.loadLibrary() (Android)

**URL:** <https://discuss.zetetic.net/t/migration-from-4-5-4-regarding-system-loadlibrary-android/6570>\
**Category:** SQLCipher\
**Created:** [August 7, 2024, 7:48am UTC](https://discuss.zetetic.net/t/migration-from-4-5-4-regarding-system-loadlibrary-android/6570 "2024-08-07T07:48:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcardar](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/marcardar/32/1524_2.png) [@marcardar](https://discuss.zetetic.net/u/marcardar)\
**Post date:** [August 7, 2024, 7:48am UTC](https://discuss.zetetic.net/t/migration-from-4-5-4-regarding-system-loadlibrary-android/6570/1 "2024-08-07T07:48:10Z")

</div>

I recently migrated to 4.6.0 (from 4.5.4) so with new new library, and I noticed in the notes it says to use `System.loadLibrary()` instead of `SQLiteDatabase.loadLibs()`. However, I was using `System.loadLibrary()` already. So I’m curious how everything was working fine before. What was `SQLiteDatabase.loadLibs()` doing that I was missing out on?

---

<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, 2024, 3:48pm UTC](https://discuss.zetetic.net/t/migration-from-4-5-4-regarding-system-loadlibrary-android/6570/2 "2024-08-07T15:48:06Z")

</div>

Hi @marcardar,

The call to `loadLibs(...)` in the older SQLCipher for Android library was calling `System.loadLibrary` as well \[1\], but through a `LibraryLoader` interface \[2\] allowing you to override the behavior (necessary for some platform targets). We didn’t feel the abstraction was necessary in the new library.

* * *

1. [android-database-sqlcipher/android-database-sqlcipher/src/main/java/net/sqlcipher/database/SQLiteDatabase.java at master · sqlcipher/android-database-sqlcipher · GitHub](https://github.com/sqlcipher/android-database-sqlcipher/blob/master/android-database-sqlcipher/src/main/java/net/sqlcipher/database/SQLiteDatabase.java#L230-L247) 

2. [android-database-sqlcipher/android-database-sqlcipher/src/main/java/net/sqlcipher/database/SQLiteDatabase.java at master · sqlcipher/android-database-sqlcipher · GitHub](https://github.com/sqlcipher/android-database-sqlcipher/blob/master/android-database-sqlcipher/src/main/java/net/sqlcipher/database/SQLiteDatabase.java#L204-L213)
