From e6e47bce17b6b99d87d65fdce42e1142220daf76 Mon Sep 17 00:00:00 2001 From: Nate Myren Date: Wed, 27 Oct 2021 09:14:50 -0700 Subject: [PATCH] Update docs for PermissionController actions Change documentation to reflect that EXTRA_PERMISSION_GROUP_NAME is expected in the Intent Bug: 202736250 Test: build Change-Id: Ife0531c8d96a113b8e9bbd8eb943c79386df877a --- core/java/android/content/Intent.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index 6446b44153ece..5e0d91361f2f1 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -1856,14 +1856,19 @@ public class Intent implements Parcelable, Cloneable { "android.intent.action.MANAGE_APP_PERMISSIONS"; /** - * Activity action: Launch UI to manage a specific permissions of an app. + * Activity action: Launch UI to manage a specific permission group of an app. *

* Input: {@link #EXTRA_PACKAGE_NAME} specifies the package whose permission * will be managed by the launched UI. *

*

* Input: {@link #EXTRA_PERMISSION_NAME} specifies the (individual) permission - * that should be managed by the launched UI. + * whose group should be managed by the launched UI. + *

+ *

+ * Input: {@link #EXTRA_PERMISSION_GROUP_NAME} specifies the permission group + * that should be managed by the launched UI. Do not send both this and EXTRA_PERMISSION_NAME + * together. *

*

*

  • {@link #EXTRA_USER} specifies the {@link UserHandle} of the user that owns the app. @@ -1874,6 +1879,7 @@ public class Intent implements Parcelable, Cloneable { * * @see #EXTRA_PACKAGE_NAME * @see #EXTRA_PERMISSION_NAME + * @see #EXTRA_PERMISSION_GROUP_NAME * @see #EXTRA_USER * * @hide @@ -2162,14 +2168,15 @@ public class Intent implements Parcelable, Cloneable { /** * Activity action: Launch UI to manage which apps have a given permission. *

    - * Input: {@link #EXTRA_PERMISSION_NAME} specifies the permission group - * which will be managed by the launched UI. + * Input: {@link #EXTRA_PERMISSION_NAME} or {@link #EXTRA_PERMISSION_GROUP_NAME} specifies the + * permission group which will be managed by the launched UI. *

    *

    * Output: Nothing. *

    * * @see #EXTRA_PERMISSION_NAME + * @see #EXTRA_PERMISSION_GROUP_NAME * * @hide */