do not merge

Return valid package info for packages that have been uninstalled with
an option to retain data and resources using the flag GET_UNINSTALLED_PACKAGES
These packages do not have a package setting. just check the flag and return
the required info from PackageParser.generatePackageInfo
This commit is contained in:
Suchi Amalapurapu
2009-10-14 12:11:48 -07:00
parent 37a13208c9
commit b897cff1ef

View File

@ -872,6 +872,10 @@ class PackageManagerService extends IPackageManager.Stub {
}
PackageInfo generatePackageInfo(PackageParser.Package p, int flags) {
if ((flags & PackageManager.GET_UNINSTALLED_PACKAGES) != 0) {
// The package has been uninstalled but has retained data and resources.
return PackageParser.generatePackageInfo(p, null, flags);
}
final PackageSetting ps = (PackageSetting)p.mExtras;
if (ps == null) {
return null;