Commit Graph

108 Commits

Author SHA1 Message Date
handyohos
51379f94bd Feat: Add commands for ueventd
1) add trigger and listening mode for ueventd
2) add get log level api
3) add string array api

Signed-off-by: handyohos <zhangxiaotian@huawei.com>

#I7KQM1
2023-07-17 09:25:04 +08:00
handyohos
f710131b23 Bugfix: fix coding styles
Signed-off-by: handyohos <zhangxiaotian@huawei.com>
Change-Id: I53085cfd8a2a170284a0e6997239636014175b88

#I7GBKO
2023-06-27 12:20:10 +08:00
cheng_jinsong
311e01df84 benchmark test for param
Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>
2023-06-16 15:31:16 +08:00
openharmony_ci
836ccc395b
!1988 需求:init支持selinux策略分离
Merge pull request !1988 from cheng_jinsong/vendor-init
2023-06-07 07:28:09 +00:00
cheng_jinsong
7637c55418 修改time_t 为timespec
Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>
2023-05-31 14:51:31 +08:00
cheng_jinsong
01ff09c36d feature vendor init
Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>
2023-05-29 12:39:49 +08:00
cheng_jinsong
e18e0d7f07 系统优化
Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>
2023-05-08 16:15:45 +08:00
cheng_jinsong
0012e71e9e add check groupid in service for parameter set
Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>
2023-04-23 10:12:16 +08:00
cheng_jinsong
848a365e07 Merge branch 'master' of gitee.com:openharmony/startup_init_lite into init-ut
Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>
2023-03-27 01:23:44 +00:00
cheng_jinsong
e63b8cb7c3 init ut memory
Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>
2023-03-24 11:39:17 +08:00
cheng_jinsong
d1051ecb44 add interface for cached parameter
Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>
2023-03-01 14:09:04 +08:00
handyohos
33c4561fca Feature: support hooking device info api and extending ohos.boot. parameters from cmdline
1) add hook to device info api
2) extending ohos.boot. parameters by cmdline

Signed-off-by: handyohos <zhangxiaotian@huawei.com>
Change-Id: I06931b7685315a9422754444c42dc85e89e681f5

#I6D6V1
2023-02-08 09:51:35 +08:00
cheng_jinsong
02b4a78f89 read param 优化
Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>
2022-12-07 15:19:00 +08:00
cheng_jinsong
1f9ee78a8f readparam
Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>
2022-12-06 08:51:47 +08:00
cheng_jinsong
c81ee2cc81 commit id and reboot
Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>
2022-11-10 18:29:14 +08:00
cheng_jinsong
a2d11d110f fix bug for param set
Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>
2022-09-16 15:14:22 +08:00
cheng_jinsong
513c2427cf Merge branch 'master' of gitee.com:openharmony/startup_init_lite into servicejob
Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>
2022-09-14 00:41:11 +00:00
cheng_jinsong
726c27943c 使用独立的job启动服务
Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>
2022-09-13 10:16:13 +08:00
cheng_jinsong
969e4ba580 delete unused function
Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>
Change-Id: If9b04a0172cd8f7936b3e615597ca4de51ae7dcb
2022-09-09 03:17:48 -07:00
openharmony_ci
c96253d21f
!1205 解析cfg后,打印trigger信息
Merge pull request !1205 from cheng_jinsong/triggerdump
2022-09-08 07:18:00 +00:00
cheng_jinsong
3a8cefe5c9 解析后dump trigger
Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>
2022-09-08 10:57:08 +08:00
cheng_jinsong
db5614cca7 init: add console ondemand
Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>
2022-09-06 16:07:37 +08:00
cheng_jinsong
fd750f0c64 add param client initialize interface
Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>
Change-Id: I395f284fd7034ae0e516516017a29d2f5ab202c3
2022-08-25 01:46:08 -07:00
chengjinsong
710b8e81de codex
Signed-off-by: chengjinsong <chengjinsong2@huawei.com>
2022-08-23 15:57:51 +08:00
an_xinwei
32a2247b83 拆分头文件
Signed-off-by: an_xinwei <an_xinwei@hoperun.com>
2022-08-10 15:13:15 +08:00
Mupceet
a13cb30379 Merge branch 'master' of gitee.com:openharmony/startup_init_lite into initservice
Signed-off-by: Mupceet <laiguizhong@huawei.com>
2022-08-02 05:54:57 +00:00
Mupceet
258f8f8503 Merge branch 'master' of gitee.com:openharmony/startup_init_lite into initservice
Signed-off-by: Mupceet <laiguizhong@huawei.com>
2022-08-01 16:01:39 +08:00
Mupceet
e8832dd02c fix bug for read misc
Signed-off-by: Mupceet <laiguizhong@huawei.com>
2022-07-28 10:34:57 +08:00
Mupceet
4f2b3466e8 改造服务状态为int
Signed-off-by: Mupceet <laiguizhong@huawei.com>
2022-07-19 09:48:20 +08:00
Mupceet
188053b6a3 系统参数支持类型定义
Signed-off-by: Mupceet <laiguizhong@huawei.com>
2022-07-18 17:09:12 +08:00
openharmony_ci
bfc7bf0c5e
!897 fix bug for cmd service
Merge pull request !897 from Mupceet/controlfd
2022-07-05 12:34:30 +00:00
Mupceet
e08b5e820b fix control fd bugs
Signed-off-by: Mupceet <laiguizhong@huawei.com>
2022-07-05 11:24:11 +08:00
laiguizhong
3d0cb75004 修改libbegetutil符号冲突,隐藏不需要暴露的符号
Signed-off-by: laiguizhong <laiguizhong@huawei.com>
Change-Id: I6c42c9188329e875f5f9fcdeeab096a4c5dea202
2022-07-04 02:44:37 -07:00
openharmony_ci
ffc886a66a
!869 Add bootevent polling mechanism
Merge pull request !869 from handy/062723
2022-06-29 01:57:08 +00:00
handyohos
fd818084b9 feat: Add bootevent polling mechanism
1) 为parameter service增加ParamSetHookAdd接口扩展set时的hook
2)为bootstage增加InitAddServiceParseHook接口扩展解析service的hook
3)增加bootevent静态模块,在hook中解析bootevents字段
4)在bootevent静态模块中扩展hook处理parameter set时的bootevent.参数
5)所有的bootevent投票完成时,设置bootevent.boot.completed
6)去掉service解析时的字段校验。

