seedvault-app / seedvault

A backup application for the Android Open Source Project.
1.26k stars 74 forks source link

Two restore sets created when setting up the app #629

Closed grote closed 5 months ago

grote commented 7 months ago

We call initializeTransportsForUser() after selecting new storage which is in line with the API docs.

However, when doing the first backup, the system forces us to do another initialization, because @pm@ has no data stored: https://cs.android.com/android/platform/superproject/main/+/main:frameworks/base/services/backup/java/com/android/server/backup/keyvalue/KeyValueBackupTask.java;l=627;drc=1e6cad07e738f3a7c2baf7639b45e043db892d3c

grote commented 5 months ago

Fixed by #628