Skip to content

Database gets corrupted if the database is open while the application is updated #629

Open
@manabreak

Description

@manabreak

Expected Behavior

The database should work normally after the application is updated.

Actual Behavior

Database gets corrupted.

Steps to Reproduce

While performing database operations, update the application (e.g. automatic update via Google Play) and restart the application.

SQLCipher for Android version: 4.5.3 (with Jetpack Room 2.4.3)

Additional info

This is visible as a SQLiteException in Crashlytics, spiking every time we update our application. We perform database operations in the background once per hour, and with a large userbase, it seems that a lot of users have the background DB operations running when the app starts updating itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions