CN104267978B - A kind of method and device for generating difference bag - Google Patents

A kind of method and device for generating difference bag Download PDF

Info

Publication number
CN104267978B
CN104267978B CN201410471851.4A CN201410471851A CN104267978B CN 104267978 B CN104267978 B CN 104267978B CN 201410471851 A CN201410471851 A CN 201410471851A CN 104267978 B CN104267978 B CN 104267978B
Authority
CN
China
Prior art keywords
file
difference
backup
resource bag
cryptographic hash
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.)
Expired - Fee Related
Application number
CN201410471851.4A
Other languages
Chinese (zh)
Other versions
CN104267978A (en
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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201410471851.4A priority Critical patent/CN104267978B/en
Publication of CN104267978A publication Critical patent/CN104267978A/en
Application granted granted Critical
Publication of CN104267978B publication Critical patent/CN104267978B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a kind of method and device for generating difference bag, be related to upgrading field, the difference resource bag to reduce because of prototype version change the difference bag that causes mismatched with the prototype version that mobile device is used caused by the upgrading failure of mobile device difference probability.This method includes:The difference resource bag of prototype version and the difference resource bag of target version, and difference resource bag and the difference resource bag generation difference bag of target version using prototype version are obtained, wherein, obtaining the difference resource bag of prototype version includes:Compile the source code generation data file and difference resource bag of prototype version;Determine whether the backup file in data file is identical with file with the difference in difference resource bag;In the case where both differ, the data file after source code generation updates and the difference resource bag after renewal are recompilated;Or, difference is updated to, difference resource bag updated after identical with backup file with file.

Description

A kind of method and device for generating difference bag
Technical field
The present invention relates to software upgrading field, more particularly to a kind of method and device for generating difference bag.
Background technology
Mobile device supplier is when mobile device makes, in addition to the hardware of assembling mobile device, in addition it is also necessary within hardware Installation system software and application software, mobile device can just dispatch from the factory and sell.User is after it have purchased the mobile device, to understand The leak for the mobile device presence that certainly user has used or the function of improving mobile device, mobile device supplier are needed to being System software or application software in time, efficiently, accurately upgrade.
The software upgrading mode of mobile device generally have T (T-Flash) card upgrade (mainly for the production of with after sale), full bag Upgrading and difference upgrading.Wherein, the upgrading of difference bag is small with its occupancy memory space, and consuming flow is few, the advantages of updating speed is fast, It is widely used in terms of software upgrading.
In the prior art, the overall process for carrying out difference upgrading is roughly divided into following steps:
Step one:Generate prototype version.Write source code according to demand first, source code is compiled, generate original All Files needed for the data file of version and upgrading, is that img forms generate data mapping file by data file transition, and will All Files needed for upgrading is packed, the difference resource bag of compression generation prototype version, and wherein data file includes making T cards liter The All Files of level bag, difference resource bag includes the file obtained with the generation compiling of data file identical sources.
Step 2:According to data mapping file packing generation T card upgrade bags, mobile device is upgraded to T card upgrade bags Prototype version;
Step 3:On the basis of source code, according to the requirement of upgrading, source code is modified and compiled, obtain mesh The difference resource bag of version is marked, difference bag is generated using the difference resource bag of target version and the difference resource bag of prototype version, Difference bag is stored to server so that mobile device is downloaded;
Step 4:Mobile device obtains difference bag from server, and mobile device is upgraded according to difference bag.
During the difference resource bag of generation prototype version, inventor has found prior art, and there are the following problems:Number It will not change after according to compilation of source code according to file, and the file corresponding with data file included in difference resource bag is being beaten File may be caused to change during bag, compression etc., for example, the length that file is included changes, or file is included Content change, or file signature change etc..It can so cause literary with data in data file and difference resource bag The corresponding file of part is different, that is to say, that the data mapping file and difference resource bag for entering data file after row format conversion In file corresponding from data file it is different, i.e., data mapping file and difference resource bag are mismatched.If continuation is reflected according to data As mobile device is upgraded to prototype version by file, and generated according to the difference resource bag of the difference resource bag and target version it is poor Subpackage, then mobile device may be set during target version is upgraded to according to the difference bag due to difference bag with movement The standby prototype version used is mismatched, and ultimately results in the upgrading failure of mobile device difference.
The content of the invention
Embodiments of the invention provide a kind of method and device for generating difference bag, to reduce the difference because of prototype version Resource bag change the difference bag that causes mismatched with the prototype version that mobile device is used caused by mobile device difference liter The probability of level failure.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
In a first aspect, the embodiments of the invention provide a kind of method for generating difference bag, including:Obtain the difference of prototype version Divide the difference resource bag of resource bag and target version, and utilize the difference resource bag and the target version of the prototype version Difference resource bag generation difference bag, wherein, it is described obtain prototype version difference resource bag include:Compile the source of prototype version Code building data file and difference resource bag;Include in difference file, the data file and wrap in the difference resource bag Containing the backup file obtained with the difference with file using same section compilation of source code;Determine the backup file with it is described Whether difference is identical with file;In the case where the backup file and the difference are differed with file, recompilate described Data file after the source code generation renewal of prototype version and the difference resource bag after renewal;Or, by difference text Part is updated to, difference resource bag updated after identical with the backup file;The data file is used to generate movement Data mapping file needed for device upgrade to the prototype version;In the backup file and difference file identical In the case of, the difference resource bag is defined as to the difference resource bag of prototype version.
Second aspect, the embodiments of the invention provide a kind of device for generating difference bag, including:Acquiring unit and generation are single Member, the acquiring unit, for obtaining the difference resource bag of prototype version and the difference resource bag of target version, the generation Unit, difference bag is generated for the difference resource bag and the difference resource bag of the target version using the prototype version, its In, the acquiring unit includes:Processing module and determining module;The processing module, the source code for compiling prototype version Generate data file and difference resource bag;Difference file is included in the difference resource bag, include in the data file with The backup file that the difference is obtained with file using same section compilation of source code;The determining module, it is described for determining Whether backup file is identical with file with the difference;The processing module, is additionally operable in the backup file and the difference In the case of being differed with file, recompilate after data file and renewal after the source code generation renewal of the prototype version Difference resource bag;Or, the difference is updated to, difference money updated after identical with the backup file with file Wrap in source;The data file is used to generate the data mapping file upgraded to mobile device needed for the prototype version;It is described Processing module, is additionally operable in the case of the backup file and the difference file identical, and the difference resource bag is true It is set to the difference resource bag of prototype version.
The embodiment of the present invention provides a kind of method and device for generating difference bag, the source code generation number of compiling prototype version According to file and difference resource bag;Determine backup file in data file and the difference in difference resource bag with file whether phase Together;In the case where both differ, recompilate after data file and renewal after the source code generation renewal of prototype version Difference resource bag;Or, difference is updated to, difference resource bag updated after identical with backup file with file;Number The data mapping being used to generate needed for the mobile device to be upgraded to the prototype version according to file is literary.
For the first processing mode, it is necessary to judge to make difference Bao Shixu in difference resource bag after compiling source code Whether file (i.e. difference with the file) file (backing up file) corresponding with data file for carrying out difference is identical, two In the case that person differs, data file and difference resource bag after being updated are recompilated to source code, then according to more The data mapping file that data file after new makes is upgraded to mobile device, and according to the difference resource bag after renewal and The difference resource bag generation difference bag of target version, so, relative to prior art, can reduce the data file of prototype version The probability that middle backup file is differed with difference in difference resource bag with file, then according to the data file transition of prototype version Mobile device is upgraded to prototype version and the difference resource bag and target according to prototype version by the data mapping file after form The difference bag possibility that the match is successful the increase of the difference resource bag generation of version, eventually reduces the upgrading mistake of mobile device difference The probability lost.
For second of processing mode, it is necessary to judge to make difference Bao Shixu in difference resource bag after compiling source code Whether file (i.e. difference with the file) file (backing up file) corresponding with data file for carrying out difference is identical, two In the case that person differs, difference is updated to, difference resource bag updated after identical with backup file with file, this Sample, it is ensured that difference file is identical with backup file, that is, ensure that difference resource bag and data file matches, further protect Demonstrate,proved the data mapping file after the data file transition form according to prototype version by mobile device upgrade to prototype version with The difference bag matching generated according to the difference resource bag of the difference resource bag of prototype version and target version, eventually reduces movement The probability of equipment difference upgrading failure.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be in embodiment or description of the prior art The required accompanying drawing used is briefly described, it should be apparent that, drawings in the following description are only some realities of the present invention Example is applied, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is a kind of schematic flow sheet for the method for generating difference bag provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of difference resource bag provided in an embodiment of the present invention;
Fig. 3 is a kind of flow signal of the method for the difference resource bag for obtaining prototype version provided in an embodiment of the present invention Figure;
Fig. 4 illustrates for the flow of the method for another difference resource bag for obtaining prototype version provided in an embodiment of the present invention Figure;
Fig. 5 is that one kind provided in an embodiment of the present invention calculates each in the backup file respectively according to the hash algorithm The schematic flow sheet of the method for the cryptographic Hash of each file in the cryptographic Hash of file and the difference file;
Fig. 6 illustrates for the flow of the method for another difference resource bag for obtaining prototype version provided in an embodiment of the present invention Figure;
Fig. 7 is a kind of functional schematic for the device for generating difference bag provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
The embodiments of the invention provide a kind of method for generating difference bag, as shown in figure 1, including:
101st, the difference resource bag of prototype version is obtained.
It should be noted that developer is in one redaction of every issue, what is got has the institute for making T card upgrade bags There are file (i.e. data file), and the All Files (i.e. difference resource bag) related to making difference bag.T card upgrade bags are used for Engineering is upgraded to the mobile device on production line, or for upgrading in after-sale service to mobile device;Difference Divide resource bag to be used for user and difference bag upgrading is carried out during using mobile device.
It should be noted that difference resource bag includes needing to make the All Files needed for difference bag.But difference is provided Only some file is to be used for difference in the bag of source, and another part file need not carry out difference.Difference money for example shown in Fig. 2 Ota_tmp_package.zip is wrapped in source, when making difference bag, and (some of system should for usual only SYSTEM all files With, library file, bin etc), RECOVERY all files (ROMPaq, equivalent to the gost of computer), BOOT all texts Partial document (some bluetooths, wifi parameters etc., optional whether to upgrade) in part (kernel function), PERSIST needs to carry out Difference, alternative document simultaneously need not carry out difference.
" the difference resource bag for the obtaining prototype version " specific implementation specifically, provided in an embodiment of the present invention, can be with As shown in figure 3, including:
301st, the source code generation data file and difference resource bag of compiling prototype version.
Wherein, difference file is included in difference resource bag, includes in data file with difference and to use identical portions with file The backup file that point compilation of source code is obtained.Data file is used to generate the data upgraded to mobile device needed for prototype version Image file.
Specifically, developer writes source code according to demand, and compile in source code, compilation process, obtain original version This data file and the All Files needed for making difference bag, are then beaten the All Files needed for making difference bag Bag, signature, compression obtain difference resource bag, and difference resource bag are copied to under data file same file folder, obtaining Difference resource bag.And it is further desired that being img forms by data file transition, that is, generate data mapping file, data mapping file To make T card upgrade bags.
It should be noted that the difference included in difference resource bag is exactly during difference bag is made, to need with file Carry out the partial document of Difference Calculation.The all files of all files, RECOVERY such as the SYSTEM in Fig. 2, BOOT Partial document in all files, PERSIST.Backup file be exactly in data file with the difference file in difference resource bag Corresponding file, such as backup file be all files of entitled system in data file, recovery all files, Partial document in boot all files, persist;And it is identical with the file structure in difference file to back up file. Exemplary, system file structure and the file structure of the SYSTEM in difference resource bag in the backup file of data file It is identical.
Generally, can be represented with identical name file in difference file with backup file file it is corresponding Relation.
Specifically, mobile device go out factory be also fitted without system application before, utilize beginning version data mapping text Part makes T card upgrade bags, and mobile device is upgraded to prototype version by factory with T card upgrade bags, so that the movement after must dispatching from the factory is set The standby system application using prototype version.Meanwhile, the difference resource bag of prototype version is stored, in the future on the basis of prototype version , it is necessary to which the difference resource bag of the difference resource bag of new version and prototype version is done into difference after the new version of generation, energy is obtained Enough difference bags upgraded to the mobile device using prototype version needed for redaction.Certainly (movement of prototype version is used Transporting apparatus using prototype version can also be upgraded to redaction by equipment according to the data file of redaction, but typically In the case of, user can only arrive upgrades to redaction, Ci Zhongfang using such a mode by the mobile device using prototype version after sale Formula inconvenience user realizes.
It should be noted that, it is necessary to All Files to being included in difference resource bag during generation difference resource bag The processing such as packed, compressed, being signed, being copied, so the difference file in difference resource bag and the backup in data file File is likely to occur difference.The present invention all embodiments be exactly in order to solve because difference resource bag in difference file with Backup file in data file is different, and then is entered according to data file after the data mapping document upgrading after row format conversion Mobile device can not pack the difference made according to the difference resource of prototype version and be bundled into the problem of work(is upgraded.
302nd, determine whether the backup file is identical with the difference file.
Specifically, determining whether the content in backup file is identical with the content in difference file.That is checking backup is literary Whether each file file corresponding with difference file is identical in part.
It should be noted that the relatively young waiter in a wineshop or an inn that the binary value of random length can be mapped as regular length by hash algorithm enters Value processed, this small binary value is referred to as cryptographic Hash.Cryptographic Hash is the unique and extremely compact numerical value representation of one piece of data. The cryptographic Hash of a file is unique in theory, and any change can all cause the change of cryptographic Hash.So leading in the present embodiment Cross and compare backup file and determine whether backup file is identical with difference file with the method for file cryptographic Hash with difference.Certainly , can also be with determining two file content identical other methods, such as byte-by-byte comparison in the prior art in addition to this method Method, the present invention it is without limitation.
If it should be noted that backup file is identical with file with difference, being entered according to data file after row format conversion Data mapping document upgrading mobile device after, the prototype version that mobile device is used just can with using prototype version difference The difference bag matching of the difference resource bag generation of resource bag and target version, then mobile device just can be according to difference Bao Sheng Level success.Wherein, Hash of the target version relative to the file upgraded in prototype version in prototype version is carried in difference bag Value.Prototype version and difference the bag matching of mobile device, refer to Kazakhstan of the file for the upgrading that difference bag is carried in prototype version The cryptographic Hash of uncommon value file corresponding with what is used in mobile device is identical.
If backup file is differed with difference with file, need to handle difference with backup file with file, with Ensure in the case of difference file and backup file identical as far as possible, the place after just being changed according to document format data Module is managed, is additionally operable in the case of the backup file and the difference file identical, the difference resource bag is determined For the difference resource bag of prototype version.
Data mapping file is upgraded to mobile device, and according to the difference resource of the difference resource bag and target version Pack and make difference bag.
It should be noted that can have step 303a and 303b two with the case of differing in backup file and difference Processing mode is planted, any one in both is performed.
303a, in the case where the backup file and the difference are differed with file, recompilate the original version Data file after this source code generation renewal and the difference resource bag after renewal.
Specifically, source code is recompilated, obtain new data file and difference resource bag, with new data file and New difference resource bag replaces original data file and difference resource bag respectively.
It should be noted that source program is recompilated one time, new data file and difference resource bag will be generated.Newly Although the function phase that the data file of generation and original data file are realized is same, the timestamp of storage, the compiling of storage Time etc. can be different, so new data file is not fully identical with original data file.Mobile device is used when upgrading Data mapping file according to Generating Data File can be matched with making the difference resource bag of prototype version during difference bag, The difference resource bag that must assure that the corresponding data file of data mapping file and prototype version is that source code is carried out with once Obtained during compiling.
303b, in the case where the backup file and the difference are differed with file, by the difference with file more New extremely, difference resource bag updated after identical with the backup file.
Specifically, the backup file copy in data file is a, replace the difference file in difference resource bag.This Sample, with regard to the backup file in data file and the difference file identical probability in difference resource bag can be improved, and then also Improve according to data file enter row format conversion after data mapping file matched with the difference resource bag of prototype version it is general Rate, after by data mapping document upgrading to mobile device, just improve prototype version that mobile device uses with according to original The probability of the difference bag matching of the difference resource bag generation of version.
It should be noted that in most cases, backup file is differed in simply backup file with difference with file Certain several file it is different from certain several file in difference file.So and need not be with whole backup file copies simultaneously Difference file is replaced, and only needs to be copied and replaced with the file differed in file with difference in backup file. But it is different from which file in backup file using must be known by difference file before such a processing method.
304th, in the case of the backup file and the difference are with file identical, the difference resource bag is defined as The difference resource bag of prototype version.
It should be noted that in the case of backup file and difference are with file identical, it is possible to will once compile and obtain Difference resource bag be defined as the difference resource bag of prototype version, for making the difference that difference upgrading is used in subsequent process Bag.
102nd, the difference resource bag of target version is obtained.
Specifically, developer is on the basis of the corresponding source code of prototype version, according to the requirement of upgrading, to source code Modify and compile, obtain the difference resource bag of target version.
It should be noted that when obtaining the difference resource bag of target version, the data text of target version can also be determined Whether the difference in the difference resource bag of backup file and target version in part identical with file, with ensure as far as possible with Difference bag of the mobile device of target version upgrading after is upgraded successfully when upgrading.
103rd, difference bag is generated using the difference resource bag of the prototype version and the difference resource bag of the target version.
Specifically, the difference file and the difference of prototype version in the difference resource bag of target version is corresponding with file File do difference one by one, obtain the partial document in difference bag, then obtain difference further according to the difference resource bag of target version Remaining partial document in subpackage, ultimately generates the difference bag from prototype version to target version.
The embodiment of the present invention provides a kind of method for generating difference bag, the source code generation data file of compiling prototype version With difference resource bag;Determine whether the backup file in data file is identical with file with the difference in difference resource bag;Two In the case that person differs, the data file after the source code generation renewal of prototype version and the difference money after renewal are recompilated Wrap in source;Or, difference is updated to, difference resource bag updated after identical with backup file with file;Data file is used Data mapping text needed for the mobile device to be upgraded to the prototype version for generation, obtains the difference resource of target version Bag, and difference resource bag and the difference resource bag generation difference bag of target version using the prototype version.For the first Processing mode, it is necessary to need the file of progress difference when judging and making difference bag in difference resource bag (i.e. after compiling source code Difference is with file) whether file (backing up file) corresponding with data file identical, right in the case where both differ Source code recompilates data file and difference resource bag after being updated, is then made according to the data file after renewal Data mapping file is upgraded to mobile device, and according to the difference resource bag after renewal and the difference resource bag of target version Difference bag is generated, so, relative to prior art, backup file and difference resource in the data file of prototype version can be reduced The probability that difference is differed with file in bag, then according to the data mapping file after the data file transition form of prototype version Mobile device is upgraded into prototype version to generate with the difference resource bag and the difference resource bag of target version according to prototype version The difference bag possibility that the match is successful increase, eventually reduce mobile device difference upgrading failure probability.For second Processing mode, it is necessary to need the file of progress difference when judging and making difference bag in difference resource bag (i.e. after compiling source code Difference is with file) whether file (backing up file) corresponding with data file identical, and, will in the case where both differ Difference is updated to, difference resource bag updated after identical with backup file with file, so, it is ensured that difference file It is identical with backup file, that is, difference resource bag and data file matches are ensure that, the number according to prototype version is further ensured Mobile device is upgraded into prototype version with being provided according to the difference of prototype version according to the data mapping file after file format transformation The difference bag matching generated with the difference resource bag of target version is wrapped in source, eventually reduces the general of mobile device difference upgrading failure Rate.
Further, as shown in figure 4, " the difference resource bag for obtaining prototype version " of step 101 can also be by following Step is realized:
401st, the source code generation data file and difference resource bag of compiling prototype version.
Specifically, referring to step 301, it will not be repeated here.
402nd, determine whether the backup file is identical with the difference file.
Specifically, step 402 can be according to the following two kinds implementation:
The first, the cryptographic Hash of the backup file and the Kazakhstan of the difference file are calculated according to hash algorithm respectively Uncommon value;In the case of the cryptographic Hash of the backup file and the cryptographic Hash identical of the difference file, the backup is determined File is identical with file with the difference;Differed in the cryptographic Hash of the backup file with the difference with the cryptographic Hash of file In the case of, determine that the backup file is differed with the difference with file.
Specifically, by input value of the backup file as hash algorithm, generating a cryptographic Hash;And make difference with file For the input value of identical hash algorithm, another cryptographic Hash is generated.Whether identical compare two cryptographic Hash.If two Kazakhstan Uncommon value is identical, then shows that backup file is identical with difference file content;If two cryptographic Hash are differed, show standby Part file is differed with difference with file content.
Second, the cryptographic Hash of each file is calculated in the backup file and described according to the hash algorithm respectively The cryptographic Hash of each file in difference file;The cryptographic Hash of each file and the difference file in the backup file In corresponding file cryptographic Hash identical in the case of, determine that the backup file is identical with the difference file;Described In the case that the cryptographic Hash of each file is differed with the difference with the cryptographic Hash of corresponding file in file in backup file, Determine that the backup file is differed with the difference with file.
Specifically, using each file in backup file as the input of hash algorithm, obtaining each in backup file The cryptographic Hash of file;Using each file in difference file as the input of hash algorithm, obtain every in difference file The cryptographic Hash of one file.Compare the Hash of the cryptographic Hash of a file and respective file in difference file in backup file successively Whether value is identical, the cryptographic Hash of the cryptographic Hash of each file file corresponding with difference file all phase in backup file With in the case of, it is determined that backup file is identical with file with difference;The cryptographic Hash of each file is used with difference in backup file In file the cryptographic Hash of corresponding file at least one differ in the case of, it is determined that backup file and difference file not phase Together.
It should be noted that the Hash in whether first method, or second method, all embodiments of the invention Calculation can be MD (Message Digest Algorithm, informative abstract) 5 algorithms or can be MD2 algorithms or can be with It is SHA (Secure Hash Algorithm (SHA), or can also be that other Hash of the prior art are calculated Method, the present invention is without limitation.
Further, because in the cryptographic Hash of each file in All Files in calculating backup file, different files it Between to calculate process and the result of cryptographic Hash be separate, then can be by different file progress Hash calculations in backup file Concurrent process processing.Similarly, the concurrent process that difference can also be carried out into Hash calculation with different files in file is handled.
In the prior art, a kind of CUDA of current popular (Compute Unified Device Architecture, unification Computing device framework) model.CUDA basic thought is exactly that pending task is divided into serial executable portion and held parallel Row portion is respectively processed.CPU (Central Processing Unit, central processing unit) and figure in CUDA programming models Shape processor (Graphic Processing Unit, GPU) cooperates.CPU sends Kernel (kernels to graphics processor Function) call request, graphics processor carries out parallel computation according to the call requests of Kernel functions to parallel data.
Concurrency when calculating each file cryptographic Hash is being make use of, and after CUDA programming models, further, is such as being schemed Shown in 5, " calculate each in the backup file respectively according to the hash algorithm in second of implementation of step 402 The cryptographic Hash of file and the difference are with the cryptographic Hash of each file in file " it can also specifically be realized by following steps:
501st, CPU sends the first Kernel call request to graphics processor, and graphics processor receives the first kernel letter Number Kernel call request.
Wherein, the first Kernel is used to indicate the graphics processor according to the hash algorithm in the backup file Each file carries out Hash calculation.
It should be noted that carrying the storage address of backup file, graphics processor root in the first Kernel call requests Backup file can be obtained by carrying out lookup according to the address.
502nd, graphics processor calls backup file according to the first Kernel, and according to hash algorithm to the system Each file carries out the cryptographic Hash that Hash calculation obtains each file in the system file in file.
Specifically, graphics processor is after backup file is obtained, using parallel when calculating each file cryptographic Hash Property, parallel Hash calculation is carried out to each file in backup file according to hash algorithm, the cryptographic Hash of each file is obtained.
503rd, to CPU transmissions the first Kernel return value, (CPU is obtained graphics processor from the graphics processor The return value of first Kernel.
Wherein, the return value of the first Kernel includes the cryptographic Hash of each file in the backup file.
Specifically, graphics processor using the cryptographic Hash of each file in backup file as the first Kernel return value, The cryptographic Hash of each file in backup file is fed back into CPU.
504th, CPU sends the 2nd Kernel call request to graphics processor, and graphics processor receives the 2nd Kernel Call request.
Wherein, the 2nd Kernel is used to indicate that the graphics processor uses the difference according to the hash algorithm Each file carries out Hash calculation in file.
It should be noted that carrying the storage address of difference file, graphics processor in the 2nd Kernel call requests Difference file is obtained according to the address search, Hash calculation then is carried out with each file in file to difference.
505th, graphics processor calls difference file according to the 2nd Kernel, and according to the hash algorithm to difference Divide and carry out Hash calculation with each file in file, obtain the cryptographic Hash of each file in difference file.
Specifically, graphics processor is after difference file is obtained, using when calculating each file cryptographic Hash and Row, parallel Hash calculation is carried out to difference according to hash algorithm with each file in file, obtains the Hash of each file Value.
506th, graphics processor sends the return value of the 2nd Kernel to the CPU, and CPU is from the graphics processor Obtain the return value of the 2nd Kernel.
Wherein, the return value of the 2nd Kernel includes the cryptographic Hash of each file in the difference file.
Specifically, graphics processor using the cryptographic Hash of each file in difference file as the 2nd Kernel return Value, CPU is fed back to by the cryptographic Hash of each file.
It should be noted that 501) 503 can be first carried out, then perform 504) 506;504) 506, then hold can also be first carried out Row 501) 503.The present embodiment is to first carry out 501) 503, then to perform 504) exemplified by 506.
403rd, in the case where the backup file and the difference are differed with file, the compiling original version is jumped to Data file after this source code generation renewal and the difference resource bag after renewal, and continue to determine that backup file is used with difference Whether file is identical, untill both are identical.
It should be noted that because of the data file after the source code generation renewal for recompilating the prototype version and more Difference resource bag after new is not necessarily identical, it is possible to jump to step 401, after recompility, continues to determine to update Difference resource bag after rear data file and renewal, until determining the data file after updating and the difference resource after renewal Untill bag is identical, the difference resource bag that last time is obtained is defined as the difference resource bag of prototype version, and will be mobile The data mapping file used during device upgrade to prototype version is that the data file obtained by last time is obtained.
Specifically, the source code for recompilating the prototype version generates the data file after updating and the difference after renewal The process of resource bag, refers to step 303a and (no longer illustrates herein.
404th, in the case of the backup file and the difference are with file identical, the difference resource bag is defined as The difference resource bag of prototype version.
Specifically, referring to step 304, it will not be repeated here.
A kind of method for the difference resource bag for obtaining prototype version is present embodiments provided, the source code of prototype version is compiled Data file and difference resource bag are generated, determines whether the backup file is identical with the difference file, in backup file In the case of being differed with difference with file, the data file jumped to after the source code generation renewal for recompilating prototype version With the difference resource bag after renewal, it is determined that whether backup file identical with file with difference, untill both are identical.This implementation Example in difference resource bag make difference bag when need carry out difference file (i.e. difference file) with it is right in data file In the case that the file (backing up file) answered is differed, the data file and difference after being updated are recompilated to source code Resource bag, and whether redefine backup file identical with difference file, untill both are identical.So, relative to Prior art, ensure that backup file and difference text in difference resource bag in the data file of the prototype version finally obtained Part is identical, is then upgraded to mobile device according to the data mapping file after the data file transition form of prototype version original The difference bag of version and the difference resource bag generation of the difference resource bag according to prototype version and target version the match is successful can Energy property increase, eventually reduces the probability of mobile device difference upgrading failure.
Meanwhile, if calculating the cryptographic Hash of each file in the cryptographic Hash and difference file of each file in backup file When, the characteristics of performing using the high Floating-point Computation ability of graphics processor and parallel, by the cryptographic Hash of each file in backup file Distributed with difference with the calculating process of the cryptographic Hash of each file in file to graphics processor, so as to improve computational efficiency.
On the basis of Fig. 4, it is understood that there may be in the case of some problems, the backup file of recompility is literary with difference all the time Part is incomplete same, then further, as shown in fig. 6, " the difference resource bag for obtaining prototype version " of step 101 can be with Realized by following steps:
601st, setting compiling number of times thresholding.
Specifically, setting compiles number of times before to compilation of source code.When compiling number of times reaches compiling number of times thresholding, just Illustrate that recompility can't resolve the problem of data file is different from difference resource bag, then just directly update difference with file It is extremely identical with the backup file;When compiling number of times is not reaching to compiling number of times, still source code is recompilated and obtained newly Backup file and difference file.
602nd, the source code generation data file and difference resource bag of compiling prototype version, and compiling number of times is added one.
Wherein, the initialization value of compiling number of times is zero.
Specifically, the source code generation data file and the process of difference resource bag of compiling prototype version, refer to step 301, it will not be repeated here.
603rd, determine whether the backup file is identical with the difference file.
Specifically, referring to step 302, it will not be repeated here.
It should be noted that in the case where backup file and difference are differed with file, performing step 605) 607; Backup file, with the case of file identical, performs step 604 with difference.
604th, in the case of the backup file and the difference are with file identical, the difference resource bag is defined as The difference resource bag of prototype version.
Specifically, referring to step 304, it will not be repeated here.
605th, in the case where backup file and the difference are differed with file, it is determined that whether compiling number of times reaches compiling Number of times thresholding.
606th, in the case where compiling number of times is not reaching to compiling number of times thresholding, step 602 is jumped to, is recompilated described Data file after the source code generation renewal of prototype version and the difference resource bag after renewal.
607th, in the case where compiling number of times reaches compiling number of times thresholding, difference is updated to and the backup text with file Part is identical, the difference resource bag after being updated.
Specifically, the backup file copy in data file is a, replace the difference file in difference resource bag.This Sample, with regard to the backup file in data file and the difference file identical probability in difference resource bag can be improved, and then also Improve according to data file enter row format conversion after data mapping file matched with the difference resource bag of prototype version it is general Rate, after by data mapping document upgrading to mobile device, just improve prototype version that mobile device uses with according to original The probability of the difference bag matching of the difference resource bag generation of version.
If being to use it should be noted that step 603 determines whether the backup file is identical with the difference file The second way in step 402, that is, determine corresponding in the cryptographic Hash and the difference file of each file in backup file The cryptographic Hash of file whether identical method, then now, step 607 realization specifically can with copy the backup file In the first file replace file corresponding with first file in the difference file.Wherein, first file is The cryptographic Hash of the file file different from the cryptographic Hash of corresponding file in the difference file in the backup file.
It should be noted that it is determined that the Hash of the file file corresponding with difference file in backup file In the case that value is differed, the corresponding file in difference file is replaced with this document in backup file.
A kind of method for the difference resource bag for obtaining prototype version of the embodiment of the present invention, setting compiling number of times thresholding;Compiling The source code generation data file and difference resource bag of prototype version, and compiling number of times is added one;Determine the backup file with Whether the difference is identical with file;In the case where backup file and the difference are differed with file, it is determined that compiling number of times Whether compiling number of times thresholding is reached;In the case where compiling number of times is not reaching to compiling number of times thresholding, recompilate described original Data file after the source code generation renewal of version and the difference resource bag after renewal;Compiling number of times door is reached in compiling number of times In the case of limit, difference is updated to, difference resource bag updated after identical with the backup file with file.So, Relative to prior art, it is poor in backup file and difference resource bag in the data file of the prototype version finally obtained to ensure that Divide identical with file, then mobile device is upgraded according to the data mapping file after the data file transition form of prototype version Matched into prototype version with the difference bag that the difference resource bag of the difference resource bag according to prototype version and target version is generated The possibility increase of work(, eventually reduces the probability of mobile device difference upgrading failure.
As shown in fig. 7, it is a kind of functional schematic for the device for generating difference bag provided in an embodiment of the present invention.With reference to Shown in Fig. 7, the device includes:Acquiring unit 701 and generation unit 702.
The acquiring unit 701, for obtaining the difference resource bag of prototype version and the difference resource bag of target version.
The generation unit 702, for the difference resource bag and the difference of the target version using the prototype version Resource bag generates difference bag.
Specifically, the acquiring unit 701 includes:Processing module 7011 and determining module 7012.
The processing module 7011, the source code for compiling prototype version generates data file and difference resource bag;Institute State and difference file is included in difference resource bag, include in the data file with the difference and to use same section source with file The backup file that code compilation is obtained.
The determining module 7012, for determining whether the backup file is identical with the difference file.
Specifically, the determining module 7012, the Kazakhstan specifically for calculating the backup file respectively according to hash algorithm The cryptographic Hash of uncommon value and the difference file;
The determining module 7012, specifically for the cryptographic Hash in the backup file and the Hash of the difference file It is worth in the case of identical, determines that the backup file is identical with the difference file;
The determining module 7012, specifically for the cryptographic Hash in the backup file and the Hash of the difference file In the case that value is differed, determine that the backup file is differed with the difference with file.
Specifically, the determining module 7012, specifically for calculating the backup file respectively according to the hash algorithm In each file cryptographic Hash and the cryptographic Hash of each file in the difference file;
The determining module 7012, specifically for the cryptographic Hash of each file in the backup file and difference use In file in the case of the cryptographic Hash identical of corresponding file, determine that the backup file is identical with the difference file;
The determining module 7012, specifically for the cryptographic Hash of each file in the backup file and difference use In the case that the cryptographic Hash of corresponding file is differed in file, the backup file and the difference file not phase are determined Together.
Further, the determining module 7012, specifically for sending the first kernel function Kernel to graphics processor Call request;First Kernel is used to indicate the graphics processor according to the hash algorithm to the backup file In each file carry out Hash calculation;
The determining module 7012, the return value specifically for obtaining the first Kernel from the graphics processor; The return value of first Kernel includes the cryptographic Hash of each file in the backup file;
The determining module 7012, the call request specifically for sending the 2nd Kernel to the graphics processor;Institute Stating the 2nd Kernel is used to indicate the graphics processor according to the hash algorithm to each file in the difference file Carry out Hash calculation;
The determining module 7012, the return value specifically for obtaining the 2nd Kernel from the graphics processor; The return value of 2nd Kernel includes the cryptographic Hash of each file in the difference file.
The processing module 7011, is additionally operable in the case where the backup file and the difference are differed with file, Recompilate the data file after the source code generation renewal of the prototype version and the difference resource bag after renewal;Or, will The difference is updated to, difference resource bag updated after identical with the backup file with file;The data file is used Data mapping file needed for the mobile device to be upgraded to the prototype version for generation.
Specifically, the processing module 7011, specifically for replacing the difference text with the backup file of copy Part.
Specifically, the processing module 7011, is replaced specifically for the first file in the backup file with copy File corresponding with first file in the difference file;First file is the Kazakhstan of file in the backup file The uncommon value file different from the cryptographic Hash of corresponding file in the difference file.
Further, the determining module 7012, is additionally operable to determine the backup file in the data file after the renewal It is whether identical with file with difference in the difference resource bag after the renewal;
The processing module 7011, is additionally operable in the determining module 7012 determines the data file after the renewal In the case that backup file is differed with the difference in the difference resource bag after the renewal with file, recompility institute is jumped to The data file after the source code generation renewal of prototype version and the difference resource bag after renewal are stated, until the number after the renewal It is identical with file with the difference in the difference resource bag after the renewal according to the backup file in file.
The processing module 7011, is additionally operable in the case of the backup file and the difference file identical, will The difference resource bag is defined as the difference resource bag of prototype version.
The embodiment of the present invention provides a kind of device for generating difference bag, the source code generation data file of compiling prototype version With difference resource bag;Determine whether the backup file in data file is identical with file with the difference in difference resource bag;Two In the case that person differs, the data file after the source code generation renewal of prototype version and the difference money after renewal are recompilated Wrap in source;Or, difference is updated to, difference resource bag updated after identical with backup file with file;Data file is used Data mapping text needed for the mobile device to be upgraded to the prototype version for generation.
For the first processing mode, it is necessary to judge to make difference Bao Shixu in difference resource bag after compiling source code Whether file (i.e. difference with the file) file (backing up file) corresponding with data file for carrying out difference is identical, two In the case that person differs, data file and difference resource bag after being updated are recompilated to source code, then according to more The data mapping file that data file after new makes is upgraded to mobile device, and according to the difference resource bag after renewal and The difference resource bag generation difference bag of target version, so, relative to prior art, can reduce the data file of prototype version The probability that middle backup file is differed with difference in difference resource bag with file, then according to the data file transition of prototype version Mobile device is upgraded to prototype version and the difference resource bag and target according to prototype version by the data mapping file after form The difference bag possibility that the match is successful the increase of the difference resource bag generation of version, eventually reduces the upgrading mistake of mobile device difference The probability lost.
For second of processing mode, it is necessary to judge to make difference Bao Shixu in difference resource bag after compiling source code Whether file (i.e. difference with the file) file (backing up file) corresponding with data file for carrying out difference is identical, two In the case that person differs, difference is updated to, difference resource bag updated after identical with backup file with file, this Sample, it is ensured that difference file is identical with backup file, that is, ensure that difference resource bag and data file matches, further protect Demonstrate,proved the data mapping file after the data file transition form according to prototype version by mobile device upgrade to prototype version with The difference bag matching generated according to the difference resource bag of the difference resource bag of prototype version and target version, eventually reduces movement The probability of equipment difference upgrading failure.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Divide, only a kind of division of logic function there can be other dividing mode when actually realizing, such as multiple units or component Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or The coupling each other discussed or direct-coupling or communication connection can be the indirect couplings of device or unit by some interfaces Close or communicate to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That the independent physics of unit includes, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in an embodied on computer readable and deposit In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are to cause a computer Equipment (can be personal computer, server, or network equipment etc.) performs the portion of each embodiment methods described of the invention Step by step.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (Read) Only Memory, referred to as ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc. are various to store The medium of program code.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.

Claims (14)

1. a kind of method for generating difference bag, including:Obtain the difference resource bag of prototype version and the difference money of target version Source is wrapped, and difference resource bag and the difference resource bag generation difference bag of the target version using the prototype version, and it is special Levy and be, the difference resource bag for obtaining prototype version includes:
Compile the source code generation data file and difference resource bag of prototype version;Difference text is included in the difference resource bag The backup file obtained with the difference with file using same section compilation of source code is included in part, the data file;
Determine whether the backup file is identical with the difference file;
In the case where the backup file and the difference are differed with file, the source code of the prototype version is recompilated Data file after generation renewal and the difference resource bag after renewal;Or, by the difference be updated to file with it is described standby Part file is identical, the difference resource bag after being updated;The data file is used to generate upgrades to the original by mobile device Data mapping file needed for beginning version;
In the case of the backup file and the difference are with file identical, the difference resource bag is defined as prototype version Difference resource bag.
2. according to the method described in claim 1, it is characterised in that
It is described determine the backup file it is whether identical with the difference file including:
Calculate the cryptographic Hash of the backup file and the cryptographic Hash of the difference file respectively according to hash algorithm;
In the case of the cryptographic Hash of the backup file and the cryptographic Hash identical of the difference file, the backup text is determined Part is identical with file with the difference;
In the case where the cryptographic Hash of the backup file is differed with the difference with the cryptographic Hash of file, the backup is determined File is differed with the difference with file.
3. according to the method described in claim 1, it is characterised in that
It is described determine the backup file it is whether identical with the difference file including:
Calculate in the backup file every in the cryptographic Hash of each file and the difference file respectively according to hash algorithm The cryptographic Hash of one file;
The cryptographic Hash of each file is identical with the cryptographic Hash of corresponding file in the difference file in the backup file In the case of, determine that the backup file is identical with the difference file;
The cryptographic Hash of the cryptographic Hash of each file and corresponding file in the difference file not phase in the backup file With in the case of, determine that the backup file is differed with the difference with file.
4. according to the method in claim 2 or 3, it is characterised in that it is described by the difference be updated to file with it is described Backup file it is identical including:
The difference file is replaced with the backup file of copy.
5. method according to claim 3, it is characterised in that described to be updated to the difference and the backup with file File it is identical including:
Replace corresponding with first file in the difference file with the first file in the backup file of copy File;First file is Kazakhstan of the cryptographic Hash with corresponding file in the difference file of file in the backup file The different file of uncommon value.
6. the method according to claim 3 or 5, it is characterised in that
It is described that the cryptographic Hash of each file and difference use in the backup file are calculated according to the hash algorithm respectively The cryptographic Hash of each file includes in file:
The first Kernel call request is sent to graphics processor;First Kernel is used to indicate the graphics processor Hash calculation is carried out to each file in the backup file according to the hash algorithm;
The return value of the first Kernel is obtained from the graphics processor;The return value of first Kernel includes described The cryptographic Hash of each file in backup file;
The 2nd Kernel call request is sent to the graphics processor;2nd Kernel is used to indicate at the figure Reason device carries out Hash calculation to the difference according to the hash algorithm with each file in file;
The return value of the 2nd Kernel is obtained from the graphics processor;The return value of 2nd Kernel includes described The cryptographic Hash of each file in difference file.
7. the method according to claim 1-3 or 5 any one, it is characterised in that the recompility prototype version Source code generation update after data file and the difference resource bag after renewal include:
The data file after the source code generation renewal of the prototype version and the difference resource bag after renewal are recompilated, it is determined that Backup file in data file after the renewal and the difference in the difference resource bag after the renewal with file whether phase Together, the difference in the difference resource bag after the backup file in the data file after the renewal and the renewal with file not In the case of identical, jump to after the data file after the source code generation renewal for recompilating the prototype version and renewal Difference resource bag, up to the backup file in the data file after the renewal and the difference in the difference resource bag after the renewal Divide identical with file.
8. a kind of device for generating difference bag, including:Acquiring unit and generation unit, the acquiring unit are original for obtaining The difference resource bag of version and the difference resource bag of target version, the generation unit, for utilizing the prototype version The difference resource bag generation difference bag of difference resource bag and the target version, it is characterised in that the acquiring unit includes:Place Manage module and determining module;
The processing module, the source code for compiling prototype version generates data file and difference resource bag;The difference money Difference file is included in the bag of source, includes in the data file with the difference and to use same section compilation of source code with file Obtained backup file;
The determining module, for determining whether the backup file is identical with the difference file;
The processing module, is additionally operable to, in the case where the backup file and the difference are differed with file, recompilate Data file after the source code generation renewal of the prototype version and the difference resource bag after renewal;Or, by the difference , difference resource bag updated after identical with the backup file is updated to file;The data file is used for generation will The data mapping file that mobile device is upgraded to needed for the prototype version;
The processing module, is additionally operable in the case of the backup file and the difference file identical, by the difference Resource bag is defined as the difference resource bag of prototype version.
9. device according to claim 8, it is characterised in that
The determining module, cryptographic Hash and the difference specifically for calculating the backup file respectively according to hash algorithm With the cryptographic Hash of file;
The determining module, specifically for the cryptographic Hash in the backup file and the cryptographic Hash identical of the difference file In the case of, determine that the backup file is identical with the difference file;
The determining module, is differed specifically for the cryptographic Hash in the backup file and the difference with the cryptographic Hash of file In the case of, determine that the backup file is differed with the difference with file.
10. device according to claim 8, it is characterised in that
The determining module, specifically for calculated respectively according to hash algorithm the cryptographic Hash of each file in the backup file with And in the difference file each file cryptographic Hash;
The determining module, specifically in the backup file cryptographic Hash of each file with it is right in the difference file In the case of the cryptographic Hash identical for the file answered, determine that the backup file is identical with the difference file;
The determining module, specifically in the backup file cryptographic Hash of each file with it is right in the difference file In the case that the cryptographic Hash for the file answered is differed, determine that the backup file is differed with the difference with file.
11. the device according to claim 9 or 10, it is characterised in that
The processing module, specifically for replacing the difference file with the backup file of copy.
12. device according to claim 10, it is characterised in that
The processing module, is replaced in the difference file specifically for the first file in the backup file with copy File corresponding with first file;First file is that the cryptographic Hash of file in the backup file and the difference are used The different file of the cryptographic Hash of corresponding file in file.
13. the device according to claim 10 or 12, it is characterised in that
The determining module, the call request specifically for sending the first Kernel to graphics processor;First Kernel For indicating the graphics processor according to the hash algorithm to each file progress Hash calculation in the backup file;
The determining module, the return value specifically for obtaining the first Kernel from the graphics processor;Described first Kernel return value includes the cryptographic Hash of each file in the backup file;
The determining module, the call request specifically for sending the 2nd Kernel to the graphics processor;Described second Kernel is used to indicate that the graphics processor breathes out the difference with each file in file according to the hash algorithm It is uncommon to calculate;
The determining module, the return value specifically for obtaining the 2nd Kernel from the graphics processor;Described second Kernel return value includes the cryptographic Hash of each file in the difference file.
14. the device according to claim 8-10 or 12 any one, it is characterised in that
The determining module, the backup file for being additionally operable to determine in the data file after the renewal and the difference after the renewal Whether the difference in resource bag is identical with file;
The processing module, also for the backup file in the data file that the determining module determines after the renewal with In the case that the difference in difference resource bag after the renewal is differed with file, the recompility prototype version is jumped to Source code generation update after data file and the difference resource bag after renewal, until the renewal after data file in Backup file is identical with file with the difference in the difference resource bag after the renewal.
CN201410471851.4A 2014-09-16 2014-09-16 A kind of method and device for generating difference bag Expired - Fee Related CN104267978B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410471851.4A CN104267978B (en) 2014-09-16 2014-09-16 A kind of method and device for generating difference bag

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410471851.4A CN104267978B (en) 2014-09-16 2014-09-16 A kind of method and device for generating difference bag

Publications (2)

Publication Number Publication Date
CN104267978A CN104267978A (en) 2015-01-07
CN104267978B true CN104267978B (en) 2017-10-10

Family

ID=52159502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410471851.4A Expired - Fee Related CN104267978B (en) 2014-09-16 2014-09-16 A kind of method and device for generating difference bag

Country Status (1)

Country Link
CN (1) CN104267978B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484453B (en) * 2015-09-02 2021-04-20 中兴通讯股份有限公司 Method and device for realizing system upgrading
CN106569843A (en) * 2015-10-12 2017-04-19 青岛海信移动通信技术股份有限公司 Method and device for generating OTA central package
CN106293849B (en) * 2016-08-18 2020-01-31 华为技术有限公司 application updating method and terminal
CN106528086A (en) * 2016-10-10 2017-03-22 广州视源电子科技股份有限公司 Method and system for upgrading Android software
CN106445826A (en) * 2016-10-14 2017-02-22 深圳天珑无线科技有限公司 Preparing method and producing device of differential package
CN106686578A (en) * 2016-12-28 2017-05-17 深圳天珑无线科技有限公司 Difference package generation method and apparatus
CN109672655A (en) * 2017-10-16 2019-04-23 华为终端(东莞)有限公司 A kind of method, apparatus and system of difference upgrading
CN109298880B (en) * 2018-08-09 2022-02-18 恒生电子股份有限公司 Multi-version code generation method and device and electronic device
CN110377322A (en) * 2019-07-18 2019-10-25 上海擎感智能科技有限公司 Data processing method, system and equipment
CN112398666B (en) * 2019-08-13 2024-04-30 中兴通讯股份有限公司 Software differential upgrading method, device, equipment and storage medium
CN111881101A (en) * 2020-08-03 2020-11-03 南京创通微新通信有限公司 Double-file system synchronization method
CN112230975A (en) * 2020-09-30 2021-01-15 厦门汉印电子技术有限公司 Firmware differential upgrading method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101695162A (en) * 2009-10-22 2010-04-14 中兴通讯股份有限公司 Method and device for upgrading aerial firmware on mobile terminal
CN102081535A (en) * 2010-12-17 2011-06-01 东莞宇龙通信科技有限公司 Android-based application program upgrading method and system and application development platform
CN103123588A (en) * 2013-02-05 2013-05-29 东莞宇龙通信科技有限公司 Method and system for obtaining difference upgrade patch
CN103955363A (en) * 2014-04-08 2014-07-30 国云科技股份有限公司 Manufacturing method of program upgrade and installation package

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009146169A (en) * 2007-12-14 2009-07-02 Fujitsu Ltd Storage system, storage device, and data backup method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101695162A (en) * 2009-10-22 2010-04-14 中兴通讯股份有限公司 Method and device for upgrading aerial firmware on mobile terminal
CN102081535A (en) * 2010-12-17 2011-06-01 东莞宇龙通信科技有限公司 Android-based application program upgrading method and system and application development platform
CN103123588A (en) * 2013-02-05 2013-05-29 东莞宇龙通信科技有限公司 Method and system for obtaining difference upgrade patch
CN103955363A (en) * 2014-04-08 2014-07-30 国云科技股份有限公司 Manufacturing method of program upgrade and installation package

Also Published As

Publication number Publication date
CN104267978A (en) 2015-01-07

Similar Documents

Publication Publication Date Title
CN104267978B (en) A kind of method and device for generating difference bag
CN107025559B (en) Service processing method and device
US8972967B2 (en) Application packages using block maps
US11288055B2 (en) Model-based differencing to selectively generate and deploy images in a target computing environment
US9146759B2 (en) Assumption-based compilation
CN109542459A (en) Application program packaging method and device, computer installation and computer storage medium
CN111179086B (en) Intelligent contract virtual machine based on WebAsssemly
CN106796522A (en) System and method for updating source code file
CN102736948A (en) Method for checkpointing and restoring program state
CN105740017B (en) The upgrade method and device of cloud television system
CN112835975B (en) Method for deploying, updating and calling intelligent contracts in blockchain
CN102612023A (en) Mobile terminal and application updating method and server thereof
CN107797818A (en) Application program updating method and device
US20220100498A1 (en) Implementation of object versioning and consistency at scale
WO2019041891A1 (en) Method and device for generating upgrade package
CN110532016B (en) Version management method, version updating method and version management system
CN113961226B (en) Software development kit repairing method, terminal, server and equipment
CN114287124A (en) Configuration change control for a computing environment
CN112286565B (en) Embedded system differential upgrading method based on storage container
CN111523896A (en) Anti-attack method, device and storage medium
EP3067795A1 (en) A method for generating an embedded system derivable into a plurality of personalized embedded system
CN104375993A (en) Data processing method and device
CN113778564B (en) Method, equipment and storage medium for efficiently executing EVM intelligent contract
CN108345461B (en) Application updating method and device and computer readable storage medium
CN109697076A (en) A kind of dynamic updating method of application software resources, device and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171010