CN105138347A - Difference upgrade patch generating method, software upgrading method and corresponding apparatus - Google Patents

Difference upgrade patch generating method, software upgrading method and corresponding apparatus Download PDF

Info

Publication number
CN105138347A
CN105138347A CN201510422395.9A CN201510422395A CN105138347A CN 105138347 A CN105138347 A CN 105138347A CN 201510422395 A CN201510422395 A CN 201510422395A CN 105138347 A CN105138347 A CN 105138347A
Authority
CN
China
Prior art keywords
file
check code
differential
upgraded
verified
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510422395.9A
Other languages
Chinese (zh)
Inventor
田小华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510422395.9A priority Critical patent/CN105138347A/en
Publication of CN105138347A publication Critical patent/CN105138347A/en
Pending legal-status Critical Current

Links

Abstract

Embodiments of the invention provide a difference upgrade patch generating method, a software upgrading method and a corresponding apparatus. The difference upgrade patch generating method comprises: obtaining a new-version file and an old-version file, generating a template check code according to the new-version file, generating a difference file according to the new-version file and the old-version file, and establishing a corresponding relation between the difference file and the template check code to generate the difference upgrade patch. According ot the embodiments of the difference upgrade patch generating method, the software upgrading method and the corresponding apparatus, by adopting the technical scheme, the difference file in the generated difference upgrade patch is corresponding to one template check code generated according to a complete new-version file, so that judgment on whether the combined and upgraded file is the successfully upgraded file or not in subsequent upgrading by using the difference upgrade patch is convenient to carry out.

Description

