sqlcipher / android-database-sqlcipher

Android SQLite API based on SQLCipher
https://www.zetetic.net/sqlcipher/sqlcipher-for-android/
Other
2.73k stars 564 forks source link

x64 and Android 11+ support #571

Closed terrycom9581 closed 2 years ago

terrycom9581 commented 2 years ago

Does this project support x64 and android 11+? If not, do you plan to update this project?

developernotes commented 2 years ago

Hi @terrycom9581

Yes, SQLCipher for Android supports armeabi-v7a, x86, x86_64, and arm64_v8a on Android 4.1 and up. Our README currently lists support for 4.1-10. We will adjust the wording. Are you experiencing an issue on a certain platform, or OS version?

terrycom9581 commented 2 years ago

I am testing on Android 9 (64bit) - Nox Emulator and facing some runtime issues. ( the build was successful ) I added the following lines to the build.gradle of my project. image It was built successfully but when I ran, it corrupted with the following log No pending exception expected: java.lang.ClassNotFoundException: Didn't find class "net.sqlcipher.database.SQLiteDatabase" on path image Would you kindly comment on this?

developernotes commented 2 years ago

Hi @terrycom9581

It is hard to comment on the specific cause from just that screenshot. IOCipher has a dependency on SQLCipher for Android, however, that reference is older than the current version. Additionally, it is possible ProGuard processing could be stripping class from the APK. Finally, you are also referencing the AndroidX sqlite-framework. Generally speaking we advise against bundling multiple SQLite/SQLCipher implementations within a single application due to runtime conflicts and the potential for corruption.

terrycom9581 commented 2 years ago

Yes, I am using IOCipher and maybe this error is related to SQLiteDatabase in sqlcipher. I suppose I didn't make a correct configuration in my build.gradle. Would you give me a kind of sample configuration for this? for latest version, i mean

developernotes commented 2 years ago

Hi @terrycom9581

Information regarding usage of the latest version of SQLCipher for Android is available here.

terrycom9581 commented 2 years ago

I tried it but it was making the above exception

stale[bot] commented 2 years ago

Hello, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "bug", "enhancement", or "security" and I will leave it open. Thank you for your contributions.

stale[bot] commented 2 years ago

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to reopen with up-to-date information.