summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorChad Brubaker <cbrubaker@google.com>2019-01-04 14:01:51 -0800
committerChad Brubaker <cbrubaker@google.com>2019-01-04 14:40:33 -0800
commit1bfef2cadebd910e4de958823a34aabfeea759cb (patch)
treef5422d66628a39173fa35a68f62887ee65797a59 /core/java/android
parente4e854c04c8e5a74402e25a5c0174e4fc7b91234 (diff)
Add intent for permission usage info learn more
The manifest permission usage info declarations are limited in what they allow the applications to specify. Applications can have an activity for that handles this intent in order to provide free form application specific details such as privacy policies, specific examples, etc. Test: API definition, usage will follow Bug: 111207567 Change-Id: I90b292e4c1cb8847a9a9d7b8071aaff2ee7d11fb
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/content/Intent.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java
index 7b3497b8b483..ab60b845e6fe 100644
--- a/core/java/android/content/Intent.java
+++ b/core/java/android/content/Intent.java
@@ -816,6 +816,28 @@ public class Intent implements Parcelable, Cloneable {
= "android.intent.action.SHOW_APP_INFO";
/**
+ * Activity Action: Start an activity to show the app's detailed usage information for
+ * permission protected data.
+ *
+ * The Intent contains an extra {@link #EXTRA_PERMISSION_USAGE_PERMISSIONS} that is of
+ * type {@code String[]} and contains the specific permissions to show information for.
+ *
+ * Apps should handle this intent if they want to provide more information about permission
+ * usage to users beyond the information provided in the manifest.
+ */
+ @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
+ public static final String ACTION_PERMISSION_USAGE_DETAILS =
+ "android.intent.action.PERMISSION_USAGE_DETAILS";
+
+ /**
+ * The name of the extra used to contain the permissions in
+ * {@link #ACTION_PERMISSION_USAGE_DETAILS}.
+ * @see #ACTION_PERMISSION_USAGE_DETAILS
+ */
+ public static final String EXTRA_PERMISSION_USAGE_PERMISSIONS =
+ "android.intent.extra.PERMISSION_USAGE_PERMISSIONS";
+
+ /**
* Represents a shortcut/live folder icon resource.
*
* @see Intent#ACTION_CREATE_SHORTCUT