Loading services/backup/java/com/android/server/backup/UserBackupManagerService.java +7 −5 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ import static com.android.server.backup.internal.BackupHandler.MSG_RUN_CLEAR; import static com.android.server.backup.internal.BackupHandler.MSG_RUN_RESTORE; import static com.android.server.backup.internal.BackupHandler.MSG_SCHEDULE_BACKUP_PACKAGE; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.UserIdInt; import android.app.ActivityManager; Loading Loading @@ -973,6 +974,7 @@ public class UserBackupManagerService { /* scheduler */ null); } @NonNull private ArrayList<FullBackupEntry> readFullBackupSchedule() { boolean changed = false; ArrayList<FullBackupEntry> schedule = null; Loading @@ -986,11 +988,11 @@ public class UserBackupManagerService { DataInputStream in = new DataInputStream(bufStream)) { int version = in.readInt(); if (version != SCHEDULE_FILE_VERSION) { Slog.e( TAG, addUserIdToLogMessage( mUserId, "Unknown backup schedule version " + version)); return null; // The file version doesn't match the expected value. // Since this is within a "try" block, this exception will be treated like // any other exception, and caught below. throw new IllegalArgumentException("Unknown backup schedule version " + version); } final int numPackages = in.readInt(); Loading Loading
services/backup/java/com/android/server/backup/UserBackupManagerService.java +7 −5 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ import static com.android.server.backup.internal.BackupHandler.MSG_RUN_CLEAR; import static com.android.server.backup.internal.BackupHandler.MSG_RUN_RESTORE; import static com.android.server.backup.internal.BackupHandler.MSG_SCHEDULE_BACKUP_PACKAGE; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.UserIdInt; import android.app.ActivityManager; Loading Loading @@ -973,6 +974,7 @@ public class UserBackupManagerService { /* scheduler */ null); } @NonNull private ArrayList<FullBackupEntry> readFullBackupSchedule() { boolean changed = false; ArrayList<FullBackupEntry> schedule = null; Loading @@ -986,11 +988,11 @@ public class UserBackupManagerService { DataInputStream in = new DataInputStream(bufStream)) { int version = in.readInt(); if (version != SCHEDULE_FILE_VERSION) { Slog.e( TAG, addUserIdToLogMessage( mUserId, "Unknown backup schedule version " + version)); return null; // The file version doesn't match the expected value. // Since this is within a "try" block, this exception will be treated like // any other exception, and caught below. throw new IllegalArgumentException("Unknown backup schedule version " + version); } final int numPackages = in.readInt(); Loading