From dbe0631ab8e5df4a3b996439534f132a49c4836e Mon Sep 17 00:00:00 2001 From: jsjzju Date: Thu, 1 May 2025 21:05:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=B3=BB=E7=BB=9F=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E6=A0=A1=E9=AA=8C=20Signed-off-by:=20jsjzju=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/appmgr/src/app_mgr_service_inner.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/appmgr/src/app_mgr_service_inner.cpp b/services/appmgr/src/app_mgr_service_inner.cpp index d5e1e65ec04..f78cf4bdab1 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; -- Gitee