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 597a96abea8b82e7acc7883c5c4628e7d575891c..4211d95216e0749ca767ce4f88dd7b4e0fac891f 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 2300be9978446422a9b6b6471e24a1ad896036ee..7e660bb4af9443ff987e274a4e56fc5c31be75ea 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;