From d05b223e0627fc31222b054c47159af0cffe88c8 Mon Sep 17 00:00:00 2001 From: AXYChen Date: Sun, 3 Aug 2025 10:53:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4tipPosition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: AXYChen Change-Id: I1ab799499e8e8db828f4e8a6703d1d49c3873f0e --- .../sa/sa_main/first_use_dialog.cpp | 5 ----- .../sa/test/mock/include/accesstoken_kit.h | 5 ----- 2 files changed, 10 deletions(-) diff --git a/services/security_component_service/sa/sa_main/first_use_dialog.cpp b/services/security_component_service/sa/sa_main/first_use_dialog.cpp index 597a96a..4211d95 100644 --- a/services/security_component_service/sa/sa_main/first_use_dialog.cpp +++ b/services/security_component_service/sa/sa_main/first_use_dialog.cpp @@ -394,11 +394,6 @@ void FirstUseDialog::StartToastAbility(const std::shared_ptr enti if (!entity->AllowToShowToast()) { return; } - bool needToShow = AccessToken::AccessTokenKit::IsToastShownNeeded(entity->pid_); - if (!needToShow) { - SC_LOG_INFO(LABEL, "Process pid=%{public}d needs not to show", entity->pid_); - return; - } AAFwk::Want want; want.SetElementName(GRANT_ABILITY_BUNDLE_NAME, GRANT_ABILITY_ABILITY_NAME); want.SetParam(NOTIFY_TYPE, NotifyType::TOAST); diff --git a/services/security_component_service/sa/test/mock/include/accesstoken_kit.h b/services/security_component_service/sa/test/mock/include/accesstoken_kit.h index 2300be9..7e660bb 100644 --- a/services/security_component_service/sa/test/mock/include/accesstoken_kit.h +++ b/services/security_component_service/sa/test/mock/include/accesstoken_kit.h @@ -62,11 +62,6 @@ public: return static_cast(idInner->dlpFlag); } - static bool IsToastShownNeeded(int32_t pid) - { - return false; - } - static std::mutex mutex_; static std::map> permMap_; static int getHapTokenInfoRes; -- Gitee