A kind of difference AKU generation method, method for upgrading software and related device
Technical field
The embodiment of the present invention relates to software upgrading technical field, particularly relates to a kind of difference AKU generation method, method for upgrading software and related device.
Background technology
At present, rapidly, the application software being applicable to mobile device gets more and more, and user can select to install various Application Software Program on the mobile apparatus to realize increasing function for software development technique and Intelligent mobile equipment technical development.
The irregular AKU that provides of most mobile device developer or the software application development chamber of commerce to user, and points out customer upgrade system software or application software.When user selects upgrading, whether mobile device only mates with the current use version of user this AKU verifies, if verification succeeds, then upgrades.When upgrading, in order to reduce the volume of AKU, accelerate updating speed, general employing difference AKU, after comparing by the legacy version file before new edition file and upgrading, the difference AKU that not identical data division is formed.In escalation process, need by the differential file in difference AKU with upgrade in mobile device before original version file (legacy version file) in corresponding file merge, to form the target version file (new edition file) after upgrading.
But, in building-up process, the situation of resulting anomaly may be there is, cause some document upgrading failure.In existing software upgrade scheme, whether unsuccessfully can't verify file synthesis, also file synthesis abnormal conditions can not be informed user, the illusion causing user to produce upgrading successfully and do not take corresponding measure in time.When user wants to continue the mobile device after using upgrading or application software, the partial function of software lost efficacy because partial document is upgraded unsuccessfully, and user cannot normally be used.
Summary of the invention
The object of the embodiment of the present invention proposes a kind of difference AKU generation method, method for upgrading software and related device, cannot in time to the problem that the synthesis of file is unsuccessfully verified in escalation process to solve existing software upgrade scheme.
First aspect, embodiments provides a kind of difference AKU generation method, comprising:
Obtain new edition file and legacy version file;
Template check code is generated according to described new edition file;
According to described new edition file and described legacy version file generated differential file;
Set up the corresponding relation of described differential file and described template check code, to generate difference AKU.
Second aspect, embodiments provides a kind of method for upgrading software, comprising:
The differential file corresponding with file to be upgraded current in original version file is obtained from the difference AKU that the difference AKU generation method based on the embodiment of the present invention generates;
Described differential file and described current file to be upgraded are merged, to generate current file to be verified;
The sample check code identical with described template check code form according to described current file generated to be verified;
Template check code corresponding with described differential file for described sample check code is compared, determines whether described current file to be verified is successfully upgrade file according to comparison result.
The third aspect, embodiments provides a kind of difference AKU generating apparatus, comprising:
File acquisition module, for obtaining new edition file and legacy version file;
Template check code generation module, for generating template check code according to described new edition file;
Differential file generation module, for according to described new edition file and described legacy version file generated differential file;
Difference AKU generation module, for setting up the corresponding relation of described differential file and described template check code, to generate difference AKU.
Fourth aspect, embodiments provides a kind of software updating apparatus, comprising:
Differential file acquisition module, for obtaining the differential file corresponding with file to be upgraded current in original version file in the difference AKU that generates from the difference AKU generation method based on the embodiment of the present invention;
File generating module to be verified, for merging described differential file and described current file to be upgraded, to generate current file to be verified;
Sample check code generation module, for the sample check code identical with described template check code form according to described current file generated to be verified;
According to comparison result, check code comparing module, for being compared by template check code corresponding with described differential file for described sample check code, determines whether described current file to be verified is successfully upgrade file.
The difference AKU provided in the embodiment of the present invention generates scheme, after acquisition new edition file and legacy version file, first generate template check code according to new edition file, again according to new edition file and legacy version file generated differential file, finally set up the corresponding relation of differential file and template check code, to generate difference AKU.By adopting technique scheme, the all corresponding template check code generated according to complete new edition file of differential file in the difference AKU generated, convenient when follow-up use difference AKU is upgraded, be combined the file after upgrading and whether be successfully that upgrade file judges.
The scheme of the software upgrading provided in the embodiment of the present invention, the differential file corresponding with file to be upgraded current in original version file is obtained from difference AKU, differential file and current file to be upgraded are carried out merging to generate current file to be verified, according to current file generated sample check code to be verified, template check code corresponding with differential file for sample check code is compared, determines whether current file to be verified is successfully upgrade file according to comparison result.By adopting technique scheme, when file to be upgraded in original version file is upgraded, comparison by sample check code and template check code judges whether this file to be upgraded upgrades failure, if upgrade unsuccessfully, user's Timeliness coverage can be facilitated and take corresponding measure, in case when needing to continue the software after using upgrading, the partial function of software lost efficacy because partial document is upgraded unsuccessfully, caused and cannot normally use in the future.
Accompanying drawing explanation
The schematic flow sheet of a kind of difference AKU generation method that Fig. 1 provides for the embodiment of the present invention one;
The schematic flow sheet of a kind of method for upgrading software that Fig. 2 provides for the embodiment of the present invention two;
The schematic flow sheet of a kind of method for upgrading software that Fig. 3 provides for the embodiment of the present invention three;
The schematic flow sheet of a kind of preferred method for upgrading software that Fig. 4 provides for the embodiment of the present invention four;
The structured flowchart of a kind of difference AKU generating apparatus that Fig. 5 provides for the embodiment of the present invention five;
The structured flowchart of a kind of software updating apparatus that Fig. 6 provides for the embodiment of the present invention six.
Embodiment
Technical scheme of the present invention is further illustrated by embodiment below in conjunction with accompanying drawing.Be understandable that, specific embodiment described herein is only for explaining the present invention, but not limitation of the invention.It also should be noted that, for convenience of description, illustrate only part related to the present invention in accompanying drawing but not entire infrastructure.
Before in further detail exemplary embodiment being discussed, it should be mentioned that some exemplary embodiments are described as the process or method described as process flow diagram.Although operations (or step) is described as the process of order by process flow diagram, many operations wherein can be implemented concurrently, concomitantly or simultaneously.In addition, the order of operations can be rearranged.Described process can be terminated when its operations are completed, but can also have the additional step do not comprised in the accompanying drawings.Described process can correspond to method, function, code, subroutine, subroutine etc.
Embodiment one
The schematic flow sheet of a kind of difference AKU generation method that Fig. 1 provides for the embodiment of the present invention one, the method can be performed by difference AKU generating apparatus, and wherein this device can by software and/or hardware implementing.As shown in Figure 1, the method comprises:
Step 101, acquisition new edition file and legacy version file.
Exemplary, the concrete accessible site of the device for performing the embodiment of the present invention in the terminal device possessing data processing function, as desktop computer, notebook computer and server etc.
Exemplary, the difference AKU generated in the present embodiment can be used for carrying out edition upgrading to the system software of the mobile devices such as mobile phone, panel computer and intelligent watch or application software (as micro-letter, QQ and Taobao etc.).
Exemplary, when software developer improves legacy version software function, usually only the partial data in legacy version or code etc. are modified, legacy version file in this step specifically can be needs the file of modifying, and new edition file specifically can be modify in legacy version file basis after the new file that generates.
Step 102, generate template check code according to new edition file.
Exemplary, template check code specifically can be the 5th edition Message Digest 5 (MessageDigestAlgorithm, MD5) code or Secure Hash Algorithm (SecureHashAlgorithm, SHA1) code, is preferably MD5 code.Above-mentioned two kinds of algorithms are Typical Representatives of hash function, be widely used in the every field such as information security and digital signature, its common feature the such as origination message such as character string or file can be converted into the less binary value of regular length, i.e. MD5 code or SHA1 code.For MD5 code, the MD5 code of same file is unique, and any change all can cause the change of MD5 code, so MD5 code can as of a new edition file identify label.
Step 103, according to new edition file and legacy version file generated differential file.
Concrete, difference operation can be carried out, to generate differential file to new edition file and legacy version file.Exemplary, described difference operation specifically can be and new edition file and legacy version file is compared, and extracts wherein not identical data or code.And then generate differential file according to extracted different data or code.
Step 104, set up the corresponding relation of differential file and template check code, to generate difference AKU.
Exemplary, the new edition file obtained and legacy version file are respectively A1 and A2, and according to MD5 algorithm to A1 process, generating template check code is a, is A3, so in this step, sets up the corresponding relation of A3 and a according to the differential file that A1 and A2 generates.Such as, a relation list can be set up, in this relation list, enumerate the corresponding relation between differential file and template check code, gather relation list, each differential file and each template check code, carry out encoding and the operation such as compression, generate difference AKU.
The difference AKU generation method that the embodiment of the present invention one provides, after acquisition new edition file and legacy version file, first generate template check code according to new edition file, again according to new edition file and legacy version file generated differential file, finally set up the corresponding relation of differential file and template check code, to generate difference AKU.By adopting technique scheme, the all corresponding template check code generated according to complete new edition file of differential file in the difference AKU generated, convenient when follow-up use difference AKU is upgraded, be combined the file after upgrading and whether be successfully that upgrade file judges.
Embodiment two
The schematic flow sheet of a kind of method for upgrading software that Fig. 2 provides for the embodiment of the present invention two, the method can be performed by software updating apparatus, and wherein this device can by software and/or hardware implementing, and general accessible site is in mobile device.As shown in Figure 2, the method comprises:
Step 201, the differential file that acquisition is corresponding with file to be upgraded current in original version file from difference AKU.
Wherein, described difference AKU is specially the difference AKU that the difference AKU generation method based on the embodiment of the present invention generates.
Exemplary, the mobile device in the present embodiment specifically can be mobile phone, intelligent watch and dull and stereotyped apparatus such as computer.Difference AKU specifically obtains by the mode downloaded from network or call from local internal memory.Original version file can be the system software file of current version in mobile device or the application software file of current version, when needing to carry out edition upgrading (being upgraded to target version) to the system software in mobile device or application software, generally only the partial document in original version file is upgraded, will the file of upgrading can be needed as current file to be upgraded according to preset order.
Step 202, differential file and current file to be upgraded to be merged, to generate current file to be verified.
Exemplary, in original version file, current file to be upgraded is B2, and the differential file corresponding with B2 is B3, is merged by B2 and B3, generates current file B4 to be verified.
Step 203, the sample check code identical with template check code form according to current file generated to be verified.
Exemplary, the template check code stored in difference AKU is MD5 code, can generate the sample check code b ' of MD5 code form according to current file B4 to be verified.
Step 204, template check code corresponding with differential file for sample check code to be compared, determine whether current file to be verified is successfully upgrade file according to comparison result.
Exemplary, to generate target version file B1 in step 202. by the object that B2 and B3 carries out merging, in difference AKU, the template check code corresponding with differential file B3 is b, template check code b generates according to target version file B1, and sample check code b ' generates according to file B4 to be verified, if template check code b is consistent with sample check code b ', then can illustrate that file B4 to be verified is consistent with target version file B1, can determine that current file B4 to be verified is successful upgrade file; If template check code b and sample check code b ' is inconsistent, then can illustrate that file B4 to be verified and target version file B1 is inconsistent, can determine that current file B4 to be verified is not successfully upgrade file, current document upgrading failure to be upgraded.Preferably, if upgrade unsuccessfully, upgrading failure information can be provided to user.
The method for upgrading software that the embodiment of the present invention two provides, the differential file corresponding with file to be upgraded current in original version file is obtained from difference AKU, differential file and current file to be upgraded are carried out merging to generate current file to be verified, according to current file generated sample check code to be verified, template check code corresponding with differential file for sample check code is compared, determines whether current file to be verified is successfully upgrade file according to comparison result.By adopting technique scheme, when file to be upgraded in original version file is upgraded, comparison by sample check code and template check code judges whether this file to be upgraded upgrades failure, if upgrade unsuccessfully, user's Timeliness coverage can be facilitated and take corresponding measure, as unloaded and reinstalling, in case when needing to continue the software after using upgrading in the future, the partial function of software lost efficacy because partial document is upgraded unsuccessfully, caused and cannot normally use.
Embodiment three
The schematic flow sheet of a kind of method for upgrading software that Fig. 3 provides for the embodiment of the present invention three, the present embodiment is optimized on the basis of embodiment two, step was added: current file to be upgraded is backed up, to generate backup file before differential file and current file to be upgraded being merged.
Accordingly, the embodiment of the present invention specifically comprises the steps:
Step 301, the differential file that acquisition is corresponding with file to be upgraded current in original version file from difference AKU.
Step 302, current file to be upgraded to be backed up, to generate backup file.
Exemplary, can by current file backup to be upgraded to a certain predetermined directory of data (data) subregion.Certainly, if do not consider that the backup file of file to be upgraded takies the factor of storage space, also before starting upgrading, disposable all files to be upgraded or all original version files can be backed up.
Step 303, differential file and current file to be upgraded to be merged, to generate current file to be verified.
Step 304, the sample check code identical with template check code form according to current file generated to be verified.
Whether step 305, judgement sample check code be consistent with template check code, if unanimously, then performs step 306; Otherwise, perform step 307.
Concrete, whether the template check code that judgement sample check code is corresponding with differential file is consistent, if unanimously, then illustrates that current file to be verified is successful upgrade file; Otherwise, illustrate that current file to be verified is not successfully upgrade file, upgrade unsuccessfully.
Step 306, judge whether file to be upgraded all upgrades complete, if so, then process ends; Otherwise, return and perform step 301.
Exemplary, before process ends, also backup file can be deleted to save storage space; Also the information of upgrading successfully can be supplied to user.
When returning execution step 301, using file to be upgraded for the next one as current file to be upgraded.
Step 307, stop the upgrading of original version file and delete current file to be verified and all successful upgrade files, all backup files being reduced to the storage directory at corresponding file place to be upgraded; Process ends.
Exemplary, when determining that current file to be verified is not successfully upgrade file, then corresponding document upgrading failure to be upgraded, this function corresponding to file to be upgraded can lose efficacy, and can stop the upgrading to original version file in time.Simultaneously, in order to ensure that the repertoire of software continues available, need to delete current file to be verified and all successful upgrade files, all backup files are reduced to the storage directory at corresponding file place to be upgraded, software in such mobile device has just returned to the state before upgrading, and user normally can use software.If user still wants to continue upgrading, software upgrading flow process can be restarted.
The method for upgrading software that the embodiment of the present invention three provides, before differential file and current file to be upgraded are merged, current file to be upgraded is backed up, when need upgrade file upgrade unsuccessfully time, file all to be upgraded in mobile device can be recovered, state before making software rejuvenation arrive upgrading, ensure that the normal use of user.
Embodiment four
The schematic flow sheet of a kind of preferred method for upgrading software that Fig. 4 provides for the embodiment of the present invention four, the present embodiment is optimized on the basis of above-described embodiment, specifically can be performed by the software updating apparatus be integrated in mobile phone.As shown in Figure 4, the method specifically comprises the steps:
Step 401, trigger software updating operation, obtain difference AKU.
Step 402, judge in mobile phone, whether current software version to be upgraded mates with difference AKU, if so, then perform step 403; Otherwise, perform step.
Step 403, all files to be upgraded to be backed up, generated backup file is backed up to the predetermined directory of data subregion.
Step 404, the differential file that acquisition is corresponding with file to be upgraded current in original version file from difference AKU.
Step 405, differential file and current file to be upgraded to be merged, to generate current file to be verified.
Step 406, the sample check code identical with template check code form according to current file generated to be verified.
Whether step 407, judgement sample check code be consistent with template check code, if unanimously, then performs step 408; Otherwise, perform step 410.
Concrete, whether the template check code that judgement sample check code is corresponding with differential file is consistent, if unanimously, then illustrates that current file to be verified is successful upgrade file; Otherwise, illustrate that current file to be verified is not successfully upgrade file, upgrade unsuccessfully.
Step 408, judge whether file to be upgraded all upgrades complete, if so, then perform step 409; Otherwise, return and perform step 404.
When returning execution step 404, using file to be upgraded for the next one as current file to be upgraded.
Step 409, show successful upgrade information.
Step 410, the upgrading stopping original version file.
Concrete, stop in this step the upgrading of original version file and delete current file to be verified and all successful upgrade files, all backup files being reduced to the storage directory at corresponding file place to be upgraded.
When upgrading to system software, also can perform reset command in this step to restart mobile phone, and then showing successful upgrade information.
Step 411, display upgrading failure information.
Step 412, prompting difference AKU version do not mate.
Exemplary, in software upgrade process, the mark of upgrade status can be carried out to associated documents, after process to be upgraded terminates, marked by file reading and know that whether upgrading is successful, and information is shown on mobile phone display screen, to carry out corresponding prompting to user.
The method for upgrading software that the embodiment of the present invention four provides, first verifies the version of obtained difference AKU, if mate with software original version in mobile phone, then starts to enter software upgrading flow process.Upgrading unsuccessfully or after success, all pointing out user, while guarantee user normally uses, in time upgrade case is informed user, promote Consumer's Experience.
Embodiment five
The structured flowchart of a kind of difference AKU generating apparatus that Fig. 5 provides for the embodiment of the present invention five, this device by software and/or hardware implementing, can generate difference AKU by performing difference AKU generation method.As shown in Figure 5, this device comprises: file acquisition module 501, template check code generation module 502, differential file generation module 503 and difference AKU generation module 504.
Wherein, file acquisition module 501, for obtaining new edition file and legacy version file; Template check code generation module 502, for generating template check code according to new edition file; Differential file generation module 503, for according to new edition file and described legacy version file generated differential file; Difference AKU generation module 504, for setting up the corresponding relation of differential file and template check code, to generate difference AKU.
Exemplary, differential file generation module 503 specifically for: difference operation is carried out, to generate differential file to new edition file and described legacy version file.
Exemplary, template check code is the 5th edition Message Digest 5 code (MD5 code) or Secure Hash Algorithm code (SHA1 code).
The difference AKU generating apparatus that the embodiment of the present invention five provides, after file acquisition module 501 obtains new edition file and legacy version file, first generate template check code by template check code generation module 502 according to new edition file, again by differential file generation module 503 according to new edition file and legacy version file generated differential file, the last corresponding relation being set up differential file and template check code by difference AKU generation module 504, to generate difference AKU.By adopting technique scheme, the all corresponding template check code generated according to complete new edition file of differential file in the difference AKU generated, convenient when follow-up use difference AKU is upgraded, be combined the file after upgrading and whether be successfully that upgrade file judges.
Embodiment six
The structured flowchart of a kind of software updating apparatus that Fig. 6 provides for the embodiment of the present invention six, this device can by software and/or hardware implementing, and general accessible site, in mobile device, carries out software upgrading by software upgrade method next life.As shown in Figure 6, this device comprises: differential file acquisition module 601, file generating module to be verified 602, sample check code generation module 603 and check code comparing module 604.
Differential file acquisition module 601, for obtaining the differential file corresponding with file to be upgraded current in original version file in the difference AKU that generates from the difference AKU generation method based on the embodiment of the present invention; File generating module 602 to be verified, for differential file and current file to be upgraded being merged, to generate current file to be verified; Sample check code generation module 603, for the sample check code identical with template check code form according to current file generated to be verified; According to comparison result, check code comparing module 604, for being compared by template check code corresponding with differential file for sample check code, determines whether described current file to be verified is successfully upgrade file.
The software updating apparatus that the embodiment of the present invention six provides, from difference AKU, the differential file corresponding with file to be upgraded current in original version file is obtained by differential file acquisition module 601, differential file and current file to be upgraded are carried out merging to generate current file to be verified by file generating module 602 to be verified, sample check code generation module 603 is according to current file generated sample check code to be verified, finally by check code comparing module 604, template check code corresponding with differential file for sample check code is compared, determine whether current file to be verified is successfully upgrade file according to comparison result.By adopting technique scheme, when file to be upgraded in original version file is upgraded, comparison by sample check code and template check code judges whether this file to be upgraded upgrades failure, if upgrade unsuccessfully, user's Timeliness coverage can be facilitated and take corresponding measure, as unloaded and reinstalling, in case when needing to continue the software after using upgrading in the future, the partial function of software lost efficacy because partial document is upgraded unsuccessfully, caused and cannot normally use.
On the basis of above-described embodiment, this device also can comprise: backup module, for before differential file and described current file to be upgraded being merged, backs up described current file to be upgraded, to generate backup file.
On the basis of above-described embodiment, differential file acquisition module also can be used for: after determining that according to comparison result current file to be verified is successfully upgrade file, obtains the differential file corresponding with file to be upgraded next in original version file; Backup module also can be used for: after determining that according to comparison result current file to be verified is not successfully upgrade file, stop the upgrading of original version file and delete current file to be verified and all successful upgrade files, all backup files being reduced to the storage directory at corresponding file place to be upgraded.
Note, above are only preferred embodiment of the present invention and institute's application technology principle.Skilled person in the art will appreciate that and the invention is not restricted to specific embodiment described here, various obvious change can be carried out for a person skilled in the art, readjust and substitute and can not protection scope of the present invention be departed from.Therefore, although be described in further detail invention has been by above embodiment, the present invention is not limited only to above embodiment, when not departing from the present invention's design, can also comprise other Equivalent embodiments more, and scope of the present invention is determined by appended right.

