Patent ID: 11886282
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 18:
19. 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.