!1483 feat:非开发者模式,hdcd不启动

Merge pull request !1483 from maliang/master
This commit is contained in:
openharmony_ci 2024-09-07 06:50:56 +00:00 committed by Gitee
commit ffcf0e25f4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -283,6 +283,14 @@ int main(int argc, const char *argv[])
#ifdef CONFIG_USE_JEMALLOC_DFX_INIF
mallopt(M_DELAYED_FREE, M_DELAYED_FREE_DISABLE);
mallopt(M_SET_THREAD_CACHE, M_THREAD_CACHE_DISABLE);
#endif
#ifndef UPDATER_MODE
string developerMode;
SystemDepend::GetDevItem("const.security.developermode.state", developerMode);
if (developerMode != "true") {
WRITE_LOG(LOG_FATAL, "non developer mode, hdcd does not start");
return -1;
}
#endif
// check property
if (argc == CMD_ARG1_COUNT && !strcmp(argv[1], "-h")) {