Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CapacitorSQLitePlugin :null #603

Open
mustafa0x opened this issue Nov 23, 2024 · 1 comment
Open

CapacitorSQLitePlugin :null #603

mustafa0x opened this issue Nov 23, 2024 · 1 comment
Labels
bug/fix Something isn't working needs: triage

Comments

@mustafa0x
Copy link

mustafa0x commented Nov 23, 2024

This bug has been reported several times,

It seems to happen due to restoring old data, and the fix is adding allowbackup=false.

My questions:

  1. Any plan to fix this bug properly?
  2. Shouldn't this issue me mentioned in the README, and perhaps have an open issue to track it?
@mustafa0x mustafa0x added bug/fix Something isn't working needs: triage labels Nov 23, 2024
@YehorKardashRadency
Copy link

I am also getting this error on some devices. In adb logs I found these lines:

12-18 09:08:17.016   609  1593 E keystore2: keystore2::error: In KeystoreOperation::finish
12-18 09:08:17.016   609  1593 E keystore2: 
12-18 09:08:17.016   609  1593 E keystore2: Caused by:
12-18 09:08:17.016   609  1593 E keystore2:     0: In finish: KeyMint::finish failed.
12-18 09:08:17.016   609  1593 E keystore2:     1: Error::Km(ErrorCode(-30))
12-18 09:08:17.017 20361 20361 E com.getcapacitor.community.database.sqlite.CapacitorSQLitePlugin: CapacitorSQLitePlugin: nu

Keystore is used in Sqlite constructor when encryption is enabled

https://github.com/capacitor-community/sqlite/blob/master/android/src/main/java/com/getcapacitor/community/database/sqlite/CapacitorSQLite.java#L81

androidIsEncryption: false in capacitor.config.ts could be another workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/fix Something isn't working needs: triage
Projects
None yet
Development

No branches or pull requests

2 participants