WO2014101451A1 - 增量升级方法、应用该方法装置及存储介质 - Google Patents

增量升级方法、应用该方法装置及存储介质 Download PDF

Info

Publication number
WO2014101451A1
WO2014101451A1 PCT/CN2013/082456 CN2013082456W WO2014101451A1 WO 2014101451 A1 WO2014101451 A1 WO 2014101451A1 CN 2013082456 W CN2013082456 W CN 2013082456W WO 2014101451 A1 WO2014101451 A1 WO 2014101451A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
upgrade package
compressed file
block data
terminal
Prior art date
Application number
PCT/CN2013/082456
Other languages
English (en)
French (fr)
Inventor
梁捷
俞永福
何小鹏
朱顺炎
黄浩
许炜鑫
付方助
Original Assignee
广州市动景计算机科技有限公司
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 广州市动景计算机科技有限公司 filed Critical 广州市动景计算机科技有限公司
Priority to US14/653,704 priority Critical patent/US10031744B2/en
Publication of WO2014101451A1 publication Critical patent/WO2014101451A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • G06F16/1824Distributed file systems implemented using Network-attached Storage [NAS] architecture
    • G06F16/183Provision of network file services by network file servers, e.g. by using NFS, CIFS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC

Definitions

  • the present invention relates to the field of data transmission processing technologies, and more particularly to an incremental upgrade method, an apparatus for applying the method, and a storage medium. Background technique
  • Version upgrade refers to the improvement of vulnerabilities in the old version of the operating system or software, or the addition of new application functions to the software to make the software more complete and easy to use.
  • the terminal upgrades the version of the old version file, it needs to obtain the new version of the data information from the server.
  • the installation package file of the old version of the terminal is old.apk, and its size is 5M.
  • the new installation package file that needs to be obtained is new.apk, and its size is 6M.
  • an object of the present invention is to provide an incremental upgrade method, an apparatus for applying the method, and a corresponding storage medium, so as to reduce the amount of data downloaded by the terminal from the server during the terminal file version upgrade process, and reduce the occupation of bandwidth resources.
  • a method for incrementally upgrading a terminal side including: sending, to a server, a request for downloading an incremental upgrade package corresponding to an old version file local to the terminal; and corresponding to the old version file according to the downloading
  • the request for the incremental upgrade package downloads the incremental upgrade package from the server, wherein the incremental upgrade package includes the unmatched block data obtained by comparing the first compressed file with the second compressed file and the start and end of the unmatched block data.
  • Information where the second compressed file
  • the compressed file of the old version file is the compressed file of the old version file and the new version file;
  • a method for incrementally upgrading a server side including: splicing an old version file with a new version file, compressing, obtaining a first compressed file, and compressing the old version file Second compressed file;
  • a method for incrementally upgrading a server side including: receiving, by a terminal, a request for downloading an incremental upgrade package corresponding to an old version file local to the terminal, where the incremental upgrade is included The version information of the old version file corresponding to the package;
  • Compressing the old version file with the new version file compressing, obtaining a first compressed file, and compressing the old version file to obtain a second compressed file
  • the server generates the incremental upgrade package according to the unmatched block data and the start and end information of the unmatched block data
  • a terminal including:
  • An upgrade package requesting unit configured to send, to the server, a request for downloading an incremental upgrade package corresponding to an old version file of the terminal locality
  • An upgrade package receiving unit configured to receive the incremental upgrade package, where the incremental upgrade package includes a mismatched block data obtained by comparing the first compressed file with the second compressed file, and a start and end of the unmatched block data.
  • Information wherein the second compressed file is a compressed file of the old version file, and the first compressed file is a compressed file after the old version file and the new version file are spliced;
  • a data combination unit configured to splicing the unmatched block data and the local second compressed file according to the start and end information of the unmatched block data in the incremental upgrade package to generate a spliced compressed file
  • the decompression unit is used to decompress the spliced compressed file to obtain a new version file.
  • a server including:
  • a compression unit configured to splicing the old version file with the new version file, compressing, obtaining the first compressed file, and compressing the old version file to obtain the second compressed file;
  • a comparison unit configured to compare the first compressed file and the second compressed file to obtain start and stop information of the unmatched block data and the unmatched block data
  • An upgrade package generating unit configured to generate an incremental upgrade package according to the unmatched block data and the start information of the unmatched block data
  • a first request receiving unit configured to receive, by the terminal, a request for downloading an incremental upgrade package corresponding to an old version file local to the terminal;
  • an upgrade package sending unit configured to send the incremental upgrade package to the terminal, so that the terminal performs the unmatched block data and the local second compressed file according to the start and end information of the unmatched block data in the incremental upgrade package.
  • Splicing generating a spliced compressed file, decompressing the spliced compressed file to obtain a new version file.
  • a server comprising: a request receiving unit, configured to receive a request for downloading, by a terminal, an incremental upgrade package corresponding to an old version file local to the terminal, where The version information of the old version file corresponding to the incremental upgrade package;
  • a searching unit configured to search for an old version file and a new version file local to the server according to the version information of the old version file in the request
  • a compression unit configured to splicing the old version file and the new version file, compressing, obtaining a first compressed file, and compressing the old version file to obtain a second compressed file
  • a comparison unit configured to compare the first compressed file and the second compressed file to obtain start and stop information of the unmatched block data and the unmatched block data
  • An upgrade package generating unit configured to generate the incremental upgrade package according to the unmatched block data and the start information of the unmatched block data
  • the upgrade package sending unit is configured to send the incremental upgrade package to the terminal, so that the terminal splices the unmatched block data with the local second compressed file according to the start and end information of the unmatched block data in the incremental upgrade package.
  • a spliced compressed file is generated, and the spliced compressed file is decompressed to obtain the new version file.
  • the present invention provides a computer readable storage medium having program code executable by a processor, which, when executed, causes the processor to perform the steps of:
  • the upgrade package includes the unmatched block data obtained by comparing the first compressed file with the second compressed file and the start and stop information of the unmatched block data, wherein the second compressed file is a compressed file of the old version file.
  • the first compressed file is a compressed file after the old version file and the new version file are spliced;
  • the present invention also provides another computer readable storage medium having program code executable by a processor, which, when executed, causes the processor to perform the steps of:
  • the terminal sends the incremental upgrade package to the terminal, so that the terminal, according to the start and end information of the unmatched block data in the incremental upgrade package, the non-matching block data and the local second
  • the compressed file is spliced to generate a spliced compressed file, and the spliced compressed file is decompressed to obtain the new version file.
  • the volume upgrade package only contains the unmatched block data information between the spliced compressed file of the old and new version files and the compressed file of the old version file, and the data amount is greatly reduced compared with the complete new version file data, thereby, the terminal needs to
  • the amount of data downloaded by the server is significantly smaller than the conventional method. This method saves data traffic, reduces occupied bandwidth resources, and greatly speeds up the process of version upgrade, improves version upgrade efficiency, and saves storage medium resources of the server.
  • FIG. 1 is a flow chart of an incremental upgrade method according to an embodiment of the present invention
  • FIG. 2a is a flowchart of an incremental upgrade method according to another embodiment of the present invention.
  • 2b is a schematic diagram of generating an incremental upgrade package according to an embodiment of the present invention.
  • FIG. 3 is a flow chart of an incremental upgrade method according to still another embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a terminal for applying an incremental upgrade method according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a server for applying an incremental upgrade method according to an embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of a server applying an incremental upgrade method according to another embodiment of the present invention.
  • the same reference numerals are used throughout the drawings to refer to the detailed description
  • FIG. 1 shows a flow of an incremental upgrade method according to an embodiment of the present invention.
  • the incremental upgrade method provided by the present invention includes the following steps from the perspective of receiving the terminal side of the incremental upgrade package:
  • Step 101 The terminal sends a request to the server to download an incremental upgrade package corresponding to the old version file local to the terminal.
  • the terminal may send a request for downloading the incremental upgrade package corresponding to the old version file local to the terminal to the server; or not knowing whether the server is In the case of an incremental upgrade package, a download request is sent to the server.
  • the request includes the identifier information or related information of the incremental upgrade package required by the terminal, for example, the old version file information corresponding to the incremental upgrade package stored on the terminal, so that the server can learn the terminal to download according to the request. Incremental upgrade package.
  • Step 102 The terminal receives the incremental upgrade package from the server.
  • the incremental upgrade package includes the unmatched block data obtained by comparing the first compressed file with the second compressed file, and the start and stop information of the unmatched block data, wherein the second compressed file is a compressed file of the old version file,
  • the first compressed file is a compressed file after the old version file is spliced with the new version file.
  • the server After receiving the download request, the server can find the local server based on the information in the request. Whether the incremental upgrade package is available, if any, is sent directly to the terminal. If not, the incremental upgrade package can be generated and then sent to the terminal.
  • the process of generating the incremental upgrade package by the server may be: the server splicing the old version file with the new version file, compressing, obtaining the first compressed file, and compressing the old version file to obtain the second compressed file, and then comparing The first compressed file and the second compressed file obtain start and end information of the unmatched block data and the unmatched block data.
  • the incremental upgrade package is generated according to the start and end information of the unmatched block data and the unmatched block data.
  • the unmatched block data corresponds to different data between the old and new versions.
  • the server can obtain the old version file and the corresponding new version file in a variety of ways, such as: local extraction, network download and acquisition.
  • Step 103 The terminal splices the non-matching block data with the local second compressed file according to the start and end information of the unmatched block data in the incremental upgrade package to generate a spliced compressed file.
  • the terminal After obtaining the incremental upgrade package, the terminal obtains the new version file by using the reverse process of the server to generate the incremental upgrade package. Specifically, in this step, the terminal first splices the unmatched block data with the compressed file of the old version file of the terminal, that is, the second compressed file of the terminal, according to the start and end information of the unmatched block data, to obtain the splicing. Compressed file, the spliced compressed file is actually the first compressed file obtained by the server side.
  • the old version file that needs to be upgraded must already exist in the terminal.
  • the compressed file of the old version file (that is, the second compressed file) is also stored locally with the terminal, so the package can be upgraded directly according to the increment.
  • the unmatched block data is spliced with the local second compressed file to obtain a spliced compressed file (ie, the first compressed file, that is, the compressed file of the new version file for upgrading).
  • the second compressed file may be obtained according to the old version file of the terminal by using a known data processing manner.
  • This data processing method belongs to the prior art, and is not processed by the technology of the present invention. Concerns, so I won't go into details here.
  • Step 104 The terminal decompresses the spliced compressed file to obtain a new version file.
  • the new version file corresponding to the old version file to be upgraded can be obtained.
  • the terminal From the perspective of upgrading data transmission, the terminal obtains a new version file corresponding to the old version file to be upgraded, and implements an incremental upgrade on the terminal side. Then, the terminal can upgrade the original 1st version file according to the new version file.
  • the upgrade process of this step is similar to the existing technology and will not be described here.
  • the terminal obtains a new version file by obtaining an incremental upgrade package on the server side, and obtains a new version file according to the incremental upgrade package, and the incremental upgrade package only includes the new and old versions.
  • the file data of the file is not matched with the compressed file of the old version file.
  • the amount of data is greatly reduced. Therefore, the amount of data that the terminal needs to download from the server is significantly higher than that.
  • the conventional method is much smaller. This method saves data traffic, reduces occupied bandwidth resources, and greatly speeds up the process of version upgrade, improves version upgrade efficiency, and saves storage media resources of the server.
  • Fig. 2a shows the flow of an incremental upgrade method according to another embodiment of the present invention, which also performs incremental upgrade data processing from the perspective of the terminal side.
  • the method for incrementally upgrading the embodiment includes the following steps:
  • Step 201 The terminal sends a query request to the server, where the query request includes version information of the old version file that needs to be upgraded.
  • the terminal may send a request for querying the incremental upgrade package to the server at a preset time or at a preset time.
  • the query request may include version information of the old version file, such as VI.1.0, so that the server can query the corresponding upgrade package.
  • the server After receiving the query request, the server queries the incremental upgrade package according to the query request. If the server has generated an incremental upgrade package between the new version file and the old version file, the server may extract the description of the incremental upgrade package. Information; If an incremental upgrade package has not been generated, the incremental upgrade package is temporarily generated after the new and old version files are found locally.
  • the generating process may be performed by using the server in step 102 of the embodiment shown in FIG. 1 to generate the incremental upgrade package, whether the incremental upgrade package is pre-generated or not.
  • Figure 2b shows an example of the generation of an incremental upgrade package in accordance with an embodiment of the present invention.
  • the terminal side has an old version file old.apk, the size is 5M, and needs to be upgraded to the new version file.
  • the server side has the old version file old.apk and the new version file new.apk, and the size is 6M.
  • the server When the server generates the incremental upgrade package, it first compresses old.apk to get old.7z (old version compressed file), the size is 2M; stitch old.apk and new.apk together and compress to get old_new.7z (after stitching Compressed file), the size is 2.2M. Compare old.7z with old_new.7z. As shown in Figure 2b, you can get the start and stop information of the unmatched block data and the unmatched block. In Figure 2b, the shaded part represents the same data, and the blank part represents old.7z and Old_new.7z two compression
  • the data in the file that is different from the file that is, the data that does not match the block data, can also obtain the start and end information of the unmatched block data by comparison.
  • the incremental upgrade package generated by the server side includes the unmatched block data and its start and stop information, which is about 1M. Therefore, the terminal only needs to download the 1M incremental upgrade package, and the download amount is greatly reduced.
  • the server feeds back the description information of the incremental upgrade package to the terminal, and also feeds back the version information of the new version file, etc., wherein the description information of the incremental upgrade package may be the identification information such as the name of the incremental upgrade package.
  • Step 202 The terminal receives feedback information of the server, where the feedback information includes description information of the incremental upgrade package.
  • Step 203 The terminal sends a request for downloading the incremental upgrade package to the server according to the description information of the incremental upgrade package in the feedback information.
  • Step 204 The terminal receives the incremental upgrade package.
  • Step 205 The terminal splices the unmatched block data with the local second compressed file according to the start and end information of the unmatched block data in the incremental upgrade package to generate a spliced compressed file.
  • the terminal splices the unmatched block data with the local old.7z according to the start and end information of the unmatched block data.
  • the splicing process also restores old_new.7z as shown in Figure 2b.
  • Step 206 The terminal decompresses the spliced compressed file to obtain a new version file.
  • the terminal decompresses the old_n ew .7z obtained by splicing in the previous step, and obtains a new version file new.apk corresponding to the old version file old.apk.
  • Step 207 The terminal performs an old.apk upgrade on the old version file according to the new version file new.apk.
  • the terminal obtains a new version file by obtaining an incremental upgrade package on the server side, and obtains a new version file according to the incremental upgrade package, and the incremental upgrade package only includes the new and old versions.
  • the file data of the file is not matched with the compressed file of the old version file.
  • the amount of data is greatly reduced. Therefore, the amount of data that the terminal needs to download from the server is significantly higher than that.
  • the conventional method is much smaller. The method saves data traffic, reduces occupied bandwidth resources, and greatly speeds up the process of version upgrade, improves version upgrade efficiency, and saves storage medium resources of the server.
  • FIG. 3 illustrates a flow of an incremental upgrade method according to still another embodiment of the present invention.
  • the incremental upgrade method provided by the present invention includes:
  • Step 301 The server compresses the old version file to obtain the second compressed file, and splicing the old version file with the new version file, and compressing to obtain the first compressed file.
  • the server may first generate the incremental upgrade package by using steps 301-303.
  • the server first splices the local old version file with the new version file, the splicing may be the old version first, the new version is after, the data of the old version file is connected with the data of the new version file, and then The spliced file is compressed to obtain the first compressed file; the server separately compresses the old version file to obtain the second compressed file.
  • the process of obtaining the first compressed file and obtaining the second compressed file may be performed simultaneously or in a certain order.
  • Step 302 The server compares the first compressed file and the second compressed file to obtain start and end information of the unmatched block data and the unmatched block data.
  • the server compares the first compressed file with the second compressed file, determines different data contents in the two files as the unmatched block data, and records start and end point information of different data.
  • Step 303 The server generates an incremental upgrade package according to the start and end information of the unmatched block data and the unmatched block data.
  • Step 304 The server receives a request for downloading the incremental upgrade package sent by the terminal.
  • Step 305 The server sends the incremental upgrade package to the terminal.
  • the terminal splices the unmatched block data with the local second compressed file, that is, the compressed file of the old version file, according to the start and end information of the unmatched block data in the incremental upgrade package, generates a spliced compressed file, and decompresses the spliced compressed file.
  • the server generates an incremental upgrade package according to the unmatched block data information between the spliced compressed file of the old and new version files and the compressed file of the old version file, so that the terminal obtains the new version file according to the incremental upgrade package.
  • Incremental upgrade is implemented. Compared with the complete new version of the file data, the incremental upgrade package greatly reduces the amount of data. Therefore, the amount of data that the terminal needs to download from the server is significantly smaller than the conventional method.
  • the method saves data traffic, reduces occupied bandwidth resources, and greatly speeds up the process of version upgrade, improves version upgrade efficiency, and saves storage medium resources of the server.
  • the method may further include:
  • the server receives the query request sent by the terminal, and the query request includes version information of the old version file.
  • the server finds the local old version file and the new version file according to the version information of the old version file in the query request.
  • the server splices the old version file with the new version file and compresses it to obtain the first compressed file, and compresses the old version file to obtain the second compressed file, which may be:
  • the server compresses the old version file found locally and the new version file, compresses it, obtains the first compressed file, and compresses the old version file to obtain the second compressed file.
  • the server may pre-generate the incremental upgrade package before receiving the request for downloading the incremental upgrade package sent by the terminal. Specifically, after receiving the query request sent by the terminal, the server may also be the server. After getting the new version of the file.
  • the server may generate an incremental upgrade package after receiving the request for downloading the incremental upgrade package.
  • the method may include:
  • Step 401 The server receives a request for downloading an incremental upgrade package sent by the terminal, where the version information of the old version file corresponding to the incremental upgrade package is included.
  • the terminal may send a request for downloading the incremental upgrade package to the server periodically or periodically, and the request may include version information of the old version file corresponding to the required incremental upgrade package, so as to facilitate the server. According to the information, the corresponding incremental upgrade package is searched.
  • Step 402 The server searches for the local old version file and the new version file according to the version information of the old version file in the request.
  • the server After receiving the request, the server searches for the corresponding new version file according to the version information of the old version file in the request.
  • Step 403 The server splices the old version file with the new version file, compresses the file, obtains the first compressed file, and compresses the old version file to obtain the second compressed file.
  • Step 404 The server compares the first compressed file and the second compressed file to obtain start and end information of the unmatched block data and the unmatched block data.
  • Step 405 The server generates an increment according to the start and end information of the unmatched block data and the unmatched block data. Upgrade package.
  • Step 406 The server sends the incremental upgrade package to the terminal.
  • the terminal splices the unmatched block data with the local second compressed file according to the start and end information of the unmatched block data in the incremental upgrade package, generates a spliced compressed file, decompresses the spliced compressed file to obtain the new version file, and according to The version file is upgraded.
  • the server generates an incremental upgrade package according to the unmatched block data information between the spliced compressed file of the old and new version files and the compressed file of the old version file, so that the terminal obtains the incremental upgrade package according to the incremental upgrade package.
  • the new version file implements an incremental upgrade.
  • the incremental upgrade package greatly reduces the amount of data. Therefore, the amount of data that the terminal needs to download from the server is significantly smaller than the conventional method. This method saves data traffic, reduces occupied bandwidth resources, and greatly speeds up the process of version upgrade, improves version upgrade efficiency, and saves storage medium resources of the server.
  • the compression method for the new and old versions of the file uses the 7zip method.
  • the compression algorithm is not limited to 7zip, but may include all other algorithms having the same characteristics. The above is a description of the embodiment of the method of the present invention. The apparatus for implementing the above method will be described below with reference to Figs.
  • FIG. 5 shows a terminal structure of an application incremental upgrade method according to an embodiment of the present invention.
  • a terminal according to an embodiment of the present invention may include:
  • the upgrade package requesting unit 501 is configured to send a request for downloading an incremental upgrade package corresponding to an old version file local to the terminal to the server.
  • the upgrade package receiving unit 502 is configured to receive the incremental upgrade package from the server according to the foregoing request, where the incremental upgrade package includes the unmatched block data obtained by comparing the first compressed file with the second compressed file, and the The start and end information of the block data is not matched, wherein the second compressed file is a compressed file of the old version file, and the first compressed file is a compressed file after the old version file and the new version file are spliced.
  • the data combination unit 503 is configured to splicing the non-matching block data with the local second compressed file according to the start and stop information of the unmatched block data in the incremental upgrade package to generate a spliced compressed file.
  • the decompressing unit 504 is configured to decompress the spliced compressed file to obtain the new version file.
  • the upgrade package receiving unit 502 receives the incremental upgrade package including only the unmatched block data and its start and stop information, and then the data combination unit 503 is The start and end information of the block data is not matched in the incremental upgrade package, the unmatched block data is spliced with the local old version file, and the spliced file is decompressed by the decompression unit 504 to obtain a new version file and an old version file.
  • the terminal may further include an upgrading unit 505 for upgrading according to the new version file.
  • the terminal may further include:
  • the query requesting unit is configured to send a query request to the server before the upgrade package requesting unit sends a request for downloading the incremental upgrade package to the server, where the query request includes version information of the old version file.
  • the information receiving unit is configured to receive feedback information of the server, where the feedback information includes description information of the incremental upgrade package.
  • the upgrade package requesting unit is specifically configured to send, to the server, a request for downloading the incremental upgrade package according to the description information of the incremental upgrade package in the feedback information.
  • the terminal first queries the server for whether there is an incremental upgrade package through the query request unit, and if so, according to the information about the incremental upgrade package received by the information receiving unit, the upgrade request unit requests the increase. Volume upgrade package.
  • FIG. 6 shows a server structure for applying an incremental upgrade method according to an embodiment of the present invention.
  • the server provided by the present invention applying the incremental upgrade method includes:
  • the compression unit 601 is configured to compress the old version file and the new version file, compress the file, obtain the first compressed file, and compress the old version file to obtain the second compressed file.
  • the comparing unit 602 is configured to compare the first compressed file and the second compressed file to obtain start and end information of the unmatched block data and the unmatched block data.
  • the upgrade package generating unit 603 is configured to generate the incremental upgrade package according to the unmatched block data and the start and end information of the unmatched block data.
  • the first request receiving unit 604 is configured to receive a request sent by the terminal to download the incremental upgrade package.
  • An upgrade package sending unit 605 configured to send the incremental upgrade package to the terminal, so that the terminal, according to the start and end information of the unmatched block data in the incremental upgrade package, the unmatched block
  • the data is spliced with the local second compressed file to generate a spliced compressed file, and the spliced compressed file is decompressed to obtain the new version file, and is upgraded according to the new version file.
  • the server generates an incremental upgrade package by the compression unit 601, the comparison unit 602, and the upgrade package generation unit 603, and the incremental upgrade package includes start and stop information of the unmatched block data and the unmatched block data, and then the first request receiving unit 604 After receiving the request to download the incremental upgrade package, the upgrade package sending unit 605 sends the incremental upgrade package to the terminal, so that the terminal performs incremental upgrade.
  • the server may further include:
  • a second request receiving unit configured to receive, before the obtaining, the first compressed file and the second compressed file, the query request sent by the terminal, where the query request includes the old version file Version Information
  • a searching unit configured to search for an old version file and a new version file of the local version according to the version information of the old version file in the query request;
  • the compression unit is specifically configured to compress the old version file found locally and the new version file, and obtain a first compressed file, and compress the old version file to obtain a second compressed file.
  • the server may receive the query request by the second request receiving unit, and after the local old version file and the new version file are found by the searching unit, the compression unit 601, the comparison unit 602, and the upgrade package generating unit may be used by the searching unit. 603 generates an incremental upgrade package.
  • FIG. 7 shows a server structure for applying an incremental upgrade method according to another embodiment of the present invention.
  • another server of the embodiment of the present invention includes:
  • the request receiving unit 701 is configured to receive a request for downloading the incremental upgrade package sent by the terminal, where the version information of the old version file corresponding to the incremental upgrade package is included.
  • the searching unit 702 is configured to search for the old version file and the new version file of the local version according to the version information of the old version file in the request.
  • the compressing unit 703 is configured to compress the old version file and the new version file, compress the file, obtain the first compressed file, and compress the old version file to obtain the second compressed file.
  • the comparing unit 704 is configured to compare the first compressed file and the second compressed file to obtain start and end information of the unmatched block data and the unmatched block data.
  • the upgrade package generating unit 705 is configured to generate the incremental upgrade package according to the unmatched block data and the start and end information of the unmatched block data.
  • the upgrade package sending unit 706 is configured to send the incremental upgrade package to the terminal, so that the terminal, according to the start and end information of the unmatched block data in the incremental upgrade package, the unmatched block.
  • the data is spliced with the local second compressed file to generate a spliced compressed file, and the spliced compressed file is decompressed to obtain the new version file, and is upgraded according to the new version file.
  • the server may receive the request for downloading the incremental upgrade package of the terminal at the request receiving unit 701, and after the search unit 702 finds the local old version file and the new version file, the compression unit 703, the comparison The unit 704, the upgrade package generating unit 705 generates an incremental upgrade package, and finally the upgrade package sending unit 706 sends the incremental upgrade package to the terminal, so that the terminal performs the upgrade.
  • the server generates an incremental upgrade package by using the unit according to the unmatched block data information between the spliced compressed file of the old and new version files and the compressed file of the old version file, so that the terminal obtains the incremental upgrade package according to the incremental upgrade package.
  • the new version file implements an incremental upgrade.
  • the incremental upgrade package greatly reduces the amount of data. Therefore, the amount of data that the terminal needs to download from the server is significantly smaller than the conventional method. This method saves data traffic, reduces occupied bandwidth resources, and greatly speeds up the process of version upgrade, improves version upgrade efficiency, and saves storage media resources of the server.
  • the compression method of the compression unit for the new and old version files may adopt the 7zip method.
  • the compression algorithm is only an exemplary description, and those skilled in the art should understand that the enhancement provided by the present invention is provided.
  • the compression algorithm that can be used in the volume upgrade method and device is not limited to 7zip, but may include all other algorithms having the same characteristics.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division, and may be implemented in actual implementation.
  • multiple units or components may be combined or integrated into another system, or some features may be omitted or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a USB flash drive, a removable hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