Claims (12)

1. a difference AKU generation method, is characterized in that, comprising:
Obtain new edition file and legacy version file;
Template check code is generated according to described new edition file;
According to described new edition file and described legacy version file generated differential file;
Set up the corresponding relation of described differential file and described template check code, to generate difference AKU.
2. method according to claim 1, is characterized in that, according to described new edition file and described legacy version file generated differential file, comprising:
Difference operation is carried out, to generate differential file to described new edition file and described legacy version file.
3. method according to claim 1, is characterized in that, described template check code is the 5th edition Message Digest 5 code or Secure Hash Algorithm code.
4. a method for upgrading software, is characterized in that, comprising:
The differential file corresponding with file to be upgraded current in original version file is obtained from the difference AKU generated based on the difference AKU generation method any one of claim 1-3;
Described differential file and described current file to be upgraded are merged, to generate current file to be verified;
The sample check code identical with described template check code form according to described current file generated to be verified;
Template check code corresponding with described differential file for described sample check code is compared, determines whether described current file to be verified is successfully upgrade file according to comparison result.
5. method according to claim 4, is characterized in that, before described differential file and described current file to be upgraded being merged, also comprises:
Described current file to be upgraded is backed up, to generate backup file.
6. method according to claim 5, is characterized in that,
After determining that according to comparison result described current file to be verified is successfully upgrade file, also comprise:
Obtain the differential file corresponding with file to be upgraded next in original version file;
After determining that according to comparison result described current file to be verified is not successfully upgrade file, also comprise:
Stop the upgrading of original version file and delete current file to be verified and all successful upgrade files;
All backup files are reduced to the storage directory at corresponding file place to be upgraded.
7. a difference AKU generating apparatus, is characterized in that, comprising:
File acquisition module, for obtaining new edition file and legacy version file;
Template check code generation module, for generating template check code according to described new edition file;
Differential file generation module, for according to described new edition file and described legacy version file generated differential file;
Difference AKU generation module, for setting up the corresponding relation of described differential file and described template check code, to generate difference AKU.
8. device according to claim 7, is characterized in that, described differential file generation module specifically for:
Difference operation is carried out, to generate differential file to described new edition file and described legacy version file.
9. device according to claim 7, is characterized in that, described template check code is the 5th edition Message Digest 5 code or Secure Hash Algorithm code.
10. a software updating apparatus, is characterized in that, comprising:
Differential file acquisition module, for obtaining the differential file corresponding with file to be upgraded current in original version file from the difference AKU generated based on the difference AKU generation method any one of claim 1-3;
File generating module to be verified, for merging described differential file and described current file to be upgraded, to generate current file to be verified;
Sample check code generation module, for the sample check code identical with described template check code form according to described current file generated to be verified;
According to comparison result, check code comparing module, for being compared by template check code corresponding with described differential file for described sample check code, determines whether described current file to be verified is successfully upgrade file.
11. devices according to claim 10, is characterized in that, also comprise:
Backup module, for before described differential file and described current file to be upgraded being merged, backs up described current file to be upgraded, to generate backup file.
12. devices according to claim 11, is characterized in that,
Described differential file acquisition module also for:
After determining that according to comparison result described current file to be verified is successfully upgrade file, obtain the differential file corresponding with file to be upgraded next in original version file;
Described backup module also for:
After determining that according to comparison result described current file to be verified is not successfully upgrade file, stop the upgrading of original version file and delete current file to be verified and all successful upgrade files;
All backup files are reduced to the storage directory at corresponding file place to be upgraded.
CN201510422395.9A 2015-07-17 2015-07-17 Difference upgrade patch generating method, software upgrading method and corresponding apparatus Pending CN105138347A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510422395.9A CN105138347A (en) 2015-07-17 2015-07-17 Difference upgrade patch generating method, software upgrading method and corresponding apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510422395.9A CN105138347A (en) 2015-07-17 2015-07-17 Difference upgrade patch generating method, software upgrading method and corresponding apparatus

