Merge commit 'ac05c898306bb36b57e39a13181a24911fb100ae' * commit 'ac05c898306bb36b57e39a13181a24911fb100ae': Return valid package info for packages that have been uninstalled with
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user