Log when priv permission is not whitelisted
Log violations for now, we will start enforcing it later. Test: Manual - device boots Bug: 32935038 Bug: 32935364 Change-Id: I1957c334f98852a5a87e093e24c72dd2c223c08b
This commit is contained in:
@@ -10407,9 +10407,9 @@ public class PackageManagerService extends IPackageManager.Stub {
|
||||
.getPrivAppPermissions(pkg.packageName);
|
||||
boolean whitelisted = wlPermissions != null && wlPermissions.contains(perm);
|
||||
if (!whitelisted) {
|
||||
Slog.e(TAG, "Not granting privileged permission " + perm + " for package "
|
||||
// Log for now. TODO Enforce permissions
|
||||
Slog.w(TAG, "Privileged permission " + perm + " for package "
|
||||
+ pkg.packageName + " - not in privapp-permissions whitelist");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
boolean allowed = (compareSignatures(
|
||||
|
||||
Reference in New Issue
Block a user