System Differential Upgrade Method, Apparatus, and Mobile Terminal
First Claim
1. A system differential upgrade method, comprising:
- obtaining an upgrade script and upgrade data, wherein the upgrade script comprises a file processing command, and the file processing command comprises an identifier of a file to be upgraded;
upgrading the file to be upgraded according to the upgrade script and the upgrade data, wherein the file to be upgraded corresponds to the identifier of the file to be upgraded in the file processing command;
generating, according to the file processing command that is being executed currently in the upgrade script and the file to be upgraded corresponding to the file processing command that is being executed currently, rollback data and a rollback script corresponding to the file to be upgraded; and
executing the rollback script according to the rollback data when the upgrade fails.
4 Assignments
0 Petitions
Accused Products
Abstract
A system differential upgrade method and apparatus, and a mobile terminal are provided. The method includes: obtaining an upgrade script and upgrade data; upgrading a file to be upgraded according to the upgrade script and the upgrade data; generating, according to the file processing command that is being executed currently in the upgrade script, and the file to be upgraded corresponding to the file processing command that is being executed currently, rollback data and a rollback script corresponding to the file to be upgraded; and when the upgrade fails, executing the rollback script according to the rollback data. The apparatus includes an obtaining module, an upgrading module, a generating module, and an executing module. According to the embodiments of the present invention, when an upgrade fails, the rollback script is executed according to the rollback data, which may restore a system to that before the upgrade.
27 Citations
17 Claims
-
1. A system differential upgrade method, comprising:
-
obtaining an upgrade script and upgrade data, wherein the upgrade script comprises a file processing command, and the file processing command comprises an identifier of a file to be upgraded; upgrading the file to be upgraded according to the upgrade script and the upgrade data, wherein the file to be upgraded corresponds to the identifier of the file to be upgraded in the file processing command; generating, according to the file processing command that is being executed currently in the upgrade script and the file to be upgraded corresponding to the file processing command that is being executed currently, rollback data and a rollback script corresponding to the file to be upgraded; and executing the rollback script according to the rollback data when the upgrade fails. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A terminal comprising:
-
a transmitter; a memory; and a processor couple to the memory; wherein the processor is configured to; obtain an upgrade script and upgrade data, wherein the upgrade script comprises a file processing command, and the file processing command comprises an identifier of a file to be upgraded; upgrade the file to be upgraded according to the upgrade script and the upgrade data, wherein the file to be upgraded corresponds to the identifier of the file to be upgraded in the file processing command; generate, according to the file processing command that is being executed currently in the upgrade script and the file to be upgraded corresponding to the file processing command that is being executed currently, rollback data and a rollback script corresponding to the file to be upgraded; and execute the rollback script according to the rollback data when the upgrade fails. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. A computer program product for use in conjunction with a terminal comprising a transmitter, the computer program product comprising a computer readable storage medium and a computer program mechanism embedded therein, and the computer program mechanism comprising instructions for:
-
obtaining an upgrade script and upgrade data, wherein the upgrade script comprises a file processing command, and the file processing command comprises an identifier of a file to be upgraded; upgrading the file to be upgraded according to the upgrade script and the upgrade data, wherein the file to be upgraded corresponds to the identifier of the file to be upgraded in the file processing command; generating, according to the file processing command that is being executed currently in the upgrade script and the file to be upgraded corresponding to the file processing command that is being executed currently, rollback data and a rollback script corresponding to the file to be upgraded; and executing the rollback script according to the rollback data when the upgrade fails.
-
Specification