From 8bbaaa103ea43b0767238cd292c691e0fbfc3e04 Mon Sep 17 00:00:00 2001 From: Yinchu Chen Date: Fri, 23 Dec 2022 07:08:32 +0000 Subject: [PATCH] Add an exception for QTI SM8550 SM8550 doesn't support Keymint2.0, per the discussion in b/ add an exception in the test case when SM8550 is detected. Bug: b/245649355 Test: VtsHalKeymasterV4_0TargetTest Change-Id: I788a80c0f9b011f73aac9a8c4774e70e203ac3d6 --- keymaster/4.0/vts/functional/keymaster_hidl_hal_test.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/keymaster/4.0/vts/functional/keymaster_hidl_hal_test.cpp b/keymaster/4.0/vts/functional/keymaster_hidl_hal_test.cpp index fb5048a2f3..728cc91f41 100644 --- a/keymaster/4.0/vts/functional/keymaster_hidl_hal_test.cpp +++ b/keymaster/4.0/vts/functional/keymaster_hidl_hal_test.cpp @@ -4866,6 +4866,11 @@ TEST_P(VsrRequirementTest, Vsr13Test) { if (vsr_api_level < 33) { GTEST_SKIP() << "Applies only to VSR API level 33, this device is: " << vsr_api_level; } + char soc_model[PROPERTY_VALUE_MAX] = {}; + property_get("ro.soc.model", soc_model, ""); + if (!strcmp(soc_model, "SM8550")) { + GTEST_SKIP() << "Skip QTI SM8550 chipset, the SOC model of this device is: " << soc_model; + } FAIL() << "VSR 13+ requires KeyMint version 2"; }