本发明提供了一种增量升级方法、应用该方法的装置及存储介质,其中的增量升级方法包括:向服务器发送下载与终端本地的旧版本文件对应的增量升级包的请求;接收增量升级包,其中包括通过对比第一压缩文件与第二压缩文件所获得的不匹配块数据及所述不匹配块数据的起止信息,其中,第一压缩文件为旧版本文件与新版本文件拼接后的压缩文件,第二压缩文件为旧版本文件的压缩文件;将增量升级包中不匹配块数据与本地的所述第二压缩文件进行拼接,生成拼接压缩文件;最后所述拼接压缩文件进行解压,获得所述新版本文件。该方法节省了数据流量,减少了占用的带宽资源。

Description

增量升级方法、 应用该方法装置及存储介质
技术领域
本发明涉及数据传输处理技术领域, 更为具体地, 涉及一种增量升级方 法、 应用该方法的装置及存储介质。 背景技术
版本升级是指对操作系统或软件旧版本的漏洞进行完善, 或者对软件添 加新的应用功能的更新, 使软件更加完善好用。
终端在针对本地的旧版本文件进行版本升级时, 需要从服务器获取新版 本的数据信息。假设终端本地的旧版本的安装包文件为 old.apk,其大小为 5M, 需要获得的新版本的安装包文件为 new.apk, 其大小为 6M。 传统的版本升级 技术中, 需要下载 6M的 new.apk以完成版本升级。
但是, 这种传统的文件版本升级方法需要终端从服务器下载的完整的新 版本安装包文件, 下载的数据量较大, 会占用过多的带宽资源。
因此, 需要一种能够在版本升级过程中减少数据传输量的下载、 升级技 术, 以减少占用的带宽资源。 发明内容
鉴于上述问题, 本发明的目的是提供一种增量升级方法、 应用该方法的 装置及相应的存储介质, 以便在终端文件版本升级过程中减少终端从服务器 下载的数据量, 减少带宽资源的占用。 根据本发明的一个方面, 提供了一种终端侧的增量升级方法, 包括: 向服务器发送下载与终端本地的旧版本文件对应的增量升级包的请求; 根据所述下载与旧版本文件对应的增量升级包的请求从服务器下载增量 升级包, 其中, 增量升级包中包括通过对比第一压缩文件与第二压缩文件所 获得的不匹配块数据及所述不匹配块数据的起止信息, 其中, 第二压缩文件 为旧版本文件的压缩文件, 第一压缩文件为旧版本文件与新版本文件拼接后 的压缩文件;
根据所述增量升级包中的所述不匹配块数据的起止信息, 将所述不匹配 块数据与本地的所述第二压缩文件进行拼接, 生成拼接压缩文件;
对所述拼接压缩文件进行解压, 获得所述新版本文件。
根据本发明的另一方面, 还提供一种服务器侧的增量升级方法, 包括: 将旧版本文件与新版本文件拼接后进行压缩, 获得第一压缩文件, 并将 所述旧版本文件压缩获得第二压缩文件;
对比所述第一压缩文件和所述第二压缩文件获得不匹配块数据及所述不 匹配块数据的起止信息;
根据不匹配块数据及不匹配块数据的起止信息生成增量升级包; 接收终端发送的下载与终端本地的旧版本文件对应的所述增量升级包的 请求;
将增量升级包发送至所述终端, 以使终端根据所述增量升级包中所述不 匹配块数据的起止信息, 将不匹配块数据与本地的第二压缩文件进行拼接, 生成拼接压缩文件, 对拼接压缩文件进行解压获得所述新版本文件。
根据本发明的再一方面, 还提供一种服务器侧的增量升级方法, 包括: 接收终端发送的下载与终端本地的旧版本文件对应的增量升级包的请 求, 其中包括所述增量升级包对应的旧版本文件的版本信息;
根据所述请求中的所述旧版本文件的版本信息查找本地的旧版本文件及 新版本文件;
将所述旧版本文件与所述新版本文件拼接后进行压缩, 获得第一压缩文 件, 并将所述旧版本文件压缩获得第二压缩文件;
对比所述第一压缩文件和所述第二压缩文件获得不匹配块数据及所述不 匹配块数据的起止信息;
所述服务器根据所述不匹配块数据及所述不匹配块数据的起止信息生成 所述增量升级包;
将增量升级包发送至所述终端, 以使终端根据增量升级包中不匹配块数 据的起止信息, 将不匹配块数据与本地的第二压缩文件进行拼接, 生成拼接 压缩文件, 对拼接压缩文件进行解压获得新版本文件。 根据本发明的再一方面, 还提供一种终端, 包括:
升级包请求单元, 用于向服务器发送下载与终端本地的旧版本文件对应 的增量升级包的请求;
升级包接收单元, 用于接收所述增量升级包, 所述增量升级包中包括通 过对比第一压缩文件与第二压缩文件所获得的不匹配块数据及所述不匹配块 数据的起止信息, 其中, 所述第二压缩文件为所述旧版本文件的压缩文件, 所述第一压缩文件为旧版本文件与新版本文件拼接后的压缩文件;
数据组合单元, 用于根据所述增量升级包中所述不匹配块数据的起止信 息, 将所述不匹配块数据与本地的所述第二压缩文件进行拼接, 生成拼接压 缩文件;
解压单元, 用于对拼接压缩文件进行解压, 获得新版本文件。
根据本发明的再一方面, 还提供一种服务器, 包括:
压缩单元, 用于将旧版本文件与新版本文件拼接后进行压缩, 获得第一 压缩文件, 并将所述旧版本文件压缩获得第二压缩文件;
比对单元, 用于对比所述第一压缩文件和所述第二压缩文件获得不匹配 块数据及所述不匹配块数据的起止信息;
升级包生成单元, 用于根据所述不匹配块数据及所述不匹配块数据的起 止信息生成增量升级包;
第一请求接收单元, 用于接收终端发送的下载与终端本地的旧版本文件 对应的增量升级包的请求;
升级包发送单元, 用于将所述增量升级包发送至终端, 以使终端根据所 述增量升级包中不匹配块数据的起止信息, 将不匹配块数据与本地的第二压 缩文件进行拼接, 生成拼接压缩文件, 对拼接压缩文件进行解压获得新版本 文件。
根据本发明的再一方面, 还提供一种服务器, 其特征在于, 包括: 请求接收单元, 用于接收终端发送的下载与终端本地的旧版本文件对应 的增量升级包的请求, 其中包括所述增量升级包对应的旧版本文件的版本信 息;
查找单元, 用于根据所述请求中的所述旧版本文件的版本信息查找服务 器本地的旧版本文件及新版本文件; 压缩单元, 用于将所述旧版本文件与所述新版本文件拼接后进行压缩, 获得第一压缩文件, 并将所述旧版本文件压缩获得第二压缩文件;
比对单元, 用于对比所述第一压缩文件和所述第二压缩文件获得不匹配 块数据及所述不匹配块数据的起止信息;
升级包生成单元, 用于根据所述不匹配块数据及所述不匹配块数据的起 止信息生成所述增量升级包;
升级包发送单元, 用于将增量升级包发送至终端, 以使终端根据所述增 量升级包中不匹配块数据的起止信息, 将不匹配块数据与本地的第二压缩文 件进行拼接, 生成拼接压缩文件, 对拼接压缩文件进行解压获得所述新版本 文件。
另外, 本发明还提供一种具有处理器可执行的程序代码的计算机可读存 储介质, 在被执行时, 所述程序代码使得处理器执行下述步骤:
向服务器发送下载与终端本地的旧版本文件对应的增量升级包的请求; 根据所述下载与旧版本文件对应的增量升级包的请求从服务器下载增量 升级包, 其中, 所述增量升级包中包括通过对比第一压缩文件与第二压缩文 件所获得的不匹配块数据及所述不匹配块数据的起止信息, 其中, 所述第二 压缩文件为所述旧版本文件的压缩文件, 所述第一压缩文件为所述旧版本文 件与新版本文件拼接后的压缩文件;
根据所述增量升级包中的所述不匹配块数据的起止信息, 将所述不匹配 块数据与本地的所述第二压缩文件进行拼接, 生成拼接压缩文件;
对所述拼接压缩文件进行解压, 获得所述新版本文件。
本发明还提供另一种具有处理器可执行的程序代码的计算机可读存储介 质, 在被执行时, 所述程序代码使得处理器执行下述步骤:
将旧版本文件与新版本文件拼接后进行压缩, 获得第一压缩文件, 并将 所述旧版本文件压缩获得第二压缩文件;
对比所述第一压缩文件和所述第二压缩文件获得不匹配块数据及所述不 匹配块数据的起止信息;
根据所述不匹配块数据及所述不匹配块数据的起止信息生成增量升级 包;
接收终端发送的下载与终端本地的旧版本文件对应的所述增量升级包的 请求;
将所述增量升级包发送至所述终端, 以使所述终端根据所述增量升级包 中所述不匹配块数据的起止信息, 将所述不匹配块数据与本地的所述第二压 缩文件进行拼接, 生成拼接压缩文件, 对所述拼接压缩文件进行解压获得所 述新版本文件。 利用上述根据本发明的增量升级方法及应用该方法的装置, 终端通过获 得服务器侧的增量升级包, 并根据该增量升级包获得了新版本文件, 实现了 增量升级, 而且该增量升级包只包含新旧版本文件的拼接压缩文件与旧版本 文件的压缩文件之间的不匹配块数据信息, 其相比较完整的新版本文件数据, 数据量大大减小, 由此, 终端需要从服务器下载的数据量明显比常规方法小 得多。 该方法节省了数据流量, 减少了占用的带宽资源, 而且大大加快了版 本升级的过程, 提高了版本升级效率, 并节省了服务器的存储介质资源。 为了实现上述以及相关目的, 本发明的一个或多个方面包括后面将详细 说明并在权利要求中特别指出的特征。 下面的说明以及附图详细说明了本发 明的某些示例性方面。 然而, 这些方面指示的仅仅是可使用本发明的原理的 各种方式中的一些方式。 此外, 本发明旨在包括所有这些方面以及它们的等 同物。 附图说明
通过参考以下结合附图的说明及权利要求书的内容, 并且随着对本发明 的更全面理解, 本发明的其它目的及结果将更加明白及易于理解。 在附图中: 图 1为根据本发明实施例的增量升级方法的流程图;
图 2a为根据本发明另一实施例的增量升级方法的流程图;
图 2b为根据本发明实施例的增量升级包的生成示意图;
图 3为根据本发明又一实施例的增量升级方法流程图;
图 4为根据本发明又一实施例的增量升级方法流程图;
图 5为根据本发明实施例的应用增量升级方法的终端结构示意图; 图 6为根据本发明实施例的应用增量升级方法的服务器结构示意图; 图 7为根据本发明另一实施例的应用增量升级方法的服务器结构示意图。 在所有附图中相同的标号指示相似或相应的特征或功能。 具体实施方式
为了使本技术领域的人员更好地理解本发明实施例中的技术方案, 并使 本发明实施例的上述目的、 特征和优点能够更加明显易懂, 下面结合附图对 本发明实施例中技术方案作进一步详细的说明。
在下面的描述中, 出于说明的目的, 为了提供对一个或多个实施例的全 面理解, 阐述了许多具体细节。 然而, 很明显, 也可以在没有这些具体细节 的情况下实现这些实施例。 在其它例子中, 为了便于描述一个或多个实施例, 公知的结构和设备以方框图的形式示出。 图 1示出了根据本发明实施例的增量升级方法的流程。
如图 1 所示, 从接收增量升级包的终端侧的角度, 本发明提供的增量升 级方法包括如下步骤:
步骤 101,终端向服务器发送下载与终端本地的旧版本文件对应的增量升 级包的请求。
本实施例中, 终端可以在获知服务器上的增量升级包的相关信息后, 向 服务器发送下载该与终端本地的旧版本文件对应的增量升级包的请求; 也可 以在不知道服务器上是否存在增量升级包的情况下, 向服务器发送下载请求。 其中, 该请求中包含终端需要的该增量升级包的标识信息或者关联信息, 例 如终端上存储的该增量升级包对应的旧版本文件信息等, 以便于服务器据此 获知终端所需要下载的增量升级包。
步骤 102, 终端从服务器接收增量升级包。
该增量升级包中包括通过对比第一压缩文件与第二压缩文件所获得的不 匹配块数据及该不匹配块数据的起止信息, 其中, 第二压缩文件为该旧版本 文件的压缩文件, 第一压缩文件为旧版本文件与新版本文件拼接后的压缩文 件。 通过该不匹配块数据及其起止信息, 终端就可以在原本旧版本压缩文件 的基础上拼接出新的更新版本。
服务器在接收到下载请求后, 可以根据请求中的信息查找在服务器本地 是否具有该增量升级包, 若有, 则直接发送至终端, 若没有, 可在生成该增 量升级包后, 再发送给终端。
具体的, 服务器生成该增量升级包的过程可以是: 服务器将旧版本文件 与新版本文件拼接后进行压缩, 获得第一压缩文件, 并将旧版本文件压缩获 得第二压缩文件, 然后, 对比该第一压缩文件和第二压缩文件获得不匹配块 数据及不匹配块数据的起止信息, 最后, 根据不匹配块数据及不匹配块数据 的起止信息生成该增量升级包。 其中, 不匹配块数据即对应新旧版本间的不 同数据。
其中, 服务器获取旧版本文件和对应新版本文件的方式可以有很多种, 比如: 本地提取、 联网下载获取等。
步骤 103, 终端根据该增量升级包中不匹配块数据的起止信息, 将该不匹 配块数据与本地的第二压缩文件进行拼接, 生成拼接压缩文件。
终端在获得增量升级包后, 采用服务器生成增量升级包的逆过程获得新 版本文件。 具体地, 在本步骤中, 终端先根据不匹配块数据的起止信息, 将 不匹配块数据与终端本地的旧版本文件的压缩文件, 也即终端本地的第二压 缩文件, 进行拼接, 得到拼接压缩文件, 该拼接压缩文件实际即为服务器侧 获得的第一压缩文件。
由于是文件升级, 因此需要升级的旧版本文件必定已经存在于终端, 一 般而言, 旧版本文件的压缩文件 (即第二压缩文件) 也会存储与终端本地, 所以可以直接根据增量升级包中的不匹配块数据与本地的第二压缩文件进行 拼接得到拼接压缩文件 (即第一压缩文件, 也就是用于升级的新版文文件的 压缩文件)。 如果在终端本地没有第二压缩文件, 也可以采用已知的数据处理 方式根据终端本地的旧版本文件获得第二压缩文件, 这种数据处理方式属于 现有技术, 并且也不是本发明技术处理的关注点, 因此在此不再赘述。
步骤 104, 终端对拼接压缩文件进行解压, 获得新版本文件。
终端对该拼接压缩文件进行解压后, 即可获得与要升级的旧版本文件对 应的新版本文件。
从升级数据传输的角度来说, 终端获得了与要升级的旧版本文件对应的 新版本文件就实现了终端侧的增量升级。 然后, 终端就可以根据该新版本文 件对原 1日版本文件进行升级。 本步骤的升级过程与现有技术类似, 此处不再赘述。
在图 1 所示的实施例中, 终端通过获得服务器侧的增量升级包, 并根据 该增量升级包获得了新版本文件, 实现了增量升级, 而且该增量升级包只包 含新旧版本文件的拼接压缩文件与旧版本文件的压缩文件之间的不匹配块数 据信息, 其相比较完整的新版本文件数据, 数据量大大减小, 由此, 终端需 要从服务器下载的数据量明显比常规方法小得多。 该方法节省了数据流量, 减少了占用的带宽资源,而且大大加快了版本升级的过程, 提高了版本升级效 率,并节省了服务器的存储介质资源。
图 2a示出了根据本发明另一实施例的增量升级方法的流程, 该流程也是 从终端侧角度出发进行增量升级数据处理。
如图 2a所示, 该实施例进行增量升级的方法包括如下步骤:
步骤 201, 终端向服务器发送查询请求, 查询请求中包括需要升级的旧版 本文件的版本信息。
终端可以定时或在预设时间向服务器发送查询增量升级包的请求, 该查 询请求中可以包括旧版本文件的版本信息, 如 VI.1.0, 以便于服务器查询对 应的升级包等。
服务器在接收到该查询请求后, 根据查询请求查询增量升级包, 若此时, 服务器已经生成了新版本文件与旧版本文件之间的增量升级包, 可以提取该 增量升级包的描述信息; 若还未生成增量升级包, 则在本地查找到新、 旧版 本文件后, 临时生成增量升级包。 其中, 无论该增量升级包是否预先生成的, 其生成过程均可以采用上述图 1所示的实施例步骤 102中的服务器生成该增 量升级包的方法。
图 2b示出了根据本发明实施例的增量升级包的生成示例。 假设终端侧有 一个旧版本文件 old.apk, 大小为 5M, 需要升级为新版本文件, 服务器侧具有 该旧版本文件 old.apk以及新版本文件 new.apk, 大小为 6M。
服务器在生成增量升级包时, 首先对 old.apk压缩得到 old.7z (旧版本压 缩文件), 大小为 2M ; 将 old.apk 和 new.apk 拼接到一起再压缩得到 old_new.7z (拼接后的压缩文件), 大小为 2.2M。 将 old.7z 与 old_new.7z 做比较, 如图 2b所示, 可以获得不匹配块数据及不匹配块的起止信息, 如图 2b中, 阴影部分代表相同的数据, 空白部分代表 old.7z 与 old_new.7z两压缩 文件中不相同的数据, 也即不匹配块数据, 通过对比还可以获得不匹配块数 据的起止信息, 该服务器侧生成的增量升级包包含该不匹配块数据及其起止 信息, 大约为 1M, 由此, 终端只需下载该 1M的增量升级包即可, 下载量大 大减小。
服务器向终端反馈该增量升级包的描述信息, 也还可以同时反馈新版本 文件的版本信息等, 其中, 该增量升级包的描述信息具体可以是该增量升级 包的名称等标识信息。
步骤 202, 终端接收服务器的反馈信息, 该反馈信息中包括增量升级包的 描述信息。
步骤 203,终端根据该反馈信息中增量升级包的描述信息向服务器发送下 载该增量升级包的请求。
步骤 204, 终端接收增量升级包。
步骤 205, 终端根据增量升级包中不匹配块数据的起止信息, 将不匹配块 数据与本地的第二压缩文件进行拼接, 生成拼接压缩文件。
假设, 终端在接收到 old.7z 与 old_new.7z两压缩文件的不匹配块数据及 其起止信息后,根据不匹配块数据的起止信息将不匹配块数据与本地的 old.7z 进行拼接, 该拼接过程也即还原如图 2b中的 old_new.7z。
步骤 206, 终端对拼接压缩文件进行解压, 获得新版本文件。
终端对上步骤中拼接获得的 old_new.7z 解压, 即可获得与旧版本文件 old.apk对应的新版本文件 new.apk。
步骤 207, 终端根据新版本文件 new.apk对原旧版本文件进行 old.apk升 级。
上述步骤 204~207与前述实施例中的步骤 102~105类似, 此处不再赘述。 在图 2a所示的实施例中, 终端通过获得服务器侧的增量升级包, 并根据 该增量升级包获得了新版本文件, 实现了增量升级, 而且该增量升级包只包 含新旧版本文件的拼接压缩文件与旧版本文件的压缩文件之间的不匹配块数 据信息, 其相比较完整的新版本文件数据, 数据量大大减小, 由此, 终端需 要从服务器下载的数据量明显比常规方法小得多。 该方法节省了数据流量, 减少了占用的带宽资源,而且大大加快了版本升级的过程, 提高了版本升级效 率,并节省了服务器的存储介质资源。 图 3示出了根据本发明又一实施例的增量升级方法流程。
如图 3所示, 从发出增量升级包的服务器侧的角度, 本发明提供的增量 升级方法包括:
步骤 301, 服务器将旧版本文件压缩获得第二压缩文件, 并将旧版本文件 与新版本文件拼接后进行压缩, 获得第一压缩文件。
本实施例中, 服务器无论是否接收到终端发送的查询请求或下载增量升 级包的请求, 均可先采用步骤 301~303生成增量升级包。
本步骤中, 服务器先将本地的旧版本文件与新版本文件进行拼接, 该拼 接可以是旧版本在前, 新版本在后, 旧版本文件的数据与新版本文件的数据 首尾相接, 然后对拼接后的文件进行压缩, 获得第一压缩文件; 服务器对旧 版本文件单独进行压缩, 获得第二压缩文件。 该获得第一压缩文件与获得第 二压缩文件的过程可以同时进行, 也可以按一定次序进行。
步骤 302,服务器对比第一压缩文件和第二压缩文件获得不匹配块数据及 不匹配块数据的起止信息。
服务器对比第一压缩文件与第二压缩文件, 将两文件中不同的数据内容 确定为所述不匹配块数据, 并记录不同数据的起止点信息。
步骤 303,服务器根据不匹配块数据及不匹配块数据的起止信息生成增量 升级包。
步骤 304, 服务器接收终端发送的下载增量升级包的请求。
步骤 305, 服务器将增量升级包发送至终端。
终端根据增量升级包中不匹配块数据的起止信息, 将不匹配块数据与本 地的第二压缩文件也即旧版本文件的压缩文件进行拼接, 生成拼接压缩文件, 对拼接压缩文件进行解压获得新版本文件, 并根据新版本文件进行升级。
本发明实施例中, 服务器根据新旧版本文件的拼接压缩文件与旧版本文 件的压缩文件之间的不匹配块数据信息, 生成增量升级包, 使得终端根据该 增量升级包获得了新版本文件, 实现了增量升级, 该增量升级包相比较完整 的新版本文件数据, 数据量大大减小, 由此, 终端需要从服务器下载的数据 量明显比常规方法小得多。 该方法节省了数据流量, 减少了占用的带宽资源, 而且大大加快了版本升级的过程, 提高了版本升级效率, 并节省了服务器的 存储介质资源。 在另一实施例中, 在服务器侧将旧版本文件与新版本文件拼接后进行压 缩, 获得第一压缩文件, 并将旧版本文件压缩获得第二压缩文件之前, 还可 以包括:
服务器接收终端发送的查询请求, 该查询请求中包括所述旧版本文件的 版本信息。
服务器根据该查询请求中旧版本文件的版本信息查找本地的旧版本文件 及新版本文件。
服务器将旧版本文件与新版本文件拼接后进行压缩, 获得第一压缩文件, 并将旧版本文件压缩获得第二压缩文件, 具体可以为:
服务器将在本地查找到的旧版本文件与新版本文件拼接后进行压缩, 获 得第一压缩文件, 并将旧版本文件压缩获得第二压缩文件。
在该实施例中, 服务器可以在接收到终端发送的下载增量升级包的请求 之前预先生成增量升级包, 具体的, 可以是在接收到终端发送的查询请求之 后, 也还可以是在服务器获得新版本文件之后。
在另一实施例中, 服务器可以在接收到下载增量升级包的请求之后, 再 生成增量升级包, 具体如图 4所示, 该方法可以包括:
步骤 401, 服务器接收终端发送的下载增量升级包的请求, 其中包括增量 升级包对应的旧版本文件的版本信息。
无论服务器是否存在增量升级包, 终端均可定时或周期性向服务器发送 下载增量升级包的请求, 该请求中可以包括所需要的增量升级包对应的旧版 本文件的版本信息, 以便于服务器根据该信息进行对应增量升级包的查找。
步骤 402,服务器根据请求中的旧版本文件的版本信息查找本地的旧版本 文件及新版本文件。
服务器在接收到请求后, 根据请求中的旧版本文件的版本信息查找对应 的新版本文件。
步骤 403, 服务器将旧版本文件与新版本文件拼接后进行压缩, 获得第一 压缩文件, 并将旧版本文件压缩获得第二压缩文件。
步骤 404,服务器对比第一压缩文件和第二压缩文件获得不匹配块数据及 不匹配块数据的起止信息。
步骤 405,服务器根据不匹配块数据及不匹配块数据的起止信息生成增量 升级包。
该步骤 403~405中, 服务器生成增量升级包的过程与前述实施例相同。 步骤 406, 服务器将增量升级包发送至终端。
终端根据增量升级包中不匹配块数据的起止信息, 将不匹配块数据与本 地的第二压缩文件进行拼接, 生成拼接压缩文件, 对拼接压缩文件进行解压 获得所述新版本文件, 并根据版本文件进行升级。
在图 4所示的实施例中, 服务器根据新旧版本文件的拼接压缩文件与旧 版本文件的压缩文件之间的不匹配块数据信息, 生成增量升级包, 使得终端 根据该增量升级包获得了新版本文件, 实现了增量升级, 该增量升级包相比 较完整的新版本文件数据, 数据量大大减小, 由此, 终端需要从服务器下载 的数据量明显比常规方法小得多。 该方法节省了数据流量, 减少了占用的带 宽资源, 而且大大加快了版本升级的过程, 提高了版本升级效率, 并节省了 服务器的存储介质资源。
在以上各实施例的表述中, 对新、 旧版本文件的压缩方法均采用了 7zip 的方法, 当然压缩算法不仅限于 7zip, 也可以是包含具有相同特点的其他所 有算法。 以上是对本发明方法实施例的描述, 下面结合图 5〜图 7对实现上述 方法的装置进行介绍。
图 5 示出了根据本发明实施例的应用增量升级方法的终端结构。 如图 5 所示, 根据本发明实施例的一种终端可以包括:
升级包请求单元 501,用于向服务器发送下载与终端本地的旧版本文件对 应的增量升级包的请求。
升级包接收单元 502, 用于根据上述请求从服务器接收所述增量升级包, 所述增量升级包中包括通过对比第一压缩文件与第二压缩文件所获得的不匹 配块数据及所述不匹配块数据的起止信息, 其中, 第二压缩文件为所述旧版 本文件的压缩文件, 第一压缩文件为旧版本文件与新版本文件拼接后的压缩 文件。
数据组合单元 503,用于根据所述增量升级包中所述不匹配块数据的起止 信息, 将所述不匹配块数据与本地的所述第二压缩文件进行拼接, 生成拼接 压缩文件。
解压单元 504,用于对所述拼接压缩文件进行解压,获得所述新版本文件。 其中, 终端的升级包请求单元 501 向服务器发送下载增量升级包的请求 后, 升级包接收单元 502接收只包含不匹配块数据及其起止信息的增量升级 包, 然后由数据组合单元 503 根据增量升级包中不匹配块数据的起止信息, 将该不匹配块数据与本地的旧版本文件进行拼接, 再由解压单元 504对该拼 接后的文件解压, 获得新版本文件和旧版本文件。
另外, 该终端还可以包括升级单元 505, 用于根据所述新版本文件进行升 级。
在本发明的另一具体实施方式中, 该终端还可以包括:
查询请求单元, 用于在所述升级包请求单元向服务器发送下载增量升级 包的请求之前, 向所述服务器发送查询请求, 所述查询请求中包括所述旧版 本文件的版本信息。
信息接收单元, 用于接收所述服务器的反馈信息, 所述反馈信息中包括 所述增量升级包的描述信息。
其中, 升级包请求单元, 具体用于根据所述反馈信息中所述增量升级包 的描述信息向所述服务器发送下载所述增量升级包的请求。
在本实施例中, 终端先通过查询请求单元查询服务器侧是否有增量升级 包, 若有, 再根据信息接收单元接收到的增量升级包的相关信息, 由升级包 请求单元请求获得该增量升级包。
图 6示出了根据本发明实施例的应用增量升级方法的服务器结构。如图 6 所示, 本发明提供的应用上述增量升级方法的服务器包括:
压缩单元 601, 用于将旧版本文件与新版本文件拼接后进行压缩, 获得第 一压缩文件, 并将所述旧版本文件压缩获得第二压缩文件。
比对单元 602,用于对比所述第一压缩文件和所述第二压缩文件获得不匹 配块数据及所述不匹配块数据的起止信息。
升级包生成单元 603,用于根据所述不匹配块数据及所述不匹配块数据的 起止信息生成所述增量升级包。
第一请求接收单元 604, 用于接收终端发送的下载所述增量升级包的请 求。
升级包发送单元 605, 用于将所述增量升级包发送至所述终端, 以使所述 终端根据所述增量升级包中所述不匹配块数据的起止信息, 将所述不匹配块 数据与本地的所述第二压缩文件进行拼接, 生成拼接压缩文件, 对所述拼接 压缩文件进行解压获得所述新版本文件, 并根据所述新版本文件进行升级。
服务器通过压缩单元 601、比对单元 602和升级包生成单元 603生成增量 升级包, 该增量升级包中包含不匹配块数据及不匹配块数据的起止信息, 然 后在第一请求接收单元 604接收到下载增量升级包的请求后, 由升级包发送 单元 605将增量升级包发送到终端, 以使终端进行增量升级。
在本发明的另一实施例中, 服务器还可以包括:
第二请求接收单元, 用于在所述压缩单元获得所述第一压缩文件及所述 第二压缩文件之前, 接收所述终端发送的查询请求, 所述查询请求中包括所 述旧版本文件的版本信息;
查找单元, 用于根据所述查询请求中所述旧版本文件的版本信息查找本 地的旧版本文件及新版本文件;
其中, 压缩单元, 具体用于将在本地查找到的所述旧版本文件与所述新 版本文件拼接后进行压缩, 获得第一压缩文件, 并将所述旧版本文件压缩获 得第二压缩文件。
本实施例中, 服务器可以在第二请求接收单元接收到查询请求, 并由查 找单元查找到本地的旧版本文件及新版本文件后, 再由压缩单元 601、 比对单 元 602和升级包生成单元 603生成增量升级包。
图 7示出了根据本发明另一实施例的应用增量升级方法的服务器结构。 如图 7所示, 本发明实施例的另一种服务器包括:
请求接收单元 701, 用于接收终端发送的下载增量升级包的请求, 其中包 括所述增量升级包对应的旧版本文件的版本信息。
查找单元 702,用于根据所述请求中的所述旧版本文件的版本信息查找本 地的旧版本文件及新版本文件。
压缩单元 703, 用于将所述旧版本文件与所述新版本文件拼接后进行压 缩, 获得第一压缩文件, 并将所述旧版本文件压缩获得第二压缩文件。
比对单元 704,用于对比所述第一压缩文件和所述第二压缩文件获得不匹 配块数据及所述不匹配块数据的起止信息。
升级包生成单元 705,用于根据所述不匹配块数据及所述不匹配块数据的 起止信息生成所述增量升级包。 升级包发送单元 706, 用于将所述增量升级包发送至所述终端, 以使所述 终端根据所述增量升级包中所述不匹配块数据的起止信息, 将所述不匹配块 数据与本地的所述第二压缩文件进行拼接, 生成拼接压缩文件, 对所述拼接 压缩文件进行解压获得所述新版本文件, 并根据所述新版本文件进行升级。
本实施例中, 服务器可以在请求接收单元 701 接收到终端的下载增量升 级包的请求, 并在查找单元 702查找到本地的旧版本文件及新版本文件后, 再由压缩单元 703、 比对单元 704、 升级包生成单元 705生成增量升级包, 最 后由升级包发送单元 706向终端发送该增量升级包, 以使终端进行升级。
本发明实施例中, 服务器通过上述单元根据新旧版本文件的拼接压缩文 件与旧版本文件的压缩文件之间的不匹配块数据信息, 生成增量升级包, 使 得终端根据该增量升级包获得了新版本文件, 实现了增量升级, 该增量升级 包相比较完整的新版本文件数据, 数据量大大减小, 由此, 终端需要从服务 器下载的数据量明显比常规方法小得多。 该方法节省了数据流量, 减少了占 用的带宽资源, 而且大大加快了版本升级的过程, 提高了版本升级效率,并节 省了服务器的存储介质资源。
以上各实施例表述中, 压缩单元对新、 旧版本文件的压缩方法均可以采 用 7zip的方法, 当然压缩算法仅为一种示例性描述, 本领域技术人员应当明 了, 在本发明所提供的增量升级方法和装置中能够采用的压缩算法并不仅限 于 7zip, 也可以是包含具有相同特点的其他所有算法。
本领域普通技术人员可以意识到, 结合本文中所公开的实施例描述的各 示例的单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结 合来实现。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特 定应用和设计约束条件。 专业技术人员可以对每个特定的应用来使用不同方 法来实现所描述的功能, 但是这种实现不应认为超出本发明的范围。
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描 述的系统、 装置和单元的具体工作过程, 可以参考前述方法实施例中的对应 过程, 在此不再赘述。
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置和 方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示 意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可 以有另外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个 系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间 的耦合或直接耦合或通信连接可以是通过一些接口, 装置或单元的间接耦合 或通信连接, 可以是电性, 机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的, 作 为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或 者全部单元来实现本实施例方案的目的。
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单 元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用 时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明的 技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可 以以软件产品的形式体现出来, 该计算机软件产品存储在一个存储介质中, 包括若干指令用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者 网络设备等)或处理器(processor)执行本发明各个实施例所述方法的全部或 部分步骤。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储器 (ROM, Read- Only Memory )、 随机存耳又存储器 (RAM, Random Access Memory )、 磁 碟或者光盘等各种可以存储程序代码的介质。 以上参照附图描述的根据本发明的增量升级方法、 应用该方法的装置及 存储介质, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到变 化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应 所述以所附的权利要求书的内容确定。

