From 8e2c81f33c2769abd7c118a6c3f2282ea40c0dc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BD=B3=E4=BC=9F?= Date: Tue, 9 Sep 2025 16:03:35 +0800 Subject: [PATCH] Description:change mksh for smartlock IssueNo:https://gitee.com/openharmony/startup_init/issues/ICX51F Binary Source:No Signed-off-by: songjiawei9 --- begetd.gni | 3 +++ bundle.json | 3 ++- services/init/lite/BUILD.gn | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/begetd.gni b/begetd.gni index 2b18ec65a..815baa069 100644 --- a/begetd.gni +++ b/begetd.gni @@ -91,4 +91,7 @@ declare_args() { # init sasn support init_feature_support_asan = true + + # enable mksh for smartlock + init_feature_smartlock = false } diff --git a/bundle.json b/bundle.json index 4ea02f8e9..98e78782a 100755 --- a/bundle.json +++ b/bundle.json @@ -36,7 +36,8 @@ "init_feature_enable_lite_process_priority", "init_feature_use_hook_mgr", "init_get_disk_sn", - "init_feature_custom_sandbox" + "init_feature_custom_sandbox", + "init_feature_smartlock" ], "adapted_system_type": [ "mini", diff --git a/services/init/lite/BUILD.gn b/services/init/lite/BUILD.gn index 2a4c41adf..43ca2760d 100644 --- a/services/init/lite/BUILD.gn +++ b/services/init/lite/BUILD.gn @@ -96,6 +96,9 @@ executable("init") { "//third_party/mksh", ] external_deps += [ "toybox:toybox" ] + if (init_feature_smartlock) { + deps += [ "//third_party/mksh" ] + } } if (init_feature_use_hook_mgr) { -- Gitee