| CPC G06F 11/1433 (2013.01) [G06F 8/658 (2018.02); G06F 8/71 (2013.01)] | 20 Claims |

|
1. A software version rollback method, comprising:
obtaining, by an electronic control unit (ECU) of a vehicle, a differential update package of target software, wherein the target software is vehicle software for vehicle operations, the differential update package comprises a plurality of differential operation instructions, and a differential operation instruction of the plurality of differential operation instructions is used to indicate a difference between a first version of the target software and a second version to which the target software is to be updated;
updating, by the ECU of the vehicle, a current version of the target software by using the differential update package, wherein the current version of the target software is updated from the first version to the second version;
obtaining, by the ECU of the vehicle, a differential rollback package to roll back the target software from the second version to the first version, wherein the differential rollback package comprises a plurality of reverse differential operation instructions respectively corresponding, in reverse order, to the plurality of differential operation instructions comprised in the differential update package; and
rolling back, by the ECU of the vehicle, when a rollback requirement for the target software is detected, the second version of the target software to the first version by using the differential rollback package.
|