US 12,468,529 B2
Patch reuse method and system, and electronic device
Wenjie Ren, Beijing (CN); Hongxi Li, Beijing (CN); Yonghong Yin, Beijing (CN); and Yingwei Li, Shenzhen (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Appl. No. 18/247,132
Filed by Huawei Technologies Co., Ltd., Shenzhen (CN)
PCT Filed Sep. 17, 2021, PCT No. PCT/CN2021/118904
§ 371(c)(1), (2) Date Mar. 29, 2023,
PCT Pub. No. WO2022/068605, PCT Pub. Date Apr. 7, 2022.
Claims priority of application No. 202011064590.6 (CN), filed on Sep. 30, 2020.
Prior Publication US 2024/0004642 A1, Jan. 4, 2024
Int. Cl. G06F 8/658 (2018.01); G06F 8/36 (2018.01)
CPC G06F 8/658 (2018.02) [G06F 8/36 (2013.01)] 16 Claims
OG exemplary drawing
 
1. A method, applied to a system comprising a plurality of devices and a patch server, wherein the patch server provides patches for the plurality of devices, the plurality of devices are located in a same local area network, the plurality of devices comprise at least a first electronic device and a second electronic device, and the method comprises:
sending, by the first electronic device, a first patch query request to the patch server, wherein the first patch query request comprises reused patch matching information, the reused patch matching information comprises first patch matching information of the first electronic device and second patch matching information of the second electronic device that belongs to the same local area network as the first electronic device, and each piece of patch matching information corresponds to a matching patch file;
generating, by the patch server, a reused patch package based on the first patch query request, and sending the reused patch package to the first electronic device, wherein the reused patch package comprises a first patch file corresponding to the first patch matching information and a second patch file corresponding to the second patch matching information, and generating, by the patch server, the reused patch package based on the first patch query request comprises:
determining, by the patch server, the first patch file corresponding to the first patch matching information, and determining the second patch file corresponding to the second patch matching information, and
using, by the patch server, a same part in the first patch file and the second patch file as a common part, using parts that are different in the first patch file and the second patch file as a differential part, and using the common part and the differential part as the reused patch package;
receiving, by the first electronic device, the reused patch package, and extracting the first patch file and the second patch file from the reused patch package;
after receiving, by the first electronic device, the reused patch package, decompressing, by the first electronic device, the reused patch package to obtain the common part and the differential part, and
performing, by the first electronic device, patch restoration and synthesis processing based on the common part and the differential part to separately obtain the first patch file and the second patch file; and
directly obtaining, by the second electronic device, the second patch file from the first electronic device within the local area network without downloading the second patch file from the patch server.