avibrazil/iOSbackup

Exception has occurred: KeyError b'DPSL'

morgancasale opened this issue · 2 comments

An error occurs while creating a iOSbackup object from a password protected backup.
The error is the following:

Exception has occurred: KeyError
b'DPSL'

The error occurs while running this simple code:

from iOSbackup import iOSbackup

def extract_ChatStorage(backup_path, password):
    devices = iOSbackup.getDeviceList(backup_path)
    backup = iOSbackup(
        udid = devices[0]["udid"],
        cleartextpassword = password,
        backuproot = backup_path
    )

    return backup.getFileDecryptedCopy("App/net.whatsapp.WhatsApp/Documents/ChatStorage.sqlite")["decryptedFilePath"]

a=extract_ChatStorage("path to a folder containing only one backup", "password")

I run into the same problem. What's the ios version of the device you had the backup?

Is the backup encrypted? Which iOS version?