Claims

权 利 要 求 书
1、 一种终端侧的增量升级方法, 包括:
向服务器发送下载与终端本地的旧版本文件对应的增量升级包的请求; 根据所述下载与旧版本文件对应的增量升级包的请求从服务器下载增量 升级包, 其中, 所述增量升级包中包括通过对比第一压缩文件与第二压缩文 件所获得的不匹配块数据及所述不匹配块数据的起止信息, 其中, 所述第二 压缩文件为所述旧版本文件的压缩文件, 所述第一压缩文件为所述旧版本文 件与新版本文件拼接后的压缩文件;
根据所述增量升级包中的所述不匹配块数据的起止信息, 将所述不匹配 块数据与本地的所述第二压缩文件进行拼接, 生成拼接压缩文件;
对所述拼接压缩文件进行解压, 获得所述新版本文件。
2、 根据权利要求 1所述的终端侧的增量升级方法, 其中, 所述第一压缩 文件与所述第二压缩文件均为采用 7-ZIP压缩算法获得的压缩文件。
3、 根据权利要求 1或 2所述的终端侧的增量升级方法, 其中, 在向服务 器发送下载与终端本地的旧版本文件对应的增量升级包的请求之前, 还包括: 向所述服务器发送查询请求, 所述查询请求中包括所述旧版本文件的版 本信息;
接收所述服务器的反馈信息, 所述反馈信息中包括所述增量升级包的描 述信息;
根据所述反馈信息中所述增量升级包的描述信息向服务器发送下载与终 端本地的旧版本文件对应的增量升级包的请求。
4、 一种服务器侧的增量升级方法, 包括:
将旧版本文件与新版本文件拼接后进行压缩, 获得第一压缩文件, 并将 所述旧版本文件压缩获得第二压缩文件;
对比所述第一压缩文件和所述第二压缩文件获得不匹配块数据及所述不 匹配块数据的起止信息; 根据所述不匹配块数据及所述不匹配块数据的起止信息生成增量升级 包;
接收终端发送的下载与终端本地的旧版本文件对应的所述增量升级包的 请求;
将所述增量升级包发送至所述终端, 以使所述终端根据所述增量升级包 中所述不匹配块数据的起止信息, 将所述不匹配块数据与本地的所述第二压 缩文件进行拼接, 生成拼接压缩文件, 对所述拼接压缩文件进行解压获得所 述新版本文件。
5、 根据权利要求 4所述的服务器侧的增量升级方法, 其中, 在所述服务 器将旧版本文件与新版本文件拼接后进行压缩, 获得第一压缩文件, 并将所 述旧版本文件压缩获得第二压缩文件之前, 还包括:
接收所述终端发送的查询请求, 所述查询请求中包括所述旧版本文件的 版本信息;
根据所述查询请求中所述旧版本文件的版本信息查找所述服务器本地的 旧版本文件及新版本文件;
将旧版本文件与新版本文件拼接后进行压缩, 获得第一压缩文件, 并将 所述 1日版本文件压缩获得第二压缩文件。
6、 根据权利要求 4或 5所述的服务器侧的增量升级方法, 其中, 所述第 一压缩文件及所述第二压缩文件均为采用 7-ZIP压缩算法获得的压缩文件。
7、 一种服务器侧的增量升级方法, 包括:
接收终端发送的下载与终端本地的旧版本文件对应的增量升级包的请 求, 其中包括所述增量升级包对应的旧版本文件的版本信息;
根据所述请求中的所述旧版本文件的版本信息查找本地的旧版本文件及 新版本文件;
将所述旧版本文件与所述新版本文件拼接后进行压缩, 获得第一压缩文 件, 并将所述旧版本文件压缩获得第二压缩文件;
对比所述第一压缩文件和所述第二压缩文件获得不匹配块数据及所述不 匹配块数据的起止信息;
所述服务器根据所述不匹配块数据及所述不匹配块数据的起止信息生成 所述增量升级包;
将所述增量升级包发送至所述终端, 以使所述终端根据所述增量升级包 中所述不匹配块数据的起止信息, 将所述不匹配块数据与本地的所述第二压 缩文件进行拼接, 生成拼接压缩文件, 对所述拼接压缩文件进行解压获得所 述新版本文件。
8、 一种终端, 包括:
升级包请求单元, 用于向服务器发送下载与终端本地的旧版本文件对应 的增量升级包的请求;
升级包接收单元, 用于根据所述下载与旧版本文件对应的增量升级包的 请求从所述服务器接收所述增量升级包, 所述增量升级包中包括通过对比第 一压缩文件与第二压缩文件所获得的不匹配块数据及所述不匹配块数据的起 止信息, 其中, 所述第二压缩文件为所述旧版本文件的压缩文件, 所述第一 压缩文件为所述旧版本文件与新版本文件拼接后的压缩文件;
数据组合单元, 用于根据所述增量升级包中所述不匹配块数据的起止信 息, 将所述不匹配块数据与本地的所述第二压缩文件进行拼接, 生成拼接压 缩文件;
解压单元, 用于对所述拼接压缩文件进行解压, 获得所述新版本文件。
9、 根据权利要求 2所述的终端, 还包括:
查询请求单元, 用于在所述升级包请求单元向服务器发送下载与终端本 地的旧版本文件对应的增量升级包的请求之前, 向所述服务器发送查询请求, 所述查询请求中包括所述旧版本文件的版本信息;
信息接收单元, 用于接收所述服务器的反馈信息, 所述反馈信息中包括 所述增量升级包的描述信息;
所述升级包请求单元根据所述反馈信息中所述增量升级包的描述信息向 所述服务器发送下载与终端本地的旧版本文件对应的所述增量升级包的请 求。
10、 一种服务器, 包括:
压缩单元, 用于将旧版本文件与新版本文件拼接后进行压缩, 获得第一 压缩文件, 并将所述旧版本文件压缩获得第二压缩文件;
比对单元, 用于对比所述第一压缩文件和所述第二压缩文件获得不匹配 块数据及所述不匹配块数据的起止信息;
升级包生成单元, 用于根据所述不匹配块数据及所述不匹配块数据的起 止信息生成增量升级包;
第一请求接收单元, 用于接收终端发送的下载与终端本地的旧版本文件 对应的所述增量升级包的请求;
升级包发送单元, 用于将所述增量升级包发送至所述终端, 以使所述终 端根据所述增量升级包中所述不匹配块数据的起止信息, 将所述不匹配块数 据与本地的所述第二压缩文件进行拼接, 生成拼接压缩文件, 对所述拼接压 缩文件进行解压获得所述新版本文件。
11、 根据权利要求 10所述的服务器, 还包括:
第二请求接收单元, 用于在所述压缩单元获得所述第一压缩文件及所述 第二压缩文件之前, 接收所述终端发送的查询请求, 所述查询请求中包括所 述旧版本文件的版本信息;
查找单元, 用于根据所述查询请求中所述旧版本文件的版本信息查找所 述服务器本地的旧版本文件及新版本文件;
所述压缩单元将在所述服务器本地查找到的所述旧版本文件与所述新版 本文件拼接后进行压缩, 获得第一压缩文件, 并将所述旧版本文件压缩获得 第二压缩文件。
12、 一种服务器, 包括:
请求接收单元, 用于接收终端发送的下载与终端本地的旧版本文件对应 的增量升级包的请求, 其中包括所述旧版本文件的版本信息;
查找单元, 用于根据所述请求中的所述旧版本文件的版本信息查找所述 服务器本地的旧版本文件及新版本文件; 压缩单元, 用于将所述旧版本文件与所述新版本文件拼接后进行压缩, 获得第一压缩文件, 并将所述旧版本文件压缩获得第二压缩文件;
比对单元, 用于对比所述第一压缩文件和所述第二压缩文件获得不匹配 块数据及所述不匹配块数据的起止信息;
升级包生成单元, 用于根据所述不匹配块数据及所述不匹配块数据的起 止信息生成所述增量升级包;
升级包发送单元, 用于将所述增量升级包发送至所述终端, 以使所述终 端根据所述增量升级包中所述不匹配块数据的起止信息, 将所述不匹配块数 据与本地的所述第二压缩文件进行拼接, 生成拼接压缩文件, 对所述拼接压 缩文件进行解压获得所述新版本文件。
13、 一种具有处理器可执行的程序代码的计算机可读存储介质, 在被执 行时, 所述程序代码使得处理器执行下述步骤:
向服务器发送下载与终端本地的旧版本文件对应的增量升级包的请求; 根据所述下载与旧版本文件对应的增量升级包的请求从服务器下载增量 升级包, 其中, 所述增量升级包中包括通过对比第一压缩文件与第二压缩文 件所获得的不匹配块数据及所述不匹配块数据的起止信息, 其中, 所述第二 压缩文件为所述旧版本文件的压缩文件, 所述第一压缩文件为所述旧版本文 件与新版本文件拼接后的压缩文件;
根据所述增量升级包中的所述不匹配块数据的起止信息, 将所述不匹配 块数据与本地的所述第二压缩文件进行拼接, 生成拼接压缩文件;
对所述拼接压缩文件进行解压, 获得所述新版本文件。
14、 一种具有处理器可执行的程序代码的计算机可读存储介质, 在被执 行时, 所述程序代码使得处理器执行下述步骤:
将旧版本文件与新版本文件拼接后进行压缩, 获得第一压缩文件, 并将 所述旧版本文件压缩获得第二压缩文件;
对比所述第一压缩文件和所述第二压缩文件获得不匹配块数据及所述不 匹配块数据的起止信息;
根据所述不匹配块数据及所述不匹配块数据的起止信息生成增量升级 包;
接收终端发送的下载与终端本地的旧版本文件对应的所述增量升级包的 请求;
将所述增量升级包发送至所述终端, 以使所述终端根据所述增量升级包 中所述不匹配块数据的起止信息, 将所述不匹配块数据与本地的所述第二压 缩文件进行拼接, 生成拼接压缩文件, 对所述拼接压缩文件进行解压获得所 述新版本文件。
PCT/CN2013/082456 2012-12-27 2013-08-28 增量升级方法、应用该方法装置及存储介质 WO2014101451A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/653,704 US10031744B2 (en) 2012-12-27 2013-08-28 Incremental upgrade method, apparatus for applying method and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210580670.6A CN103051723B (zh) 2012-12-27 2012-12-27 一种增量升级方法及服务器、终端
CN201210580670.6 2012-12-27

