Merge "trusty: keymaster-hal: Reconnect on failed VERSION" am: 1433d42cea am: c1ec38f7be am: 547bb7ba76
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1553887 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I4093f75e74fd40f506443618fb6da5d0194d886d
This commit is contained in:
commit
dfed025daa
1 changed files with 6 additions and 0 deletions
|
|
@ -37,6 +37,12 @@ int TrustyKeymaster::Initialize() {
|
|||
if (versionRsp.error != KM_ERROR_OK) {
|
||||
ALOGW("TA appears not to support GetVersion2, falling back (err = %d)", versionRsp.error);
|
||||
|
||||
err = trusty_keymaster_connect();
|
||||
if (err) {
|
||||
ALOGE("Failed to connect to trusty keymaster %d", err);
|
||||
return err;
|
||||
}
|
||||
|
||||
GetVersionRequest versionReq;
|
||||
GetVersionResponse versionRsp;
|
||||
GetVersion(versionReq, &versionRsp);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue