mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-21 10:17:56 +00:00
Retry backup verify on security exception.
This commit is contained in:
committed by
Greyson Parrelli
parent
99ac2cb333
commit
737b1c962a
@@ -23,7 +23,6 @@ import org.thoughtcrime.securesms.backup.BackupVerifier;
|
||||
import org.thoughtcrime.securesms.backup.FullBackupExporter;
|
||||
import org.thoughtcrime.securesms.crypto.AttachmentSecretProvider;
|
||||
import org.thoughtcrime.securesms.database.SignalDatabase;
|
||||
import org.thoughtcrime.securesms.jobmanager.JsonJobData;
|
||||
import org.thoughtcrime.securesms.jobmanager.Job;
|
||||
import org.thoughtcrime.securesms.keyvalue.SignalStore;
|
||||
import org.thoughtcrime.securesms.notifications.NotificationChannels;
|
||||
@@ -203,11 +202,9 @@ public final class LocalBackupJobApi29 extends BaseJob {
|
||||
Log.w(TAG, "Unable to verify backup", e);
|
||||
valid = false;
|
||||
}
|
||||
} catch (IOException e) {
|
||||
} catch (SecurityException | IOException e) {
|
||||
attempts++;
|
||||
Log.w(TAG, "Unable to find backup file, attempt: " + attempts + "/" + MAX_STORAGE_ATTEMPTS);
|
||||
} catch (SecurityException e) {
|
||||
Log.w(TAG, "Getting security exception when attempting to read file, aborting", e);
|
||||
Log.w(TAG, "Unable to find backup file, attempt: " + attempts + "/" + MAX_STORAGE_ATTEMPTS, e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user