summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Reema Bajwa <reemabajwa@google.com> 2024-02-27 19:05:08 +0000
committer Reema Bajwa <reemabajwa@google.com> 2024-02-29 21:21:03 +0000
commit965175a8a3a48de65d31c8b07672bd49e63e5941 (patch)
tree35d070042baed1a6499801c7d82772356642fa09
parent97c80095894343db100766fa5a903b8e347cd90a (diff)
Add feature requirement annotation
Test: N/A - annotation only Change-Id: I7307b89ccce23a8327b175045fc927027ed9ce02
-rw-r--r--core/java/android/credentials/CredentialManager.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/credentials/CredentialManager.java b/core/java/android/credentials/CredentialManager.java
index 2e63664df7aa..3a9a0f911660 100644
--- a/core/java/android/credentials/CredentialManager.java
+++ b/core/java/android/credentials/CredentialManager.java
@@ -23,6 +23,7 @@ import android.annotation.Hide;
import android.annotation.IntDef;
import android.annotation.NonNull;
import android.annotation.Nullable;
+import android.annotation.RequiresFeature;
import android.annotation.RequiresPermission;
import android.annotation.SystemService;
import android.annotation.TestApi;
@@ -31,6 +32,7 @@ import android.app.PendingIntent;
import android.content.ComponentName;
import android.content.Context;
import android.content.IntentSender;
+import android.content.pm.PackageManager;
import android.os.Binder;
import android.os.Bundle;
import android.os.CancellationSignal;
@@ -57,6 +59,7 @@ import java.util.concurrent.Executor;
* to authenticate to the app.
*/
@SystemService(Context.CREDENTIAL_SERVICE)
+@RequiresFeature(PackageManager.FEATURE_CREDENTIALS)
public final class CredentialManager {
private static final String TAG = "CredentialManager";
private static final Bundle OPTIONS_SENDER_BAL_OPTIN = ActivityOptions.makeBasic()