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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user