Recovery method for terminal device startup failure and terminal device
AssigneeHuawei Technologies Co., Ltd.
InventorsLiang Zhang, Dechun Qi, Xiaoyan Zhou, Zhiqiang Li, Liang Yu, Dengzhou Xia, Chunhua Hu, Zhongsheng Yan
Life of this patent
Estimating the term…
Abstract
Embodiments of this application provide a recovery method for a terminal device startup failure and a terminal device. The method includes: determining that a failure indication event occurs in a startup process, where the failure indication event is used to indicate a startup failure; determining at least one recovery policy based on a type of the failure indication event and/or a cause of the failure indication event; and performing startup recovery based on the at least one recovery policy.
Claims20
A method, comprising:
- determining, by a terminal device, that a failure indication event has occurred in a startup process of the terminal device, wherein the failure indication event indicates a startup failure;
- determining, by the terminal device, a recovery policy based on a type of the failure indication event or a cause of the failure indication event, and based on a current quantity of recovery times and a startup stage at which the failure indication event occurred, wherein different current quantities of recovery times correspond to different recovery policies, and failure indication events occurring at different startup stages correspond to different recovery policies;
- and
- performing, by the terminal device, startup recovery on the terminal device based on the recovery policy, wherein when the type of the failure indication event or the cause of the failure indication event and the startup stage at which the failure indication event occurred correspond to a preset execution sequence of recovery policies, a subsequent start up recovery based on a subsequent recovery policy in the preset execution sequence of recovery policies is performed only when recovery does not succeed in response to performing an earlier startup recovery based on an earlier recovery policy in the preset execution sequence of recovery policies.
A terminal, comprising:
- a processor;
- and
- a non-transitory memory, wherein the memory is configured to store a program to be executed by the processor, the program including instructions for:
- determining that a failure indication event has occurred in a startup process of the terminal, wherein the failure indication event indicate a startup failure;
- determining a recovery policy based on a type of the failure indication event or a cause of the failure indication event, and based on a current quantity of recovery times and a startup stage at which the failure indication event occurred, wherein different current quantities of recovery times correspond to different recovery policies, and failure indication events occurring at different startup stages correspond to different recovery policies;
- and
- performing startup recovery on the terminal based on the recovery policy, wherein when the type of the failure indication event or the cause of the failure indication event and the startup stage at which the failure indication event occurred correspond to a preset execution sequence of recovery policies, a subsequent recovery policy in the preset execution sequence of recovery policies is performed only when recovery does not succeed in response to performing an earlier recovery policy in the preset execution sequence of recovery policies.
A non-transitory computer readable storage medium, wherein the storage medium stores computer software instructions used by a terminal, and when the computer software instructions run on a computer, the software instructions cause the terminal to:
- determine that a failure indication event has occurred in a startup process, wherein the failure indication event indicates a startup failure;
- determine a recovery policy based on a type of the failure indication event or a cause of the failure indication event, and based on a current quantity of recovery times and a startup stage at which the failure indication event occurred, wherein different current quantities of recovery times correspond to different recovery policies, and failure indication events occurring at different startup stages correspond to different recovery policies;
- and
- perform startup recovery based on the recovery policy, wherein when the type of the failure indication event or the cause of the failure indication event and the startup stage at which the failure indication event occurred correspond to a preset execution sequence of recovery policies, a subsequent recovery policy in the preset execution sequence of recovery policies is performed only when recovery does not succeed in response to performing an earlier recovery policy in the preset execution sequence of recovery policies.
Dependencies are inferred from the claim text.