From 24eb99edc58d7acec17556b79361494758b1032d Mon Sep 17 00:00:00 2001 From: zoulianfeng Date: Tue, 24 Oct 2023 09:59:33 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AB=98=E7=BA=A7=E5=AE=89=E5=85=A8=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E5=AD=97=E6=AE=B5=E5=90=8D=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zoulianfeng --- services/edm/src/enterprise_device_mgr_ability.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/edm/src/enterprise_device_mgr_ability.cpp b/services/edm/src/enterprise_device_mgr_ability.cpp index bd1790a17..96dd8c57f 100644 --- a/services/edm/src/enterprise_device_mgr_ability.cpp +++ b/services/edm/src/enterprise_device_mgr_ability.cpp @@ -51,7 +51,7 @@ const std::string PERMISSION_MANAGE_ENTERPRISE_DEVICE_ADMIN = "ohos.permission.M const std::string PERMISSION_SET_ENTERPRISE_INFO = "ohos.permission.SET_ENTERPRISE_INFO"; const std::string PERMISSION_ENTERPRISE_SUBSCRIBE_MANAGED_EVENT = "ohos.permission.ENTERPRISE_SUBSCRIBE_MANAGED_EVENT"; const std::string PARAM_EDM_ENABLE = "persist.edm.edm_enable"; -const std::string PARAM_SECURITY_ADVANCEDMODEMODE = "const.security.advancedmode.state"; +const std::string PARAM_SECURITY_MODE = "ohos.boot.advsecmode.state"; std::mutex EnterpriseDeviceMgrAbility::mutexLock_; @@ -454,7 +454,7 @@ ErrCode EnterpriseDeviceMgrAbility::VerifyEnableAdminCondition(AppExecFwk::Eleme return ERR_EDM_ADD_ADMIN_FAILED; } - bool securityMode = system::GetBoolParameter(PARAM_SECURITY_ADVANCEDMODEMODE, false); + bool securityMode = system::GetBoolParameter(PARAM_SECURITY_MODE, false); if (securityMode) { EDMLOGW("EnableAdmin: The current mode is not supported."); return ERR_EDM_ADD_ADMIN_FAILED; -- Gitee