Merge "Keystore 2.0: Fix wrong exception returned on not authenticated." am: 89ec9d42d9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1538989 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I21d059008c3a6a0ae1444d4572b4d0b6d39d254c
This commit is contained in:
@@ -120,6 +120,7 @@ abstract class KeyStoreCryptoOperationUtils {
|
||||
return new KeyPermanentlyInvalidatedException();
|
||||
case ResponseCode.LOCKED:
|
||||
case ResponseCode.UNINITIALIZED:
|
||||
case KeymasterDefs.KM_ERROR_KEY_USER_NOT_AUTHENTICATED:
|
||||
// TODO b/173111727 remove response codes LOCKED and UNINITIALIZED
|
||||
return new UserNotAuthenticatedException();
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user