# US 2022/0291918 A1 · Patch release method, server, and terminal device

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

- Number: US 2022/0291918 A1
- Document ID: US20220291918A1
- Status: Published application
- Kind: A1
- Application number: 17/635,300
- Filed: 2020-08-04
- Published: 2022-09-15
- Earliest claimed: 2019-08-14
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Wenjie REN; Qiaosheng HAN; Yonghong YIN; Yingwei LI
- Web page: https://patentgrep.com/patent/US20220291918A1

## CPC

- G06F 8/658: Incremental updates; Differential updates
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

When a repair problem exists in a case of a fully loaded partition, or when a feature of a terminal device needs to be expanded but there is no remaining space in a related partition, the terminal device may search for and download a patch file from a server, and a compressed empty device (loop) is used to expand the feature. In some conditions, the empty loop device and the fully loaded partition may be combined to form a new device. In some other conditions, based on a packaging technology in a disk block dimension, a changed file is repackaged in the disk block dimension.

## Claims

### Claim 1

A patch release method, wherein the method comprises:
obtaining, by a server, a patch file;
dividing the patch file into a plurality of patch blocks;
determining a target patch block from the plurality of patch blocks, wherein the target patch block comprises content that is in the patch file and that is added or changed relative to an original file in a terminal device; and
sending an update file to the terminal device, wherein the update file comprises the target patch block.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the update file further comprises information about a location of the target patch block in the patch file.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the location of the target patch block in the patch file corresponds to a location in the patch file.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the method further comprises:
dividing, by the server, the patch file into at least two subfiles based on a first storage space, wherein the first storage space is a storage space used by the terminal device to store the original file corresponding to the patch file, and a size of a storage space occupied by a first subfile in the at least two subfiles is less than or equal to a size of the first storage space; and
sending the at least two subfiles and first information to the terminal device, wherein the first information is used to indicate to combine the at least two subfiles to form a virtual machine device for use.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the method further comprises:
receiving, by the server, second information sent by the terminal device, wherein the second information is used to indicate that a difference between the size of the first storage space and a size of the storage space occupied by the original file is less than or equal to a preset threshold value.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the method further comprises:
receiving, by the server, second information sent by the terminal device, wherein the second information is used to indicate the size of the first storage space.

### Claim 7

A patch release method, wherein the method comprises:
receiving, by a terminal device, an update file sent by a server, wherein the update file comprises a target patch block, the target patch block comprises content that is in a patch file and that is added or changed relative to an original file in the terminal device, the patch file is divided into a plurality of patch blocks, and the target patch block is determined from the plurality of patch blocks;
determining, by the terminal device, the patch file based on the update file and the original file; and
performing, by the terminal device, updating based on the patch file.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the update file further comprises information about a location of the target patch block in the patch file.

### Claim 9 (depends on 7)

The method according to claim 7, wherein the location of the target patch block in the patch file corresponds to a location in the patch file.

### Claim 10 (depends on 7)

The method according to claim 7, wherein the method comprises:
receiving, by the terminal device, at least two subfiles and first information that are sent by the server, wherein the at least two subfiles are obtained by dividing the patch file, a size of a storage space occupied by a first subfile in the at least two subfiles is less than or equal to a size of a first storage space, and the first storage space is a storage space used by the terminal device to store the original file corresponding to the patch file;
storing, by the terminal device, the first subfile in the first storage space, and storing, in at least one second storage space, a file other than the first subfile in the at least two subfiles; and
when running a program corresponding to the patch file, combining, by the terminal device, the at least two subfiles to form a virtual machine device.

### Claim 11 (depends on 7)

The method according to claim 7, wherein the method further comprises:
sending, by the terminal device, second information to the server, wherein the second information is used to indicate that a difference between the size of the first storage space and a size of the storage space occupied by the original file is less than or equal to a preset threshold value.

### Claim 12 (depends on 7)

The method according to claim 7, wherein the method further comprises:
sending, by the terminal device, second information to the server, wherein the second information is used to indicate the size of the first storage space.

### Claim at position 13

13-18. (canceled)

### Claim 19

A patch release apparatus, wherein the apparatus comprises:
a transceiver, configured to receive an update file sent by a server, wherein the update file comprises a target patch block, the target patch block comprises content that is in a patch file and that is added or changed relative to an original file in a terminal device, the patch file is divided into a plurality of patch blocks, and the target patch block is determined from the plurality of patch blocks; and
a processor, configured to determine the patch file based on the update file and the original file, wherein
the processor is further configured to perform updating based on the patch file.

### Claim 20 (depends on 19)

The apparatus according to claim 19, wherein the update file further comprises information about a location of the target patch block in the patch file.

### Claim 21 (depends on 19)

The apparatus according to claim 19, wherein the location of the target patch block in the patch file corresponds to a location in the patch file.

### Claim 22 (depends on 19)

The apparatus according to claim 19, wherein the transceiver is further configured to:
receive at least two subfiles and first information that are sent by the server, wherein the at least two subfiles are obtained by dividing the patch file, a size of a storage space occupied by a first subfile in the at least two subfiles is less than or equal to a size of a first storage space, and the first storage space is a storage space used by the terminal device to store the original file corresponding to the patch file; and
the processor is further configured to:
store the first subfile in the first storage space, and store, in at least one second storage space, a file other than the first subfile in the at least two subfiles; and
when running a program corresponding to the patch file, combine the at least two subfiles to form a virtual machine device.

### Claim 23 (depends on 19)

The apparatus according to claim 19, wherein the
transceiver is further configured to send second information to the server, wherein the second information is used to indicate that a difference between the size of the first storage space and a size of the storage space occupied by the original file is less than or equal to a preset threshold.

### Claim 24 (depends on 19)

The apparatus according to claim 19, wherein the transceiver is further configured to:
send second information to the server, wherein the second information is used to indicate the size of the first storage space.

### Claim at position 20

25-28. (canceled)
