From 3853c5d7bff975b317b52f835b25fcfd0037c783 Mon Sep 17 00:00:00 2001 From: Zhou Shihui Date: Fri, 18 Oct 2024 11:03:50 +0800 Subject: [PATCH] =?UTF-8?q?app=5Fsystem=E6=A0=A1=E9=AA=8Cprofile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Zhou Shihui --- interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp b/interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp index 89a2a4e..3d88fdd 100644 --- a/interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp +++ b/interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp @@ -232,7 +232,8 @@ bool HapVerifyV2::VerifyAppSourceAndParseProfile(Pkcs7Context& pkcs7Context, bool HapVerifyV2::VerifyProfileSignature(const Pkcs7Context& pkcs7Context, Pkcs7Context& profileContext) { if (pkcs7Context.matchResult.matchState == MATCH_WITH_SIGN && - pkcs7Context.matchResult.source == APP_THIRD_PARTY_PRELOAD) { + (pkcs7Context.matchResult.source == APP_THIRD_PARTY_PRELOAD || + pkcs7Context.matchResult.source == APP_SYSTEM)) { if (!HapProfileVerifyUtils::VerifyProfile(profileContext)) { HAPVERIFY_LOG_ERROR("profile verify failed"); return false;