未验证 提交 cb6ff47e 编写于 作者: O openharmony_ci 提交者: Gitee

!429 增加misc分区清除功能

Merge pull request !429 from 熊磊/0315_1
......@@ -88,6 +88,7 @@ HashMapHandle GetGroupHashMap(int type);
InitWorkspace *GetInitWorkspace(void);
#endif
int GetBootModeFromMisc(void);
void clearMisc(void);
#ifdef __cplusplus
#if __cplusplus
}
......
......@@ -258,6 +258,7 @@ static void BootStateChange(const char *content)
}
if (strcmp("post-init", content) == 0) {
StartAllServices(START_MODE_NARMAL);
clearMisc();
return;
}
}
......
......@@ -268,3 +268,8 @@ void ExecReboot(const char *value)
INIT_LOGE("Invalid reboot cmd %s.", value);
return;
}
void clearMisc(void)
{
(void)CheckAndRebootToUpdater(NULL, "reboot", NULL, NULL);
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册