Add the onDeviceOffBody API method to KeyStore am: b32aae2a46

am: 8f75adc624

Change-Id: Ib8d7bc19a167999894b90b45e7eb1cadb2a85d24
This commit is contained in:
Tucker Sylvestro
2016-10-06 16:20:19 +00:00
committed by android-build-merger
2 changed files with 11 additions and 0 deletions

View File

@@ -76,4 +76,5 @@ interface IKeystoreService {
int onUserAdded(int userId, int parentId);
int onUserRemoved(int userId);
int attestKey(String alias, in KeymasterArguments params, out KeymasterCertificateChain chain);
int onDeviceOffBody();
}

View File

@@ -626,6 +626,16 @@ public class KeyStore {
}
}
/**
* Notify keystore that the device went off-body.
*/
public void onDeviceOffBody() {
try {
mBinder.onDeviceOffBody();
} catch (RemoteException e) {
Log.w(TAG, "Cannot connect to keystore", e);
}
}
/**
* Returns a {@link KeyStoreException} corresponding to the provided keystore/keymaster error