Home
last modified time | relevance | path

Searched refs:boot (Results 1 – 25 of 53) sorted by relevance

123

/base/update/updater/utils/
Dwrite_updater.cpp41 struct UpdateMessage boot {}; in main() struct
48 … if (snprintf_s(boot.update, sizeof(boot.update), sizeof(boot.update) - 1, "--update_package=%s", in main()
55 …if (strncpy_s(boot.update, sizeof(boot.update), "--user_wipe_data", sizeof(boot.update) - 1) != 0)… in main()
60 … if (strncpy_s(boot.update, sizeof(boot.update), "boot_flash", sizeof(boot.update) - 1) != 0) { in main()
67 …if (strncpy_s(boot.update, sizeof(boot.update), "--sdcard_update", sizeof(boot.update) - 1) != 0) { in main()
75 bool ret = WriteUpdaterMessage(miscFile, boot); in main()
/base/update/updater/test/unittest/updater_main_test/
Dupdater_main_unittest.cpp72 UpdateMessage boot {}; variable
81 …EXPECT_EQ(strncpy_s(boot.command, sizeof(boot.command) - 1, commandMsg.c_str(), commandMsg.size())…
82 EXPECT_EQ(strncpy_s(boot.update, sizeof(boot.update), "", sizeof(boot.update)), 0);
83 bool bRet = WriteUpdaterMessage(commandFile, boot);
99 UpdateMessage boot {}; variable
101 …EXPECT_EQ(strncpy_s(boot.command, sizeof(boot.command) - 1, command1.c_str(), command1.size()), 0);
103 … EXPECT_EQ(strncpy_s(boot.update, sizeof(boot.update) - 1, command2.c_str(), command2.size()), 0);
104 bool ret = WriteUpdaterMessage(MISC_FILE, boot);
127 UpdateMessage boot {}; variable
129 …EXPECT_EQ(strncpy_s(boot.command, sizeof(boot.command) - 1, command1.c_str(), command1.size()), 0);
[all …]
/base/update/updater/test/unittest/misc_info_test/
Dmisc_info_unittest.cpp45 UpdateMessage boot {}; variable
47 …EXPECT_EQ(strncpy_s(boot.command, sizeof(boot.command) - 1, command1.c_str(), command1.size()), 0);
49 … EXPECT_EQ(strncpy_s(boot.update, sizeof(boot.update) - 1, command2.c_str(), command2.size()), 0);
51 bool ret = WriteUpdaterMessage(path, boot);
55 ret = WriteUpdaterMessage(path, boot);
59 ret = ReadUpdaterMessage(path, boot);
64 ret = ReadUpdaterMessage(path, boot);
67 ret = WriteUpdaterMiscMsg(boot);
70 ret = ReadUpdaterMiscMsg(boot);
/base/update/updater/services/
Dmain.cpp30 struct UpdateMessage boot {}; in main() struct
31 if (!ReadUpdaterMiscMsg(boot)) { in main()
33 boot = {"boot_updater", "", ""}; in main()
37 auto bootMode = SelectMode(boot).value_or(BOOT_MODE(Updater, "updater.hdc.configfs")); in main()
Dupdater_utils.cpp168 bool IsUpdater(const UpdateMessage &boot) in IsUpdater() argument
170 … return !IsFlashd(boot) && strncmp(boot.command, "boot_updater", sizeof("boot_updater") - 1) == 0; in IsUpdater()
173 bool IsFlashd(const UpdateMessage &boot) in IsFlashd() argument
175 return strncmp(boot.update, "boot_flash", sizeof("boot_flash") - 1) == 0; in IsFlashd()
189 std::optional<BootMode> SelectMode(const UpdateMessage &boot) in SelectMode() argument
194 auto it = std::find_if(modes.begin(), modes.end(), [&boot] (const auto &bootMode) { in SelectMode()
195 if (bootMode.cond != nullptr && bootMode.cond(boot)) { in SelectMode()
/base/update/updater/interfaces/kits/misc_info/
Dmisc_info.cpp24 bool WriteUpdaterMessage(const std::string &path, const UpdateMessage &boot) in WriteUpdaterMessage() argument
38 size_t ret = fwrite(&boot, sizeof(UpdateMessage), 1, fp); in WriteUpdaterMessage()
53 bool ReadUpdaterMessage(const std::string &path, UpdateMessage &boot) in ReadUpdaterMessage() argument
80 if (memcpy_s(&boot, sizeof(UpdateMessage), &tempBoot, sizeof(UpdateMessage)) != EOK) { in ReadUpdaterMessage()
87 bool WriteUpdaterMiscMsg(const UpdateMessage &boot) in WriteUpdaterMiscMsg() argument
95 return WriteUpdaterMessage(path, boot); in WriteUpdaterMiscMsg()
98 bool ReadUpdaterMiscMsg(UpdateMessage &boot) in ReadUpdaterMiscMsg() argument
105 return ReadUpdaterMessage(path, boot); in ReadUpdaterMiscMsg()
/base/update/updater/test/unittest/service_test/
Dupdater_service_unittest.cpp123 UpdateMessage boot {}; variable
129 …EXPECT_EQ(strncpy_s(boot.command, sizeof(boot.command) - 1, commandMsg.c_str(), commandMsg.size())…
130 …EXPECT_EQ(strncpy_s(boot.update, sizeof(boot.update) - 1, updateMsg.c_str(), updateMsg.size()), 0);
131 bool bRet = WriteUpdaterMessage(commandFile, boot);
147 …EXPECT_EQ(strncpy_s(boot.command, sizeof(boot.command) - 1, commandMsg.c_str(), commandMsg.size())…
148 …EXPECT_EQ(strncpy_s(boot.update, sizeof(boot.update) - 1, updateMsg.c_str(), updateMsg.size()), 0);
149 bRet = WriteUpdaterMessage(commandFile, boot);
162 UpdateMessage boot {}; variable
172 …EXPECT_EQ(strncpy_s(boot.command, sizeof(boot.command) - 1, commandMsg.c_str(), commandMsg.size())…
173 …EXPECT_EQ(strncpy_s(boot.update, sizeof(boot.update) - 1, updateMsg.c_str(), updateMsg.size()), 0);
[all …]
/base/startup/init/services/modules/reboot/
Dreboot_misc.c35 static int RBMiscWriteUpdaterMessage(const char *path, const struct RBMiscUpdateMessage *boot) in RBMiscWriteUpdaterMessage() argument
44 size_t writeLen = fwrite(boot, sizeof(struct RBMiscUpdateMessage), 1, fp); in RBMiscWriteUpdaterMessage()
52 static int RBMiscReadUpdaterMessage(const char *path, struct RBMiscUpdateMessage *boot) in RBMiscReadUpdaterMessage() argument
65 size_t readLen = fread(boot, 1, sizeof(struct RBMiscUpdateMessage), fp); in RBMiscReadUpdaterMessage()
84 int UpdateMiscMessage(const char *valueData, const char *cmd, const char *cmdExt, const char *boot) in UpdateMiscMessage() argument
96 if (boot != NULL) { in UpdateMiscMessage()
97 ret = snprintf_s(msg.command, MAX_COMMAND_SIZE, MAX_COMMAND_SIZE - 1, "%s", boot); in UpdateMiscMessage()
Dreboot_adp.h27 int UpdateMiscMessage(const char *valueData, const char *cmd, const char *cmdExt, const char *boot);
/base/startup/init/
DREADME_zh.md67 [启动恢复子系统概述](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/subsystems/subsys-boot-…
69 [引导启动配置文件](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/subsystems/subsys-boot-i…
71 [jobs管理](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/subsystems/subsys-boot-ini…
73 [插件](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/subsystems/subsys-boot-init-pl…
75 [沙盒管理](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/subsystems/subsys-boot-init-…
77 [服务管理](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/subsystems/subsys-boot-init-…
79 [系统参数](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/subsystems/subsys-boot-init-…
81 [日志管理](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/subsystems/subsys-boot-init-…
83 [组件化启动](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/subsystems/subsys-boot-init…
/base/update/updater/interfaces/kits/include/misc_info/
Dmisc_info.h53 bool WriteUpdaterMessage(const std::string &path, const UpdateMessage &boot);
54 bool ReadUpdaterMessage(const std::string &path, UpdateMessage &boot);
55 bool WriteUpdaterMiscMsg(const UpdateMessage &boot);
56 bool ReadUpdaterMiscMsg(UpdateMessage &boot);
/base/startup/init/services/etc/
Dinit.usb.cfg3 "/vendor/etc/init.${ohos.boot.hardware}.usb.cfg"
6 "name" : "boot && param:persist.sys.usb.config=*",
7 "condition" : "boot && persist.sys.usb.config=*",
/base/powermgr/battery_manager/charger/resources/
Ddevice.charge.group.cfg5 "boot && param:persist.sys.usb.config=*",
7 "boot && param:const.debuggable=1",
/base/startup/hvb/
DREADME_zh.md120 | ohos.boot.hvb.enable | hvb使能开关:<br>false:不需要使能hvb<br>true:需使能HVB;使能时,bootloader需传递以下hvb详细参数: |
121 | ohos.boot.hvb.version | 当前只支持1.0版本 |
122 | ohos.boot.hvb.hash_algo | 当前只支持sha256 |
123 | ohos.boot.hvb.digest | HVB保护的所有用户态镜像以及RVT的verity信息摘要 |
/base/update/updater/services/include/updater/
Dupdater.h107 bool IsUpdater(const UpdateMessage &boot);
109 bool IsFlashd(const UpdateMessage &boot);
115 std::optional<BootMode> SelectMode(const UpdateMessage &boot);
/base/startup/hvb/tools/
Dreadme.md31 …e.g. ./hvbtool.py make_hash_footer --image boot.img --partition boot --partition_size 31457280 …
89 …SHA256_RSA2048 --rollback_index 0 --rollback_location 1 --chain_partition boot:boot_pub.pem --chai…
/base/startup/init/services/etc/param/
Dohos.para.dac17 ohos.boot. = system:bootctrl:0775
37 ohos.boot.sn = root:deviceprivate:0750
48 persist.window.boot. = root:system:0775
/base/powermgr/thermal_manager/application/init/
Dthermal_protector.cfg8 "start-mode" : "boot",
/base/startup/init/services/param/watcher/etc/
Dparam_watcher.cfg6 "start-mode" : "boot",
/base/security/code_signature/services/local_code_sign/
Dlocal_code_sign.cfg3 "name" : "early-boot",
/base/inputmethod/imf/etc/init/
Dinputmethodservice.cfg3 "name" : "early-boot",
/base/theme/wallpaper_mgr/services/etc/init/
Dwallpaperservice.cfg3 "name" : "early-boot",
/base/time/time_service/services/etc/init/
Dtimeservice.cfg3 "name" : "boot",
/base/sensors/start/etc/init/
Dmsdp.cfg3 "name" : "boot",
Dmsdp_musl.cfg3 "name" : "boot",

123