Do not crash when backup process encounters an unexpected security exception.

This commit is contained in:
Cody Henthorne
2023-03-14 11:13:17 -04:00
parent 904817b498
commit dae0559568

View File

@@ -206,6 +206,8 @@ public final class LocalBackupJobApi29 extends BaseJob {
} catch (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);
}
}