mirror of
https://gitee.com/openharmony/developtools_hdc
synced 2024-11-23 07:02:43 +00:00
commit
ffcf0e25f4
@ -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")) {
|
||||
|
Loading…
Reference in New Issue
Block a user