From 13749cb31124f442fed828b9a08ba5e47adff501 Mon Sep 17 00:00:00 2001 From: Meng Wang Date: Fri, 17 Jan 2020 14:42:33 -0800 Subject: Expose system API EXTRA_REBROADCAST_ON_UNLOCK It's used by system apps - see follow up CL. Bug: 147912059 Test: make Change-Id: Id5e803756b8c3235187e13a36b8c197d5269e816 --- api/system-current.txt | 1 + core/java/android/content/Intent.java | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/api/system-current.txt b/api/system-current.txt index 19d6929073e2..f3d7ab308daf 100755 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -1653,6 +1653,7 @@ package android.content { field public static final String EXTRA_PERMISSION_GROUP_NAME = "android.intent.extra.PERMISSION_GROUP_NAME"; field public static final String EXTRA_PERMISSION_NAME = "android.intent.extra.PERMISSION_NAME"; field public static final String EXTRA_REASON = "android.intent.extra.REASON"; + field @Deprecated public static final String EXTRA_REBROADCAST_ON_UNLOCK = "rebroadcastOnUnlock"; field public static final String EXTRA_REMOTE_CALLBACK = "android.intent.extra.REMOTE_CALLBACK"; field public static final String EXTRA_RESULT_NEEDED = "android.intent.extra.RESULT_NEEDED"; field public static final String EXTRA_ROLE_NAME = "android.intent.extra.ROLE_NAME"; diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index 9c7bf1f7c996..9cba7aab3c87 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -4011,6 +4011,7 @@ public class Intent implements Parcelable, Cloneable { *

* @see #EXTRA_SIM_STATE * @see #EXTRA_SIM_LOCKED_REASON + * @see #EXTRA_REBROADCAST_ON_UNLOCK * * @deprecated Use {@link #ACTION_SIM_CARD_STATE_CHANGED} or * {@link #ACTION_SIM_APPLICATION_STATE_CHANGED} @@ -4186,6 +4187,18 @@ public class Intent implements Parcelable, Cloneable { @SystemApi public static final String SIM_ABSENT_ON_PERM_DISABLED = "PERM_DISABLED"; + /** + * The extra used with {@link #ACTION_SIM_STATE_CHANGED} for indicating whether this broadcast + * is a rebroadcast on unlock. Defaults to {@code false} if not specified. + * + * @hide + * @deprecated Use {@link #ACTION_SIM_CARD_STATE_CHANGED} or + * {@link #ACTION_SIM_APPLICATION_STATE_CHANGED} + */ + @Deprecated + @SystemApi + public static final String EXTRA_REBROADCAST_ON_UNLOCK = "rebroadcastOnUnlock"; + /** * Broadcast Action: indicate that the phone service state has changed. * The intent will have the following extra values:

-- cgit v1.2.3-59-g8ed1b