Skip to content

1.1.0 getting error code 7 when restore #48

@Cr3bain

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.

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