!232 app_system校验profile

Merge pull request !232 from Zhou Shihui/master
This commit is contained in:
openharmony_ci 2024-10-18 07:19:51 +00:00 committed by Gitee
commit 403735d00c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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;