US 12,436,754 B2
Operating system update method, electronic device, and storage medium
Chao Chen, Shenzhen (CN); Zenghui Zhang, Shenzhen (CN); Yanzhao Wang, Shenzhen (CN); and Jiulin Huang, Shenzhen (CN)
Assigned to HONOR DEVICE CO., LTD., Shenzhen (CN)
Appl. No. 18/268,055
Filed by Honor Device Co., Ltd., Shenzhen (CN)
PCT Filed Dec. 14, 2022, PCT No. PCT/CN2022/139052
§ 371(c)(1), (2) Date Jun. 16, 2023,
PCT Pub. No. WO2023/169035, PCT Pub. Date Sep. 14, 2023.
Claims priority of application No. 202210243332.7 (CN), filed on Mar. 11, 2022.
Prior Publication US 2024/0378042 A1, Nov. 14, 2024
Int. Cl. G06F 8/65 (2018.01); G06F 3/06 (2006.01); G06F 9/4401 (2018.01)
CPC G06F 8/65 (2013.01) [G06F 9/4406 (2013.01); G06F 3/0614 (2013.01); G06F 3/0644 (2013.01); G06F 3/0673 (2013.01)] 20 Claims
OG exemplary drawing
 
1. An operating system update method, applied to an electronic device, wherein the electronic device comprises a super partition and a user data partition, and the method further comprises:
obtaining file list description information corresponding to an update package, wherein the file list description information indicates a first size of the update package, a second size that is of a first update file in the update package and that is obtained after compression, and a third size that is of the first update file and that exists before compression, and the first update file corresponds to a first sub-partition of the super partition; and
performing the following:
creating a first copy-on-write (cow) file corresponding to the first sub-partition in the user data partition when first available space of the user data partition is greater than a sum of the first size and the third size, wherein the first available space is available space that is of the user data partition and that exists before the update package is downloaded; or
creating a second cow file corresponding to the first sub-partition in the user data partition when first available space of the user data partition is greater than a sum of the first size and the second size and less than the sum of the first size and the third size, wherein a size of the first cow file is greater than a size of the second cow file.