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

Commit 22480bc5 authored by Ruslan Tkhakokhov's avatar Ruslan Tkhakokhov Committed by Android (Google) Code Review
Browse files

Merge "Clear calling identity n BackupManager#reportDelayedRestoreResult" into udc-dev

parents 53c901a0 2d45bd53
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1619,7 +1619,14 @@ public class BackupManagerService extends IBackupManager.Stub {
                        /* caller */ "reportDelayedRestoreResult()");

        if (userBackupManagerService != null) {
            // Clear as the method binds to BackupTransport, which needs to happen from system
            // process.
            final long oldId = Binder.clearCallingIdentity();
            try {
                userBackupManagerService.reportDelayedRestoreResult(packageName, results);
            } finally {
                Binder.restoreCallingIdentity(oldId);
            }
        }
    }