mirror of
https://gitee.com/openharmony/startup_init
synced 2024-12-03 16:34:03 +00:00
modify init
Signed-off-by: zhong_ning <zhong_ning@hoperun.com>
This commit is contained in:
parent
6f23a4caa1
commit
765f82f342
@ -144,7 +144,6 @@ if (defined(ohos_lite)) {
|
||||
"//third_party/toybox:toybox",
|
||||
]
|
||||
}
|
||||
module_install_dir = "bin"
|
||||
install_images = [
|
||||
"system",
|
||||
"updater",
|
||||
|
@ -129,6 +129,7 @@ static int GetServiceName(const cJSON* curArrItem, Service* curServ)
|
||||
return SERVICE_SUCCESS;
|
||||
}
|
||||
|
||||
#ifdef OHOS_LITE
|
||||
static int IsForbidden(const char* fieldStr)
|
||||
{
|
||||
size_t fieldLen = strlen(fieldStr);
|
||||
@ -150,6 +151,12 @@ static int IsForbidden(const char* fieldStr)
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
#else
|
||||
static int IsForbidden(const char* fieldStr)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
// TODO: move this function to common files
|
||||
static cJSON* GetArrItem(const cJSON* fileRoot, int* arrSize, const char* arrName)
|
||||
|
Loading…
Reference in New Issue
Block a user