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

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

Merge "Fix a potential NPE when allocating space for compressed apex" am:...

Merge "Fix a potential NPE when allocating space for compressed apex" am: 2a0c9de5 am: dc7fc8bb am: 313ac6b0 am: 315e648b

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

Change-Id: Ib4ba975853ba465b816b8ce1c136d62e77d1e2d3
parents 21c21ceb 315e648b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -970,6 +970,12 @@ public class RecoverySystemService extends IRecoverySystem.Stub implements Reboo
        final long token = Binder.clearCallingIdentity();
        try {
            CompressedApexInfoList apexInfoList = getCompressedApexInfoList(packageFile);
            if (apexInfoList == null) {
                Log.i(TAG, "apex_info.pb not present in OTA package. "
                            + "Assuming device doesn't support compressed"
                            + "APEX, continueing without allocating space.");
                return true;
            }
            ApexManager apexManager = ApexManager.getInstance();
            apexManager.reserveSpaceForCompressedApex(apexInfoList);
            return true;