# US 2015/0106652 A1 · System repair method and device, and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2015/0106652 A1
- Document ID: US20150106652A1
- Status: Published application
- Kind: A1
- Application number: 14/575,680
- Filed: 2014-12-18
- Published: 2015-04-16
- Earliest claimed: 2012-06-25
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Shuhui MEI; Hong SHANG
- Web page: https://patentgrep.com/patent/US20150106652A1

## CPC

- G06F 11/1458: {Management of the backup or restore process}
- G06F 11/0706: {the processing taking place on a specific hardware platform or in a specific software environment}
- G06F 11/0793: {Remedial or corrective actions (recovery from an exception in an instruction pipeline G06F9/3861; by retry G06F11/1402; for recovering from a failure of a protocol instance or entity H04L69/40)}
- G06F 11/1448: {Management of the data involved in backup or backup restore}
- G06F 11/1446: Point-in-time backing up or restoration of persistent data
- G06F 2201/82: Solving problems relating to consistency
- G06F 2201/84: Using snapshots, i.e. a logical point-in-time copy of the data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system repair method and device, and a storage medium are provided. The system repair method includes: performing security check on system files and registries in a system; when the detection result is abnormal, judging whether the system files and/or the g registries are required to be repaired according to preset system repair rules; and if yes, repairing the system files and/or the registries. The present invention avoids possible abnormal repair in system repair, reduces risks in the system repair, improves security and accuracy of the system repair, and ensures reliability of the system repair.

## Claims

### Claim 1

A method for system repair, comprising:
performing a security check on a system file and a registry in a system;
determining whether it is needed to repair at least one of the system file and the registry according to a preset rule for the system repair, in the case that a result of the security check indicates an abnormality; and
repairing the at least one of the system file and the registry when it is determined that it is needed to repair the at least one of the system file and the registry.

### Claim 2 (depends on 1)

The method according to claim 1, wherein:
after the step of determining whether it is needed to repair the at least one of the system file and the registry, the method further comprises recording status information of the system; and
after the step of repairing the at least one of the system file and the registry, the method further comprises restoring the system according to the recorded status information of the system.

### Claim 3 (depends on 2)

The method according to claim 2, wherein before the step of restoring the system, the method further comprises:
determining whether the system repair is abnormal; and
restoring the system in the case that the system repair is abnormal.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the step of performing the security check on the system file and the registry in the system comprises:
checking whether a current system file matches with the system, and determining that the current system file is abnormal in the case that the current system file does not match with the system; and
checking whether there is a maliciously modified entry in current information of the registry, and determining that the registry is abnormal in the case that there is the maliciously modified entry.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the step of determining whether the system file needs to be repaired according to the result of the security check and the preset rule for the system repair comprises:
in the case that the system file is abnormal, determining whether the system file is important; determining that the system file needs to be repaired in the case that the system file is important, and determining that the system file does not need to be repaired in the case that the system file is not important.

### Claim 6 (depends on 4)

The method according to claim 4, wherein the step of determining whether the registry needs to be repaired according to the result of the security check and the preset rule for the system repair comprises:
comparing the current information of the registry with default settings of corresponding entries in the registry in the case that the current information of the registry is abnormal; and
determining that the registry needs to be repaired in the case that there is a maliciously-modified important registry entry among the corresponding entries in the registry or in the case that there is a startup entry among the corresponding entries that points to a dangerous file, and determining that the registry does not need to be repaired in the case that there is no maliciously-modified important registry entry among the corresponding entries in the registry and there is no startup entry among the corresponding entries that points to a dangerous file.

### Claim 7 (depends on 2)

The method according to claim 2, wherein the step of recording the status information of the system comprises:
recording status information of the system file and status information of the registry, and
at least one of compressing, encrypting and backing up the status information.

### Claim 8

A device for system repair, comprising:
a security-checking module, configured to perform a security check on a system file and a registry in a system;
a repair-determining module, configured to determine whether it is needed to repair at least one of the system file and the registry according to a preset rule for the system repair, in the case that a result of the security check indicates an abnormality; and
a repair module, configured to repair the at least one of the system file and the registry in the case that the repair-determining module determines that it is needed to repair the at least one of the system file and the registry.

### Claim 9 (depends on 8)

The device according to claim 8, further comprising:
a status-recording module, configured to record status information of the system; and
a restoration module, configured to restore the system according to the status information of the system recorded by the status-recording module.

### Claim 10 (depends on 8)

The device according to claim 8, further comprising:
an abnormality-determining module, configured to determine whether the system repair is abnormal;
wherein the restoration module is configured to restore the system in the case that the system repair is abnormal.

### Claim 11 (depends on 8)

The device according to claim 8, wherein the security-checking module is further configured to: check whether a current system file matches with the system and determine that the current system file is abnormal in the case that the current system file does not match with the system; and check whether there is a maliciously modified entry in current information of the registry and determine that the registry is abnormal in the case that there is the maliciously modified entry.

### Claim 12 (depends on 8)

The device according to claim 8, wherein:
the repair-determining module is further configured to determine whether the system file is important in the case that the system file is abnormal, determine that the system file needs to be repaired in the case that the system file is important and determine that the system file does not need to be repaired in the case that the system file is not important; and
the repair-determining module is further configured to compare the current information of the registry with default settings of corresponding entries in the registry in the case that the current information of the registry is abnormal, determine that the registry needs to be modified in the case that there is a maliciously-modified important registry entry among the corresponding entries in the registry or in the case that there is a startup entry among the corresponding entries that points to a dangerous file, and determine that the registry does not need to be modified in the case that there is no maliciously-modified important registry entry among the corresponding entries in the registry and there is no startup entry among the corresponding entries that points to a dangerous file.

### Claim 13 (depends on 9)

The device according to claim 9, wherein the status-recording module is further configured to record status information of the system file and status information of the registry respectively and to at least one of compress, encrypt and back up the status information.

### Claim 14

A computer readable storage medium on which a program enabling a computer to run is stored, wherein, after being loaded into a storage of the computer, the program enables the computer to: perform a security check on a system file and a registry in a system, determine whether it is needed to repair at least one of the system file and the registry according to a preset rule for system repair in the case that a result of the security check indicates an abnormality, and repair the at least one of the system file and the registry in the case that it is needed to repair the at least one of the system file and the registry.
