CN104267978A - Method and device for generating differential packet - Google Patents

Method and device for generating differential packet Download PDF

Info

Publication number
CN104267978A
CN104267978A CN201410471851.4A CN201410471851A CN104267978A CN 104267978 A CN104267978 A CN 104267978A CN 201410471851 A CN201410471851 A CN 201410471851A CN 104267978 A CN104267978 A CN 104267978A
Authority
CN
China
Prior art keywords
file
difference
resource bag
cryptographic hash
backup
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.)
Granted
Application number
CN201410471851.4A
Other languages
Chinese (zh)
Other versions
CN104267978B (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 method and a device for generating a differential packet, relates to the field of upgrading, and aims to reduce the probability of failure in upgrading of the differential packet of mobile equipment caused by mismatch of the differential packet caused by change of a differential resource packet of an original edition and the original edition used by the mobile equipment. The method comprises the following steps: acquiring the differential resource packet of the original edition and the differential resource packet of a target edition, and generating the differential packet by using the differential resource packet of the original edition and the differential resource packet of the target edition, wherein the step of acquiring the differential resource packet of the original edition comprises the sub-steps: compiling a source code of the original edition to generate a data file and the differential resource packet; determining whether a backup file in the data file is the same as a difference file in the differential resource packet; recompiling the data file generated and updated by the source code and the updated differential resource packet under the condition that the backup file is not the same as the difference file; or updating the difference file to be the same as the backup file to obtain the updated differential resource packet.

Description

A kind of method and device generating difference bag
Technical field
The present invention relates to software upgrading field, particularly relate to a kind of method and the device that generate difference bag.
Background technology
Mobile device supplier is when mobile device makes, and except the hardware of assembling mobile device, also need installation system software and application software within hardware, mobile device just can dispatch from the factory and sell.User is after have purchased this mobile device, and the leak that the mobile device used to solve user exists or the function improving mobile device, mobile device supplier needs to carry out upgrading in time, efficiently, accurately to system software or application software.
The software upgrading mode of mobile device usually have T (T-Flash) card upgrade (mainly for the production of with after sale), full bag upgrading and difference upgrading.Wherein, it is little that the upgrading of difference bag takies storage space with it, and expend flow few, the advantages such as updating speed is fast, are widely used in software upgrading.
In prior art, the overall process of carrying out difference upgrading is roughly divided into following steps:
Step one: generate prototype version.First according to demand source code is write, source code is compiled, generate data file and the required All Files of upgrading of prototype version, be that img form generates data mapping file by data file transition, and by the difference resource bag of the All Files packing needed for upgrading, compression generation prototype version, wherein data file comprises the All Files making T card upgrade bag, and difference resource bag comprises with data file identical sources for compiling the file obtained.
Step 2: generate T card upgrade bag according to the packing of data mapping file, with T card upgrade bag, mobile device is upgraded to prototype version;
Step 3: on the basis of source code, according to the requirement of upgrading, source code is modified and compiles, obtain the difference resource bag of target version, utilize the difference resource bag of target version and the difference resource bag of prototype version to generate difference bag, difference bag is stored to server and downloads for mobile device;
Step 4: mobile device obtains difference bag from server, upgrades to mobile device according to difference bag.
In the process of difference resource bag generating prototype version, inventor finds prior art, and there are the following problems: data file can not change after according to compilation of source code, and the file corresponding with data file comprised in difference resource bag may cause file to change in the processes such as packing, compression, such as, the length that file comprises changes, or the content that file comprises changes, or the signature change etc. of file.Data file can be caused so different from file corresponding with data file in difference resource bag, that is, data file is carried out the data mapping file after format conversion different from file corresponding with data file in difference resource bag, namely data mapping file does not mate with difference resource bag.According to data mapping file, mobile device is upgraded to prototype version if continue, and generate difference bag according to the difference resource bag of this difference resource bag and target version, so mobile device is upgrading in the process of target version according to this difference bag, the prototype version that may use due to difference bag and mobile device does not mate, and finally causes mobile device difference to be upgraded unsuccessfully.
Summary of the invention
Embodiments of the invention provide a kind of method and the device that generate difference bag, in order to reduce because the change difference bag caused and the prototype version that mobile device uses of the difference resource bag of prototype version does not mate the mobile device difference caused and to upgrade failed probability.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, embodiments provide a kind of method generating difference bag, comprise: obtain the difference resource bag of prototype version and the difference resource bag of target version, and utilize the difference resource bag of described prototype version and the difference resource bag of described target version to generate difference bag, wherein, the difference resource handbag of described acquisition prototype version is drawn together: the source code of compiling prototype version generates data file and difference resource bag; Comprise difference file in described difference resource bag, in described data file, comprise the backup file using same section compilation of source code to obtain with described difference file; Determine that whether described backup file is identical with described difference file; When described backup file is not identical with described difference file, the source code recompilating described prototype version generates the data file after upgrading and the difference resource bag after upgrading; Or, by described difference file update to identical with described backup file, obtain the difference resource bag after upgrading; Described data file is for generating the data mapping file upgraded to by mobile device needed for described prototype version; When described backup file is identical with described difference file, described difference resource bag is defined as the difference resource bag of prototype version.
Second aspect, embodiments provide a kind of device generating difference bag, comprise: acquiring unit and generation unit, described acquiring unit, for the difference resource bag of the difference resource bag and target version that obtain prototype version, described generation unit, the difference resource bag for the difference resource bag and described target version that utilize described prototype version generates difference bag, wherein, described acquiring unit comprises: processing module and determination module; Described processing module, generates data file and difference resource bag for the source code compiling prototype version; Comprise difference file in described difference resource bag, in described data file, comprise the backup file using same section compilation of source code to obtain with described difference file; Described determination module, for determining that whether described backup file is identical with described difference file; Described processing module, also for when described backup file is not identical with described difference file, the source code recompilating described prototype version generates the data file after upgrading and the difference resource bag after upgrading; Or, by described difference file update to identical with described backup file, obtain the difference resource bag after upgrading; Described data file is for generating the data mapping file upgraded to by mobile device needed for described prototype version; Described processing module, also for when described backup file is identical with described difference file, is defined as the difference resource bag of prototype version by described difference resource bag.
The embodiment of the present invention provides a kind of method and the device that generate difference bag, and the source code of compiling prototype version generates data file and difference resource bag; Determine that whether the backup file in data file is identical with the difference file in difference resource bag; When both are not identical, the source code recompilating prototype version generates the data file after upgrading and the difference resource bag after upgrading; Or, by difference file update to identical with backup file, obtain the difference resource bag after upgrading; Data file is civilian for generating the data mapping upgraded to needed for described prototype version by described mobile device.
For the first processing mode, after compile source code, need the file (difference file) that judges to need to carry out difference when making difference bag in difference resource bag whether identical with file (backup file) corresponding in data file, when both are not identical, source code is recompilated and obtains the data file after upgrading and difference resource bag, then the data mapping file made according to the data file after renewal is upgraded to mobile device, and generate difference bag according to the difference resource bag of the difference resource bag after renewal and target version, like this, relative to prior art, the probability that backup file in the data file of prototype version is not identical with difference file in difference resource bag can be reduced, then according to the data mapping file after the data file transition form of prototype version, mobile device is upgraded to prototype version to increase with the difference bag possibility that the match is successful generated according to the difference resource bag of prototype version and the difference resource bag of target version, eventually reduce the probability that the upgrading of mobile device difference is failed.
For the second processing mode, after compile source code, need the file (difference file) that judges to need to carry out difference when making difference bag in difference resource bag whether identical with file (backup file) corresponding in data file, when both are not identical, by difference file update to identical with backup file, obtain the difference resource bag after upgrading, like this, just can ensure that difference file is identical with backup file, namely ensure that difference resource bag and data file matches, further ensure the data mapping file after according to the data file transition form of prototype version mobile device to be upgraded to prototype version and mate with the difference bag generated according to the difference resource bag of prototype version and the difference resource bag of target version, eventually reduce the probability that the upgrading of mobile device difference is failed.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
A kind of schematic flow sheet generating the method for difference bag that Fig. 1 provides for the embodiment of the present invention;
The schematic diagram of a kind of difference resource bag that Fig. 2 provides for the embodiment of the present invention;
A kind of schematic flow sheet obtaining the method for the difference resource bag of prototype version that Fig. 3 provides for the embodiment of the present invention;
The schematic flow sheet of the method for the difference resource bag of the another kind acquisition prototype version that Fig. 4 provides for the embodiment of the present invention;
A kind of schematic flow sheet calculating the method for the cryptographic hash of each file in the cryptographic hash of each file in described backup file and described difference file according to described hash algorithm respectively that Fig. 5 provides for the embodiment of the present invention;
The schematic flow sheet of the method for the difference resource bag of the another kind acquisition prototype version that Fig. 6 provides for the embodiment of the present invention;
A kind of functional schematic generating the device of difference bag that Fig. 7 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide a kind of method generating difference bag, as shown in Figure 1, comprising:
101, the difference resource bag of prototype version is obtained.
It should be noted that, developer is when often issuing a redaction, and what get has the All Files (i.e. data file) making T card upgrade bag, and the All Files (i.e. difference resource bag) relevant to making difference bag.T card upgrade bag for upgrading to the mobile device on production line to engineering, or for upgrading to mobile device in after sale service; Difference resource bag is used for user and carries out the upgrading of difference bag in the process using mobile device.
It should be noted that, difference resource bag comprises to be needed to make the All Files needed for difference bag.But in difference resource bag, only some file is for difference, and another part file does not need to carry out difference.Difference resource bag ota_tmp_package.zip such as shown in Fig. 2, when making difference bag, usually all files (some application, library file, bin and so on of system) of SYSTEM, all files (ROMPaq of RECOVERY is only had, be equivalent to the gost of computer), partial document (some bluetooths, wifi parameter etc. in all files (kernel function) of BOOT, PERSIST, can select whether to upgrade) need to carry out difference, alternative document does not need to carry out difference.
Concrete, " obtaining the difference resource bag of prototype version " specific implementation that the embodiment of the present invention provides, can as shown in Figure 3, comprise:
301, the source code compiling prototype version generates data file and difference resource bag.
Wherein, in difference resource bag, comprise difference file, in data file, comprise the backup file using same section compilation of source code to obtain with difference file.Data file is for generating the data mapping file upgraded to by mobile device needed for prototype version.
Concrete, developer writes source code according to demand, and compile source code, in compilation process, obtain the data file of prototype version and the All Files made needed for difference bag, then the All Files made needed for difference bag carried out packing, sign, compress and obtain difference resource bag, and under being copied to by difference resource bag and pressing from both sides with data file same file, obtain difference resource bag.Further, also needing data file transition is img form, and namely generate data mapping file, data mapping file is in order to make T card upgrade bag.
It should be noted that, the difference file comprised in difference resource bag is exactly in the process making difference bag, needs the partial document carrying out Difference Calculation.As the partial document in all files of all files of all files of the SYSTEM in Fig. 2, RECOVERY, BOOT, PERSIST.Backup file is exactly file corresponding with the difference file in difference resource bag in data file, and such as backup file is the partial document in all files of system by name in data file, all files of recovery, all files of boot, persist; And backup file is identical with the file structure in difference file.Exemplary, in the backup file of data file, the file structure of system is identical with the file structure of the SYSTEM in difference resource bag.
Generally, the corresponding relation of difference file file and backup file file can be represented with identical name.
Concrete, mobile device go out factory also do not have installation system apply before, utilize the data mapping documenting T card upgrade bag of beginning version, mobile device is upgraded to prototype version by factory's T card upgrade bag, with the system application making the mobile device after dispatching from the factory use prototype version.Simultaneously, store the difference resource bag of prototype version, after generating new version in the future on the basis of prototype version, need the difference resource bag of the difference resource bag of new version and prototype version to do difference, obtain the mobile device of use prototype version being upgraded to the difference bag needed for redaction.Certainly (mobile device of use prototype version also can according to the data file of redaction, redaction is upgraded to by using the transporting apparatus of prototype version, but generally, user can only arrive and utilize after sale this kind of mode to upgrade to redaction by using the mobile device of prototype version, and this kind of inconvenient user of mode realizes.
It should be noted that, generate in the process of difference resource bag, need to pack to the All Files comprised in difference resource bag, compress, sign, the process such as copy, so the difference file in difference resource bag may occur different from the backup file in data file.All embodiments of the present invention are exactly to solve because the difference file in difference resource bag is different from the backup file in data file, and then mobile device after data mapping document upgrading after carrying out format conversion according to data file can not pack the difference of making according to the difference resource of prototype version and is bundled into the problem that merit upgrades.
302, determine that whether described backup file is identical with described difference file.
Concrete, determine that whether the content in backup file is identical with the content in difference file.Namely verify that in backup file, whether each file is identical with file corresponding in difference file.
It should be noted that, the binary value of random length can be mapped as the less binary value of regular length by hash algorithm, and this little binary value is called cryptographic hash.Cryptographic hash be one piece of data uniquely and extremely compact numeric representation form.The cryptographic hash of a file is unique in theory, and any change all can cause the change of cryptographic hash.So determine that whether backup file is identical with difference file by comparing backup file and the method for difference file cryptographic hash in the present embodiment.Certainly except this method, can also such as, by the method determining the additive method that two file contents are identical, byte-by-byte comparison in prior art, the present invention does not limit this.
It should be noted that, if backup file is identical with difference file, after then carrying out the data mapping document upgrading mobile device after format conversion according to data file, the difference bag coupling that the prototype version that mobile device uses just can generate with the difference resource bag of the difference resource bag and target version that utilize prototype version, so mobile device just can upgrade successfully according to this difference bag.Wherein, target version is carried in difference bag relative to the cryptographic hash of the file of upgrading in prototype version in prototype version.The prototype version of mobile device and difference bag coupling, refer to that the cryptographic hash of the file of the upgrading that difference bag carries in prototype version is identical with the cryptographic hash of the corresponding file used in mobile device.
If backup file is not identical with difference file, then need to process difference file and backup file, to ensure when difference file and backup file are identical as far as possible, just according to the described processing module after document format data conversion, also for when described backup file is identical with described difference file, described difference resource bag is defined as the difference resource bag of prototype version.
Data mapping file is upgraded to mobile device, and packs according to the difference resource of this difference resource bag and target version and make difference bag.
It should be noted that, in backup file and difference with not identical, can 303a and 303b two kinds of processing modes in steps, any one in both execution.
303a, when described backup file is not identical with described difference file, recompilate described prototype version source code generate upgrade after data file and upgrade after difference resource bag.
Concrete, source code is recompilated, obtains new data file and difference resource bag, replace original data file and difference resource bag respectively with new data file and new difference resource bag.
It should be noted that, source program is recompilated one time, new data file and difference resource bag will be generated.Although newly-generated data file is identical with the function that original data file realizes, the timestamp stored, the compilation time etc. of storage can be different, so new data file and original data file incomplete same.What use during mobile device upgrading can mate with the difference resource bag of prototype version during making difference bag according to the data mapping file of Generating Data File, must ensure that the difference resource bag of the data file that data mapping file is corresponding and prototype version carries out obtaining with when once compiling to source code.
303b, when described backup file is not identical with described difference file, by described difference file update to identical with described backup file, obtain the difference resource bag after upgrading.
Concrete, by a for the backup file copy in data file, replace the difference file in difference resource bag.Like this, just can improve the probability that backup file in data file is identical with the difference file in difference resource bag, and then also just improve the probability that the data mapping file after carrying out format conversion according to data file mates with the difference resource bag of prototype version, after by data mapping document upgrading to mobile device, the probability that the prototype version that just improve mobile device use mates with the difference bag generated according to the difference resource bag of prototype version.
It should be noted that, in most of the cases, certain the several file in backup file just backup file not identical from difference file is different with certain the several file in difference file.So do not need copy with whole backup files and replace difference file, and only need to carry out copying and replacing with file not identical in difference file by backup file.But must know before using this kind of disposal route that difference file is different from which file in backup file.
304, when described backup file is identical with described difference file, described difference resource bag is defined as the difference resource bag of prototype version.
It should be noted that, when backup file is identical with difference file, just can once compile the difference resource bag obtained and be defined as the difference resource bag of prototype version, be used for making in subsequent process the difference bag that difference is upgraded used.
102, the difference resource bag of target version is obtained.
Concrete, developer, on the basis of source code corresponding to prototype version, according to the requirement of upgrading, modifies to source code and compiles, obtaining the difference resource bag of target version.
It should be noted that, when obtaining the difference resource bag of target version, also can determine that whether the backup file in the data file of target version is identical with the difference file in the difference resource bag of target version, to ensure as much as possible to upgrade successfully when difference bag is afterwards upgraded at the mobile device of upgrading with target version.
103, the difference resource bag of described prototype version and the difference resource bag of described target version is utilized to generate difference bag.
Concrete, file corresponding with the difference file of prototype version for difference file in the difference resource bag of target version is done difference one by one, obtain the partial document in difference bag, and then the remaining partial document obtained according to the difference resource bag of target version in difference bag, finally generate the difference bag from prototype version to target version.
The embodiment of the present invention provides a kind of method generating difference bag, and the source code of compiling prototype version generates data file and difference resource bag; Determine that whether the backup file in data file is identical with the difference file in difference resource bag; When both are not identical, the source code recompilating prototype version generates the data file after upgrading and the difference resource bag after upgrading; Or, by difference file update to identical with backup file, obtain the difference resource bag after upgrading; Data file is civilian for generating the data mapping upgraded to needed for described prototype version by described mobile device, obtains the difference resource bag of target version, and utilizes the difference resource bag of described prototype version and the difference resource bag of target version to generate difference bag.For the first processing mode, after compile source code, need the file (difference file) that judges to need to carry out difference when making difference bag in difference resource bag whether identical with file (backup file) corresponding in data file, when both are not identical, source code is recompilated and obtains the data file after upgrading and difference resource bag, then the data mapping file made according to the data file after renewal is upgraded to mobile device, and generate difference bag according to the difference resource bag of the difference resource bag after renewal and target version, like this, relative to prior art, the probability that backup file in the data file of prototype version is not identical with difference file in difference resource bag can be reduced, then according to the data mapping file after the data file transition form of prototype version, mobile device is upgraded to prototype version to increase with the difference bag possibility that the match is successful generated according to the difference resource bag of prototype version and the difference resource bag of target version, eventually reduce the probability that the upgrading of mobile device difference is failed.For the second processing mode, after compile source code, need the file (difference file) that judges to need to carry out difference when making difference bag in difference resource bag whether identical with file (backup file) corresponding in data file, when both are not identical, by difference file update to identical with backup file, obtain the difference resource bag after upgrading, like this, just can ensure that difference file is identical with backup file, namely ensure that difference resource bag and data file matches, further ensure the data mapping file after according to the data file transition form of prototype version mobile device to be upgraded to prototype version and mate with the difference bag generated according to the difference resource bag of prototype version and the difference resource bag of target version, eventually reduce the probability that the upgrading of mobile device difference is failed.
Further, as shown in Figure 4, step 101 " obtaining the difference resource bag of prototype version " can also be realized by following steps:
401, the source code compiling prototype version generates data file and difference resource bag.
Concrete, can refer step 301, do not repeat them here.
402, determine that whether described backup file is identical with described difference file.
Concrete, step 402 can according to the following two kinds implementation:
The first, calculate the cryptographic hash of described backup file and the cryptographic hash of described difference file respectively according to hash algorithm; When the cryptographic hash of described backup file is identical with the cryptographic hash of described difference file, determine that described backup file is identical with described difference file; When the cryptographic hash of described backup file is not identical with the cryptographic hash of described difference file, determine that described backup file is not identical with described difference file.
Concrete, by the input value of backup file as hash algorithm, generate a cryptographic hash; And using the input value of difference file as identical hash algorithm, generate another cryptographic hash.Relatively whether two cryptographic hash are identical.If two cryptographic hash are identical, then show that backup file is identical with difference file content; If two cryptographic hash are not identical, then show that backup file is not identical with difference file content.
The second, calculates the cryptographic hash of each file in the cryptographic hash of each file in described backup file and described difference file respectively according to described hash algorithm; The cryptographic hash of each file is identical with the cryptographic hash of file corresponding in described difference file in described backup file, determine that described backup file is identical with described difference file; The cryptographic hash of each file is not identical with the cryptographic hash of file corresponding in described difference file in described backup file, determine that described backup file is not identical with described difference file.
Concrete, using each file in backup file as the input of hash algorithm, obtain the cryptographic hash of each file in backup file; Using each file in difference file as the input of hash algorithm, obtain the cryptographic hash of each file in difference file.Whether the cryptographic hash comparing a file in backup file is successively identical with the cryptographic hash of respective file in difference file, the cryptographic hash of cryptographic hash and the file corresponding in difference file of each file is all identical in backup file, determine that backup file is identical with difference file; In backup file cryptographic hash and the cryptographic hash of file corresponding in difference file of each file have at least one not identical, determine that backup file is not identical with difference file.
It should be noted that, no matter be first method, or second method, it can be MD (Message Digest Algorithm that Hash in all embodiments of the present invention is calculated, informative abstract) 5 algorithms or can be MD2 algorithm or can be SHA (Secure Hash Algorithm (Secure Hash Algorithm), or can also be other hash algorithms of the prior art, the present invention limit this.
Further, because when calculating the cryptographic hash of each file in All Files in backup file, the process and the result that calculate cryptographic hash between different file are separate, so file different in backup file can be carried out the concurrent process process of Hash calculation.In like manner, also file different in difference file can be carried out the concurrent process process of Hash calculation.
In prior art, a kind of CUDA of current popular (Compute Unified Device Architecture, unified calculation equipment framework) model.The basic thought of CUDA is exactly pending task division become serial enforcement division to divide to process respectively with executed in parallel portion.CPU (Central Processing Unit, central processing unit) and graphic process unit (Graphic Processing Unit, GPU) collaborative work in CUDA programming model.CPU sends the call request of Kernel (kernel function) to graphic process unit, and graphic process unit carries out parallel computation according to the call request of Kernel function to parallel data.
Concurrency when make use of each file cryptographic hash of calculating, and after CUDA programming model, further, as shown in Figure 5, " calculating the cryptographic hash of each file in the cryptographic hash of each file in described backup file and described difference file according to described hash algorithm respectively " in the second implementation of step 402 specifically can also be realized by following steps:
501, CPU sends the call request of a Kernel to graphic process unit, and graphic process unit receives the call request of the first kernel function Kernel.
Wherein, a Kernel is used to indicate described graphic process unit and carries out Hash calculation according to described hash algorithm to each file in described backup file.
It should be noted that, carry the memory address of backup file in a Kernel call request, graphic process unit is carried out searching can obtain backup file according to this address.
502, graphic process unit calls backup file according to a described Kernel, and carries out to each file in described system file the cryptographic hash that Hash calculation obtains each file in described system file according to hash algorithm.
Concrete, graphic process unit, after obtaining backup file, utilizes concurrency when calculating each file cryptographic hash, carries out parallel Hash calculation, obtain the cryptographic hash of each file according to hash algorithm to each file in backup file.
503, graphic process unit sends the rreturn value of a described Kernel to CPU (CPU to obtain the rreturn value of a described Kernel from described graphic process unit.
Wherein, the rreturn value of a described Kernel comprises the cryptographic hash of each file in described backup file.
Concrete, the cryptographic hash of each file in backup file, using the rreturn value of the cryptographic hash of each file in backup file as a Kernel, is fed back to CPU by graphic process unit.
504, CPU sends the call request of the 2nd Kernel to graphic process unit, and graphic process unit receives the call request of the 2nd Kernel.
Wherein, described 2nd Kernel is used to indicate described graphic process unit and carries out Hash calculation according to described hash algorithm to each file in described difference file.
It should be noted that, carry the memory address of difference file in the 2nd Kernel call request, graphic process unit obtains difference file according to this address search, then carries out Hash calculation to each file in difference file.
505, graphic process unit calls difference file according to described 2nd Kernel, and carries out Hash calculation according to described hash algorithm to each file in difference file, obtains the cryptographic hash of each file in difference file.
Concrete, graphic process unit, after obtaining difference file, utilizes concurrency when calculating each file cryptographic hash, carries out parallel Hash calculation, obtain the cryptographic hash of each file according to hash algorithm to each file in difference file.
506, graphic process unit sends the rreturn value of described 2nd Kernel to described CPU, and CPU obtains the rreturn value of described 2nd Kernel from described graphic process unit.
Wherein, the rreturn value of described 2nd Kernel comprises the cryptographic hash of each file in described difference file.
Concrete, the cryptographic hash of each file, using the rreturn value of the cryptographic hash of each file in difference file as the 2nd Kernel, is fed back to CPU by graphic process unit.
It should be noted that, first can perform 501) 503, then perform 504) 506; Also first 504 can be performed) 506, then perform 501) 503.The present embodiment first performs 501) 503, then perform 504) 506 for example.
403, when described backup file is not identical with described difference file, jump to the source code compiling described prototype version and generate the data file after upgrading and the difference resource bag after upgrading, and continue to determine that whether backup file identical with difference file, until both are identical.
It should be noted that, because the difference resource bag after the source code recompilating described prototype version generates the data file after upgrading and upgrades is not necessarily identical, so can step 401 be jumped to, after recompility, continue to determine the data file after upgrading and the difference resource bag after upgrading, until the difference resource bag after determining the data file after renewal and upgrading is identical, the difference resource bag obtained for the last time is defined as the difference resource bag of prototype version, and the data mapping file used when mobile device being upgraded to prototype version is the data file by obtaining for the last time to be obtained.
Concrete, the source code recompilating described prototype version generates the process of the data file after upgrading and the difference resource bag after upgrading, and can (no longer illustrate at this by refer step 303a.
404, when described backup file is identical with described difference file, described difference resource bag is defined as the difference resource bag of prototype version.
Concrete, can refer step 304, do not repeat them here.
Present embodiments provide a kind of method obtaining the difference resource bag of prototype version, the source code of compiling prototype version generates data file and difference resource bag, determine that whether described backup file is identical with described difference file, when backup file and difference file are not identical, jump to the source code recompilating prototype version and generate the data file after upgrading and the difference resource bag after upgrading, determine that whether backup file is identical with difference file, until both are identical.The file (difference file) needing when making difference bag in the present embodiment in difference resource bag to carry out difference is not identical with file (backup file) corresponding in data file, source code is recompilated and obtains the data file after upgrading and difference resource bag, and whether redefine backup file identical with difference file, until both are identical.Like this, relative to prior art, can ensure that in the data file of the final prototype version obtained, backup file is identical with difference file in difference resource bag, then according to the data mapping file after the data file transition form of prototype version, mobile device is upgraded to prototype version to increase with the difference bag possibility that the match is successful generated according to the difference resource bag of prototype version and the difference resource bag of target version, eventually reduce the probability that the upgrading of mobile device difference is failed.
Simultaneously, if in calculating backup file in the cryptographic hash of each file and difference file during the cryptographic hash of each file, utilize the feature of graphic process unit high Floating-point Computation ability and executed in parallel, the computation process of the cryptographic hash of each file in the cryptographic hash of each file in backup file and difference file is dispensed to graphic process unit, thus improves counting yield.
On Fig. 4 basis, when may there is some problem, the backup file of recompility is incomplete same with difference file all the time, so further, as shown in Figure 6, step 101 " obtaining the difference resource bag of prototype version " can also be realized by following steps:
601, setting compiling number of times thresholding.
Concrete, before to compilation of source code, set compiling number of times.When compiling number of times reaches compiling number of times thresholding, just illustrate that recompility can't resolve the data file problem different from difference resource bag, so just direct that difference file update is extremely identical with described backup file; When compiling number of times and not reaching compiling number of times, still source code is recompilated and obtain new backup file and difference file.
602, the source code compiling prototype version generates data file and difference resource bag, and compiling number of times is added one.
Wherein, the initialization value compiling number of times is zero.
Concrete, the source code of compiling prototype version generates the process of data file and difference resource bag, can refer step 301, does not repeat them here.
603, determine that whether described backup file is identical with described difference file.
Concrete, can refer step 302, do not repeat them here.
It should be noted that, when backup file and difference file are not identical, perform step 605) 607; When backup file is identical with difference file, perform step 604.
604, when described backup file is identical with described difference file, described difference resource bag is defined as the difference resource bag of prototype version.
Concrete, can refer step 304, do not repeat them here.
605, when backup file is not identical with described difference file, determine whether compiling number of times reaches compiling number of times thresholding.
606, when compiling number of times and not reaching compiling number of times thresholding, jump to step 602, the source code recompilating described prototype version generates the data file after upgrading and the difference resource bag after upgrading.
607, when compiling number of times and reaching compiling number of times thresholding, by difference file update to identical with described backup file, the difference resource bag after upgrading is obtained.
Concrete, by a for the backup file copy in data file, replace the difference file in difference resource bag.Like this, just can improve the probability that backup file in data file is identical with the difference file in difference resource bag, and then also just improve the probability that the data mapping file after carrying out format conversion according to data file mates with the difference resource bag of prototype version, after by data mapping document upgrading to mobile device, the probability that the prototype version that just improve mobile device use mates with the difference bag generated according to the difference resource bag of prototype version.
It should be noted that, if whether step 603 determines described backup file identical with described difference file, use the second way in step 402, namely the method whether cryptographic hash of respective file in the cryptographic hash of each file in backup file and described difference file is identical is determined, so now, the realization of step 607 specifically can replace file corresponding with described first file in described difference file with the first file in the described backup file of copy.Wherein, described first file is the file that the cryptographic hash of described backup file file is different from the cryptographic hash of file corresponding in described difference file.
It should be noted that, when determining that in backup file file is not identical with the cryptographic hash of file corresponding in difference file, replacing the file of the correspondence in difference file with this file in backup file.
A kind of method obtaining the difference resource bag of prototype version of the embodiment of the present invention, setting compiling number of times thresholding; The source code of compiling prototype version generates data file and difference resource bag, and compiling number of times is added one; Determine that whether described backup file is identical with described difference file; When backup file is not identical with described difference file, determine whether compiling number of times reaches compiling number of times thresholding; When compiling number of times and not reaching compiling number of times thresholding, the source code recompilating described prototype version generates the data file after upgrading and the difference resource bag after upgrading; When compiling number of times and reaching compiling number of times thresholding, by difference file update to identical with described backup file, obtain the difference resource bag after upgrading.Like this, relative to prior art, can ensure that in the data file of the final prototype version obtained, backup file is identical with difference file in difference resource bag, then according to the data mapping file after the data file transition form of prototype version, mobile device is upgraded to prototype version to increase with the difference bag possibility that the match is successful generated according to the difference resource bag of prototype version and the difference resource bag of target version, eventually reduce the probability that the upgrading of mobile device difference is failed.
As shown in Figure 7, its a kind of functional schematic generating the device of difference bag provided for the embodiment of the present invention.Shown in figure 7, this device comprises: acquiring unit 701 and generation unit 702.
Described acquiring unit 701, for the difference resource bag of the difference resource bag and target version that obtain prototype version.
Described generation unit 702, the difference resource bag for the difference resource bag and described target version that utilize described prototype version generates difference bag.
Concrete, described acquiring unit 701 comprises: processing module 7011 and determination module 7012.
Described processing module 7011, generates data file and difference resource bag for the source code compiling prototype version; Comprise difference file in described difference resource bag, in described data file, comprise the backup file using same section compilation of source code to obtain with described difference file.
Described determination module 7012, for determining that whether described backup file is identical with described difference file.
Concrete, described determination module 7012, specifically for the cryptographic hash of the cryptographic hash and described difference file that calculate described backup file according to hash algorithm respectively;
Described determination module 7012, specifically for when the cryptographic hash of described backup file is identical with the cryptographic hash of described difference file, determines that described backup file is identical with described difference file;
Described determination module 7012, specifically for when the cryptographic hash of described backup file is not identical with the cryptographic hash of described difference file, determines that described backup file is not identical with described difference file.
Concrete, described determination module 7012, specifically for calculating the cryptographic hash of each file in the cryptographic hash of each file in described backup file and described difference file respectively according to described hash algorithm;
Described determination module 7012, the cryptographic hash specifically for each file in described backup file is identical with the cryptographic hash of file corresponding in described difference file, determines that described backup file is identical with described difference file;
Described determination module 7012, the cryptographic hash specifically for each file in described backup file is not identical with the cryptographic hash of file corresponding in described difference file, determines that described backup file is not identical with described difference file.
Further, described determination module 7012, specifically for sending the call request of the first kernel function Kernel to graphic process unit; A described Kernel is used to indicate described graphic process unit and carries out Hash calculation according to described hash algorithm to each file in described backup file;
Described determination module 7012, specifically for obtaining the rreturn value of a described Kernel from described graphic process unit; The rreturn value of a described Kernel comprises the cryptographic hash of each file in described backup file;
Described determination module 7012, specifically for sending the call request of the 2nd Kernel to described graphic process unit; Described 2nd Kernel is used to indicate described graphic process unit and carries out Hash calculation according to described hash algorithm to each file in described difference file;
Described determination module 7012, specifically for obtaining the rreturn value of described 2nd Kernel from described graphic process unit; The rreturn value of described 2nd Kernel comprises the cryptographic hash of each file in described difference file.
Described processing module 7011, also for when described backup file is not identical with described difference file, the source code recompilating described prototype version generates the data file after upgrading and the difference resource bag after upgrading; Or, by described difference file update to identical with described backup file, obtain the difference resource bag after upgrading; Described data file is for generating the data mapping file upgraded to by described mobile device needed for described prototype version.
Concrete, described processing module 7011, specifically for replacing described difference file with the described backup file of copy.
Concrete, described processing module 7011, replaces file corresponding with described first file in described difference file specifically for the first file in the described backup file with copy; Described first file is the file that the cryptographic hash of described backup file file is different from the cryptographic hash of file corresponding in described difference file.
Further, whether described determination module 7012 is also identical with the difference file in the difference resource bag after described renewal for determining the backup file in the data file after described renewal;
Described processing module 7011, also identical with the difference file in the difference resource bag after described renewal for the backup file in the data file after described determination module 7012 determines described renewal, jump to the source code recompilating described prototype version and generate the data file after upgrading and the difference resource bag after upgrading, until the backup file in data file after described renewal is identical with the difference file in the difference resource bag after described renewal.
Described processing module 7011, also for when described backup file is identical with described difference file, is defined as the difference resource bag of prototype version by described difference resource bag.
The embodiment of the present invention provides a kind of device generating difference bag, and the source code of compiling prototype version generates data file and difference resource bag; Determine that whether the backup file in data file is identical with the difference file in difference resource bag; When both are not identical, the source code recompilating prototype version generates the data file after upgrading and the difference resource bag after upgrading; Or, by difference file update to identical with backup file, obtain the difference resource bag after upgrading; Data file is civilian for generating the data mapping upgraded to needed for described prototype version by described mobile device.
For the first processing mode, after compile source code, need the file (difference file) that judges to need to carry out difference when making difference bag in difference resource bag whether identical with file (backup file) corresponding in data file, when both are not identical, source code is recompilated and obtains the data file after upgrading and difference resource bag, then the data mapping file made according to the data file after renewal is upgraded to mobile device, and generate difference bag according to the difference resource bag of the difference resource bag after renewal and target version, like this, relative to prior art, the probability that backup file in the data file of prototype version is not identical with difference file in difference resource bag can be reduced, then according to the data mapping file after the data file transition form of prototype version, mobile device is upgraded to prototype version to increase with the difference bag possibility that the match is successful generated according to the difference resource bag of prototype version and the difference resource bag of target version, eventually reduce the probability that the upgrading of mobile device difference is failed.
For the second processing mode, after compile source code, need the file (difference file) that judges to need to carry out difference when making difference bag in difference resource bag whether identical with file (backup file) corresponding in data file, when both are not identical, by difference file update to identical with backup file, obtain the difference resource bag after upgrading, like this, just can ensure that difference file is identical with backup file, namely ensure that difference resource bag and data file matches, further ensure the data mapping file after according to the data file transition form of prototype version mobile device to be upgraded to prototype version and mate with the difference bag generated according to the difference resource bag of prototype version and the difference resource bag of target version, eventually reduce the probability that the upgrading of mobile device difference is failed.
In several embodiments that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit comprises, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that hardware also can be adopted to add SFU software functional unit realizes.
The above-mentioned integrated unit realized with the form of SFU software functional unit, can be stored in a computer read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the part steps of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (Read) Only Memory, be called for short ROM), random access memory (Random Access Memory, be called for short RAM), magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (14)

