diff --git a/bundle.json b/bundle.json index c868d002269aa2d05bf36bf5a16c09c2218803db..3491b3ed75fee8a1e82c117b550821e114dfcb5f 100644 --- a/bundle.json +++ b/bundle.json @@ -20,7 +20,8 @@ "deps": { "components": [ "hiviewdfx_hilog_native", - "napi" + "napi", + "init" ], "third_party": [ "bounds_checking_function" diff --git a/frameworks/config_policy/BUILD.gn b/frameworks/config_policy/BUILD.gn index 43f9694f493fd4c061152f56f4131ca8da386a2c..d5ceabcd892ff1126daffe51ef148484aa0ef073 100644 --- a/frameworks/config_policy/BUILD.gn +++ b/frameworks/config_policy/BUILD.gn @@ -22,7 +22,7 @@ config("config_policy_config") { include_dirs = [ "//base/customization/config_policy/interfaces/inner_api/include", "//third_party/bounds_checking_function/include", - "//base/startup/init_lite/services/include", + "//base/startup/init_lite/services/include/param", ] } @@ -39,9 +39,9 @@ if (defined(ohos_lite)) { public_configs = [ ":config_policy_config" ] deps = [ "etc:customization_etc", - "//base/startup/init_lite/services/param:param_client", "//third_party/bounds_checking_function:libsec_static", ] + external_deps = [ "init:libbegetutil" ] subsystem_name = "customization" part_name = "config_policy" } diff --git a/frameworks/config_policy/src/config_policy_utils.c b/frameworks/config_policy/src/config_policy_utils.c index 1eda18f4bc65e68a50ea98131ec848cd57ec8c36..dce0a93497910d462ba1bc579b06691ff70c8789 100644 --- a/frameworks/config_policy/src/config_policy_utils.c +++ b/frameworks/config_policy/src/config_policy_utils.c @@ -20,7 +20,7 @@ #include "config_policy_impl.h" #ifndef OHOS_LITE -#include "param/sys_param.h" +#include "init_param.h" #endif void FreeCfgFiles(CfgFiles *res)