Merge "Secure MATCH_UNINSTALLED_PACKAGES across users"

This commit is contained in:
Amith Yamasani
2016-12-01 17:01:05 +00:00
committed by Android (Google) Code Review
28 changed files with 163 additions and 78 deletions

View File

@ -299,7 +299,7 @@ public final class Icon implements Parcelable {
final PackageManager pm = context.getPackageManager();
try {
ApplicationInfo ai = pm.getApplicationInfo(
resPackage, PackageManager.GET_UNINSTALLED_PACKAGES);
resPackage, PackageManager.MATCH_UNINSTALLED_PACKAGES);
if (ai != null) {
mObj1 = pm.getResourcesForApplication(ai);
} else {