diff --git a/services/appmgr/src/app_mgr_service_inner.cpp b/services/appmgr/src/app_mgr_service_inner.cpp index df0626ea2fb9c81af3487fc18284092ca24512df..bc78ae1a98cfef3c6e8dbaed6065a597e42df50d 100644 --- a/services/appmgr/src/app_mgr_service_inner.cpp +++ b/services/appmgr/src/app_mgr_service_inner.cpp @@ -7720,6 +7720,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;