An operating system data update method, applied to an electronic device, wherein the electronic device comprises a processor and a memory; the memory comprises a basic partition, a first static partition (A), a second static partition (B), a dynamic partition, and a user data partition; wherein after the electronic device starts, data in the basic partition, the first static partition (A), and the dynamic partition is loaded to run a first operating system, wherein when the electronic device runs the first operating system a static partition used to run the first operating system is in read-only; and after the first operating system runs, the method comprises: obtaining (S510) a patch package, wherein the patch package comprises an update positioning description and update data, the update positioning description is used to specify an update target that needs to be updated in a static partition, and the update data is used to describe a data update result of the static partition; synchronizing (S511) data in the first static partition (A) to the second static partition (B), wherein only the one or more sub-partitions in the first static partition (A) with different data from the corresponding one or more sub-partition in the second static partition (B) are synchronized comprising: reading data in each sub-partition of the first static partition (A); and rewriting the different data from each sub-partition of the first static partition (A) into a corresponding sub-partition of the second static partition (B); updating (S520) data in the second static partition (B) based on the update positioning description and the update data in the patch package; modifying (S530) a startup sequence of the electronic device from starting from the first static partition (A) to starting from the second static partition (B); restarting (S540) the electronic device, and determining that a current startup sequence is starting from the second static partition; and loading (S550) data from the basic partition, the second static partition, and the dynamic partition to run the first operating system with updated static partition data. obtaining (S510) a patch package, wherein the patch package comprises an update positioning description and update data, the update positioning description is used to specify an update target that needs to be updated in a static partition, and the update data is used to describe a data update result of the static partition; synchronizing (S511) data in the first static partition (A) to the second static partition (B), wherein only the one or more sub-partitions in the first static partition (A) with different data from the corresponding one or more sub-partition in the second static partition (B) are synchronized comprising: reading data in each sub-partition of the first static partition (A); and rewriting the different data from each sub-partition of the first static partition (A) into a corresponding sub-partition of the second static partition (B); reading data in each sub-partition of the first static partition (A); and rewriting the different data from each sub-partition of the first static partition (A) into a corresponding sub-partition of the second static partition (B); updating (S520) data in the second static partition (B) based on the update positioning description and the update data in the patch package; modifying (S530) a startup sequence of the electronic device from starting from the first static partition (A) to starting from the second static partition (B); restarting (S540) the electronic device, and determining that a current startup sequence is starting from the second static partition; and loading (S550) data from the basic partition, the second static partition, and the dynamic partition to run the first operating system with updated static partition data. <EOS>