Loading core/api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -18633,6 +18633,7 @@ package android.hardware.biometrics { method @Deprecated @Nullable public android.security.identity.IdentityCredential getIdentityCredential(); method @FlaggedApi("android.hardware.biometrics.add_key_agreement_crypto_object") @Nullable public javax.crypto.KeyAgreement getKeyAgreement(); method @Nullable public javax.crypto.Mac getMac(); method @FlaggedApi("android.hardware.biometrics.get_op_id_crypto_object") public long getOpId(); method @Nullable public android.security.identity.PresentationSession getPresentationSession(); method @Nullable public java.security.Signature getSignature(); } core/java/android/hardware/biometrics/BiometricPrompt.java +9 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ import static android.Manifest.permission.USE_BIOMETRIC; import static android.Manifest.permission.USE_BIOMETRIC_INTERNAL; import static android.hardware.biometrics.BiometricManager.Authenticators; import static android.hardware.biometrics.Flags.FLAG_ADD_KEY_AGREEMENT_CRYPTO_OBJECT; import static android.hardware.biometrics.Flags.FLAG_GET_OP_ID_CRYPTO_OBJECT; import android.annotation.CallbackExecutor; import android.annotation.FlaggedApi; Loading Loading @@ -851,6 +852,14 @@ public class BiometricPrompt implements BiometricAuthenticator, BiometricConstan public @Nullable KeyAgreement getKeyAgreement() { return super.getKeyAgreement(); } /** * Get the operation handle associated with this object or 0 if none. */ @FlaggedApi(FLAG_GET_OP_ID_CRYPTO_OBJECT) public long getOpId() { return super.getOpId(); } } /** Loading core/java/android/hardware/biometrics/CryptoObject.java +1 −1 Original line number Diff line number Diff line Loading @@ -154,7 +154,7 @@ public class CryptoObject { * @hide * @return the opId associated with this object or 0 if none */ public final long getOpId() { public long getOpId() { if (mCrypto == null) { return 0; } else if (mCrypto instanceof IdentityCredential) { Loading core/java/android/hardware/biometrics/flags.aconfig +7 −0 Original line number Diff line number Diff line Loading @@ -14,3 +14,10 @@ flag { bug: "282058146" } flag { name: "get_op_id_crypto_object" namespace: "biometrics" description: "Feature flag for adding a get operation id api to CryptoObject." bug: "307601768" } Loading
core/api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -18633,6 +18633,7 @@ package android.hardware.biometrics { method @Deprecated @Nullable public android.security.identity.IdentityCredential getIdentityCredential(); method @FlaggedApi("android.hardware.biometrics.add_key_agreement_crypto_object") @Nullable public javax.crypto.KeyAgreement getKeyAgreement(); method @Nullable public javax.crypto.Mac getMac(); method @FlaggedApi("android.hardware.biometrics.get_op_id_crypto_object") public long getOpId(); method @Nullable public android.security.identity.PresentationSession getPresentationSession(); method @Nullable public java.security.Signature getSignature(); }
core/java/android/hardware/biometrics/BiometricPrompt.java +9 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ import static android.Manifest.permission.USE_BIOMETRIC; import static android.Manifest.permission.USE_BIOMETRIC_INTERNAL; import static android.hardware.biometrics.BiometricManager.Authenticators; import static android.hardware.biometrics.Flags.FLAG_ADD_KEY_AGREEMENT_CRYPTO_OBJECT; import static android.hardware.biometrics.Flags.FLAG_GET_OP_ID_CRYPTO_OBJECT; import android.annotation.CallbackExecutor; import android.annotation.FlaggedApi; Loading Loading @@ -851,6 +852,14 @@ public class BiometricPrompt implements BiometricAuthenticator, BiometricConstan public @Nullable KeyAgreement getKeyAgreement() { return super.getKeyAgreement(); } /** * Get the operation handle associated with this object or 0 if none. */ @FlaggedApi(FLAG_GET_OP_ID_CRYPTO_OBJECT) public long getOpId() { return super.getOpId(); } } /** Loading
core/java/android/hardware/biometrics/CryptoObject.java +1 −1 Original line number Diff line number Diff line Loading @@ -154,7 +154,7 @@ public class CryptoObject { * @hide * @return the opId associated with this object or 0 if none */ public final long getOpId() { public long getOpId() { if (mCrypto == null) { return 0; } else if (mCrypto instanceof IdentityCredential) { Loading
core/java/android/hardware/biometrics/flags.aconfig +7 −0 Original line number Diff line number Diff line Loading @@ -14,3 +14,10 @@ flag { bug: "282058146" } flag { name: "get_op_id_crypto_object" namespace: "biometrics" description: "Feature flag for adding a get operation id api to CryptoObject." bug: "307601768" }