1. one kind generates the method for difference bag, comprise: obtain the difference resource bag of prototype version and the difference resource bag of target version, and utilize the difference resource bag of described prototype version and the difference resource bag of described target version to generate difference bag, it is characterized in that, the difference resource handbag of described acquisition prototype version is drawn together:
The source code of compiling prototype version generates data file and difference resource bag; Comprise difference file in described difference resource bag, in described data file, comprise the backup file using same section compilation of source code to obtain with described difference file;
Determine that whether described backup file is identical with described difference file;
When described backup file is not identical with described difference file, the source code recompilating described prototype version generates the data file after upgrading and the difference resource bag after upgrading; Or, by described difference file update to identical with described backup file, obtain the difference resource bag after upgrading; Described data file is for generating the data mapping file upgraded to by mobile device needed for described prototype version;
When described backup file is identical with described difference file, described difference resource bag is defined as the difference resource bag of prototype version.
2. method according to claim 1, is characterized in that,
Describedly determine that whether described backup file is identical with described difference file and comprise:
The cryptographic hash of described backup file and the cryptographic hash of described difference file is calculated respectively according to hash algorithm;
When the cryptographic hash of described backup file is identical with the cryptographic hash of described difference file, determine that described backup file is identical with described difference file;
When the cryptographic hash of described backup file is not identical with the cryptographic hash of described difference file, determine that described backup file is not identical with described difference file.
3. method according to claim 1, is characterized in that,
Describedly determine that whether described backup file is identical with described difference file and comprise:
The cryptographic hash of each file in the cryptographic hash of each file in described backup file and described difference file is calculated respectively according to described hash algorithm;
The cryptographic hash of each file is identical with the cryptographic hash of file corresponding in described difference file in described backup file, determine that described backup file is identical with described difference file;
The cryptographic hash of each file is not identical with the cryptographic hash of file corresponding in described difference file in described backup file, determine that described backup file is not identical with described difference file.
4. according to the method in claim 2 or 3, it is characterized in that, described described difference file update to be comprised to identical with described backup file:
Described difference file is replaced with the described backup file of copy.
5. method according to claim 3, is characterized in that, is describedly comprised to identical with described backup file by described difference file update:
File corresponding with described first file in described difference file is replaced with the first file in the described backup file of copy; Described first file is the file that the cryptographic hash of described backup file file is different from the cryptographic hash of file corresponding in described difference file.
6. the method according to claim 3 or 5, is characterized in that,
The described cryptographic hash calculating each file in the cryptographic hash of each file in described backup file and described difference file respectively according to described hash algorithm comprises:
The call request of the first kernel function Kernel is sent to graphic process unit; A described Kernel is used to indicate described graphic process unit and carries out Hash calculation according to described hash algorithm to each file in described backup file;
The rreturn value of a described Kernel is obtained from described graphic process unit; The rreturn value of a described Kernel comprises the cryptographic hash of each file in described backup file;
The call request of the 2nd Kernel is sent to described graphic process unit; Described 2nd Kernel is used to indicate described graphic process unit and carries out Hash calculation according to described hash algorithm to each file in described difference file;
The rreturn value of described 2nd Kernel is obtained from described graphic process unit; The rreturn value of described 2nd Kernel comprises the cryptographic hash of each file in described difference file.
7. according to claim 1) method described in 6 any one, it is characterized in that, the source code of the described prototype version of described recompility generates the data file after upgrading and the difference resource handbag after upgrading is drawn together:
The source code recompilating described prototype version generates the data file after upgrading and the difference resource bag after upgrading, determine that whether the backup file in the data file after described renewal is identical with the difference file in the difference resource bag after described renewal, backup file in data file after described renewal is not identical with the difference file in the difference resource bag after described renewal, jump to the source code recompilating described prototype version and generate the data file after upgrading and the difference resource bag after upgrading, until the backup file in data file after described renewal is identical with the difference file in the difference resource bag after described renewal.
8. one kind generates the device of difference bag, comprise: acquiring unit and generation unit, described acquiring unit, for the difference resource bag of the difference resource bag and target version that obtain prototype version, described generation unit, difference resource bag for the difference resource bag and described target version that utilize described prototype version generates difference bag, and it is characterized in that, described acquiring unit comprises: processing module and determination module;
Described processing module, generates data file and difference resource bag for the source code compiling prototype version; Comprise difference file in described difference resource bag, in described data file, comprise the backup file using same section compilation of source code to obtain with described difference file;
Described determination module, for determining that whether described backup file is identical with described difference file;
Described processing module, also for when described backup file is not identical with described difference file, the source code recompilating described prototype version generates the data file after upgrading and the difference resource bag after upgrading; Or, by described difference file update to identical with described backup file, obtain the difference resource bag after upgrading; Described data file is for generating the data mapping file upgraded to by mobile device needed for described prototype version;
Described processing module, also for when described backup file is identical with described difference file, is defined as the difference resource bag of prototype version by described difference resource bag.
9. device according to claim 8, is characterized in that,
Described determination module, specifically for the cryptographic hash of the cryptographic hash and described difference file that calculate described backup file according to hash algorithm respectively;
Described determination module, specifically for when the cryptographic hash of described backup file is identical with the cryptographic hash of described difference file, determines that described backup file is identical with described difference file;
Described determination module, specifically for when the cryptographic hash of described backup file is not identical with the cryptographic hash of described difference file, determines that described backup file is not identical with described difference file.
10. device according to claim 8, is characterized in that,
Described determination module, specifically for calculating the cryptographic hash of each file in the cryptographic hash of each file in described backup file and described difference file respectively according to described hash algorithm;
Described determination module, the cryptographic hash specifically for each file in described backup file is identical with the cryptographic hash of file corresponding in described difference file, determines that described backup file is identical with described difference file;
Described determination module, the cryptographic hash specifically for each file in described backup file is not identical with the cryptographic hash of file corresponding in described difference file, determines that described backup file is not identical with described difference file.
11. devices according to claim 9 or 10, is characterized in that,
Described processing module, specifically for replacing described difference file with the described backup file of copy.
12. devices according to claim 10, is characterized in that,
Described processing module, replaces file corresponding with described first file in described difference file specifically for the first file in the described backup file with copy; Described first file is the file that the cryptographic hash of described backup file file is different from the cryptographic hash of file corresponding in described difference file.
13. devices according to claim 10 or 12, is characterized in that,
Described determination module, specifically for sending the call request of the first kernel function Kernel to graphic process unit; A described Kernel is used to indicate described graphic process unit and carries out Hash calculation according to described hash algorithm to each file in described backup file;
Described determination module, specifically for obtaining the rreturn value of a described Kernel from described graphic process unit; The rreturn value of a described Kernel comprises the cryptographic hash of each file in described backup file;
Described determination module, specifically for sending the call request of the 2nd Kernel to described graphic process unit; Described 2nd Kernel is used to indicate described graphic process unit and carries out Hash calculation according to described hash algorithm to each file in described difference file;
Described determination module, specifically for obtaining the rreturn value of described 2nd Kernel from described graphic process unit; The rreturn value of described 2nd Kernel comprises the cryptographic hash of each file in described difference file.
14. according to Claim 8) device described in 13 any one, it is characterized in that,
Whether described determination module is also identical with the difference file in the difference resource bag after described renewal for determining the backup file in the data file after described renewal;
Described processing module, when also having not identical with the difference file in the difference resource bag after described renewal for the backup file in the data file after described determination module determines described renewal, jump to the source code recompilating described prototype version and generate the data file after upgrading and the difference resource bag after upgrading, until the backup file in data file after described renewal is identical with the difference file in the difference resource bag after described 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 true CN104267978A (en) 2015-01-07
CN104267978B 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)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293849A (en) * 2016-08-18 2017-01-04 华为技术有限公司 A kind of application update method and terminal
CN106445826A (en) * 2016-10-14 2017-02-22 深圳天珑无线科技有限公司 Preparing method and producing device of differential package
WO2017036228A1 (en) * 2015-09-02 2017-03-09 中兴通讯股份有限公司 Method and apparatus for implementing system upgrading
CN106528086A (en) * 2016-10-10 2017-03-22 广州视源电子科技股份有限公司 Method and system for upgrading Android software
CN106569843A (en) * 2015-10-12 2017-04-19 青岛海信移动通信技术股份有限公司 Method and device for generating OTA central package
CN106686578A (en) * 2016-12-28 2017-05-17 深圳天珑无线科技有限公司 Difference package generation method and apparatus
CN109298880A (en) * 2018-08-09 2019-02-01 恒生电子股份有限公司 Multi version code generating method, equipment and electronic equipment
CN109672655A (en) * 2017-10-16 2019-04-23 华为终端(东莞)有限公司 A kind of method, apparatus and system of difference upgrading
CN110377322A (en) * 2019-07-18 2019-10-25 上海擎感智能科技有限公司 Data processing method, system and equipment
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
CN112398666A (en) * 2019-08-13 2021-02-23 中兴通讯股份有限公司 Software differential upgrading method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090158080A1 (en) * 2007-12-14 2009-06-18 Fujitsu Limited Storage device and data backup method
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090158080A1 (en) * 2007-12-14 2009-06-18 Fujitsu Limited Storage device and data backup method
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

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017036228A1 (en) * 2015-09-02 2017-03-09 中兴通讯股份有限公司 Method and apparatus for implementing system upgrading
CN106569843A (en) * 2015-10-12 2017-04-19 青岛海信移动通信技术股份有限公司 Method and device for generating OTA central package
CN106293849A (en) * 2016-08-18 2017-01-04 华为技术有限公司 A kind of application update method and terminal
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
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
CN109298880A (en) * 2018-08-09 2019-02-01 恒生电子股份有限公司 Multi version code generating method, equipment and electronic equipment
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
CN112398666A (en) * 2019-08-13 2021-02-23 中兴通讯股份有限公司 Software differential upgrading method, device, equipment and storage medium
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

