Merge "trusty: keymaster-hal: Reconnect on failed VERSION" am: 1433d42cea
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1553887 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I1c49e35912d4992562d7aa2e9df9c5cf3ff56919
This commit is contained in:
commit
c1ec38f7be
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