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

Commit f18c6ffa authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add logs to IOExceptions during adb backup"

parents 8b2ec038 5176c025
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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());
                }
            }
        }
    }
+2 −2
Original line number Diff line number Diff line
@@ -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.");
+1 −1
Original line number Diff line number Diff line
@@ -2396,7 +2396,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.");
+1 −1
Original line number Diff line number Diff line
@@ -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);