Fix encryption on Nakasi
We need to make sure we don't try to read the flags on keymaster version 2 or below, or we get random junk. Requires https://googleplex-android-review.git.corp.google.com/#/c/460689/ Bug: 14384714 Change-Id: I5a4ede1bec0347b8319cedaae6535201c122cf48
This commit is contained in:
parent
8ee0410a4d
commit
8c00839714
1 changed files with 8 additions and 0 deletions
|
@ -121,6 +121,14 @@ static int keymaster_check_compatibility()
|
|||
goto out;
|
||||
}
|
||||
|
||||
SLOGI("keymaster version is %d", keymaster_dev->common.module->module_api_version);
|
||||
|
||||
if (keymaster_dev->common.module->module_api_version
|
||||
< KEYMASTER_MODULE_API_VERSION_0_3) {
|
||||
rc = 0;
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (keymaster_dev->flags & KEYMASTER_BLOBS_ARE_STANDALONE) {
|
||||
rc = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue