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 second static partition, a dynamic partition, and a user data partition; wherein after the electronic device starts, data in the basic partition, the first static partition, 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 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 data in the first static partition to the second static partition, wherein only the one or more sub-partitions in the first static partition with different data from the corresponding one or more sub-partition in the second static partition are synchronized comprising: reading data in each sub-partition of the first static partition; and rewriting the different data from each sub-partition of the first static partition into a corresponding sub-partition of the second static partition; updating data in the second static partition based on the update positioning description and the update data in the patch package; modifying a startup sequence of the electronic device from starting from the first static partition to starting from the second static partition; restarting the electronic device, and determining that a current startup sequence is starting from the second static partition; and loading 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 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 data in the first static partition to the second static partition, wherein only the one or more sub-partitions in the first static partition with different data from the corresponding one or more sub-partition in the second static partition are synchronized comprising: reading data in each sub-partition of the first static partition; and rewriting the different data from each sub-partition of the first static partition into a corresponding sub-partition of the second static partition; reading data in each sub-partition of the first static partition; and rewriting the different data from each sub-partition of the first static partition into a corresponding sub-partition of the second static partition; updating data in the second static partition based on the update positioning description and the update data in the patch package; modifying a startup sequence of the electronic device from starting from the first static partition to starting from the second static partition; restarting the electronic device, and determining that a current startup sequence is starting from the second static partition; and loading data from the basic partition, the second static partition, and the dynamic partition to run the first operating system with updated static partition data.