Add log before doRestoreFinished is called on BackupAgent.

This is added because only logging before doRestore was previously
shown, which meant that if the doRestoreFinished timed out, it would
in the logs look like it was the doRestore timing out.

Test: adb shell bmgr restore com.android.calllogbackup

Bug: 36507762
Change-Id: I2bd6e59ed0c5b0128eaca41b627356d459000065
This commit is contained in:
Johan Torås Halseth
2017-04-21 18:00:28 +01:00
parent 035aaddbb3
commit ddb5278dcb

View File

@@ -9187,6 +9187,9 @@ if (MORE_DEBUG) Slog.v(TAG, " + got " + nRead + "; now wanting " + (size - soF
// state RESTORE_FINISHED : provide the "no more data" signpost callback at the end
private void restoreFinished() {
if (DEBUG) {
Slog.d(TAG, "restoreFinished packageName=" + mCurrentPackage.packageName);
}
try {
prepareOperationTimeout(mEphemeralOpToken, TIMEOUT_RESTORE_FINISHED_INTERVAL, this,
OP_TYPE_RESTORE_WAIT);