seedvault icon indicating copy to clipboard operation
seedvault copied to clipboard

Restoring app data fails: Required package metadata but got android

Open 2wayne opened this issue 2 years ago • 3 comments

I created a backup on lineageos 19.1 and tried to restore it on 19.1. The only thing changed is that I was on FDE before and now it should be FBE. When restoring the backup the apps get restored but when restoring app data or android settings it fails.

logcat.txt

2wayne avatar Jan 14 '23 22:01 2wayne

Relevant part of the log:

01-14 22:21:55.815  1536  3320 V BackupManagerService: [UserID:0] beginRestoreSession: pkg=null transport=com.stevesoltys.seedvault.transport.ConfigurableBackupTransport
01-14 22:21:55.882  1536  1536 I TransportClient: ConfigurableBackupTransportService#98: Notifying [BMS.getOperationTypeFromTransport] transport = IBackupTransport
01-14 22:21:55.889  1536  3320 V BackupManagerService: [UserID:0] Acquired wakelock:*backup*-0-4101
01-14 22:21:55.897  1536  1536 I TransportClient: ConfigurableBackupTransportService#99: Notifying [BH/MSG_RUN_GET_RESTORE_SETS] transport = IBackupTransport
01-14 22:21:56.198  1536  2622 D RestoreSession: restoreAll token=185acad6f32 observer=android.app.backup.IRestoreObserver$Stub$Proxy@16d69ec
01-14 22:21:56.198  1536  2622 V BackupManagerService: [UserID:0] Acquired wakelock:*backup*-0-4101
01-14 22:21:56.200  1536  4101 V BackupManagerService: [UserID:0] Released wakelock:*backup*-0-4101
01-14 22:21:56.200  1536  4101 D BackupManagerService: MSG_RUN_RESTORE observer=android.app.backup.IRestoreObserver$Stub$Proxy@16d69ec
01-14 22:21:56.203  1536  4101 I BackupManagerService: Full restore; asking about 166 apps
01-14 22:21:56.205  1536  4101 D BackupManagerService: Starting restore.
01-14 22:21:56.205  1536  4101 I BackupRestoreController: System restore starting for user: 0
01-14 22:21:56.215  1536  1536 I TransportClient: ConfigurableBackupTransportService#100: Notifying [PerformUnifiedRestoreTask.startRestore()] transport = IBackupTransport
01-14 22:21:56.507  1536  4101 E BackupManagerService: Required package metadata but got android
01-14 22:21:56.509  1536  4101 I BackupRestoreController: systemRestoreFinished for 0
01-14 22:21:56.509  1536  4101 I BackupRestoreController: maybeSendWidgetRestoreBroadcasts for 0
01-14 22:21:56.509  1536  4101 I BackupManagerService: Restore complete.
01-14 22:21:56.512  1536  4101 V BackupManagerService: [UserID:0] Released wakelock:*backup*-0-4101
01-14 22:21:57.074  1536  3074 D RestoreSession: endRestoreSession
01-14 22:21:57.074  1536  4101 V BackupManagerService: [UserID:0] Clearing restore session and halting timeout

@t-m-w maybe you feel like digging in AOSP source code how this can happen?

grote avatar Jan 17 '23 15:01 grote

Related: https://github.com/seedvault-app/seedvault/issues/312#issuecomment-908127789

Nothing strikes me as particularly obvious in AOSP at the moment.

@2wayne, what type of storage location are you using? Looks like USB. Was it backed up using USB as well, or copied to it?

t-m-w avatar Jan 17 '23 16:01 t-m-w

Yes USB. I can choose from 3 backups, nothing more on the drive.

2wayne avatar Jan 17 '23 21:01 2wayne