diff --git a/bundle.json b/bundle.json index a98111e50791cd10d27152aec6a3ef41f71570d5..ffe2e543ddc6561e0b436375fb949010f2807c14 100644 --- a/bundle.json +++ b/bundle.json @@ -43,7 +43,6 @@ "hisysevent", "hitrace", "huks", - "init", "ipc", "safwk", "samgr", @@ -60,7 +59,6 @@ "service_group": [ "//base/security/device_security_level/oem_property/ohos:dslm_service", "//base/security/device_security_level/oem_property/ohos:dslm_ohos_cred_file", - "//base/security/device_security_level/param:param_files", "//base/security/device_security_level/profile:dslm_service.rc" ] }, diff --git a/interfaces/inner_api/BUILD.gn b/interfaces/inner_api/BUILD.gn index e5b15a09bb6b8c4a0018ddd11cca6ac75b125c7b..db7e859fee1404cca0ef7740a66720a176ad0576 100644 --- a/interfaces/inner_api/BUILD.gn +++ b/interfaces/inner_api/BUILD.gn @@ -129,7 +129,6 @@ if (defined(ohos_lite)) { external_deps = [ "c_utils:utils", "hilog:libhilog", - "init:libbegetutil", "ipc:ipc_core", "samgr:samgr_proxy", ] diff --git a/interfaces/inner_api/src/standard/device_security_info.cpp b/interfaces/inner_api/src/standard/device_security_info.cpp index a4b4dde06380643e8162a6cd10f6d2b0ebbc37e4..73fde2e45cd5ebc52501f0e1be4d73667e4f7ad2 100644 --- a/interfaces/inner_api/src/standard/device_security_info.cpp +++ b/interfaces/inner_api/src/standard/device_security_info.cpp @@ -18,7 +18,6 @@ #include #include "hilog/log.h" -#include "parameter.h" #include "device_security_level_callback_helper.h" #include "device_security_level_callback_stub.h" @@ -37,13 +36,14 @@ static int32_t RequestDeviceSecurityInfoAsyncImpl(const DeviceIdentify *identify return ERR_INVALID_PARA; } - constexpr uint32_t defaultKeepLen = 45; - constexpr uint32_t maxKeepLen = 300; - static RequestOption defaultOption = {0, defaultKeepLen, 0}; + constexpr uint32_t DEFAULT_KEEP_LEN = 45; + constexpr uint32_t MAX_KEEP_LEN = 300; + static RequestOption defaultOption = {0, DEFAULT_KEEP_LEN, 0}; if (option == nullptr) { option = &defaultOption; + } - if (option->timeout > maxKeepLen) { + if (option->timeout > MAX_KEEP_LEN) { HILOG_ERROR(LOG_CORE, "GetDeviceSecurityInfo input error, timeout too len."); return ERR_INVALID_PARA; } diff --git a/param/BUILD.gn b/param/BUILD.gn deleted file mode 100644 index 2619f76e4e40f5264e7aaaefe9a0c61fc37fd977..0000000000000000000000000000000000000000 --- a/param/BUILD.gn +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") - -## Install device_security_level.para to /system/etc/param/device_security_level.para - -group("param_files") { - deps = [ ":device_security_level.para" ] -} - -ohos_prebuilt_etc("device_security_level.para") { - source = "device_security_level.para" - - relative_install_dir = "param" - part_name = "device_security_level" - subsystem_name = "security" -} diff --git a/param/device_security_level.para b/param/device_security_level.para deleted file mode 100644 index c04f0d7d11636504ad8e367a4b9cf32faa47bb97..0000000000000000000000000000000000000000 --- a/param/device_security_level.para +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -const.security.device_security_level = 1 \ No newline at end of file