Also Published As

Publication number Publication date
CN104267978B (en) 2017-10-10

Similar Documents

Publication Publication Date Title
CN104267978A (en) Method and device for generating differential packet
CN111367510B (en) Android function module development method and device
US20140033188A1 (en) System updates from cloud blob storage using vhd differentials
CN105511911A (en) System firmware upgrade package generation method and device
CN103645910A (en) Methods for updating applications
CN109542459A (en) Application program packaging method and device, computer installation and computer storage medium
CN103473067A (en) Embedded Linux partitioning and data recovery method, embedded Linux partitioning and data recovery system and system development method
US20210109729A1 (en) General machine learning model, and model file generation and parsing method
CN103197942A (en) Patch generation method, patching method and device
CN109032631A (en) Application program service packs acquisition methods, device, computer equipment and storage medium
CN111083214A (en) Method, device, client, server and system for updating application software
CN112764753A (en) Project deployment method and device, electronic equipment and storage medium
CN111162953A (en) Data processing method, system upgrading method and server
CN111104158A (en) Software packaging method and device, computer equipment and storage medium
CN114090013A (en) Method and device for determining change set of executable code file
CN112433747A (en) Differential upgrading method and system suitable for Software Development Kit (SDK)
CN103761107A (en) Software package customizing device and method
CN114706564A (en) Software package manufacturing method and device, electronic equipment and storage medium
WO2019077607A1 (en) System and method for managing program memory on a storage device
US9720669B2 (en) Deployment of software across an enterprise system
CN113961226A (en) Software development kit repairing method, terminal, server and equipment
CN104281471A (en) Multi-version software OTA (on the air) updating method
CN112286565B (en) Embedded system differential upgrading method based on storage container
CN105700900A (en) Method and device for optimizing wireless local area network function
EP3067795A1 (en) A method for generating an embedded system derivable into a plurality of personalized embedded system

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