Signed-off-by: handyohos <zhangxiaotian@huawei.com>
Change-Id: I7c55cd6319ff7dd773c1e3b43b2c889cceaa3a0d
2022-06-28 16:48:39 +08:00
Mupceet
fd4b59bf57 fix bug fir deny
Signed-off-by: Mupceet <laiguizhong@huawei.com>
2022-06-28 11:00:21 +08:00
Mupceet
ab0b3090b0 decodeuidgid0622
Signed-off-by: Mupceet <laiguizhong@huawei.com>
2022-06-22 18:03:50 +08:00
openharmony_ci
b811269633
!814 修复解码uid和gid未做区分的问题
Merge pull request !814 from Mupceet/0621xyt
2022-06-21 11:51:52 +00:00
Mupceet
7bb9440325 decodeid0621
Signed-off-by: Mupceet <laiguizhong@huawei.com>
Change-Id: I5d96a74291461d5c60e79185e3962bcc9fc00822
2022-06-21 16:29:04 +08:00
Wen liumin
cc8fc0f322 Fix spelling mistakes
Signed-off-by: Wen liumin <904600657@qq.com>
2022-06-17 10:11:15 +08:00
Mupceet
4358a09e84 拆分param
Signed-off-by: Mupceet <laiguizhong@huawei.com>

format build

Signed-off-by: Mupceet <laiguizhong@huawei.com>

fix style

Signed-off-by: Mupceet <laiguizhong@huawei.com>

fix style

Signed-off-by: Mupceet <laiguizhong@huawei.com>

fix style

Signed-off-by: Mupceet <laiguizhong@huawei.com>

fix libsocket

Signed-off-by: Mupceet <laiguizhong@huawei.com>
2022-06-09 20:31:41 +08:00
openharmony_ci
7eb66d9758
!734 系统参数归一,支持liteos-a
Merge pull request !734 from Mupceet/liteosa
2022-06-01 02:05:17 +00:00
openharmony_ci
b568c8f831
!745 提供接口检查hashmap是否为空
Merge pull request !745 from Mupceet/hashempty
2022-05-31 12:23:53 +00:00
Mupceet
d1a72fa570 add interface for check hash map
Signed-off-by: Mupceet <laiguizhong@huawei.com>
2022-05-31 17:12:58 +08:00
Mupceet
4054e1b0f5 init: sandbox add mount files list
Signed-off-by: Mupceet <laiguizhong@huawei.com>
2022-05-31 15:49:12 +08:00
Mupceet
8d34a205bc support liteos
Signed-off-by: Mupceet <laiguizhong@huawei.com>
2022-05-30 19:13:57 +08:00
openharmony_ci
5695fe51d7
!701 合并bootcharge的处理
Merge pull request !701 from Mupceet/bootcharge
2022-05-28 00:54:36 +00:00
Mupceet
a61370b4f4 合并charge处理
恢复bootcharge-reason

Signed-off-by: Mupceet <laiguizhong@huawei.com>

合并charge处理

Signed-off-by: Mupceet <laiguizhong@huawei.com>
2022-05-27 14:58:07 +08:00
Mupceet
200377ece6 init: add control_fd cmd
Signed-off-by: Mupceet <laiguizhong@huawei.com>
2022-05-26 12:27:57 +08:00
Mupceet
13f6415f59 系统参数归一,支持liteos
Signed-off-by: Mupceet <laiguizhong@huawei.com>
2022-05-25 12:41:36 +08:00