Merge "Retrieve BackupAgent logs after onRestoreFinished completes execution" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
cdafea74a5
@@ -900,9 +900,6 @@ public class PerformUnifiedRestoreTask implements BackupRestoreTask {
|
|||||||
mAgent.doRestoreFinished(mEphemeralOpToken,
|
mAgent.doRestoreFinished(mEphemeralOpToken,
|
||||||
backupManagerService.getBackupManagerBinder());
|
backupManagerService.getBackupManagerBinder());
|
||||||
|
|
||||||
// Ask the agent for logs after doRestoreFinished() to allow it to finalize its logs.
|
|
||||||
BackupManagerMonitorUtils.monitorAgentLoggingResults(mMonitor, mCurrentPackage, mAgent);
|
|
||||||
|
|
||||||
// If we get this far, the callback or timeout will schedule the
|
// If we get this far, the callback or timeout will schedule the
|
||||||
// next restore state, so we're done
|
// next restore state, so we're done
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@@ -1323,6 +1320,11 @@ public class PerformUnifiedRestoreTask implements BackupRestoreTask {
|
|||||||
EventLog.writeEvent(EventLogTags.RESTORE_PACKAGE,
|
EventLog.writeEvent(EventLogTags.RESTORE_PACKAGE,
|
||||||
mCurrentPackage.packageName, size);
|
mCurrentPackage.packageName, size);
|
||||||
|
|
||||||
|
// Ask the agent for logs after doRestoreFinished() has completed executing to allow
|
||||||
|
// it to finalize its logs.
|
||||||
|
BackupManagerMonitorUtils.monitorAgentLoggingResults(mMonitor, mCurrentPackage,
|
||||||
|
mAgent);
|
||||||
|
|
||||||
// Just go back to running the restore queue
|
// Just go back to running the restore queue
|
||||||
keyValueAgentCleanup();
|
keyValueAgentCleanup();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user