Merge "Update documentation on notification policy access"

This commit is contained in:
TreeHugger Robot
2019-01-14 14:35:47 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 2 deletions

View File

@@ -1190,7 +1190,8 @@ public final class Settings {
/**
* Activity Action: Show Do Not Disturb access settings.
* <p>
* Users can grant and deny access to Do Not Disturb configuration from here.
* Users can grant and deny access to Do Not Disturb configuration from here. Managed
* profiles cannot grant Do Not Disturb access.
* See {@link android.app.NotificationManager#isNotificationPolicyAccessGranted()} for more
* details.
* <p>

View File

@@ -3906,7 +3906,8 @@
<permission android:name="android.permission.ACCESS_NOTIFICATIONS"
android:protectionLevel="signature|privileged|appop" />
<!-- Marker permission for applications that wish to access notification policy.
<!-- Marker permission for applications that wish to access notification policy. This permission
is not supported on managed profiles.
<p>Protection level: normal
-->
<permission android:name="android.permission.ACCESS_NOTIFICATION_POLICY"