Merge "Deprecating the aidl for Android Protected Confirmation" into main

This commit is contained in:
Shaquille Johnson 2024-01-29 13:49:22 +00:00 committed by Gerrit Code Review
commit 53d2763a23
2 changed files with 17 additions and 0 deletions

View file

@ -27,6 +27,10 @@ interface IConfirmationCallback {
/**
* This callback gets called by the implementing service when a pending confirmation prompt
* gets finalized.
* @deprecated Android Protected Confirmation had a low adoption rate among Android device
* makers and developers alike. Given the lack of devices supporting the feature,
* it is deprecated. Developers can use auth-bound Keystore keys as a partial
* replacement.
*
* @param result
* - ResponseCode.OK On success. In this case dataConfirmed must be non null.

View file

@ -35,6 +35,10 @@ interface IProtectedConfirmation {
/**
* Present the confirmation prompt. The caller must implement IConfirmationCallback and pass
* it to this function as listener.
* @deprecated Android Protected Confirmation had a low adoption rate among Android device
* makers and developers alike. Given the lack of devices supporting the
* feature, it is deprecated. Developers can use auth-bound Keystore keys
* as a partial replacement.
*
* @param listener Must implement IConfirmationCallback. Doubles as session identifier when
* passed to cancelPrompt.
@ -55,6 +59,11 @@ interface IProtectedConfirmation {
/**
* Cancel an ongoing prompt.
* @deprecated Android Protected Confirmation had a low adoption rate among Android device
* makers and developers alike. Given the lack of devices supporting the
* feature, it is deprecated. Developers can use auth-bound Keystore keys as
* a partial replacement.
*
*
* @param listener Must implement IConfirmationCallback, although in this context this binder
* token is only used to identify the session that is to be cancelled.
@ -66,6 +75,10 @@ interface IProtectedConfirmation {
/**
* Returns true if the device supports Android Protected Confirmation.
* @deprecated Android Protected Confirmation had a low adoption rate among Android device
* makers and developers alike. Given the lack of devices supporting the
* feature, it is deprecated. Developers can use auth-bound Keystore keys
* as a partial replacement.
*/
boolean isSupported();
}