summaryrefslogtreecommitdiff
path: root/core/java/android/content/Intent.java
diff options
context:
space:
mode:
authorWinson <chiuwinson@google.com>2020-12-15 14:50:45 -0800
committerWinson <chiuwinson@google.com>2021-02-04 10:26:58 -0800
commit477f87d56ba8e1ca60bb9fc9e240136b9538de10 (patch)
tree7f03054607f54087ca43ccfef23c9b988840d78e /core/java/android/content/Intent.java
parentdea682ad805314dd6dc9b175e8d172e3211c7fe0 (diff)
Add DomainVerificationManager
Contains the core SDK @SystemApi portion of the domain verification APIs, including the state codes and get/set methods for package/user state. Set methods are gated by corresponding permissions, but get methods were left available as general @SystemApi in case someone finds a use case for them. Adds a new exception which allows the manager to be more specific in what caused a failure. Exempt-From-Owner-Approval: Already approved by owners on main branch Bug: 163565712 Test: none, just API interfaces, will be tested with implementation Change-Id: I86802fe4b88a8a0f63a1798944c5d8c3a3bab09b
Diffstat (limited to 'core/java/android/content/Intent.java')
-rw-r--r--core/java/android/content/Intent.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java
index 1752b480c06b..e6753427b908 100644
--- a/core/java/android/content/Intent.java
+++ b/core/java/android/content/Intent.java
@@ -2846,6 +2846,21 @@ public class Intent implements Parcelable, Cloneable {
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String ACTION_INTENT_FILTER_NEEDS_VERIFICATION = "android.intent.action.INTENT_FILTER_NEEDS_VERIFICATION";
+
+ /**
+ * Broadcast Action: Sent to the system domain verification agent when an app's domains need
+ * to be verified. The data contains the domains hosts to be verified against.
+ * <p class="note">
+ * This is a protected intent that can only be sent by the system.
+ * </p>
+ *
+ * @hide
+ */
+ @SystemApi
+ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
+ public static final String ACTION_DOMAINS_NEED_VERIFICATION =
+ "android.intent.action.DOMAINS_NEED_VERIFICATION";
+
/**
* Broadcast Action: Resources for a set of packages (which were
* previously unavailable) are currently