Do not thrown on error persisting runtime permissions
bug:20752986 Change-Id: I49d7e30afd49d3dcb1bcffd2fd48e9460ed5147f
This commit is contained in:
@@ -4339,8 +4339,6 @@ final class Settings {
|
|||||||
Slog.wtf(PackageManagerService.TAG,
|
Slog.wtf(PackageManagerService.TAG,
|
||||||
"Failed to write settings, restoring backup", t);
|
"Failed to write settings, restoring backup", t);
|
||||||
destination.failWrite(out);
|
destination.failWrite(out);
|
||||||
throw new IllegalStateException("Failed to write runtime permissions,"
|
|
||||||
+ " restoring backup", t);
|
|
||||||
} finally {
|
} finally {
|
||||||
IoUtils.closeQuietly(out);
|
IoUtils.closeQuietly(out);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user