am df830fda: Merge change I52c235db into eclair-mr2
Merge commit 'df830fdaf3a11002febeb1c79f547b634858b1e7' into eclair-mr2-plus-aosp * commit 'df830fdaf3a11002febeb1c79f547b634858b1e7': 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) {
|
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;
|
final PackageSetting ps = (PackageSetting)p.mExtras;
|
||||||
if (ps == null) {
|
if (ps == null) {
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user