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
This commit is contained in:
@@ -8291,7 +8291,7 @@ public class PackageManagerService extends IPackageManager.Stub {
|
||||
removePackageDataLI(ps, outInfo, flags, writeSettings);
|
||||
|
||||
// Delete application code and resources
|
||||
if (deleteCodeAndResources) {
|
||||
if (deleteCodeAndResources && (outInfo != null)) {
|
||||
outInfo.args = createInstallArgs(packageFlagsToInstallFlags(ps), ps.codePathString,
|
||||
ps.resourcePathString, ps.nativeLibraryPathString);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user