Correct the expection of DeviceInfo size am: 72abbbd36d
am: 015b828def
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2513015 Change-Id: I687627c7d540b5d04e3787e6c930b288948340e7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
9258bfe861
1 changed files with 3 additions and 3 deletions
|
@ -473,7 +473,7 @@ ErrMsgOr<std::unique_ptr<cppbor::Map>> parseAndValidateDeviceInfo(
|
|||
}
|
||||
// TEE IRPC instances require all entries to be present in DeviceInfo. Non-TEE instances
|
||||
// may omit `os_version`
|
||||
if (!isTeeDeviceInfo(*parsed) && (parsed->size() != kNumTeeDeviceInfoEntries ||
|
||||
if (!isTeeDeviceInfo(*parsed) && (parsed->size() != kNumTeeDeviceInfoEntries &&
|
||||
parsed->size() != kNumTeeDeviceInfoEntries - 1)) {
|
||||
error += fmt::format(
|
||||
"Err: Incorrect number of device info entries. Expected {} or {} but got "
|
||||
|
|
Loading…
Reference in a new issue