diff --git a/parse.py b/parse.py index 84e5799..16f92d2 100755 --- a/parse.py +++ b/parse.py @@ -689,7 +689,11 @@ def parse_apk_data_backup(self, pkg_name, pkg_metadata, key, salt): scipher = self.get_cipher(f, key, adbuf) with scipher as dec_stream: - bytes_read = dec_stream.read() + try: + bytes_read = dec_stream.read() + except Exception as e: + logger.error(f" Error: Failure to decrypt {os.path.basename(pkg_path).decode()}: {e}") + return output_file.write(bytes_read) output_file.seek(0)