Publications (1)

Publication Number Publication Date
WO2014101451A1 true WO2014101451A1 (zh) 2014-07-03

Family

ID=48064217

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/082456 WO2014101451A1 (zh) 2012-12-27 2013-08-28 增量升级方法、应用该方法装置及存储介质

Country Status (3)

Country Link
US (1) US10031744B2 (zh)
CN (1) CN103051723B (zh)
WO (1) WO2014101451A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10031744B2 (en) 2012-12-27 2018-07-24 Guangzhou Ucweb Computer Technology Co., Ltd Incremental upgrade method, apparatus for applying method and storage medium
CN110083381A (zh) * 2018-01-26 2019-08-02 启碁科技股份有限公司 增量升级的方法及装置
CN112104487A (zh) * 2020-08-31 2020-12-18 北京智芯微电子科技有限公司 物联网终端的远程升级方法、物联网主站及存储介质
CN115712544A (zh) * 2022-11-24 2023-02-24 杭州中电安科现代科技有限公司 一种监控系统

Families Citing this family (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104252364B (zh) * 2013-06-25 2017-09-12 腾讯科技(深圳)有限公司 增量更新的方法、设备及系统
CN103544041A (zh) * 2013-11-12 2014-01-29 迈普通信技术股份有限公司 一种部署软件的方法及系统
CN103713928B (zh) * 2013-12-31 2017-02-22 优视科技有限公司 增量文件生成方法、应用程序安装文件更新方法及装置
CN105404521B (zh) * 2014-05-30 2017-05-31 广州市动景计算机科技有限公司 一种增量升级方法及相关装置
WO2016000102A1 (zh) * 2014-06-12 2016-01-07 华为技术有限公司 应用传送方法、终端和应用服务器
CN105205074B (zh) * 2014-06-25 2019-03-26 优视科技有限公司 文件增量升级方法及系统
CN107077396B (zh) 2015-01-26 2020-12-04 日立汽车系统株式会社 车载控制装置、程序写入装置、程序生成装置以及方法
CN104793972A (zh) * 2015-04-17 2015-07-22 北京大学深圳研究院 一种更新数据包的方法及装置
CN105100191B (zh) * 2015-05-22 2018-09-21 华为技术有限公司 一种云编译实现Java应用安装的方法、装置及系统
CN105100204B (zh) * 2015-06-12 2019-03-29 联想(北京)有限公司 一种信息处理方法及装置
CN106325834A (zh) * 2015-06-18 2017-01-11 腾讯科技(深圳)有限公司 安卓安装包压缩方法和装置
CN106484454A (zh) * 2015-09-02 2017-03-08 中兴通讯股份有限公司 差分升级包的处理方法及装置,升级方法、系统及装置
CN106886433A (zh) * 2015-12-16 2017-06-23 阿里巴巴集团控股有限公司 客户端软件的更新方法和装置
CN106055375B (zh) * 2016-07-13 2020-02-28 青岛海信移动通信技术股份有限公司 应用程序安装方法及装置
CN106603311A (zh) * 2017-01-18 2017-04-26 北京洋浦伟业科技发展有限公司 Ota升级方法、客户端、服务器和系统
CN109450962B (zh) * 2018-08-30 2021-08-10 百度在线网络技术(北京)有限公司 数据传输方法、打包服务器、存储服务器及可读存储介质
CN109582323A (zh) * 2018-11-23 2019-04-05 网易(杭州)网络有限公司 应用安装包的增量更新方法、装置、终端及服务器
CN113302585A (zh) * 2019-09-03 2021-08-24 谷歌有限责任公司 加速应用和子包安装
EP3798822A1 (en) * 2019-09-27 2021-03-31 Argus Cyber Security Ltd System and method for block and delta based update
CN111427609A (zh) * 2020-04-01 2020-07-17 山东汇贸电子口岸有限公司 一种基于多节点服务器的应用自动升级方法
CN111459524A (zh) * 2020-04-02 2020-07-28 安谋科技(中国)有限公司 软件的升级方法、装置、系统
CN111459531B (zh) * 2020-04-21 2023-07-18 广州虎牙科技有限公司 应用程序升级方法、装置、电子设备及存储介质
CN112423290B (zh) * 2020-11-05 2022-10-18 歌尔科技有限公司 无线升级方法、终端设备、待升级装置及介质
CN112433750A (zh) * 2020-12-17 2021-03-02 潍柴动力股份有限公司 车载终端应用程序升级方法、装置、设备、介质及产品
CN112579140A (zh) * 2020-12-22 2021-03-30 四川虹微技术有限公司 一种软件升级方法及装置
CN114422499B (zh) * 2021-12-27 2023-12-05 北京奇艺世纪科技有限公司 一种文件下载方法、系统及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1409239A (zh) * 2001-09-14 2003-04-09 北京瑞星科技股份有限公司 软件升级的方法
CN102799448A (zh) * 2012-06-27 2012-11-28 惠州华阳通用电子有限公司 用于车载终端设备的软件智能升级方法
CN103051723A (zh) * 2012-12-27 2013-04-17 广州市动景计算机科技有限公司 一种增量升级方法及服务器、终端

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6925467B2 (en) * 2002-05-13 2005-08-02 Innopath Software, Inc. Byte-level file differencing and updating algorithms
WO2007057044A1 (en) * 2005-11-17 2007-05-24 Telefonaktiebogalet Lm Ericsson (Publ) Recording a circuit switched call using an ip based control interface
KR101426710B1 (ko) * 2006-07-14 2014-09-23 삼성전자주식회사 휴대단말기의 버전정보 갱신 장치 및 방법
US20110119240A1 (en) * 2009-11-18 2011-05-19 Dana Shapira Method and system for generating a bidirectional delta file
CN102081536A (zh) * 2010-12-30 2011-06-01 华为终端有限公司 一种增量升级方法及服务器

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1409239A (zh) * 2001-09-14 2003-04-09 北京瑞星科技股份有限公司 软件升级的方法
CN102799448A (zh) * 2012-06-27 2012-11-28 惠州华阳通用电子有限公司 用于车载终端设备的软件智能升级方法
CN103051723A (zh) * 2012-12-27 2013-04-17 广州市动景计算机科技有限公司 一种增量升级方法及服务器、终端

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10031744B2 (en) 2012-12-27 2018-07-24 Guangzhou Ucweb Computer Technology Co., Ltd Incremental upgrade method, apparatus for applying method and storage medium
CN110083381A (zh) * 2018-01-26 2019-08-02 启碁科技股份有限公司 增量升级的方法及装置
CN112104487A (zh) * 2020-08-31 2020-12-18 北京智芯微电子科技有限公司 物联网终端的远程升级方法、物联网主站及存储介质
CN112104487B (zh) * 2020-08-31 2023-06-20 北京智芯微电子科技有限公司 物联网终端的远程升级方法、物联网主站及存储介质
CN115712544A (zh) * 2022-11-24 2023-02-24 杭州中电安科现代科技有限公司 一种监控系统
CN115712544B (zh) * 2022-11-24 2024-04-12 杭州中电安科现代科技有限公司 一种监控系统

Also Published As

Publication number Publication date
CN103051723A (zh) 2013-04-17
US10031744B2 (en) 2018-07-24
CN103051723B (zh) 2016-08-31
US20160004530A1 (en) 2016-01-07

Similar Documents

Publication Publication Date Title
WO2014101451A1 (zh) 增量升级方法、应用该方法装置及存储介质
CN104391728B (zh) 软件升级差量包获取方法和相应的升级方法以及装置
US7761535B2 (en) Method and system for server synchronization with a computing device
US8463944B2 (en) Optimal compression process selection methods
CN101719073B (zh) 一种基于智能客户端的按需下载实现方法
US20120089775A1 (en) Method and apparatus for selecting references to use in data compression
US20070016695A1 (en) Method and system for client-based operations in server synchronization with a computing device
JP2013534007A (ja) データ記憶とデータ送信の最適化
WO2021096822A1 (en) Partial downloads of compressed data
US20130067237A1 (en) Providing random access to archives with block maps
US9917894B2 (en) Accelerating transfer protocols
US11221921B2 (en) Method, electronic device and computer readable storage medium for data backup and recovery
JP2014500536A (ja) クラウドシステム、クラウドシステムにおけるファイルの圧縮及び転送方法
US11169796B2 (en) Methods and systems for remote software update
WO2016202000A1 (zh) 差分回退升级方法及装置
WO2003073292A1 (en) Method and system for server-based operations in server synchronization with a computing device
CN101420324B (zh) 一种网管系统及其代理软件的版本更新方法
CN113590144B (zh) 一种依赖处理方法及装置
CN107613016B (zh) 文件批量下载方法、客户端、分发服务器及系统
CN106681761B (zh) 一种交互式升级的方法及系统
CN110851794A (zh) 媒体文件上链方法和装置、存储介质及电子装置
EP2680135B1 (en) Methods for updating applications
CN110430279B (zh) 文件下载控制方法及装置
WO2012019388A1 (zh) 文件的下载方法、系统及装置
CN112615973A (zh) 一种图片显示方法、装置、服务器和计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13867526

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 14653704

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13867526

Country of ref document: EP

Kind code of ref document: A1