modify init

Signed-off-by: zhong_ning <zhong_ning@hoperun.com>
This commit is contained in:
zhong_ning 2021-08-04 00:48:00 +08:00
parent 6f23a4caa1
commit 765f82f342
2 changed files with 7 additions and 1 deletions

View File

@ -144,7 +144,6 @@ if (defined(ohos_lite)) {
"//third_party/toybox:toybox",
]
}
module_install_dir = "bin"
install_images = [
"system",
"updater",

View File

@ -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)