Merge "Add the onDeviceOffBody API method to KeyStore" into cw-f-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f0b51e9db7
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user