diff --git a/frameworks/inner_api/security_component/src/sec_comp_client.cpp b/frameworks/inner_api/security_component/src/sec_comp_client.cpp index 03f21d2..aebbb22 100644 --- a/frameworks/inner_api/security_component/src/sec_comp_client.cpp +++ b/frameworks/inner_api/security_component/src/sec_comp_client.cpp @@ -519,9 +519,6 @@ void SecCompClient::FinishStartSAFail() void SecCompClient::LoadSecCompSa() { - if (AccessToken::AccessTokenKit::CreateSecCompEnhanceKey() != SC_OK) { - return; - } if (!StartLoadSecCompSa()) { return; } diff --git a/services/security_component_service/sa/sa_profile/3506.json b/services/security_component_service/sa/sa_profile/3506.json index 83650d4..f66d6dc 100644 --- a/services/security_component_service/sa/sa_profile/3506.json +++ b/services/security_component_service/sa/sa_profile/3506.json @@ -6,6 +6,14 @@ "libpath": "libsecurity_component_service.z.so", "run-on-create": false, "distributed": false, + "start-on-demand": { + "param": [ + { + "name": "bootevent.boot.completed", + "value": "true" + } + ] + }, "dump_level": 1 } ]