From 573a840e0751aac15790fb62c5b557633e587c2b Mon Sep 17 00:00:00 2001 From: abonadon_hk Date: Wed, 11 Jun 2025 16:38:14 +0800 Subject: [PATCH] add : add app_lock_service Signed-off-by: abonadon_hk Change-Id: Ieffcc992a45ed0851f5cb78c47cf7527a5387cec --- services/context/src/widget_context.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/services/context/src/widget_context.cpp b/services/context/src/widget_context.cpp index 651d5d38e..89636d6a7 100644 --- a/services/context/src/widget_context.cpp +++ b/services/context/src/widget_context.cpp @@ -60,6 +60,7 @@ const std::string TO_INVERTED = "180"; const std::string TO_PORTRAIT_INVERTED = "270"; const std::string SUPPORT_FOLLOW_CALLER_UI = "const.useriam.authWidget.supportFollowCallerUi"; const std::string FIND_PROCESS_NAME = "findnetwork"; +const std::string APP_LOCK_SERVICE_PROCESS_NAME = "app_lock_service"; WidgetContext::WidgetContext(uint64_t contextId, const ContextFactory::AuthWidgetContextPara ¶, std::shared_ptr callback, const sptr &modalCallback) @@ -482,6 +483,11 @@ void WidgetContext::SetSysDialogZOrder(WidgetCmdParameters &widgetCmdParameters) widgetCmdParameters.useriamCmdData.callingProcessName = para_.callerName; widgetCmdParameters.sysDialogZOrder = SYSDIALOG_ZORDER_UPPER; } + if ((para_.callerName == APP_LOCK_SERVICE_PROCESS_NAME) && + (para_.callerType == Security::AccessToken::TOKEN_NATIVE)) { + IAM_LOGI("is app_lock_service, add callerName"); + widgetCmdParameters.useriamCmdData.callingProcessName = para_.callerName; + } } bool WidgetContext::ConnectExtension(const WidgetRotatePara &widgetRotatePara) -- Gitee