diff --git a/services/appmgr/src/app_mgr_service_inner.cpp b/services/appmgr/src/app_mgr_service_inner.cpp index d5e1e65ec04e70448686a8fb97798cc110e6b432..f78cf4bdab12c83314db19df781f4f75bbfd4d6f 100644 --- a/services/appmgr/src/app_mgr_service_inner.cpp +++ b/services/appmgr/src/app_mgr_service_inner.cpp @@ -7759,6 +7759,10 @@ int32_t AppMgrServiceInner::CheckCallingIsUserTestModeInner(const pid_t pid, boo } bool AppMgrServiceInner::IsSceneBoardCall() { + if (!AAFwk::PermissionVerification::GetInstance()->IsSystemAppCall()) { + TAG_LOGE(AAFwkTag::APPMGR, "not system app call"); + return false; + } if (remoteClientManager_ == nullptr) { TAG_LOGE(AAFwkTag::APPMGR, "The remoteClientManager_ is nullptr."); return false;