diff --git a/services/modules/init_eng/init_eng_static.c b/services/modules/init_eng/init_eng_static.c index 4e26f81b2ce49feb6a65673a0397eaaee77fe52b..b5c084f41963e490bae5e5d4fdd7b8d979d5ef45 100644 --- a/services/modules/init_eng/init_eng_static.c +++ b/services/modules/init_eng/init_eng_static.c @@ -21,7 +21,7 @@ static int InitEngEarlyHook(const HOOK_INFO *info, void *cookie) { char value[MAX_BUFFER_LEN] = {0}; - int ret = GetParameterFromCmdLine("ohos.boot.eng_mode", value, MAX_BUFFER_LEN); + int ret = GetParameterFromCmdLine("ohos.boot.root_package", value, MAX_BUFFER_LEN); if (ret == 0 && strcmp(value, "on") == 0) { #ifndef STARTUP_INIT_TEST InitModuleMgrInstall("init_eng"); diff --git a/services/param/manager/param_server.c b/services/param/manager/param_server.c index ce935d977d871f52dd00c1da30a6938d864b6858..553090ac2fc640627ef2a6737b2ca08d08bf159b 100755 --- a/services/param/manager/param_server.c +++ b/services/param/manager/param_server.c @@ -117,7 +117,7 @@ static void CmdlineIterator(const NAME_VALUE_PAIR *nv, void *context) { "reboot_reason", CommonDealFun }, { "bootslots", CommonDealFun }, { "sn", SnDealFun }, - { "eng_mode", CommonDealFun }, + { "root_package", CommonDealFun }, { "serialno", SnDealFun } }; diff --git a/test/unittest/modules/eng_unittest.cpp b/test/unittest/modules/eng_unittest.cpp index 72f73e5c05e8e13dba31379f53d15d35a9313b3d..1846e048c7d528ac5f7b64a7d438d968baf433b0 100644 --- a/test/unittest/modules/eng_unittest.cpp +++ b/test/unittest/modules/eng_unittest.cpp @@ -245,7 +245,7 @@ HWTEST_F(EngUnitTest, TestHook, TestSize.Level1) HookMgrExecute(GetBootStageHookMgr(), INIT_GLOBAL_INIT, nullptr, nullptr); PrepareCmdLineData(); HookMgrExecute(GetBootStageHookMgr(), INIT_GLOBAL_INIT, nullptr, nullptr); - const char *cmdLine = "ohos.boot.eng_mode=off "; + const char *cmdLine = "ohos.boot.root_package=off "; CreateTestFile(BOOT_CMD_LINE, cmdLine); HookMgrExecute(GetBootStageHookMgr(), INIT_GLOBAL_INIT, nullptr, nullptr); }