Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7462251b authored by Christopher Tate's avatar Christopher Tate Committed by Android (Google) Code Review
Browse files

Merge "Don't hang in restore if the transport reports failure" into ics-factoryrom

parents a200a23a 5f2f4135
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -4372,8 +4372,13 @@ class BackupManagerService extends IBackupManager.Stub {
                            ParcelFileDescriptor.MODE_TRUNCATE);

                if (mTransport.getRestoreData(mBackupData) != BackupConstants.TRANSPORT_OK) {
                    // Transport-level failure, so we wind everything up and
                    // terminate the restore operation.
                    Slog.e(TAG, "Error getting restore data for " + packageName);
                    EventLog.writeEvent(EventLogTags.RESTORE_TRANSPORT_FAILURE);
                    mBackupData.close();
                    mBackupDataName.delete();
                    executeNextState(RestoreState.FINAL);
                    return;
                }