Merge "Fix a potential NPE when allocating space for compressed apex" am: 2a0c9de597 am: dc7fc8bb6a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1763189 Change-Id: I4be2f02c5ec0cda1938c8ef3d07817933b10c9d1
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user