diff options
| author | Dmitry Dementyev <dementyev@google.com> | 2018-03-23 15:18:33 -0700 |
|---|---|---|
| committer | Dmitry Dementyev <dementyev@google.com> | 2018-03-23 16:30:51 -0700 |
| commit | 4da14e00fc5919a7e36fe6d7d7e63512eb23bb4a (patch) | |
| tree | da8cc0e8c8285861d9963ab45e129ef9db529528 /core/java | |
| parent | f15f291777b1b0e481b0c9f4d44536707e4f6780 (diff) | |
Remove unimplemented RecoverableKeystoreManager APIs.
Add some Nullable annotations.
Bug: 75952916,74859770
Test: apct
Change-Id: I25710263a1ba806d49ec11638dab00f3513631a8
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/security/keystore/RecoveryController.java | 20 | ||||
| -rw-r--r-- | core/java/com/android/internal/widget/ILockSettings.aidl | 2 |
2 files changed, 2 insertions, 20 deletions
diff --git a/core/java/android/security/keystore/RecoveryController.java b/core/java/android/security/keystore/RecoveryController.java index 145261e3b71d..d50424db4e56 100644 --- a/core/java/android/security/keystore/RecoveryController.java +++ b/core/java/android/security/keystore/RecoveryController.java @@ -195,17 +195,7 @@ public class RecoveryController { */ public @NonNull Map<byte[], Integer> getRecoverySnapshotVersions() throws InternalRecoveryServiceException { - try { - // IPC doesn't support generic Maps. - @SuppressWarnings("unchecked") - Map<byte[], Integer> result = - (Map<byte[], Integer>) mBinder.getRecoverySnapshotVersions(); - return result; - } catch (RemoteException e) { - throw e.rethrowFromSystemServer(); - } catch (ServiceSpecificException e) { - throw wrapUnexpectedServiceSpecificException(e); - } + throw new UnsupportedOperationException(); } /** @@ -337,13 +327,7 @@ public class RecoveryController { @NonNull public @KeychainProtectionParams.UserSecretType int[] getPendingRecoverySecretTypes() throws InternalRecoveryServiceException { - try { - return mBinder.getPendingRecoverySecretTypes(); - } catch (RemoteException e) { - throw e.rethrowFromSystemServer(); - } catch (ServiceSpecificException e) { - throw wrapUnexpectedServiceSpecificException(e); - } + throw new UnsupportedOperationException(); } /** diff --git a/core/java/com/android/internal/widget/ILockSettings.aidl b/core/java/com/android/internal/widget/ILockSettings.aidl index bff34ca23956..59b14f18eb07 100644 --- a/core/java/com/android/internal/widget/ILockSettings.aidl +++ b/core/java/com/android/internal/widget/ILockSettings.aidl @@ -67,13 +67,11 @@ interface ILockSettings { String getKey(String alias); void removeKey(String alias); void setSnapshotCreatedPendingIntent(in PendingIntent intent); - Map getRecoverySnapshotVersions(); void setServerParams(in byte[] serverParams); void setRecoveryStatus(in String alias, int status); Map getRecoveryStatus(); void setRecoverySecretTypes(in int[] secretTypes); int[] getRecoverySecretTypes(); - int[] getPendingRecoverySecretTypes(); byte[] startRecoverySession(in String sessionId, in byte[] verifierPublicKey, in byte[] vaultParams, in byte[] vaultChallenge, in List<KeyChainProtectionParams> secrets); |
