Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Startup Init Lite
提交
072c3432
S
Startup Init Lite
项目概览
OpenHarmony
/
Startup Init Lite
接近 2 年 前同步成功
通知
3
Star
37
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Startup Init Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
072c3432
编写于
3月 04, 2022
作者:
熊
熊磊
提交者:
Gitee
3月 04, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of gitee.com:openharmony/startup_init_lite into init_sandbox33
Signed-off-by:
N
xionglei
<
xionglei6@huawei.com
>
上级
357b2497
1cf91618
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
60 addition
and
2 deletion
+60
-2
bundle.json
bundle.json
+1
-2
services/etc/param/ohos.para
services/etc/param/ohos.para
+44
-0
services/init/standard/init_cmds.c
services/init/standard/init_cmds.c
+15
-0
未找到文件。
bundle.json
浏览文件 @
072c3432
...
...
@@ -78,8 +78,7 @@
}
],
"test"
:
[
"//base/startup/init_lite/test/unittest:init_test"
,
"//base/startup/init_lite/test/fuzztest:fuzztest"
"//base/startup/init_lite/test/unittest:init_test"
]
}
}
...
...
services/etc/param/ohos.para
浏览文件 @
072c3432
...
...
@@ -38,3 +38,47 @@ const.product.model=ohos
const.product.name="OpenHarmony 2.0 Canary"
persist.sys.usb.config=hdc
const.sandbox=enable
# const.build.characteristics=default
const.product.devicetype=default
# OHOS_SOFTWARE_MODEL[] = {"default"}
const.software.model=default
# OHOS_MANUFACTURE[] = {"default"}
const.product.manufacturer=default
# OHOS_BRAND[] = {"default"}
const.product.brand=default
# OHOS_PRODUCT_SERIES[] = {"default"}
const.build.product=default
# OHOS_HARDWARE_MODEL[] = {"default"}
const.product.hardwareversion=default
# OHOS_BOOTLOADER_VERSION[] = {"bootloader"}
const.product.bootloader.version=bootloader
# OHOS_ABI_LIST[] = {"default"}
const.product.cpu.abilist=default
# OHOS_SECURITY_PATCH_TAG[] = { "2020-09-01" }
const.ohos.version.security_patch=2020-09-01
# OHOS_DISPLAY_VERSION[] = {"OpenHarmony 3.1.5.2"}
const.product.software.version=OpenHarmony 3.1.5.2
# OHOS_INCREMENTAL_VERSION[] = {"default"}
const.product.incremental.version=default
# OHOS_FIRST_API_LEVEL = 1
const.product.firstapiversion=1
# OHOS_BUILD_TYPE[] = {"default"}
const.product.build.type=default
# OHOS_BUILD_USER[] = {"default"}
const.product.build.user=default
# OHOS_BUILD_HOST[] = {"default"}
const.product.build.host=default
# OHOS_BUILD_TIME[] = {"default"}
const.product.build.date=default
# OHOS_HARDWARE_PROFILE[] = {"default"}
const.product.hardwareprofile=default
# OHOS_RELEASE_TYPE[] = { "Canary1" }
const.ohos.releasetype=Canary1
# OHOS_SDK_API_LEVEL = 8;
const.ohos.apiversion=8
# OHOS_BUILD_ROOT_HASH[] = { "default" }
const.ohos.buildroothash=default
# OHOS_SDK_API_LEVEL = 8
const.ohos.sdkapilevel=8
# OHOS_OS_NAME[] = { "OpenHarmony" }
const.ohos.name=OpenHarmony
services/init/standard/init_cmds.c
浏览文件 @
072c3432
...
...
@@ -14,6 +14,7 @@
*/
#include "init_cmds.h"
#include <dlfcn.h>
#include <errno.h>
#include <fcntl.h>
#include <net/if.h>
...
...
@@ -180,6 +181,20 @@ static void DoExec(const struct CmdArgs *ctx)
if
(
pid
==
0
)
{
INIT_ERROR_CHECK
(
ctx
!=
NULL
&&
ctx
->
argv
[
0
]
!=
NULL
,
_exit
(
0x7f
),
"DoExec: invalid arguments to exec
\"
%s
\"
"
,
ctx
->
argv
[
0
]);
#ifdef SUPPORT_PROFILER_HIDEBUG
void
*
handle
=
dlopen
(
"/system/lib/libhidebug.so"
,
RTLD_LAZY
);
if
(
handle
==
NULL
)
{
INIT_LOGE
(
"Failed to dlopen libhidebug.so, %s
\n
"
,
dlerror
());
return
;
}
bool
(
*
initParam
)();
initParam
=
(
bool
(
*
)())
dlsym
(
handle
,
"InitEnvironmentParam"
);
if
(
initParam
==
NULL
)
{
INIT_LOGE
(
"Failed to dlsym InitEnvironmentParam, %s
\n
"
,
dlerror
());
return
;
}
(
*
initParam
)(
ctx
->
argv
[
0
]);
#endif
int
ret
=
execv
(
ctx
->
argv
[
0
],
ctx
->
argv
);
if
(
ret
==
-
1
)
{
INIT_LOGE
(
"DoExec: execute
\"
%s
\"
failed: %d."
,
ctx
->
argv
[
0
],
errno
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录