Skip to content

1.1.0 getting error code 7 when restore #48

Description

@Cr3bain

This is my backup code

backup.backupLocation(RoomBackup.BACKUP_FILE_LOCATION_CUSTOM_FILE)
    .backupLocationCustomFile(File(fileLocation))
    .database(MyDatabase.invoke(requireContext()))
    .enableLogDebug(true)
    .backupIsEncrypted(true)
    .customEncryptPassword("bP8!d1S4Q9a3")

And restore code

backup.backupLocation(RoomBackup.BACKUP_FILE_LOCATION_CUSTOM_FILE)
    .backupLocationCustomFile(File("${requireContext().filesDir}", fileName))
    .database(MyDatabase.invoke(context))
    .enableLogDebug(true)
    .backupIsEncrypted(true)
    .customEncryptPassword("bP8!d1S4Q9a3")

The following error occurs in Android 15 and 16. Other versions have not been tested.

chosen file is unencrypted while encrypted file is expected, exitCode: 7

When I downgraded from version 1.1.0 to 1.0.2, it worked without any problems.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions