Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bbc4137 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Clear BCB if space allocation failed" am: b667621f am: b83bb72f

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1997490

Change-Id: I114751bcd4f3241e1fa50a976ffc808e970cc057
parents 20cb3551 b83bb72f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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();
            }