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:
Fyodor Kupolov
2016-11-16 10:15:45 -08:00
parent 3bda498b3f
commit b633f9d01f

View File

@@ -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(