Merge "Add logs to IOExceptions during adb backup" into oc-mr1-dev

This commit is contained in:
TreeHugger Robot
2017-09-14 13:53:49 +00:00
committed by Android (Google) Code Review
4 changed files with 7 additions and 5 deletions

View File

@@ -136,7 +136,9 @@ public final class Backup {
if (fd != null) {
try {
fd.close();
} catch (IOException e) {}
} catch (IOException e) {
Log.e(TAG, "IO error closing output for backup: " + e.getMessage());
}
}
}
}

View File

@@ -4535,7 +4535,7 @@ public class BackupManagerService implements BackupManagerServiceInterface {
}
mOutputFile.close();
} catch (IOException e) {
/* nothing we can do about this */
Slog.e(TAG, "IO error closing adb backup file: " + e.getMessage());
}
synchronized (mLatch) {
mLatch.set(true);
@@ -10112,7 +10112,7 @@ if (MORE_DEBUG) Slog.v(TAG, " + got " + nRead + "; now wanting " + (size - soF
try {
fd.close();
} catch (IOException e) {
// just eat it
Slog.e(TAG, "IO error closing output for adb backup: " + e.getMessage());
}
Binder.restoreCallingIdentity(oldId);
Slog.d(TAG, "Adb backup processing complete.");

View File

@@ -2486,7 +2486,7 @@ public class RefactoredBackupManagerService implements BackupManagerServiceInter
try {
fd.close();
} catch (IOException e) {
// just eat it
Slog.e(TAG, "IO error closing output for adb backup: " + e.getMessage());
}
Binder.restoreCallingIdentity(oldId);
Slog.d(TAG, "Adb backup processing complete.");

View File

@@ -459,7 +459,7 @@ public class PerformAdbBackupTask extends FullBackupTask implements BackupRestor
}
mOutputFile.close();
} catch (IOException e) {
/* nothing we can do about this */
Slog.e(TAG, "IO error closing adb backup file: " + e.getMessage());
}
synchronized (mLatch) {
mLatch.set(true);