Skip to content

Commit 92bc9b3

Browse files
committed
PMS: check outInfo for null during delete
It appears that changing an application's signature during boot can pass an outInfo of null to this function. Bug: 7402550 Change-Id: I839fea6c8ee728a352c6b906f0fa6671c85f8694
1 parent 56e7563 commit 92bc9b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/java/com/android/server/pm/PackageManagerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8291,7 +8291,7 @@ private boolean deleteInstalledPackageLI(PackageSetting ps,
82918291
removePackageDataLI(ps, outInfo, flags, writeSettings);
82928292

82938293
// Delete application code and resources
8294-
if (deleteCodeAndResources) {
8294+
if (deleteCodeAndResources && (outInfo != null)) {
82958295
outInfo.args = createInstallArgs(packageFlagsToInstallFlags(ps), ps.codePathString,
82968296
ps.resourcePathString, ps.nativeLibraryPathString);
82978297
}

0 commit comments

Comments
 (0)