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