Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Startup Init Lite
提交
97462192
S
Startup Init Lite
项目概览
OpenHarmony
/
Startup Init Lite
大约 1 年 前同步成功
通知
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
97462192
编写于
7月 31, 2021
作者:
O
openharmony_ci
提交者:
Gitee
7月 31, 2021
浏览文件
操作
浏览文件
下载
差异文件
!78 增加ohos.para
Merge pull request !78 from 熊磊/init0731
上级
58f42481
4191bec2
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
47 addition
and
94 deletion
+47
-94
services/BUILD.gn
services/BUILD.gn
+7
-0
services/etc/init.cfg
services/etc/init.cfg
+3
-90
services/etc/ohos.para
services/etc/ohos.para
+36
-0
services/src/init_read_cfg.c
services/src/init_read_cfg.c
+1
-4
未找到文件。
services/BUILD.gn
浏览文件 @
97462192
...
...
@@ -194,6 +194,12 @@ if (defined(ohos_lite)) {
"//device/hisilicon/hi3516dv300/build/rootfs/init.Hi3516DV300.usb.cfg"
part_name = "init"
}
ohos_prebuilt_etc("ohos.para") {
source = "//base/startup/init_lite/services/etc/ohos.para"
part_name = "init"
}
group("init_etc") {
deps = [
":init.Hi3516DV300.cfg",
...
...
@@ -203,6 +209,7 @@ if (defined(ohos_lite)) {
":init.usb.configfs.cfg",
":passwd",
":group",
":ohos.para",
]
}
}
services/etc/init.cfg
浏览文件 @
97462192
...
...
@@ -2,9 +2,6 @@
"import" : [
"/init.environ.cfg",
"/init.usb.cfg",
"/init.${ro.hardware}.cfg",
"/init.usb.configfs.cfg",
"/init.${ro.zygote}.cfg",
"/init.usb.configfs.cfg",
"/init.usb.cfg",
"/init.Hi3516DV300.usb.cfg",
...
...
@@ -28,9 +25,6 @@
}, {
"name" : "init",
"cmds" : [
"load_param /vendor/build.prop",
"load_param /vendor/default.prop",
"load_param /vendor/odm/etc/build.prop",
"copy /proc/cmdline /dev/urandom",
"copy /system/etc/prop.default /dev/urandom",
"symlink /proc/self/fd/0 /dev/stdin",
...
...
@@ -184,11 +178,7 @@
"chmod 0444 /dev/cpu_variant:${ro.bionic.2nd_arch}",
"chown system system /sys/power/state",
"chown system system /sys/power/wakeup_count",
"chmod 0660 /sys/power/state",
"start logd",
"start servicemanager",
"start hwservicemanager",
"start vndservicemanager"
"chmod 0660 /sys/power/state"
]
}, {
"name" : "param:sys.boot_from_charger_mode=1",
...
...
@@ -199,9 +189,7 @@
}, {
"name" : "load_persist_props_action",
"cmds" : [
"load_persist_params load_persist_params",
"start logd",
"start logd-reinit"
"load_persist_params load_persist_params"
]
}, {
"name" : "firmware_mounts_complete",
...
...
@@ -217,7 +205,6 @@
"trigger late-fs",
"trigger post-fs-data",
"trigger load_persist_props_action",
"trigger zygote-start",
"trigger firmware_mounts_complete",
"trigger early-boot",
"trigger boot"
...
...
@@ -250,12 +237,7 @@
"chown system log /proc/last_kmsg",
"chmod 0440 /proc/last_kmsg",
"chmod 0444 /sys/fs/selinux/policy",
"mkdir /cache/lost+found 0770 root root",
"mkdir /metadata/vold",
"chmod 0700 /metadata/vold",
"mkdir /metadata/password_slots 0771 root system",
"mkdir /metadata/apex 0700 root system",
"mkdir /metadata/apex/sessions 0700 root system"
"mkdir /cache/lost+found 0770 root root"
]
}, {
"name" : "late-fs",
...
...
@@ -265,18 +247,10 @@
}, {
"name" : "post-fs-data",
"cmds" : [
"start vold",
"exec - system system -- /system/bin/vdc checkpoint prepareCheckpoint",
"chown system system /data",
"chmod 0771 /data",
"mkdir /data/bootchart 0755 shell shell",
"exec -- /system/bin/fsverity_init",
"mkdir /data/apex 0750 root system",
"mkdir /data/apex/active 0750 root system",
"mkdir /data/apex/backup 0700 root system",
"mkdir /data/apex/sessions 0700 root system",
"mkdir /data/app-staging 0750 system system",
"start apexd",
"copy /data/system/entropy.dat /dev/urandom",
"mkdir /data/misc 01771 system misc",
"mkdir /data/misc/recovery 0770 system log",
...
...
@@ -348,11 +322,6 @@
"mkdir /data/app-asec 0700 root root",
"mkdir /data/app-lib 0771 system system",
"mkdir /data/app 0771 system system",
"mkdir /data/property 0700 root root",
"mkdir /data/tombstones 0771 system system",
"mkdir /data/vendor/tombstones 0771 root root",
"mkdir /data/vendor/tombstones/wifi 0771 wifi wifi",
"mkdir /data/dalvik-cache 0771 root root",
"mkdir /data/ota 0771 root root",
"mkdir /data/ota_package 0770 system cache",
"mkdir /data/resource-cache 0771 system system",
...
...
@@ -361,7 +330,6 @@
"mkdir /data/lost+found 0770 root root",
"mkdir /data/drm 0770 drm drm",
"mkdir /data/mediadrm 0770 mediadrm mediadrm",
"mkdir /data/anr 0775 system system",
"mkdir /data/nfc 0770 nfc nfc",
"mkdir /data/nfc/param 0770 nfc nfc",
"mkdir /data/backup 0700 system system",
...
...
@@ -383,7 +351,6 @@
"mkdir /data/cache/recovery 0770 system cache",
"mkdir /data/cache/backup_stage 0700 system system",
"mkdir /data/cache/backup 0700 system system",
"exec - system system -- /system/bin/tzdatacheck /apex/com.android.runtime/etc/tz /data/misc/zoneinfo",
"setparam sys.use_memfd false",
"chown root system /dev/fscklogs/log",
"chmod 0770 /dev/fscklogs/log"
...
...
@@ -466,56 +433,6 @@
"chown root radio /proc/cmdline",
"setparam net.tcp.default_init_rwnd 60"
]
}, {
"name" : "nonencrypted",
"cmds" : [
]
}, {
"name" : "param:sys.init_log_level=*",
"condition" : "sys.init_log_level=*",
"cmds" : [
]
}, {
"name" : "charger",
"cmds" : [
]
}, {
"name" : "param:vold.decrypt=trigger_load_persist_props",
"condition" : "vold.decrypt=trigger_load_persist_props",
"cmds" : [
"load_persist_params load_persist_params",
"start logd",
"start logd-reinit"
]
}, {
"name" : "param:vold.decrypt=trigger_post_fs_data",
"condition" : "vold.decrypt=trigger_post_fs_data",
"cmds" : [
"trigger post-fs-data",
"trigger zygote-start"
]
}, {
"name" : "param:vold.decrypt=trigger_restart_min_framework",
"condition" : "vold.decrypt=trigger_restart_min_framework",
"cmds" : [
]
}, {
"name" : "param:vold.decrypt=trigger_restart_framework",
"condition" : "vold.decrypt=trigger_restart_framework",
"cmds" : [
"setparam service.bootanim.exit 0",
"start bootanim"
]
}, {
"name" : "param:vold.decrypt=trigger_shutdown_framework",
"condition" : "vold.decrypt=trigger_shutdown_framework",
"cmds" : [
]
}, {
"name" : "param:sys.boot_completed=1",
"condition" : "sys.boot_completed=1",
"cmds" : [
]
}, {
"name" : "param:sys.sysctl.extra_free_kbytes=*",
"condition" : "sys.sysctl.extra_free_kbytes=*",
...
...
@@ -564,10 +481,6 @@
"console" : 1,
"uid" : "root",
"gid" : ["shell", "log", "readproc"]
}, {
"name" : "flash_recovery",
"path" : ["/system/bin/install-recovery.sh"],
"once" : 1
}
]
}
services/etc/ohos.para
0 → 100755
浏览文件 @
97462192
# Copyright (c) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
build_version = 2.0
# whether ohos is enabled.
hw_sc.build.os.enable=true
# ohos API version number.
hw_sc.build.os.apiversion=6
# ohos system version.
hw_sc.build.os.version=2.2.0
# ohos device type please use hw_sc.build.os.devicetype
# ohos release type
hw_sc.build.os.releasetype=Canary1
ro.actionable_compatible_property.enabled=false
ro.postinstall.fstab.prefix=/system
ro.secure=1
security.perf_harden=1
ro.allow.mock.location=0
ro.debuggable=1
persist.sys.usb.config=hdc
services/src/init_read_cfg.c
浏览文件 @
97462192
...
...
@@ -125,10 +125,7 @@ void InitReadCfg()
{
#ifndef OHOS_LITE
InitParamService
();
LoadDefaultParams
(
"/system/etc/prop.default"
);
LoadDefaultParams
(
"/system/build.prop"
);
LoadDefaultParams
(
"/system/buildz.prop"
);
LoadDefaultParams
(
"/product/build.prop"
);
LoadDefaultParams
(
"/system/etc/ohos.para"
);
#endif
ParseInitCfg
(
INIT_CONFIGURATION_FILE
);
ParseOtherCfgs
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录