Merge "Clear BCB if space allocation failed" am: b667621f8b am: b83bb72fb7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1997490 Change-Id: I114751bcd4f3241e1fa50a976ffc808e970cc057
This commit is contained in:
@@ -674,10 +674,12 @@ public class RecoverySystem {
|
||||
}
|
||||
try {
|
||||
if (!rs.allocateSpaceForUpdate(packageFile)) {
|
||||
rs.clearBcb();
|
||||
throw new IOException("Failed to allocate space for update "
|
||||
+ packageFile.getAbsolutePath());
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
rs.clearBcb();
|
||||
e.rethrowAsRuntimeException();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user