diff options
| author | Jack Yu <jackcwyu@google.com> | 2021-01-22 02:58:28 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-01-22 02:58:28 +0000 |
| commit | 286dc55bc983f7c0ea02cc920ff93b5a88472fa0 (patch) | |
| tree | 5717205278f659d500473a7880cb24c9c3d899c4 /core/java/android | |
| parent | 846e5f178dde1dac4ba0a5e915563401b3f4b639 (diff) | |
| parent | f04aa64e6d39d8d7a541b86c566ac4fcc10e98af (diff) | |
Merge "Add intent to notify applications when the secure element state changed"
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/se/omapi/SEService.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/core/java/android/se/omapi/SEService.java b/core/java/android/se/omapi/SEService.java index a5c5c613e1f2..333af91ac872 100644 --- a/core/java/android/se/omapi/SEService.java +++ b/core/java/android/se/omapi/SEService.java @@ -22,7 +22,10 @@ package android.se.omapi; +import android.annotation.BroadcastBehavior; import android.annotation.NonNull; +import android.annotation.SdkConstant; +import android.annotation.SdkConstant.SdkConstantType; import android.content.ComponentName; import android.content.Context; import android.content.Intent; @@ -71,6 +74,28 @@ public final class SEService { } /** + * Broadcast Action: Intent to notify if the secure element state is changed. + */ + @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) + @BroadcastBehavior(registeredOnly = true, protectedBroadcast = true) + public static final String ACTION_SECURE_ELEMENT_STATE_CHANGED = + "android.se.omapi.action.SECURE_ELEMENT_STATE_CHANGED"; + + /** + * Mandatory extra containing the reader name of the state changed secure element. + * + * @see Reader#getName() + */ + public static final String EXTRA_READER_NAME = "android.se.omapi.extra.READER_NAME"; + + /** + * Mandatory extra containing the connected state of the state changed secure element. + * + * True if the secure element is connected correctly, false otherwise. + */ + public static final String EXTRA_READER_STATE = "android.se.omapi.extra.READER_STATE"; + + /** * Listener object that allows the notification of the caller if this * SEService could be bound to the backend. */ |
