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

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

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

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

Change-Id: Id9e3f312578a322784d8e80025ee72ac1419bf57
parents b882a036 b667621f
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();
            }