Publications (1)

Publication Number Publication Date
CN105138347A true CN105138347A (en) 2015-12-09

Family

ID=54723705

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510422395.9A Pending CN105138347A (en) 2015-07-17 2015-07-17 Difference upgrade patch generating method, software upgrading method and corresponding apparatus

Country Status (1)

Country Link
CN (1) CN105138347A (en)

Cited By (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653262A (en) * 2015-12-21 2016-06-08 Tcl集团股份有限公司 Application program upgrade method, device and system
CN106407115A (en) * 2016-09-20 2017-02-15 网易(杭州)网络有限公司 An art resource file testing method and device
CN106406872A (en) * 2016-09-06 2017-02-15 广东欧珀移动通信有限公司 Method and apparatus for making differential upgrade package based on specific file
CN106528086A (en) * 2016-10-10 2017-03-22 广州视源电子科技股份有限公司 Method and system for upgrading Android software
CN106686578A (en) * 2016-12-28 2017-05-17 深圳天珑无线科技有限公司 Difference package generation method and apparatus
CN106790247A (en) * 2017-01-23 2017-05-31 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of android system upgrading
CN106886436A (en) * 2017-01-23 2017-06-23 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of android system upgrading
CN107015821A (en) * 2016-01-28 2017-08-04 腾讯科技(深圳)有限公司 The method and apparatus of incremental update
CN107273159A (en) * 2017-06-08 2017-10-20 深圳市华信天线技术有限公司 Difference patch upgrading method and device suitable for embedded system
CN107301070A (en) * 2017-06-20 2017-10-27 福州汇思博信息技术有限公司 A kind of upgrade method and terminal
CN107656747A (en) * 2017-09-07 2018-02-02 维沃移动通信有限公司 A kind of data updating method and mobile terminal
CN107729043A (en) * 2017-11-10 2018-02-23 深圳Tcl新技术有限公司 Method of calibration, device and the computer-readable recording medium of increment AKU
CN108170461A (en) * 2017-12-28 2018-06-15 北京四达时代软件技术股份有限公司 Difference upgrade package generation method, difference upgrade method and device
CN108234414A (en) * 2016-12-16 2018-06-29 北京京东尚科信息技术有限公司 A kind of upgrade method and device of APP applications
CN109672655A (en) * 2017-10-16 2019-04-23 华为终端(东莞)有限公司 A kind of method, apparatus and system of difference upgrading
CN110032377A (en) * 2019-03-19 2019-07-19 芯讯通无线科技(上海)有限公司 Communication module method for upgrading software, system and communication module
CN110377309A (en) * 2019-07-18 2019-10-25 上海擎感智能科技有限公司 Data reconstruction method, system and equipment
CN110515646A (en) * 2019-07-26 2019-11-29 华为技术有限公司 A kind of difference upgrade method and relevant device
CN110597542A (en) * 2019-09-17 2019-12-20 Oppo(重庆)智能科技有限公司 Automatic OTA (over the air) software upgrading method and device and electronic equipment
CN111562931A (en) * 2020-04-30 2020-08-21 斑马网络技术有限公司 Method and system for upgrading vehicle firmware
CN111611002A (en) * 2020-04-27 2020-09-01 深圳市广和通无线股份有限公司 Data upgrading method and device, computer equipment and storage medium
CN111629200A (en) * 2019-02-27 2020-09-04 深圳Tcl数字技术有限公司 Method and device for rapidly detecting differential packet reliability and readable storage medium
CN111918278A (en) * 2020-07-01 2020-11-10 广东小天才科技有限公司 Over-the-air upgrade checking method, device, medium and intelligent terminal equipment
CN112527370A (en) * 2020-12-04 2021-03-19 成都中科慧源科技有限公司 Method for remotely and differentially upgrading Internet of things equipment
CN112579140A (en) * 2020-12-22 2021-03-30 四川虹微技术有限公司 Software upgrading method and device
CN112783541A (en) * 2021-01-21 2021-05-11 成都路行通信息技术有限公司 Equipment upgrading method and device and server
WO2021097624A1 (en) * 2019-11-18 2021-05-27 深圳市欢太科技有限公司 File processing method, file processing apparatus, and terminal device
WO2021097623A1 (en) * 2019-11-18 2021-05-27 深圳市欢太科技有限公司 File processing method and device, and terminal apparatus
CN112860284A (en) * 2019-11-12 2021-05-28 深圳怡化电脑股份有限公司 SP upgrade package generation method and device for remote upgrade of equipment and computer equipment
CN113094077A (en) * 2019-12-23 2021-07-09 深圳Tcl数字技术有限公司 System differential upgrading method and device, intelligent terminal and storage medium
CN113590161A (en) * 2021-08-20 2021-11-02 广东九联科技股份有限公司 Memory-controllable NB-IOT module differential upgrading method and system
CN114827107A (en) * 2022-04-28 2022-07-29 中国银行股份有限公司 Software upgrading method and device
CN117270902A (en) * 2023-08-09 2023-12-22 大拓(山东)物联网科技有限公司 OTA upgrade package generation method and device, OTA upgrade method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883139A (en) * 2010-06-11 2010-11-10 华为终端有限公司 Method for upgrading peripheral equipment software, computer and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883139A (en) * 2010-06-11 2010-11-10 华为终端有限公司 Method for upgrading peripheral equipment software, computer and system

Cited By (47)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653262A (en) * 2015-12-21 2016-06-08 Tcl集团股份有限公司 Application program upgrade method, device and system
CN107015821A (en) * 2016-01-28 2017-08-04 腾讯科技(深圳)有限公司 The method and apparatus of incremental update
CN106406872A (en) * 2016-09-06 2017-02-15 广东欧珀移动通信有限公司 Method and apparatus for making differential upgrade package based on specific file
CN106406872B (en) * 2016-09-06 2019-07-23 Oppo广东移动通信有限公司 A kind of production method and device of the difference upgrade package based on specific file
CN106407115A (en) * 2016-09-20 2017-02-15 网易(杭州)网络有限公司 An art resource file testing method and device
CN106407115B (en) * 2016-09-20 2018-09-18 网易(杭州)网络有限公司 The test method and device of fine arts resource file
CN106528086A (en) * 2016-10-10 2017-03-22 广州视源电子科技股份有限公司 Method and system for upgrading Android software
CN108234414A (en) * 2016-12-16 2018-06-29 北京京东尚科信息技术有限公司 A kind of upgrade method and device of APP applications
CN108234414B (en) * 2016-12-16 2021-08-10 北京京东振世信息技术有限公司 Upgrading method and device for APP
CN106686578A (en) * 2016-12-28 2017-05-17 深圳天珑无线科技有限公司 Difference package generation method and apparatus
CN106790247A (en) * 2017-01-23 2017-05-31 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of android system upgrading
CN106886436A (en) * 2017-01-23 2017-06-23 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of android system upgrading
CN107273159A (en) * 2017-06-08 2017-10-20 深圳市华信天线技术有限公司 Difference patch upgrading method and device suitable for embedded system
CN107301070B (en) * 2017-06-20 2020-09-29 福州汇思博信息技术有限公司 Upgrading method and terminal
CN107301070A (en) * 2017-06-20 2017-10-27 福州汇思博信息技术有限公司 A kind of upgrade method and terminal
CN107656747B (en) * 2017-09-07 2021-01-08 维沃移动通信有限公司 Data upgrading method and mobile terminal
CN107656747A (en) * 2017-09-07 2018-02-02 维沃移动通信有限公司 A kind of data updating method and mobile terminal
WO2019076293A1 (en) * 2017-10-16 2019-04-25 华为技术有限公司 Differential upgrading method, device and system
CN109672655A (en) * 2017-10-16 2019-04-23 华为终端(东莞)有限公司 A kind of method, apparatus and system of difference upgrading
CN107729043A (en) * 2017-11-10 2018-02-23 深圳Tcl新技术有限公司 Method of calibration, device and the computer-readable recording medium of increment AKU
CN108170461A (en) * 2017-12-28 2018-06-15 北京四达时代软件技术股份有限公司 Difference upgrade package generation method, difference upgrade method and device
CN108170461B (en) * 2017-12-28 2021-07-27 北京四达时代软件技术股份有限公司 Differential upgrade package generation method, differential upgrade method and device
CN111629200A (en) * 2019-02-27 2020-09-04 深圳Tcl数字技术有限公司 Method and device for rapidly detecting differential packet reliability and readable storage medium
CN113767365A (en) * 2019-03-19 2021-12-07 芯讯通无线科技(上海)有限公司 Communication module software upgrading method and system and communication module
WO2020186551A1 (en) * 2019-03-19 2020-09-24 芯讯通无线科技(上海)有限公司 Communication module software upgrading method and system, and communication module
CN110032377A (en) * 2019-03-19 2019-07-19 芯讯通无线科技(上海)有限公司 Communication module method for upgrading software, system and communication module
CN110377309A (en) * 2019-07-18 2019-10-25 上海擎感智能科技有限公司 Data reconstruction method, system and equipment
CN110377309B (en) * 2019-07-18 2023-12-15 上海擎感智能科技有限公司 Data recovery method, system and equipment
CN110515646B (en) * 2019-07-26 2022-03-25 华为技术有限公司 Differential upgrading method and related equipment
CN110515646A (en) * 2019-07-26 2019-11-29 华为技术有限公司 A kind of difference upgrade method and relevant device
CN110597542B (en) * 2019-09-17 2023-01-31 Oppo(重庆)智能科技有限公司 Software automatic OTA (over the air) upgrading method and device and electronic equipment
CN110597542A (en) * 2019-09-17 2019-12-20 Oppo(重庆)智能科技有限公司 Automatic OTA (over the air) software upgrading method and device and electronic equipment
CN112860284A (en) * 2019-11-12 2021-05-28 深圳怡化电脑股份有限公司 SP upgrade package generation method and device for remote upgrade of equipment and computer equipment
WO2021097623A1 (en) * 2019-11-18 2021-05-27 深圳市欢太科技有限公司 File processing method and device, and terminal apparatus
WO2021097624A1 (en) * 2019-11-18 2021-05-27 深圳市欢太科技有限公司 File processing method, file processing apparatus, and terminal device
CN114303131A (en) * 2019-11-18 2022-04-08 深圳市欢太科技有限公司 File processing method, file processing device and terminal equipment
CN113094077A (en) * 2019-12-23 2021-07-09 深圳Tcl数字技术有限公司 System differential upgrading method and device, intelligent terminal and storage medium
CN111611002B (en) * 2020-04-27 2024-02-09 深圳市广和通无线股份有限公司 Data upgrading method, device, computer equipment and storage medium
CN111611002A (en) * 2020-04-27 2020-09-01 深圳市广和通无线股份有限公司 Data upgrading method and device, computer equipment and storage medium
CN111562931A (en) * 2020-04-30 2020-08-21 斑马网络技术有限公司 Method and system for upgrading vehicle firmware
CN111918278A (en) * 2020-07-01 2020-11-10 广东小天才科技有限公司 Over-the-air upgrade checking method, device, medium and intelligent terminal equipment
CN112527370A (en) * 2020-12-04 2021-03-19 成都中科慧源科技有限公司 Method for remotely and differentially upgrading Internet of things equipment
CN112579140A (en) * 2020-12-22 2021-03-30 四川虹微技术有限公司 Software upgrading method and device
CN112783541A (en) * 2021-01-21 2021-05-11 成都路行通信息技术有限公司 Equipment upgrading method and device and server
CN113590161A (en) * 2021-08-20 2021-11-02 广东九联科技股份有限公司 Memory-controllable NB-IOT module differential upgrading method and system
CN114827107A (en) * 2022-04-28 2022-07-29 中国银行股份有限公司 Software upgrading method and device
CN117270902A (en) * 2023-08-09 2023-12-22 大拓(山东)物联网科技有限公司 OTA upgrade package generation method and device, OTA upgrade method and device

Similar Documents

Publication Publication Date Title
CN105138347A (en) Difference upgrade patch generating method, software upgrading method and corresponding apparatus
US9804933B2 (en) System differential upgrade method, apparatus, and mobile terminal
CN104995627B (en) Cipher key revocation in system-on-chip apparatus
WO2017067448A1 (en) Firmware-over-the-air upgrade method, system and computer storage medium
US10437580B2 (en) Software updating methods and systems
WO2017166446A1 (en) Vulnerability-fixing method and device
CN104052818A (en) Version upgrade method and device for mobile terminal
CN107783776B (en) Processing method and device of firmware upgrade package and electronic equipment
US20160378458A1 (en) Method and device for system application installation package, and terminal
CN111008034B (en) Patch generation method and device
CN106843947B (en) Method and device for processing code defects
CN109729138A (en) Client resource update method, equipment, client and storage medium
CN108322540A (en) Customized data lead-in method, terminal and computer readable storage medium
CN111538523A (en) Differential upgrading method, device and storage medium
CN102880478B (en) Oftware updating method
CN109002305B (en) Method and system for updating equipment program
CN106210877A (en) The method for upgrading system of intelligent television and device
CN110597662B (en) Backup data automatic verification method and device, user equipment and storage medium
CN113961226B (en) Software development kit repairing method, terminal, server and equipment
CN114780019A (en) Electronic device management method and device, electronic device and storage medium
CN108762787B (en) Software repairing method, device, computer equipment and storage medium
WO2020233044A1 (en) Plug-in verification method and device, and server and computer-readable storage medium
CN108710549B (en) Method and device for ensuring stability of fingerprint data
US20230351050A1 (en) Method and apparatus for custom development of payment application, computer device, and storage medium
CN104158907A (en) Method and device of downloading application program file

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151209