Require a permission for Q apps using full screen intents
Test: cts
Bug: 119489430
Change-Id: I812669bb53fe8ddf501760fea22fd88175e49a01
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index 5002a81..90276c4 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -3848,6 +3848,9 @@
* The system UI may choose to display a heads-up notification, instead of
* launching this intent, while the user is using the device.
* </p>
+ * <p>Apps targeting {@link Build.VERSION_CODES#Q} and above will have to request
+ * a permission ({@link android.Manifest.permission#USE_FULL_SCREEN_INTENT}) in order to
+ * use full screen intents.</p>
*
* @param intent The pending intent to launch.
* @param highPriority Passing true will cause this notification to be sent