Merge "Add support for signature in getPackageArchiveInfo" into ics-mr0

This commit is contained in:
Kenny Root
2011-10-13 17:10:17 -07:00
committed by Android (Google) Code Review

View File

@@ -2124,6 +2124,9 @@ public abstract class PackageManager {
if (pkg == null) {
return null;
}
if ((flags & GET_SIGNATURES) != 0) {
packageParser.collectCertificates(pkg, 0);
}
return PackageParser.generatePackageInfo(pkg, null, flags, 0, 0);
}