Merge "Don't log privapp-permissions violations for updated apps"
This commit is contained in:
committed by
Android (Google) Code Review
commit
bdaded344f
@@ -11711,7 +11711,8 @@ public class PackageManagerService extends IPackageManager.Stub {
|
||||
if (!whitelisted) {
|
||||
Slog.w(TAG, "Privileged permission " + perm + " for package "
|
||||
+ pkg.packageName + " - not in privapp-permissions whitelist");
|
||||
if (!mSystemReady) {
|
||||
// Only report violations for apps on system image
|
||||
if (!mSystemReady && !pkg.isUpdatedSystemApp()) {
|
||||
if (mPrivappPermissionsViolations == null) {
|
||||
mPrivappPermissionsViolations = new ArraySet<>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user