Recovery method for terminal device startup failure and terminal device

US11119844B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11119844-B2
Application numberUS-201616344565-A
CountryUS
Kind codeB2
Filing dateOct 25, 2016
Priority dateOct 25, 2016
Publication dateSep 14, 2021
Grant dateSep 14, 2021

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Embodiments 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.

First claim

Opening claim text (preview).

What is claimed is: 1. A recovery 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 first recovery policy based on a first type of the failure indication event or a first 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 the terminal device determines the first recovery policy by querying a stored mapping relationship among a plurality of recovery policies, a plurality of stages of startup in which a startup failure may occur, a plurality of quantities of recovery times, a plurality of startup stages, and a plurality of failure indication events or causes of failure indication events; and performing, by the terminal device, startup recovery on the terminal device based on the first recovery policy. 2. The recovery method according to claim 1 , wherein the first type of the failure indication event comprises: a preset fault type, a startup timeout type, a user force restart type, or a system crash restart type. 3. The recovery method according to claim 2 , wherein the user force restart type corresponds to: touching and holding a power button; pressing a preset combination of buttons; or pulling out a battery. 4. The recovery method according to claim 2 , wherein the first recovery policy is selected from the plurality of recovery policies, and the plurality of recovery policies comprises: a system or service restart recovery policy, backup system enabling recovery policy, safe recovery for user data recovery policy, a factory reset recovery policy, and an online system update recovery policy. 5. The recovery method according to claim 4 , wherein the first type of the failure indication event is the preset fault type, the failure indication event of the preset fault type is generated when a boot of system kernel image check fails or a system kernel image partition is damaged, and the first recovery policy is the online system update policy. 6. The recovery method according to claim 4 , wherein the first type of the failure indication event is the preset fault type, and the failure indication event of the preset fault type is generated when a boot of a core service fails; and wherein performing startup recovery on the terminal device based on the first recovery policy comprises: performing startup recovery on the terminal device based on a preset execution sequence, wherein the preset execution sequence sequentially comprises the safe recovery for user data policy, the factory reset recovery policy, and the online system update policy. 7. The recovery method according to claim 4 , wherein the first type of the failure indication event is the preset fault type, and the failure indication event of the preset fault type is generated when a data partition is damaged or a data partition is read-only; and wherein performing startup recovery on the terminal device based on the first recovery policy comprises: performing startup recovery on the terminal device based on a preset execution sequence, wherein the preset execution sequence sequentially comprises the system or service restart policy, the safe recovery for user data policy, the factory reset recovery policy, and the online system update policy. 8. The recovery method according to claim 4 , wherein the first type of the failure indication event is the startup timeout type or the user force restart type; and wherein performing startup recovery on the terminal device based on the first recovery policy comprises: performing startup recovery on the terminal device based on a preset execution sequence, wherein the preset execution sequence sequentially comprises: the system or service restart policy, the backup system enabling policy, the safe recovery for user data policy, the factory reset recovery policy, and the online system update policy. 9. The recovery method according to claim 1 , wherein performing startup recovery on the terminal device based on the first recovery policy comprises: performing startup recovery on the terminal device based on a preset execution sequence of the first recovery policy, wherein the startup recovery continues until a first application program starts or all recovery policies corresponding to the first type of the failure indication event or to the first cause of the failure indication event fail. 10. The recovery method according to claim 1 , further comprising: after startup recovery is performed on the terminal device based on the first recovery policy, generating a startup log corresponding to the first recovery policy, wherein the startup log comprises: the first type of the failure indication event, the startup stage at which the failure indication event occurred, a fault log, the first recovery policy, and a recovery result; when the startup recovery fails, saving the startup log; and when the startup recovery succeeds, uploading, to a log statistics and measurement system, the startup log and a saved startup log of a second recovery policy that has previously failed. 11. 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 first recovery policy based on a first type of the failure indication event or a first 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 the first recovery policy is determined by querying a stored mapping relationship among a plurality of recovery policies, a plurality of stages of startup in which a startup failure may occur, a plurality of quantities of recovery times, a plurality of startup stages, and a plurality of failure indication events or causes of failure indication events; and performing startup recovery on the terminal based on the first recovery policy. 12. The terminal according to claim 11 , wherein the first type of the failure indication event comprises a preset fault type, a startup timeout type, a user force restart type, or a system crash restart type. 13. The terminal according to claim 12 , wherein the user force restart type corresponds to: touching and holding a power button; pressing a preset combination of buttons; or pulling out a battery. 14. The terminal according to claim 12 , wherein determining the first recovery policy based on the first type of the failure indication event or the first cause of the failure indication event comprises: when the failure indication event is the system crash restart type, determining the first recovery policy based on a crash cause of the failure indication event of the system crash restart type. 15. A non-transitory computer readable storage medium, wherein the non-transitory storage medium is configured to store a computer software instruction used by a terminal, and when the computer software instruction runs on a computer, the computer software instruction causes 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 first recovery policy based on a first type of the

Assignees

Inventors

Classifications

  • in a data processing system embedded in a mobile device, e.g. mobile phones, handheld devices · CPC title

  • Boot up procedures · CPC title

  • by power-on test, e.g. power-on self test [POST] · CPC title

  • Resetting or repowering · CPC title

  • Restarting or rejuvenating · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US11119844B2 cover?
Embodiments 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 …
Who is the assignee on this patent?
Huawei Tech Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F11/0742. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Sep 14 2021 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 4 related publications on this page (citations in our corpus or others sharing the same primary CPC).