Log an error on package not found in DefaultPermissionGrantPolicy

Currently information on which package was not found is lost, e.g.
https://buganizer.corp.google.com/issues/123042772#comment9

Bug: 123042772
Test: presubmit
Change-Id: I2566364c56c1752c05047a32ee5ceb8b9ea996f8
This commit is contained in:
Eugene Susla
2019-01-22 17:46:54 -08:00
parent ef76c77a43
commit 12523abd4d

View File

@@ -1272,6 +1272,7 @@ public final class DefaultPermissionGrantPolicy {
return mContext.getPackageManager().getPackageInfo(pkg,
DEFAULT_PACKAGE_INFO_QUERY_FLAGS | extraFlags);
} catch (NameNotFoundException e) {
Slog.e(TAG, "PackageNot found: " + pkg, e);
return null;
}
}