WO2014121441A1 - Application program processing method, device and system - Google Patents
Application program processing method, device and system Download PDFInfo
- Publication number
- WO2014121441A1 WO2014121441A1 PCT/CN2013/071397 CN2013071397W WO2014121441A1 WO 2014121441 A1 WO2014121441 A1 WO 2014121441A1 CN 2013071397 W CN2013071397 W CN 2013071397W WO 2014121441 A1 WO2014121441 A1 WO 2014121441A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- application
- packages
- installation
- package
- installation package
- Prior art date
Links
- 238000009434 installation Methods 0.000 claims abstract description 765
- 238000000034 method Methods 0.000 claims description 52
- 230000004044 response Effects 0.000 claims description 35
- 238000003672 processing method Methods 0.000 claims description 22
- 238000012216 screening Methods 0.000 claims description 19
- 238000012545 processing Methods 0.000 claims description 17
- 238000004891 communication Methods 0.000 abstract description 12
- 230000008569 process Effects 0.000 description 20
- 238000010586 diagram Methods 0.000 description 8
- 238000001914 filtration Methods 0.000 description 8
- 101100234002 Drosophila melanogaster Shal gene Proteins 0.000 description 3
- 235000015076 Shorea robusta Nutrition 0.000 description 3
- 244000166071 Shorea robusta Species 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
Definitions
- the present invention relates to the field of communications, and in particular, to an application processing method, apparatus, and system.
- the app store is a place for major mobile phone manufacturers, telecom operators, third-party Internet service providers, etc. to provide application developers with their own developed application software.
- the specific functions of the app store are supported by the corresponding application server.
- the mobile app store provides mobile phone users with applications such as mobile phone software, mobile games, mobile phone pictures, mobile phone themes, ringtones, and mobile video through the app store's server.
- Application version upgrade is an important function of the app store.
- the user device can detect the new version of the app through the app store client, so that the app on the user device is upgraded to The new version.
- the application server of the store first differentiates the old version installation package of the application from the new version installation package, obtains the updated partial difference package, and then, the user equipment installed with the old version application applies the difference package to the old version.
- the installation package combines to build a new version of the installation package and install the corresponding new version of the application.
- the application server of the application store A stores the old version A1 .0 of an application
- the application server when the developer uploads the new version A2.0, the application server generates a differential package patch based on the difference between A2.0 and A1.0.
- the application server returns a differential packet Patch_AA21 to the user device. After the user equipment downloads the differential packet, it needs to combine A1.0 and Patch_AA21 on the user equipment side to obtain a new version of the A2-Local application.
- the A2-Local application is the same as the A2.0.
- Embodiments of the present invention provide an application processing method, apparatus, and system that enable differential upgrade of applications across an application store.
- the embodiment of the present invention uses the following technical solutions:
- an application processing method for application collection server, including:
- the old version installs the package, and obtains n differential packages corresponding to the n old version installation packages, and the difference package is used to upgrade the old version installation package, " ⁇ 1.
- the acquiring m different installation packages of the first application, the m different installation packages from the respective application stores including: acquiring the first of the respective application stores The installation package of the application;
- the installation package filters out m installation packages with different summary information.
- the obtaining the installation package of the first application of the each application store includes:
- the installation package of the first application of each of the application stores is downloaded according to the download address of the first application.
- the method also includes:
- the information of the m different installation packages is collated to obtain installation package information, where the installation package information includes: one or more of an application identifier, a package name, a version number, a file size, a summary information, and a source;
- the second aspect provides an application processing method, which is applied to a first application server, where the first application server serves the first application store, including:
- Receiving a first application collects application server sends the m different installation packages, the installation packages m different are obtained by the collection server application from various applications store, m ⁇ 2;
- the selecting, by the m different installation packages, the n old version installation packages includes:
- An n old version installation package having a version number smaller than the version number of the new version installation package is selected among the m different installation packages.
- the method further includes: receiving, by the user equipment, an application upgrade request for upgrading the first application, where the application upgrade request includes: the first one of the user equipments Summary information of the old version installation package;
- the selecting the first differential packet from the n differential packets according to the summary information of the first old version installation package includes:
- an application collection server including:
- An acquisition unit configured to acquire a first application of m different installation packages, the installation packages m different from each application store, and transmits the m different installation package to the first transmitting unit, m ⁇ 2 ;
- a first sending unit configured to receive the m different installation packages sent by the acquiring unit, and send the m different installation packages to the first application server, so that the first application server is in the acquiring
- the n old installation packages are selected from the m different installation packages, and n differential packages corresponding to the n old version installation packages are obtained, and the difference package is used.
- For the upgrade of the old version of the installation package " ⁇ 1.
- the acquiring unit is specifically configured to: obtain an installation package of the first application of each application store;
- the acquiring unit is specifically configured to: when acquiring an installation package of the first application of each application store:
- the installation package of the first application of each of the application stores is downloaded according to the download address of the first application.
- the application collection server further includes:
- a processing unit configured to: after the obtaining unit acquires m different installation packages of the first application, sorting information of the m different installation packages to obtain installation package information, where the installation package information includes: Any one or more of the identifier, package name, version number, file size, summary information, and source;
- a second sending unit configured to send the installation package information to the first application server, so that the first application server performs screening of the installation package according to the installation package information. Selected.
- a fourth aspect provides an application server, where the application server serves the first application store, including:
- a first receiving unit configured to receive m different installation packages of the first application sent by the application collection server, and send the m different installation packages to the first screening unit, where the m different installation packages are Obtained by the application collection server, from various application stores, m ⁇ 2 ;
- a second receiving unit configured to receive a new version installation package of the first application, and separately send the new version installation package to the first selection unit and the difference unit;
- a first selection unit configured to receive the m different installation packages sent by the first receiving unit, and the new version installation package sent by the second receiving unit, and in the m different installation packages Selecting n old version installation packages, sending the n old version installation packages to the difference unit, " ⁇ 1;
- a difference unit configured to receive the new version installation package sent by the second receiving unit and the n old version installation packages sent by the first selection unit, and respectively, the n old version installation packages and the new The version installation package performs a difference, and obtains n differential packages corresponding to the n old version installation packages, where the difference package is used to upgrade the old version installation package.
- the first screening unit is specifically configured to:
- An n old version installation package having a version number smaller than the version number of the new version installation package is selected among the m different installation packages.
- the first application server further includes:
- a third receiving unit configured to receive, by the user equipment, an application upgrade request for upgrading the first application, where the application upgrade request includes: a summary of the first old version installation package in the user equipment Information
- a second selection unit configured to select, according to the summary information of the first old version installation package, the first difference among the n difference packets selected by the first selection unit a package, the first differential package and the first old version installation package can be combined to obtain the new version installation package;
- a sending unit configured to send a response message to the user equipment, where the response message includes information about the first differential packet, so that the user equipment sends the first differential packet and the first according to the response message
- An old version of the installation package is combined to get the new version of the installation package.
- the second screening unit is specifically configured to:
- an application processing system including:
- an application collection server including:
- a processor configured to obtain a first application of m different installation packages, the installation packages m different from each application store, m ⁇ 2;
- a transmitter configured to send the m different installation packages to the first application server, so that the first application server obtains the new version installation package of the first application, after the m different
- the installation package selects n old version installation packages, and obtains n differential packages corresponding to the n old version installation packages, and the difference package is used for upgrading the old version installation package, " ⁇ 1.
- the processor is specifically configured to: obtain an installation package of the first application of each application store;
- the installation package filters out m installation packages with different summary information.
- the processor is specifically configured to:
- the installation package of the first application of each of the application stores is downloaded according to the download address of the first application.
- a fourth implementation manner of combining the sixth aspect, the first achievable manner, and the third achievable manner, the processor is further configured to:
- the information of the m different installation packages is collated to obtain installation package information, where the installation package information includes: an application identifier, a package name, and a version number. , one or more of file size, summary information, and source;
- the transmitter is further configured to send the installation package information to the first application server, so that the first application server performs screening of the installation package according to the installation package information.
- the seventh aspect provides an application server, where the application server serves the first application store, including:
- a receiver for receiving a first application collects application server sends the m different installation packages, the installation packages m different are obtained by the collection server application from various applications store, m ⁇ 2;
- the receiver is further configured to receive a new version installation package of the first application; a processor, configured to obtain n old version installation packages among the m different installation packages, " ⁇ 1;
- the processor is further configured to separately use the n old version installation packages and the new version
- the installation package performs a difference, and obtains n differential packets corresponding to the n old version installation packages, where the difference package is used for upgrading the old version installation package.
- the processor is specifically configured to: select, from the m different installation packages, n old version installation packages whose version number is smaller than a version number of the new version installation package.
- the receiver is further configured to receive, by the user equipment, an application upgrade request for upgrading the first application, where the application is The program upgrade request includes: summary information of the first old version installation package in the user equipment;
- the processor is configured to select a first differential packet from the n differential packets according to the summary information of the first old version installation package, where the first differential package and the first old version installation package can be combined The new version of the installation package;
- the first application server further includes:
- a transmitter configured to send a response message to the user equipment, where the response message includes information of the first differential packet, so that the user equipment sends the first differential packet and the first according to the response message
- An old version of the installation package is combined to get the new version of the installation package.
- the processor is specifically configured to:
- an application processing system including:
- Embodiments of the present invention provide an application processing method, apparatus, and system, which are capable of Implement differential upgrades for applications across the store.
- the method includes: obtaining m different installation packages of the first application, the m different installation packages are from respective application stores, m >2; sending the m different installation packages to the first application server, so as to facilitate After obtaining the new version installation package of the first application, the first application server selects n old version installation packages from the m different installation packages, and obtains n corresponding to the n old version installation packages.
- a differential package the differential package is used to upgrade the old version installation package, " ⁇ 1 .
- the application collection server collects multiple different installation packages in different application stores, so that the first application server can After obtaining the new version installation package of the application, the old version installation package and the corresponding difference package are obtained according to the different installation packages. Since the first application server can provide multiple differential packages, even if the user equipment needs The old version of the upgraded application installation package is not downloaded in the first application server, and the corresponding differential package can be obtained to upgrade the application. Therefore, the differential application upgrades enable cross-application store.
- FIG. 1 is a schematic flow chart of an application processing method according to an embodiment of the present invention.
- FIG. 2 is a schematic flow chart of another application processing method according to an embodiment of the present invention.
- FIG. 3 is a schematic flow chart of still another application processing method according to an embodiment of the present invention.
- FIG. 4 is a schematic structural diagram of an application collection server according to an embodiment of the present invention
- FIG. 5 is a schematic structural diagram of another application collection server according to an embodiment of the present invention
- FIG. 6 is a schematic diagram of a first application server according to an embodiment of the present invention
- FIG. 7 is a schematic structural diagram of another first application server according to an embodiment of the present invention
- FIG. 8 is a schematic structural diagram of still another application collection server according to an embodiment of the present invention
- FIG. 9 is a schematic structural diagram of still another first application server according to an embodiment of the present invention
- FIG. 10 is still another first embodiment of the present invention.
- FIG. 1 is a schematic structural diagram of still another application collection server according to an embodiment of the present invention
- FIG. 12 is a schematic structural diagram of still another first application server according to an embodiment of the present invention.
- An embodiment of the present invention provides an application processing method, which is applied to an application collection server, as shown in FIG. 1, and includes:
- a first application program acquiring m different installation packages, the installation packages m different from each application store, m ⁇ 2.
- the application developer may provide different installation packages for each application store, so there may be multiple installation packages for the same application, each from the respective application store in the application processing system.
- the application that the application collection server needs to acquire is the first application, and the application collection server may first obtain the installation package of the first application of the respective application stores; and then generate the respective application stores.
- the summary information is summary information of an installation package generated by a specific digest generation algorithm, and is used to distinguish different installation packages.
- the application collection server can serve one or more application stores, and collect and process the application.
- the application collection server usually serves the fixed application store.
- the embodiment of the present invention assumes that the application collection server is the first application. Store service.
- the application collection server collects a plurality of different installation packages in different application stores, so that the first application server can obtain the old version according to the different installation packages after acquiring the new version installation package of the application.
- the installation package and the corresponding differential package since the first application server can provide multiple differential packages, even if the old version installation package of the application that needs to be upgraded in the user equipment is not downloaded in the first application server, the corresponding package can be obtained.
- the differential package upgrades the application, thus enabling differential upgrades of applications across the store.
- the installation package of the first application of each application store may be obtained by using a plurality of methods.
- the first application store may be obtained by using an application acquisition interface between the application collection server and each application store.
- the installation package for the application may be obtained by using an application acquisition interface between the application collection server and each application store.
- the webpage addresses of the respective application stores may be obtained by searching the crawler, and then the download addresses of the first application are obtained in the webpages of the respective application stores according to the webpage addresses of the respective application stores, and finally according to the The download address of the first application downloads the installation package of the first application of the respective application stores.
- search crawler also known as web crawler
- web crawler is a program for automatically extracting web pages. It is a search engine for downloading web pages from the World Wide Web, which is an important part of the search engine.
- an application store search crawler may be set to obtain the webpage addresses of the respective application stores.
- the application collection server may further sort the information of the m different installation packages to obtain installation package information, where the installation package information includes: an application identifier, a package name (packageName), and a version number ( Any one or more of versionCode ), file size, summary information, and source.
- the application identifier and the package name may be used for identification, version number, and summary information of the installation package of the first application.
- the file size and the source may be displayed by the first application server to the user through the client of the first application store, where the file size is used as reference information for the size of the traffic downloaded by the installation package, The source serves as a reference for the source of the installation package download.
- the installation package information makes the form and information of each installation package uniform, and is easy to identify and filter.
- the application collection server may send the installation package information to the first application server while sending the installation package in step 102, so that the first application server performs the installation package according to the version number and the summary information in the installation package information. Filtering to efficiently generate differential packets in subsequent processes.
- the first application server may generate a version number and summary information corresponding to the installation package when receiving the installation package, so as to facilitate the installation of each package. selected.
- An embodiment of the present invention provides an application processing method, as shown in FIG. 2, applied to a first application server, where the first application server serves the first application store, including:
- m different receiving application installation package first application server sends the collected, the m different installation package is acquired by the collection server application, various applications from a store, m ⁇ 2.
- the new version installation package of the first application is usually uploaded to the first application server after the developer completes development.
- n old version installation packages where the version number of the old version installation package is smaller than the version number of the new version installation package.
- the app developer may provide different installation packages for each app store, so there may be more than one old version of the app.
- each application store has its own corresponding application server, which is used to implement storage, acquisition, and the like of the application in the application store.
- the first application server serves the first application store.
- the first application server It may be a server system integrated with one or more sub-application servers, which is not limited by the present invention.
- the first application server may filter, among the m different installation packages, the n old version installation packages whose version number is smaller than the version number of the new version installation package.
- the first application server may obtain the old installation package according to the different installation packages after acquiring the new version installation package of the application. Version installation package and corresponding differential package. Since the first application server can provide multiple differential packages, even if the old version installation package of the application that needs to be upgraded in the user equipment is not downloaded in the first application server, The corresponding differential package upgrades the application, thus enabling differential upgrades of applications across the store.
- the first application server may further receive installation package information of the first application sent by the application collection server, where the installation package information includes: an application identifier, a package name (packageName), and a version number (versionCode) , one or more of file size, summary information, and source.
- the installation package information makes the form and information of each installation package uniform, and is easy to identify and filter.
- the application identifier and the package name may be used for identifying the installation package of the first application, and the version number and summary information may be used for screening each installation package, where the file size and source may be adopted by the first application server.
- a client of an application store is displayed to the user, and the file size is used as reference information for the size of the traffic downloaded by the installation package, and the source is used as reference information for downloading the installation package.
- the installation package information makes the form and information of each installation package uniform, and is easy to identify and select.
- the first application server performs the selection of the installation package according to the version number and the summary information in the installation package information, so as to effectively generate the differential package in the subsequent process.
- the first application server may generate a version number and summary information corresponding to the installation package when receiving the installation package, so as to facilitate the installation of each package. filter.
- the first application service The server can also process m different installation packages received by the receiver to obtain complete installation package information.
- step 204 the method further includes:
- an application upgrade request for upgrading the first application where the application upgrade request includes: summary information of a first old version installation package in the user equipment;
- the summary information of the old version installation package selects a first difference package among the n difference packages, the first difference package and the first old version installation package can be combined to obtain the new version installation package; sending a response message to The user equipment, the response message includes information of the first differential packet, so that the user equipment combines the first differential package and the first old version installation package according to the response message to obtain the New version of the installation package.
- the method for generating the digest information may be used to perform the screening of the first differential package. Specifically, the method includes: extracting summary information of the first old version installation package in the application upgrade request; and upgrading the application.
- the summary information of the first old version installation package in the request is matched with the summary information of the n difference packages; obtaining a summary of the first old version installation package in the n difference packages and the application upgrade request.
- the embodiment of the present invention provides an application processing method. As shown in FIG. 3, this embodiment assumes that the first application is WeChat, the first application server is the application server a, and the application server a serves the application store. A.
- the application processing system further includes an application store other than the application store A.
- the collection server provides the application store A with the service collected by the installation package of the first application (ie, WeChat).
- the application processing method includes:
- the application collection server obtains an installation package of WeChat of each application store.
- the application collection server may obtain an installation package of the WeChat of each application store through an application acquisition interface between the application collection server and each application store.
- the webpage addresses of the respective application stores may be obtained by searching the crawler, and then, according to the webpage addresses of the respective application stores, the download addresses of the WeChat are obtained in the webpages of the respective application stores, and finally, according to the download of the WeChat The address download is obtained by the WeChat installation package of each of the application stores.
- the search crawler also known as the web crawler, is a program for automatically extracting web pages, which is a search engine for downloading web pages from the World Wide Web, and is an important part of the search engine.
- an application store search crawler may be set to obtain a webpage address of each of the application stores.
- the application collection server may store the installation package of the WeChat in the application store A. Therefore, when acquiring the installation package of the WeChat in the application store A, the application collection server may Extract the WeChat installation package in Store A directly from the locally stored installation package.
- This embodiment assumes that the WeChat installation package acquired by the application collection server in the application server a of the application store A is WeChat A1. 0, and the WeChat installation package acquired in the application server b of the application store B is WeChat B 1.0. The WeChat installation package obtained in the application server c of the store C is WeChat C 1.0.
- the application collection server filters and obtains m different installation packages of WeChat.
- the application developer may provide different installation packages for each app store, so there may be multiple installation packages for the same application, each from the app store in the app processing system, due to The same installation package may exist in the installation package obtained by the application collection server, so the installation package needs to be filtered.
- the application collection server may generate the summary information of the installation package of the application of each application store by using the same summary generation algorithm, and then filter the summary information in the installation package of the application of each application store by comparing the summary information.
- the summary information is summary information of an installation package generated by a specific digest generation algorithm, and is used to distinguish different installation packages.
- digest generation algorithm may be various, such as MD5 (Message Digest Algorithm).
- the application collection server may further organize information of the m different installation packages to obtain installation package information, where the installation package information includes: an application identifier, a package name, a version number, a file size, a summary information, and a source. Or a variety.
- the installation package information makes the form and information of each installation package uniform, and is easy to identify and filter.
- the application identifier and the package name may be used for the identification of the installation package of the WeChat, and the version number and the summary information may be used for screening the installation packages, and the file size and source may be used by the application server a through the client of the application store A.
- the terminal is displayed to the user, and the file size is used as reference information for the size of the traffic downloaded by the installation package, and the source is used as reference information for downloading the installation package.
- the installation package information makes the form and information of each installation package uniform, which facilitates identification and screening.
- the application server may send the installation package information to the application server a, so that the application server a performs screening of the installation package according to the installation package information, thereby effectively generating a differential package.
- the application server a may generate a version number and summary information corresponding to the installation package when receiving the installation package, so as to facilitate screening of each installation package. .
- the application collection server may record the installation package information of the three different installation packages in the form as shown in Table 1.
- the application identifier of WeChat A1.0 is A1
- the application identifier of WeChat B1.0 is A2
- the application identifier of WeChat C1.0 is A3.
- the package names of three different installation packages are "com.tencent.weixin".
- the application names are all letters, the version numbers are 1, 1 and 2, respectively.
- the three different installation packages are from App Store A, App Store B, and App Store C.
- the file sizes and summary information of the three are different. Specifically, the unit of the file size is a bit (Byte), and the application identifier is generated to effectively distinguish each WeChat installation package. Because the application collection server provides the WeChat installation package collection service for the application store A in this embodiment. Therefore, the application identifier may make the identification of each WeChat installation package in the application store A unique. Table 1
- the application collection server sends the m different installation packages of the WeChat to the application server a.
- the application collection server may also send the installation package information to the application server a at the same time, so that the application server a selects the installation package according to the installation package information, thereby effectively generating the differential package. It should be noted that the application server a can also process the obtained m different installation packages, and obtain the installation package information as shown in Table 1, so as to facilitate the identification and selection of the installation package, thereby effectively generating the differential package.
- application server a Receive a new version of WeChat installation package.
- the new version of the WeChat installation package is usually uploaded by the application developer to the application server a of the application store A.
- the new version of the WeChat installation package uploaded by the application developer to the application store A may be related to other applications in the application processing system.
- the new version of the app store installation package is different. This embodiment assumes that the new version of the WeChat installation package uploaded by the application developer to the application store A is A2.0.
- Application server a has obtained the installation package information as shown in Table 1, correspondingly, The server A can also record the installation package information of the new version installation package A2.0, as shown in Table 2, the application identifier of WeChat A2.0 is A4, and the package name is "com.tencent.weixin", the application The names are WeChat, the version number is 10, from App Store A.
- WeChat A1.0, B1.0, Cl.O and A2.0 have unique application identifiers in application server a, namely Al, A2, A3 and A4, so when application store A processes WeChat installation package , you can query the corresponding application ID to get the installation package.
- the application server a may filter, among the m different installation packages, n old version installation packages whose version number is smaller than the version number of the new version installation package.
- the version number of the installation package A2.0 is 10, which is greater than the version numbers 1, 1 and 2, respectively. Therefore, the local installation package A1.0 and the remote installation packages B1.0 and C1.0 are the old version installation packages.
- the new version installation package is the latest update installation package in the application store A, and other application stores may have an installation package updated than the new version installation package version in the application store A, the m exists. There are cases where the version number is greater than or equal to the new version of the installation package in a different installation package. If the first installation package whose version number is greater than or equal to the new version installation package exists in the m different installation packages, the application store A does not perform differential processing on the first installation package, and waits until a new one appears in the application store A. When the new version installs the update, the version number is compared.
- the application server a obtains n different differential packets.
- the application server a can differentiate the n old version installation packages from the new version installation package to obtain n difference packets corresponding to the n old version installation packages, and the difference algorithm is the same as the prior art. This will not be repeated here. Record the information of the three different differential packets as shown in Table 3.
- the three different differential packets are the differential packets of A2.0 and A1.0, and the differential packets of A2.0 and B1.0, A2.
- the difference packets of .0 and C1.0, the identifiers of the three differential packets are XI, X2, X3, respectively.
- the difference packet of the differential packet identified by XI is obtained by the difference between A2.0 and A1.0, that is,
- the application identifier is differentiated between the installation packages of A4 and A1.
- the differential package recorded by the application store A is described as A1->A4. Since the version number of A1.0 is 1, the version number of A2.0 is 10, so The old version number of the differential package identified as XI is 1, and the new version number is 10. It should be noted that the application server a may generate summary information for each differential packet in the digest generation algorithm pair, and the digest generation algorithm is the same as the digest generation algorithm in step 302. table 3
- the application server a can also verify the differential packet. Specifically, the application server a merges the old version installation package and the corresponding differential package to obtain a complete installation package, and calculates the The summary information of the complete installation package is determined, and whether the summary information is completely consistent with the new version installation package, if the consistency package is completely consistent, the differential package is a valid differential package. For example, the old version installation package B 1 . 0 of the application identifier A2 is merged with the corresponding differential package with the difference identifier X2.
- the merge method is the same as the prior art, and the present invention will not be described again.
- the new complete installation package is compared with the new version installation package A2.0 with the application identifier A4, and the summary information can be generated, and the summary information is compared with the summary information of the new version installation package A2.0. If they are completely consistent, the differential packet whose difference is identified by X2 is a valid differential packet. If there is an invalid differential packet, the generation of the differential packet can be performed again. The process of differential packet verification can reduce the generation of invalid differential packets.
- the user equipment sends a WeChat upgrade request to the application server a.
- the application client of the application store A is installed on the user device, and can communicate with the application server a of the application store A.
- the user equipment automatically scans the application installed in the user equipment when booting, and obtains application information of each application. For example, as shown in Table 4, a total of 3 applications are installed on the application device, namely Angry Birds, WeChat, and Weibo.
- the user equipment can query whether the application in the user equipment can be upgraded through the information interface of the application server a of the application store A. When there is an application that can be upgraded, the user can be prompted to upgrade through the display interface of the user equipment.
- the application when receiving the upgrade instruction of the user, sends an application upgrade request to the application server a, where the application upgrade request may be an upgrade request of multiple applications, or may be an upgrade request of one application, the application
- the upgrade request may include multiple parameters, such as an installation package name or an application identifier, one or more of application summary information (shal -Degist) and a version number, and the application upgrade request may also include a service self parameter, such as user equipment networking. Ways such as WIFI (Wireless Fidelity), 3G (3rd-generation, 3rd generation mobile communication technology); supported compression methods, such as Gzi and so on.
- WIFI Wireless Fidelity
- 3G 3rd-generation, 3rd generation mobile communication technology
- supported compression methods such as Gzi and
- the WeChat upgrade request is used as an example.
- the WeChat upgrade request is used to upgrade the WeChat.
- the parameters in the WeChat upgrade request may include the installation package name: WeChat, summary information: 1ASDFSAFSDFASASAASADFSAF SDFASASA, may also include the version number: 1.
- the application server a filters the first differential packets in the n differential packets.
- the application store A may extract the summary information in the application upgrade request, and match the summary information in the application upgrade request with the n differential packets;
- the first differential package of the n difference packets that is the same as the summary information in the application upgrade request, the first difference package and the first old version installation package of the WeChat in the user equipment can be combined Get the new version of the installation package.
- the application server a may extract the summary information in the WeChat upgrade request, and match the summary information in the WeChat upgrade request with the summary information of the application installation package as shown in Table 2 stored in the application server a, Obtaining a WeChat installation package that is the same as the summary information in the WeChat upgrade request, where the WeChat installation package is a WeChat A1.0 with an application identifier of A1, and filtering and acquiring the n differential packets in the WeChat upgrade request
- the differential packet corresponding to the same application installation package is the first differential packet.
- the first differential packet is the differential packet with the identifier XI recorded in Table 3.
- the application server a sends a response message to the user equipment.
- the response message may include a plurality of parameters, such as an installation package name or an application identifier, summary information of the new version installation package (shal -Degist_All), summary information of the first differential package (shal -Degist_Patch), new version
- the size of the installation package is the size of the first differential packet (Size-Patch)
- the response message may also include a service self parameter, such as a differential packet download address and the like.
- the user equipment obtains the new version installation package according to the first differential package and a first old version installation package of the WeChat in the user equipment.
- the first old version installation package of the WeChat in this embodiment is an installation package whose application identifier is A1 in Table 4.
- the user equipment may first obtain the first differential packet according to the response message, and after obtaining the first differential packet, calculate summary information of the first differential packet, and determine summary information of the first differential packet. Whether the summary information of the first differential packet in the response message is consistent. If the information is consistent, the first differential packet is successfully downloaded. If the information is inconsistent, the downloading of the first differential packet fails, and the download may be performed again.
- the first differential package and the first old version installation package of the WeChat in the user equipment may be combined to obtain a new version installation package.
- the user equipment may calculate the summary information of the new version of the installation package again, and then determine whether the summary information of the new version installation package is consistent with the summary information of the new version installation package in the response message.
- the new version of the installation package is successful. If it is inconsistent, it means that the new version of the installation package fails. You can re-create the new version of the installation package.
- the application collection server collects a plurality of different installation packages in different application stores, so that the first application server may obtain the new version installation package of the application, according to The different installation packages obtain the old version installation package and the corresponding differential package. Since the first application server can provide multiple differential packages, even if the old version installation package of the application that needs to be upgraded in the user equipment is not in the first application, The application downloaded from the server can also obtain the corresponding differential package to upgrade the application, thus enabling differential upgrade of applications across the application store.
- An application collection server 40 includes: an obtaining unit 401, configured to acquire m different installation packages of the first application, where the m different installation packages are from various application stores. And sending the m different installation packages to the first sending unit 402, m > 2 o
- the app developer might be for each app
- the store offers different installation packages, so there may be multiple installation packages for the same application, one from each app store in the application processing system.
- the first sending unit 402 is configured to receive the m different installation packages sent by the acquiring unit, and send the m different installation packages to the first application server, so that the first application server is acquiring After the new version of the first application is installed, the n old installation packages are selected from the m different installation packages, and the n differential packages corresponding to the n old version installation packages are obtained, and the difference package is obtained. Used to upgrade the old version of the installation package, " ⁇ 1.
- the application collection server can serve one or more application stores, and collect and process the application.
- the application collection server usually serves the fixed application store.
- the embodiment of the present invention assumes that the application collection server is the first application. Store service.
- the obtaining unit collects a plurality of different installation packages in different application stores, and the first sending unit sends the plurality of different installation packages to the first application server, so that the first application server may obtain the After the new version of the application is installed, the old version installation package and the corresponding differential package are obtained according to the different installation packages. Since the first application server can provide multiple differential packages, even if the application needs to be upgraded in the user equipment, The old version of the installation package is not downloaded in the first application server, and the corresponding differential package can be upgraded to the application, thus enabling differential upgrades of applications across the application store.
- the obtaining unit 401 is specifically configured to: when acquiring an installation package of the first application of each application store:
- an installation package of the first application of the respective application stores acquiring an installation package of the first application of the respective application stores by using an application acquisition interface between the respective application stores; or acquiring the respective by searching a crawler Obtaining, by the webpage address of the application store, the download address of the first application in the webpage of each application store according to the webpage address of the respective application store, and downloading the each according to the download address of the first application
- the installation package for the first app of the app store Generating summary information of installation packages of the first application of the respective application stores; by comparison And the summary information is used to filter, in the installation package of the first application of each application store, m installation packages with different summary information.
- search crawler also known as web crawler
- web crawler is a program for automatically extracting web pages. It is a search engine for downloading web pages from the World Wide Web, which is an important part of the search engine.
- an application store search crawler may be set to obtain the webpage addresses of the respective application stores.
- the application collection server 40 further includes: a processing unit 403, configured to: after the obtaining unit acquires m different installation packages of the first application, the m different The information of the installation package is compiled to obtain installation package information, and the installation package information includes: one or more of an application identifier, a package name, a version number, a file size, a summary information, and a source.
- the second sending unit 404 is configured to send the installation package information to the first application server, so that the first application server performs screening of the installation package according to the installation package information, thereby effectively generating a difference in a subsequent process. package.
- the embodiment of the present invention provides an application server 50.
- the application server 50 is configured by the first application store, and the application server may be the first application server in the foregoing method embodiment. As shown in FIG. 6, the method includes:
- the first receiving unit 501 is configured to receive m different installation packages of the first application sent by the application collection server, and send the m different installation packages to the first screening list 503, where the m different installations
- the package is obtained by the application collection server, from various app stores, m ⁇ 2 .
- the new version of the first application installation package is usually uploaded to the application server after the development of the developer.
- the first receiving unit 501 may further receive installation package information of the first application sent by the application collection server, where the installation package information includes: an application identifier, a package name (packageName), a version number (versionCode), a file size, and an abstract. Information and Any one or more of the sources.
- the installation package information makes the form and information of each installation package uniform, and is easy to identify and select.
- the application server selects an installation package according to the installation package information, thereby effectively generating a differential package in a subsequent process.
- the second receiving unit 502 is configured to receive a new version installation package of the first application, and send the new version installation package to the first selection unit 503 and the difference unit 504, respectively.
- a first selection unit 503 configured to receive the m different installation packages sent by the first receiving unit 501 and the new version installation package sent by the second receiving unit 502, and in the m different The n installation packages are selected to obtain n old version installation packages, and the n old version installation packages are sent to the difference unit 504, " ⁇ 1.
- the first selection unit 503 can also process m different installation packages received by the receiver. , get the package information, in order to facilitate the identification and selection of the installation package, thus effectively generating a differential package.
- the version number of the old version installation package is smaller than the version number of the new version installation package.
- the app developer may provide different installation packages for each app store, so there may be more than one old version of the app.
- the first selection unit 503 is specifically configured to:
- An n old version installation package having a version number smaller than the version number of the new version installation package is selected among the m different installation packages.
- each application store has its own corresponding application server, which is used to implement storage, acquisition, and the like of the application in the application store.
- This embodiment assumes that the application server serves the first application store.
- the application server may be a server system integrated with one or more sub-application servers, which is not limited by the present invention.
- the difference unit 504 is configured to receive the new version installation package sent by the second receiving unit 502 and the n old version installation packages sent by the first selection unit 503, and respectively, the n old version installation packages are respectively.
- the new version installation package performs a difference to obtain n differential packages corresponding to the n old version installation packages, and the difference package is used to upgrade the old version installation package.
- the first receiving unit receives the difference collected by the application collection server a plurality of different installation packages in the application store, so that after the second receiving unit acquires the new version installation package of the application, the first selection unit obtains the old version installation package according to the different installation package, and the difference unit is correspondingly obtained.
- the differential package since the application server can provide multiple differential packages, even if the old version installation package of the application that needs to be upgraded in the user equipment is not downloaded in the application server, the corresponding differential package can be obtained for the application. Upgrades, therefore, enable differential upgrades of applications across the store.
- the application server 50 further includes:
- the third receiving unit 505 is configured to receive, by the user equipment, an application upgrade request for upgrading the first application, where the application upgrade request includes: a summary of the first old version installation package in the user equipment information.
- a second selection unit 506, configured to select, according to the summary information of the first old version installation package, a first difference packet, among the n difference packets selected by the first selection unit, the first difference packet and The first old version installation package can be combined to obtain the new version installation package.
- the second screening unit 506 is specifically configured to:
- the sending unit 507 is configured to send a response message to the user equipment, where the response message includes information about the first differential packet, so that the user equipment, according to the response message, the first differential packet and the The first old version of the installation package is combined to get the new version of the installation package.
- An embodiment of the present invention provides an application processing system, including:
- An application collection server provided by any embodiment of the present invention.
- the application server is configured to collect a first application program acquiring m different installation packages, the installation packages m different from each application store, m ⁇ 2; m different transmitting the installation package to the application server, After the application server obtains the new version installation package of the first application, select n old version installation packages from the m different installation packages, and obtain n corresponding to the n old version installation packages. a differential packet, the differential packet being used for upgrading the old version installation package, " ⁇ 1.
- the application collection server may be an application collection server as shown in FIG. 4 or FIG. 5.
- the application server serves the first application store, and is configured to receive m different installation packages of the first application sent by the application collection server, where the m different installation packages are acquired by the application collection server, and are each application store, m ⁇ 2; the first application receiving a new version of the installation package; n old version of the installation package is obtained in the m different selected installation package, " ⁇ 1; n old version of the installation package Differentiating from the new version installation package respectively, obtaining n differential packages corresponding to the n old version installation packages, where the difference package is used for upgrading the old version installation package.
- the application server may be the first application server in the foregoing method embodiment, as shown in FIG. 6 or FIG. 7.
- the embodiment of the present invention provides an application collection server 60, as shown in FIG. 8, including: a processor 601, configured to acquire m different installation packages of the first application, where the m different installation packages are from respective applications. Store, m ⁇ 2 .
- the application developer may provide different installation packages for each application store, so there may be multiple installation packages for the same application, each from the respective application store in the application processing system.
- a transmitter 602 configured to send the m different installation packages to the first application server, so that the first application server is different in the m after acquiring the new version installation package of the first application Filtered in the installation package to get n old versions of the installation package, And obtaining n differential packets corresponding to the n old version installation packages, where the difference package is used for upgrading the old version installation package, “ ⁇ 1.
- the application collection server can serve one or more application stores, and collect and process the application.
- the application collection server usually serves the fixed application store.
- the embodiment of the present invention assumes that the application collection server is the first application. Store service.
- the processor collects a plurality of different installation packages in different application stores, and the transmitter sends the plurality of different installation packages to the first application server, so that the first application server can acquire the application.
- the old version installation package and the corresponding differential package are obtained according to the different installation packages. Since the first application server can provide multiple differential packages, even if the user equipment needs to be upgraded, the old application The version installation package is not downloaded in the first application server, and the corresponding differential package can be upgraded to the application, thus enabling differential upgrade of applications across the application store.
- processor 601 is specifically configured to:
- the installation package of the program filters out m installation packages with different summary information.
- the processor 601 is specifically configured to: acquire an installation package of the first application of each application store by using an application acquisition interface between each application store; or obtain a webpage address of each application store by searching a crawler, Acquiring, by the webpage address of each application store, the download address of the first application in the webpage of each application store, and downloading the first application of each application store according to the download address of the first application
- the installation package for the program is specifically configured to: acquire an installation package of the first application of each application store by using an application acquisition interface between each application store; or obtain a webpage address of each application store by searching a crawler, Acquiring, by the webpage address of each application store, the download address of the first application in the webpage of each application store, and downloading the first application of each application store according to the download address of the first application
- the installation package for the program is specifically configured to: acquire an installation package of the first application of each application store by using an application acquisition interface between each application store; or obtain a webpage address of each application store by searching a crawler, Acquiring, by the webpage
- the processor 601 is further configured to:
- the information of the m different installation packages is collated to obtain installation package information, where the installation package information includes: an application identifier, a package name, and a version number. , file size, summary information, and source of any One or more.
- the transmitter 602 is further configured to send the installation package information to the first application server, so that the first application server performs screening of the installation package according to the installation package information.
- the embodiment of the present invention provides an application server 70.
- the application server 70 is configured to serve the first application store.
- the application server may be the first application server in the foregoing method embodiment. As shown in FIG. 9, the method includes:
- the receiver 701 may further receive installation package information of the first application sent by the application collection server, where the installation package information includes: an application identifier, a package name (packageName), a version number (versionCode), a file size, a summary information, and Any one or more of the sources.
- the installation package information makes the form and information of each installation package uniform, and is easy to identify and filter.
- the application identifier and the package name may be used for identifying the installation package of the first application, and the version number and the summary information may be used for filtering the installation packages, where the file size and source may be passed by the application server through the first application.
- the client of the store is displayed to the user, and the file size is used as reference information for the size of the traffic downloaded by the installation package, and the source is used as reference information for downloading the installation package.
- the installation package information makes the form and information of each installation package uniform, and is easy to identify and select.
- the application server performs screening of the installation package according to the version number and the summary information in the installation package information, thereby effectively generating a differential package in a subsequent process. Specifically, when the installation package information does not include the version number and the summary information, the application server may generate a version number and summary information corresponding to the installation package when receiving the installation package, so as to facilitate screening of each installation package.
- the receiver 701 is further configured to receive a new version installation package of the first application.
- the processor 702 is configured to filter and obtain n old version installation packages in the m different installation packages, “ ⁇ 1.
- the processor 702 is further configured to differentiate the n old version installation packages from the new version installation package, and obtain n difference packets corresponding to the n old version installation packages, where the difference package is used for An upgrade of the old version of the installation package.
- the processor 702 can also process m different installation packages received by the receiver to obtain installation package information, so as to facilitate identification and selection of the installation package, thereby effectively generating a differential package.
- the receiver since the receiver receives a plurality of different installation packages in different application stores collected by the application collection server, after the receiver acquires the new version installation package of the application, the processor according to the different installation package Obtain the old version installation package and the corresponding difference package. Since the application server can provide multiple differential packages, even if the old version installation package of the application that needs to be upgraded in the user equipment is not downloaded in the application server, the corresponding The differential package upgrades the application, thus enabling differential upgrades of applications across the store.
- processor 702 is specifically configured to:
- An n old version installation package having a version number smaller than the version number of the new version installation package is selected among the m different installation packages.
- the receiver 701 is further configured to receive, by the user equipment, an application upgrade request for upgrading the first application, where the application upgrade request includes: the first old version installation package of the user equipment Summary information;
- the processor 702 is configured to select, according to the summary information of the first old version installation package, a first difference packet among the n difference packets, where the first difference package and the first old version installation package can be combined. Obtaining the new version installation package;
- the application server 70 further includes:
- the transmitter 703 is configured to send a response message to the user equipment, where the response message includes information about the first differential packet, so that the user equipment sends the first differential packet and the The first old version of the installation package combination gets the new version This installation package.
- the processor 702 is specifically configured to:
- An embodiment of the present invention provides an application processing system, including:
- An application collection server provided by any embodiment of the present invention.
- the application server is configured to obtain the first collection of m different application installation package, the m different from each application store installation packages, m ⁇ 2; m different transmitting the installation package to the application server, After the application server obtains the new version installation package of the first application, select n old version installation packages from the m different installation packages, and obtain n corresponding to the n old version installation packages. a differential packet, the differential packet being used for upgrading the old version installation package, " ⁇ 1.
- the application collection server may be an application collection server as shown in FIG.
- the application server serves the first application store, and is configured to receive m different installation packages of the first application sent by the application collection server, where the m different installation packages are acquired by the application collection server, and are each application store, m ⁇ 2; the first application receiving a new version of the installation package; n old version of the installation package is obtained in the m different selected installation package, " ⁇ 1; n old version of the installation package Differentiating from the new version installation package respectively, obtaining n differential packages corresponding to the n old version installation packages, where the difference package is used for upgrading the old version installation package.
- the application server may be the first application server in the foregoing method embodiment, as shown in FIG. 9 or FIG. FIG.
- FIG. 11 illustrates a structure of an application collection server according to another embodiment of the present invention, including at least one processor 801 (eg, a CPU), at least one network interface 802 or other communication interface, a memory 803, and at least one communication bus 804. Used to implement connection communication between these devices.
- the processor 801 is configured to execute an executable module, such as a computer program, stored in the memory 803.
- the memory 803 may include a high speed random access memory (RAM: Random Access Memory), and may also include a non-volatile memory such as at least one disk memory.
- the communication connection between the application collection server and at least one other network element is implemented by at least one network interface 802 (which may be wired or wireless), and may use an Internet, a wide area network, a local network, a metropolitan area network, or the like.
- the memory 803 stores the program 803 1 , and the program 803 1 can be executed by the processor 801.
- the program 803 1 includes:
- the old version installs the package, and obtains n differential packages corresponding to the n old version installation packages, and the difference package is used to upgrade the old version installation package, " ⁇ 1.
- the obtaining the installation package of the first application of the respective application stores includes: acquiring, by using an application acquisition interface between the respective application stores, an installation package of the first application of the respective application stores; or,
- the installation package of the first application of each of the application stores is downloaded according to the download address of the first application.
- the method further includes:
- the information of the m different installation packages is collated to obtain installation package information, where the installation package information includes: one or more of an application identifier, a package name, a version number, a file size, a summary information, and a source;
- FIG. 12 illustrates a structure of an application server according to another embodiment of the present invention.
- the application server may be the first application server in the foregoing method embodiment, including at least one processor 901 (eg, a CPU), and at least one network interface 902. Or other communication interface, memory 903, and at least one communication bus 904 for enabling connection communication between these devices.
- the processor 901 is configured to execute an executable module, such as a computer program, stored in the memory 903.
- the memory 903 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, and at least one disk storage device.
- the communication connection between the application server and at least one other network element is implemented by at least one network interface 902 (which may be wired or wireless), and may use an Internet, a wide area network, a local area network, a metropolitan area network, or the like.
- the memory 903 stores a program 903 1 , and the program 903 1 can be executed by the processor 901.
- the program 903 1 includes:
- n old version installation packages in the m different installation packages includes:
- An n old version installation package having a version number smaller than the version number of the new version installation package is selected among the m different installation packages.
- the method further includes:
- an application upgrade request for upgrading the first application where the application upgrade request includes: summary information of the first old version installation package in the user equipment;
- the filtering, according to the summary information of the first old version installation package, the first differential package selected by the n differential packets includes:
- the disclosed system, apparatus, and method may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
- the 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 electrical or otherwise.
- the units described as separate components may or may not be physically separated, and the components displayed as the units may or may not be physical units, and 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 embodiment of the present embodiment.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Provided are an application program processing method, device and system, which relate to the field of communications, and can realize cross-application store differential upgrade of an application program. The application program processing method comprises: acquiring m different installation packages of a first application program, the m different installation packages coming from individual application stores, and m ≥ 2; and sending the m different installation packages to a first application server, so that after acquiring a new-version installation package of the first application program, the first application server screens and obtains n old-version installation packages in the m different installation packages, and obtains n differential packages corresponding to the n old-version installation packages, the differential packages being used for the upgrade of the old-version installation packages, and n ≥ 1. The application program processing method, device and system provided in the embodiments of the present invention are used for the upgrade of an application program.
Description
一种应用程序处理方法、 装置和系统 技术领域 Application processing method, device and system
本发明涉及通讯领域, 尤其涉及一种应用程序处理方法、 装置 和系统。 The present invention relates to the field of communications, and in particular, to an application processing method, apparatus, and system.
背景技术 Background technique
应用商店是各大手机厂商、 电信运营商、 第三方互联网服务提 供商等搭建的用于提供给应用开发者发售 自 己开发出的应用软件的 地方, 应用商店的具体功能由相应的应用服务器来支持。 例如, 手 机应用商店通过该应用商店的服务器向手机用户提供手机软件、 手 机游戏、 手机图片、 手机主题、 手机铃声和手机视频等应用程序。 The app store is a place for major mobile phone manufacturers, telecom operators, third-party Internet service providers, etc. to provide application developers with their own developed application software. The specific functions of the app store are supported by the corresponding application server. . For example, the mobile app store provides mobile phone users with applications such as mobile phone software, mobile games, mobile phone pictures, mobile phone themes, ringtones, and mobile video through the app store's server.
应用版本升级是应用商店的重要功能, 当开发者提交应用程序 的新版本到该应用商店时, 用户设备可以通过应用商店客户端检测 到应用程序的新版本, 以便于用户设备上的应用升级到所述新版本。 Application version upgrade is an important function of the app store. When a developer submits a new version of the app to the app store, the user device can detect the new version of the app through the app store client, so that the app on the user device is upgraded to The new version.
通常, 用户在下载新版本的应用时, 需要下载完整的新版本安 装包到用户设备上, 才能正确的安装, 但为了减少用户设备流量的 损耗, 出现了差分升级的升级方法, 具体的, 应用商店的应用服务 器首先将应用程序的旧版本安装包与新版本安装包做差分, 得到更 新的部分的差分包, 然后, 安装有旧版本应用程序的用户设备将所 述差分包与所述旧版本安装包组合生成新版本安装包并进行相应新 版本应用程序的安装。 Generally, when downloading a new version of an application, the user needs to download a complete new version of the installation package to the user device in order to install it correctly. However, in order to reduce the loss of user equipment traffic, a differential upgrade upgrade method appears. Specifically, the application The application server of the store first differentiates the old version installation package of the application from the new version installation package, obtains the updated partial difference package, and then, the user equipment installed with the old version application applies the difference package to the old version. The installation package combines to build a new version of the installation package and install the corresponding new version of the application.
例如当应用商店 A 的应用服务器存储有某应用程序的旧版本 A1 .0 , 当开发者上传新版本 A2.0时, 应用服务器根据 A2.0和 A1 .0 的差别, 生成差分包 Patch— AA21 ; 在安装有 A1 .0 版本应用程序的 用 户设备请求升级时, 应用服务器向该用 户设备返回差分包 Patch— AA21。 用户设备将差分包下载之后, 需要在用户设备端将 A1 .0和 Patch— AA21组合起来, 得到一个新版本的 A2— Local应用, 通常, 该 A2— Local应用和 A2.0相同。
但是, 由于应用商店中应用程序的来源是成千上万的应用开发 者, 而应用开发者为了统计不同应用商店的应用下载量、 使用量及 其他利益因素等, 对同一个应用程序的同一版本, 常常提供不同的 应用包, 即安装包, 给不同的应用商店。 当用户设备上某应用需要 升级时,假设用户设备上安装了应用商店 A和应用商店 B的客户端, 如果用户安装的某应用程序的旧版本是从应用商店 A 下载安装的 A1 .0。 当应用商店 A和应用商店 B都更新了该应用程序的新版本, 如 A2.0 和 B2.0 , 用户如果从应用商店 B 去更新该应用, 由于应用 商店 B提供的差分包只针对本应用商店的旧版本安装包, 那么用户 将不能釆用差分升级的升级方法来进行应用升级。 因此现有技术中 的应用程序处理方法无法实现跨应用商店的应用程序的差分升级。 发明内容 For example, when the application server of the application store A stores the old version A1 .0 of an application, when the developer uploads the new version A2.0, the application server generates a differential package patch based on the difference between A2.0 and A1.0. When the user device installed with the A1.0 version application requests an upgrade, the application server returns a differential packet Patch_AA21 to the user device. After the user equipment downloads the differential packet, it needs to combine A1.0 and Patch_AA21 on the user equipment side to obtain a new version of the A2-Local application. Generally, the A2-Local application is the same as the A2.0. However, since the source of the app in the app store is thousands of app developers, app developers are counting the same app for the same app in order to count app downloads, usage, and other benefits for different app stores. , often offer different application packages, ie installation packages, to different app stores. When an application on the user device needs to be upgraded, it is assumed that the client of the application store A and the application store B are installed on the user device, and if the old version of an application installed by the user is downloaded from the store A, the installed A1. When both App Store A and App Store B update the new version of the app, such as A2.0 and B2.0, if the user updates the app from App Store B, the DIP package provided by App Store B is only for this app. If the old version of the store is installed, then the user will not be able to use the upgrade method of the differential upgrade to upgrade the application. Therefore, the prior art application processing method cannot implement differential upgrade of applications across the application store. Summary of the invention
本发明的实施例提供一种应用程序处理方法、 装置和系统, 能 够实现跨应用商店的应用程序的差分升级。 Embodiments of the present invention provide an application processing method, apparatus, and system that enable differential upgrade of applications across an application store.
为达到上述目 的, 本发明的实施例釆用如下技术方案: In order to achieve the above object, the embodiment of the present invention uses the following technical solutions:
第一方面, 提供一种应用程序处理方法, 应用于应用收集服务 器, 包括: In a first aspect, an application processing method is provided for application collection server, including:
获取第一应用程序的 m个不同的安装包,所述 m个不同的安装 包来自各个应用商店, m≥2 ; Obtaining a first application of m different installation packages, the installation packages m different from each application store, m≥ 2;
发送所述 m个不同的安装包至第一应用服务器, 以便于所述第 一应用服务器在获取所述第一应用程序的新版本安装包后, 在所述 m个不同的安装包中 选获得 n个旧版本安装包, 并得到所述 n个 旧版本安装包对应的 n 个差分包, 所述差分包用于对所述旧版本安 装包的升级, "≥1。 Sending the m different installation packages to the first application server, so that the first application server selects n of the m different installation packages after acquiring the new version installation package of the first application. The old version installs the package, and obtains n differential packages corresponding to the n old version installation packages, and the difference package is used to upgrade the old version installation package, "≥1.
结合第一方面的第一种可实现方式, 所述获取第一应用程序的 m个不同的安装包,所述 m个不同的安装包来自各个应用商店包括: 获取所述各个应用商店的第一应用程序的安装包; In combination with the first implementation manner of the first aspect, the acquiring m different installation packages of the first application, the m different installation packages from the respective application stores, including: acquiring the first of the respective application stores The installation package of the application;
生成所述各个应用商店的第一应用程序的安装包的摘要信息; 通过比较所述摘要信息, 在所述各个应用商店的第一应用程序
的安装包中筛选得到摘要信息不同的 m个安装包。 Generating summary information of installation packages of the first application of the respective application stores; comparing the summary information, the first application in the respective application stores The installation package filters out m installation packages with different summary information.
结合第一种可实现方式的第二种可实现方式, 所述获取所述各 个应用商店的第一应用程序的安装包包括: In combination with the second implementation manner of the first implementation manner, the obtaining the installation package of the first application of the each application store includes:
通过与各个应用商店之间的应用获取接口获取所述各个应用商 店的第一应用程序的安装包; Obtaining an installation package of the first application of each application store by an application acquisition interface with each application store;
或者, Or,
通过搜索爬虫获取所述各个应用商店的网页地址, Obtaining the webpage addresses of the respective application stores by searching the crawler,
根据所述各个应用商店的网页地址在所述各个应用商店的网页 中获取所述第一应用程序的下载地址, Obtaining a download address of the first application in a webpage of each of the application stores according to a webpage address of each of the application stores,
根据所述第一应用程序的下载地址下载得到所述各个应用商店 的第一应用程序的安装包。 The installation package of the first application of each of the application stores is downloaded according to the download address of the first application.
结合第一方面、 第一种可实现方式至第三种可实现方式中任一 可实现方式的第四种可实现方式, 在所述获取第一应用程序的 m个 不同的安装包之后, 所述方法还包括: a fourth implementable manner of combining the first aspect, the first implementable manner, and the third implementable manner, after the obtaining the m different installation packages of the first application, The method also includes:
对所述 m个不同的安装包的信息进行整理得到安装包信息, 所 述安装包信息包括: 应用标识、 包名、 版本号、 文件大小、 摘要信 息和来源的任意一种或多种; The information of the m different installation packages is collated to obtain installation package information, where the installation package information includes: one or more of an application identifier, a package name, a version number, a file size, a summary information, and a source;
将所述安装包信息发送至第一应用服务器, 以便于所述第一应 用服务器根据所述安装包信息进行安装包的 选。 And sending the installation package information to the first application server, so that the first application server selects an installation package according to the installation package information.
第二方面, 提供一种应用程序处理方法, 应用于第一应用服务 器, 所述第一应用服务器服务于第一应用商店, 包括: The second aspect provides an application processing method, which is applied to a first application server, where the first application server serves the first application store, including:
接收应用收集服务器发送的第一应用程序的 m 个不同的安装 包, 所述 m个不同的安装包是由所述应用收集服务器获取的, 来自 各个应用商店, m≥2 ; Receiving a first application collects application server sends the m different installation packages, the installation packages m different are obtained by the collection server application from various applications store, m≥ 2;
接收所述第一应用程序的新版本安装包; Receiving a new version installation package of the first application;
在所述 m个不同的安装包中 选获得 n个旧版本安装包, "≥1; 将所述 n个旧版本安装包分别与所述新版本安装包进行差分, 得到所述 n个旧版本安装包对应的 n个差分包, 所述差分包用于对 所述旧版本安装包的升级。
结合第二方面的第一种可实现方式, 所述在所述 m个不同的安 装包中 选获得 n个旧版本安装包包括: Selecting n old version installation packages from the m different installation packages, "≥1; respectively differentiating the n old version installation packages from the new version installation package, and obtaining the n old version installation packages n differential packets, the differential packets being used for upgrading the old version installation package. With reference to the first implementation manner of the second aspect, the selecting, by the m different installation packages, the n old version installation packages includes:
在所述 m个不同的安装包中 选得到版本号小于所述新版本安 装包的版本号的 n个旧版本安装包。 An n old version installation package having a version number smaller than the version number of the new version installation package is selected among the m different installation packages.
结合第二方面、 第一种可实现方式的第二中可实现方式, 在所 述将所述 n 个旧版本安装包分别与所述新版本安装包进行差分, 得 到所述 n个旧版本安装包对应的 n个差分包之后, 所述方法还包括: 接收到用户设备发送的用于升级所述第一应用程序的应用程序 升级请求, 所述应用程序升级请求包括: 所述用户设备中的第一旧 版本安装包的摘要信息; In combination with the second aspect, the second implementation manner of the first implementation manner, the n old version installation packages are separately differentiated from the new version installation package, and the n old version installation packages are obtained. After the n differential packets, the method further includes: receiving, by the user equipment, an application upgrade request for upgrading the first application, where the application upgrade request includes: the first one of the user equipments Summary information of the old version installation package;
根据所述第一旧版本安装包的摘要信息在所述 n个差分包中筛 选得到第一差分包, 所述第一差分包和所述第一旧版本安装包能够 组合得到所述新版本安装包; And filtering, by using the summary information of the first old version installation package, the first difference packet in the n difference packets, where the first difference package and the first old version installation package can be combined to obtain the new version installation. Package
发送响应消息至所述用户设备, 所述响应消息包括所述第一差 分包的信息, 以便于所述用户设备根据所述响应消息将所述第一差 分包和所述第一旧版本安装包组合得到所述新版本安装包。 Sending a response message to the user equipment, where the response message includes information of the first differential packet, so that the user equipment installs the first differential package and the first old version package according to the response message. The combination gets the new version of the installation package.
结合第二种可实现方式的第三种可实现方式, 所述根据所述第 一旧版本安装包的摘要信息在所述 n个差分包中 选得到第一差分 包包括: In combination with the third implementable manner of the second implementable manner, the selecting the first differential packet from the n differential packets according to the summary information of the first old version installation package includes:
提取所述应用程序升级请求中的第一旧版本安装包的摘要信 息; Extracting summary information of the first old version installation package in the application upgrade request;
将所述应用程序升级请求中的第一旧版本安装包的摘要信息与 所述 n个差分包的摘要信息进行匹配; Matching summary information of the first old version installation package in the application upgrade request with summary information of the n difference packages;
获取所述 n个差分包中与所述应用程序升级请求中的第一旧版 本安装包的摘要信息相同的所述第一差分包。 Obtaining the first difference packet of the n difference packets that is the same as the summary information of the first old version installation package in the application upgrade request.
第三方面, 提供一种应用收集服务器, 包括: In a third aspect, an application collection server is provided, including:
获取单元, 用于获取第一应用程序的 m个不同的安装包, 所述 m个不同的安装包来自各个应用商店, 并发送所述 m个不同的安装 包至第一发送单元, m≥2 ;
第一发送单元, 用于接收所述获取单元发送的所述 m个不同的 安装包, 并发送所述 m个不同的安装包至第一应用服务器, 以便于 所述第一应用服务器在获取所述第一应用程序的新版本安装包后, 在所述 m个不同的安装包中 选获得 n个旧版本安装包, 并得到所 述 n个旧版本安装包对应的 n个差分包, 所述差分包用于对所述旧 版本安装包的升级, "≥1。 An acquisition unit configured to acquire a first application of m different installation packages, the installation packages m different from each application store, and transmits the m different installation package to the first transmitting unit, m≥ 2 ; a first sending unit, configured to receive the m different installation packages sent by the acquiring unit, and send the m different installation packages to the first application server, so that the first application server is in the acquiring After the new version of the first application is installed, the n old installation packages are selected from the m different installation packages, and n differential packages corresponding to the n old version installation packages are obtained, and the difference package is used. For the upgrade of the old version of the installation package, "≥1.
结合第三方面的第一种可实现方式, 所述获取单元具体用于: 获取所述各个应用商店的第一应用程序的安装包; With reference to the first implementation manner of the third aspect, the acquiring unit is specifically configured to: obtain an installation package of the first application of each application store;
生成所述各个应用商店的第一应用程序的安装包的摘要信息; 通过比较所述摘要信息, 在所述各个应用商店的第一应用程序 的安装包中筛选得到摘要信息不同的 m个安装包。 Generating summary information of installation packages of the first application of the respective application stores; and comparing the summary information, filtering, in the installation package of the first application of the respective application stores, m installation packages with different summary information .
结合第三方面的第二种可实现方式, 所述获取单元在获取所述 各个应用商店的第一应用程序的安装包时具体用于: In conjunction with the second implementation manner of the third aspect, the acquiring unit is specifically configured to: when acquiring an installation package of the first application of each application store:
通过与各个应用商店之间的应用获取接口获取所述各个应用商 店的第一应用程序的安装包; Obtaining an installation package of the first application of each application store by an application acquisition interface with each application store;
或者, Or,
通过搜索爬虫获取所述各个应用商店的网页地址, Obtaining the webpage addresses of the respective application stores by searching the crawler,
根据所述各个应用商店的网页地址在所述各个应用商店的网页 中获取所述第一应用程序的下载地址, Obtaining a download address of the first application in a webpage of each of the application stores according to a webpage address of each of the application stores,
根据所述第一应用程序的下载地址下载得到所述各个应用商店 的第一应用程序的安装包。 The installation package of the first application of each of the application stores is downloaded according to the download address of the first application.
结合第三方面、 第一种可实现方式至第三种可实现方式中任一 可实现方式的第四种可实现方式, 所述应用收集服务器还包括: With reference to the fourth aspect, the fourth achievable manner, and the fourth achievable manner, the application collection server further includes:
处理单元, 用于在所述获取单元获取第一应用程序的 m个不同 的安装包之后, 对所述 m个不同的安装包的信息进行整理得到安装 包信息, 所述安装包信息包括: 应用标识、 包名、 版本号、 文件大 小、 摘要信息和来源的任意一种或多种; a processing unit, configured to: after the obtaining unit acquires m different installation packages of the first application, sorting information of the m different installation packages to obtain installation package information, where the installation package information includes: Any one or more of the identifier, package name, version number, file size, summary information, and source;
第二发送单元,用于将所述安装包信息发送至第一应用服务器, 以便于所述第一应用服务器根据所述安装包信息进行安装包的筛
选。 a second sending unit, configured to send the installation package information to the first application server, so that the first application server performs screening of the installation package according to the installation package information. Selected.
第四方面, 提供一种应用服务器, 所述应用服务器服务于第一 应用商店, 包括: A fourth aspect provides an application server, where the application server serves the first application store, including:
第一接收单元, 用于接收应用收集服务器发送的第一应用程序 的 m个不同的安装包, 并发送所述 m个不同的安装包至第一筛选单 元, 所述 m个不同的安装包是由所述应用收集服务器获取的, 来自 各个应用商店, m≥2 ; a first receiving unit, configured to receive m different installation packages of the first application sent by the application collection server, and send the m different installation packages to the first screening unit, where the m different installation packages are Obtained by the application collection server, from various application stores, m ≥ 2 ;
第二接收单元, 用于接收所述第一应用程序的新版本安装包, 并分别发送所述新版本安装包至第一 选单元和差分单元; a second receiving unit, configured to receive a new version installation package of the first application, and separately send the new version installation package to the first selection unit and the difference unit;
第一 选单元, 用于接收所述第一接收单元发送的所述 m个不 同的安装包以及所述第二接收单元发送的所述新版本安装包, 并在 所述 m个不同的安装包中 选获得 n个旧版本安装包, 发送所述 n 个旧版本安装包至差分单元, "≥1; a first selection unit, configured to receive the m different installation packages sent by the first receiving unit, and the new version installation package sent by the second receiving unit, and in the m different installation packages Selecting n old version installation packages, sending the n old version installation packages to the difference unit, "≥1;
差分单元, 用于接收所述第二接收单元发送的所述新版本安装 包和所述第一 选单元发送的所述 n个旧版本安装包, 将所述 n个 旧版本安装包分别与所述新版本安装包进行差分, 得到所述 n个旧 版本安装包对应的 n 个差分包, 所述差分包用于对所述旧版本安装 包的升级。 a difference unit, configured to receive the new version installation package sent by the second receiving unit and the n old version installation packages sent by the first selection unit, and respectively, the n old version installation packages and the new The version installation package performs a difference, and obtains n differential packages corresponding to the n old version installation packages, where the difference package is used to upgrade the old version installation package.
结合第四方面的第一种可实现方式, 所述第一筛选单元具体用 于: In conjunction with the first implementation manner of the fourth aspect, the first screening unit is specifically configured to:
在所述 m个不同的安装包中 选得到版本号小于所述新版本安 装包的版本号的 n个旧版本安装包。 An n old version installation package having a version number smaller than the version number of the new version installation package is selected among the m different installation packages.
结合第四方面、 第一种可实现方式的第二中可实现方式, 所述 第一应用服务器还包括: With reference to the fourth aspect, the second implementation manner of the first implementation manner, the first application server further includes:
第三接收单元, 用于接收到用户设备发送的用于升级所述第一 应用程序的应用程序升级请求, 所述应用程序升级请求包括: 所述 用户设备中的第一旧版本安装包的摘要信息; a third receiving unit, configured to receive, by the user equipment, an application upgrade request for upgrading the first application, where the application upgrade request includes: a summary of the first old version installation package in the user equipment Information
第二 选单元, 用于根据所述第一旧版本安装包的摘要信息在 所述第一 选单元 选出的所述 n 个差分包中 选得到第一差分
包, 所述第一差分包和所述第一旧版本安装包能够组合得到所述新 版本安装包; a second selection unit, configured to select, according to the summary information of the first old version installation package, the first difference among the n difference packets selected by the first selection unit a package, the first differential package and the first old version installation package can be combined to obtain the new version installation package;
发送单元, 用于发送响应消息至所述用户设备, 所述响应消息 包括所述第一差分包的信息, 以便于所述用户设备根据所述响应消 息将所述第一差分包和所述第一旧版本安装包组合得到所述新版本 安装包。 a sending unit, configured to send a response message to the user equipment, where the response message includes information about the first differential packet, so that the user equipment sends the first differential packet and the first according to the response message An old version of the installation package is combined to get the new version of the installation package.
结合第四种可实现方式的第三种可实现方式, 所述第二筛选单 元具体用于: In conjunction with the third achievable manner of the fourth achievable manner, the second screening unit is specifically configured to:
提取所述应用程序升级请求中的第一旧版本安装包的摘要信 息; Extracting summary information of the first old version installation package in the application upgrade request;
将所述应用程序升级请求中的第一旧版本安装包的摘要信息与 所述 n个差分包的摘要信息进行匹配; Matching summary information of the first old version installation package in the application upgrade request with summary information of the n difference packages;
获取所述 n个差分包中与所述应用程序升级请求中的第一旧版 本安装包的摘要信息相同的所述第一差分包。 Obtaining the first difference packet of the n difference packets that is the same as the summary information of the first old version installation package in the application upgrade request.
第五方面, 提供一种应用处理系统, 包括: In a fifth aspect, an application processing system is provided, including:
以上任意所述的应用收集服务器; Any of the above described application collection servers;
以及以上任意所述的应用服务器。 And any of the application servers described above.
第六方面, 提供一种应用收集服务器, 包括: In a sixth aspect, an application collection server is provided, including:
处理器, 用于获取第一应用程序的 m个不同的安装包, 所述 m 个不同的安装包来自各个应用商店, m≥2 ; A processor configured to obtain a first application of m different installation packages, the installation packages m different from each application store, m≥ 2;
发射机, 用于发送所述 m个不同的安装包至第一应用服务器, 以便于所述第一应用服务器在获取所述第一应用程序的新版本安装 包后, 在所述 m个不同的安装包中 选获得 n个旧版本安装包, 并 得到所述 n个旧版本安装包对应的 n个差分包, 所述差分包用于对 所述旧版本安装包的升级, "≥1。 a transmitter, configured to send the m different installation packages to the first application server, so that the first application server obtains the new version installation package of the first application, after the m different The installation package selects n old version installation packages, and obtains n differential packages corresponding to the n old version installation packages, and the difference package is used for upgrading the old version installation package, "≥1.
结合第六方面的第一种可实现方式, 所述处理器具体用于: 获取所述各个应用商店的第一应用程序的安装包; With reference to the first implementation manner of the sixth aspect, the processor is specifically configured to: obtain an installation package of the first application of each application store;
生成所述各个应用商店的第一应用程序的安装包的摘要信息; 通过比较所述摘要信息, 在所述各个应用商店的第一应用程序
的安装包中筛选得到摘要信息不同的 m个安装包。 Generating summary information of installation packages of the first application of the respective application stores; comparing the summary information, the first application in the respective application stores The installation package filters out m installation packages with different summary information.
结合第一种可实现方式的第二种可实现方式, 所述处理器具体 用于: In conjunction with the second achievable manner of the first achievable manner, the processor is specifically configured to:
通过与各个应用商店之间的应用获取接口获取所述各个应用商 店的第一应用程序的安装包; Obtaining an installation package of the first application of each application store by an application acquisition interface with each application store;
或者, Or,
通过搜索爬虫获取所述各个应用商店的网页地址, Obtaining the webpage addresses of the respective application stores by searching the crawler,
根据所述各个应用商店的网页地址在所述各个应用商店的网页 中获取所述第一应用程序的下载地址, Obtaining a download address of the first application in a webpage of each of the application stores according to a webpage address of each of the application stores,
根据所述第一应用程序的下载地址下载得到所述各个应用商店 的第一应用程序的安装包。 The installation package of the first application of each of the application stores is downloaded according to the download address of the first application.
结合第六方面、 第一种可实现方式至第三种可实现方式中任一 可实现方式的第四种可实现方式, 所述处理器还用于: A fourth implementation manner of combining the sixth aspect, the first achievable manner, and the third achievable manner, the processor is further configured to:
在获取所述第一应用程序的 m个不同的安装包之后, 对所述 m 个不同的安装包的信息进行整理得到安装包信息, 所述安装包信息 包括: 应用标识、 包名、 版本号、 文件大小、 摘要信息和来源的任 意一种或多种; After obtaining the m different installation packages of the first application, the information of the m different installation packages is collated to obtain installation package information, where the installation package information includes: an application identifier, a package name, and a version number. , one or more of file size, summary information, and source;
所述发射机还用于将所述安装包信息发送至第一应用服务器, 以便于所述第一应用服务器根据所述安装包信息进行安装包的筛 选。 The transmitter is further configured to send the installation package information to the first application server, so that the first application server performs screening of the installation package according to the installation package information.
第七方面, 提供一种应用服务器, 所述应用服务器服务于第一 应用商店, 包括: The seventh aspect provides an application server, where the application server serves the first application store, including:
接收机, 用于接收应用收集服务器发送的第一应用程序的 m个 不同的安装包, 所述 m个不同的安装包是由所述应用收集服务器获 取的, 来自各个应用商店, m≥2 ; A receiver for receiving a first application collects application server sends the m different installation packages, the installation packages m different are obtained by the collection server application from various applications store, m≥ 2;
所述接收机还用于接收第一应用程序的新版本安装包; 处理器, 用于在所述 m个不同的安装包中 选获得 n个旧版本 安装包, "≥1; The receiver is further configured to receive a new version installation package of the first application; a processor, configured to obtain n old version installation packages among the m different installation packages, "≥1;
所述处理器还用于将所述 n个旧版本安装包分别与所述新版本
安装包进行差分, 得到所述 n个旧版本安装包对应的 n个差分包, 所述差分包用于对所述旧版本安装包的升级。 The processor is further configured to separately use the n old version installation packages and the new version The installation package performs a difference, and obtains n differential packets corresponding to the n old version installation packages, where the difference package is used for upgrading the old version installation package.
结合第七方面的第一种可实现方式, 所述处理器具体用于: 在所述 m个不同的安装包中 选得到版本号小于所述新版本安 装包的版本号的 n个旧版本安装包。 In conjunction with the first implementation of the seventh aspect, the processor is specifically configured to: select, from the m different installation packages, n old version installation packages whose version number is smaller than a version number of the new version installation package.
结合第七方面、 第一种可实现方式的第二中可实现方式, 所述 接收机还用于接收到用户设备发送的用于升级所述第一应用程序的 应用程序升级请求, 所述应用程序升级请求包括: 所述用户设备中 的第一旧版本安装包的摘要信息; With reference to the seventh aspect, the second implementation manner of the first implementation manner, the receiver is further configured to receive, by the user equipment, an application upgrade request for upgrading the first application, where the application is The program upgrade request includes: summary information of the first old version installation package in the user equipment;
所述处理器用于根据所述第一旧版本安装包的摘要信息在所述 n 个差分包中 选得到第一差分包, 所述第一差分包和所述第一旧 版本安装包能够组合得到所述新版本安装包; The processor is configured to select a first differential packet from the n differential packets according to the summary information of the first old version installation package, where the first differential package and the first old version installation package can be combined The new version of the installation package;
所述第一应用服务器还包括: The first application server further includes:
发射机, 用于发送响应消息至所述用户设备, 所述响应消息包 括所述第一差分包的信息, 以便于所述用户设备根据所述响应消息 将所述第一差分包和所述第一旧版本安装包组合得到所述新版本安 装包。 a transmitter, configured to send a response message to the user equipment, where the response message includes information of the first differential packet, so that the user equipment sends the first differential packet and the first according to the response message An old version of the installation package is combined to get the new version of the installation package.
结合第二种可实现方式的第三种可实现方式, 所述处理器具体 用于: In conjunction with a third achievable manner of the second achievable manner, the processor is specifically configured to:
提取所述应用程序升级请求中的第一旧版本安装包的摘要信 息; Extracting summary information of the first old version installation package in the application upgrade request;
将所述应用程序升级请求中的第一旧版本安装包的摘要信息与 所述 n个差分包的摘要信息进行匹配; Matching summary information of the first old version installation package in the application upgrade request with summary information of the n difference packages;
获取所述 n个差分包中与所述应用程序升级请求中的第一旧版 本安装包的摘要信息相同的所述第一差分包。 Obtaining the first difference packet of the n difference packets that is the same as the summary information of the first old version installation package in the application upgrade request.
第八方面, 提供一种应用处理系统, 包括: In an eighth aspect, an application processing system is provided, including:
以上任意所述的应用收集服务器; Any of the above described application collection servers;
以上任意所述的应用服务器。 Any of the above described application servers.
本发明实施例提供一种应用程序处理方法、 装置和系统, 能够
实现跨应用商店的应用程序的差分升级。 包括: 获取第一应用程序 的 m个不同的安装包, 所述 m个不同的安装包来自各个应用商店, m > 2 ; 发送所述 m个不同的安装包至第一应用服务器, 以便于所述 第一应用服务器在获取所述第一应用程序的新版本安装包后, 在所 述 m个不同的安装包中 选获得 n个旧版本安装包, 并得到所述 n 个旧版本安装包对应的 n个差分包, 所述差分包用于对所述旧版本 安装包的升级, "≥1。 这样一来, 应用收集服务器收集了不同应用商 店中的多个不同的安装包, 使得第一应用服务器可以在获取所述应 用程序的新版本安装包后, 根据所述不同的安装包得到旧版本安装 包及相应的差分包, 由于第一应用服务器能够提供多个差分包, 那 么, 即使用户设备中需要升级的应用程序的旧版本安装包不是在第 一应用服务器中下载的, 也可以获得相应的差分包对该应用程序进 行升级, 因此, 能够实现跨应用商店的应用程序的差分升级。 Embodiments of the present invention provide an application processing method, apparatus, and system, which are capable of Implement differential upgrades for applications across the store. The method includes: obtaining m different installation packages of the first application, the m different installation packages are from respective application stores, m >2; sending the m different installation packages to the first application server, so as to facilitate After obtaining the new version installation package of the first application, the first application server selects n old version installation packages from the m different installation packages, and obtains n corresponding to the n old version installation packages. a differential package, the differential package is used to upgrade the old version installation package, " ≥1 . In this way, the application collection server collects multiple different installation packages in different application stores, so that the first application server can After obtaining the new version installation package of the application, the old version installation package and the corresponding difference package are obtained according to the different installation packages. Since the first application server can provide multiple differential packages, even if the user equipment needs The old version of the upgraded application installation package is not downloaded in the first application server, and the corresponding differential package can be obtained to upgrade the application. Therefore, the differential application upgrades enable cross-application store.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下 面将对实施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于 本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以 根据这些附图获得其他的附图。 In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图 1 为本发明实施例提供的一种应用程序处理方法流程示意 图; 1 is a schematic flow chart of an application processing method according to an embodiment of the present invention;
图 2为本发明实施例提供的另一种应用程序处理方法流程示意 图; 2 is a schematic flow chart of another application processing method according to an embodiment of the present invention;
图 3 为本发明实施例提供的再一种应用程序处理方法流程示意 图; 3 is a schematic flow chart of still another application processing method according to an embodiment of the present invention;
图 4为本发明实施例的一种应用收集服务器的结构示意图; 图 5为本发明实施例的另一种应用收集服务器的结构示意图; 图 6为本发明实施例的一种第一应用服务器的结构示意图; 图 7为本发明实施例的另一种第一应用服务器的结构示意图;
图 8为本发明实施例的再一种应用收集服务器的结构示意图; 图 9为本发明实施例的再一种第一应用服务器的结构示意图; 图 10为本发明实施例的又一种第一应用服务器的结构示意图; 图 1 1 为本发明实施例的又一种应用收集服务器的结构示意图; 图 12为本发明实施例的又一种第一应用服务器的结构示意图。 具体实施方式 4 is a schematic structural diagram of an application collection server according to an embodiment of the present invention; FIG. 5 is a schematic structural diagram of another application collection server according to an embodiment of the present invention; FIG. 6 is a schematic diagram of a first application server according to an embodiment of the present invention; FIG. 7 is a schematic structural diagram of another first application server according to an embodiment of the present invention; FIG. 8 is a schematic structural diagram of still another application collection server according to an embodiment of the present invention; FIG. 9 is a schematic structural diagram of still another first application server according to an embodiment of the present invention; FIG. 10 is still another first embodiment of the present invention. FIG. 1 is a schematic structural diagram of still another application collection server according to an embodiment of the present invention; FIG. 12 is a schematic structural diagram of still another first application server according to an embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术 方案进行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明 一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本 领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他 实施例, 都属于本发明保护的范围。 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供一种应用程序处理方法, 应用于应用收集服 务器, 如图 1 所示, 包括: An embodiment of the present invention provides an application processing method, which is applied to an application collection server, as shown in FIG. 1, and includes:
101、 获取第一应用程序的 m个不同的安装包, 所述 m个不同 的安装包来自各个应用商店, m≥2。 101, a first application program acquiring m different installation packages, the installation packages m different from each application store, m≥ 2.
对于同一个应用程序的同一版本, 应用开发者可能为各个应用 商店提供不同的安装包, 因此, 同一个应用程序的安装包可能有多 个, 分别来自应用程序处理系统中的各个应用商店。 For the same version of the same application, the application developer may provide different installation packages for each application store, so there may be multiple installation packages for the same application, each from the respective application store in the application processing system.
示例的, 本实施例假设应用收集服务器需要获取的应用程序为 第一应用程序, 该应用收集服务器可以首先获取所述各个应用商店 的第一应用程序的安装包; 然后生成所述各个应用商店的第一应用 程序的安装包的摘要信息; 最后通过比较所述摘要信息, 在所述各 个应用商店的第一应用程序的安装包中筛选得到摘要信息不同的 m 个安装包。 所述摘要信息为通过特定摘要生成算法生成的安装包的 摘要信息, 用于区分不同的安装包。 For example, in this embodiment, it is assumed that the application that the application collection server needs to acquire is the first application, and the application collection server may first obtain the installation package of the first application of the respective application stores; and then generate the respective application stores. Summary information of the installation package of the first application; finally, by comparing the summary information, the m installation packages with different summary information are filtered in the installation package of the first application of the respective application stores. The summary information is summary information of an installation package generated by a specific digest generation algorithm, and is used to distinguish different installation packages.
102、 发送所述 m 个不同的安装包至第一应用服务器, 以便于 所述第一应用服务器在获取所述第一应用程序的新版本安装包后, 在所述 m个不同的安装包中 选获得 n个旧版本安装包, 并得到所 述 n个旧版本安装包对应的 n个差分包, 所述差分包用于对所述旧
版本安装包的升级, "≥ι。 102. Send the m different installation packages to the first application server, so that the first application server selects the m different installation packages after acquiring the new version installation package of the first application. Obtaining n old version installation packages, and obtaining n difference packages corresponding to the n old version installation packages, where the difference package is used for the old Upgrade of the version installation package, "≥ι.
应用收集服务器可以服务于一个或多个应用商店, 进行应用程 序的收集和处理等工作, 实际应用中, 应用收集服务器通常服务于 固定的应用商店, 本发明实施例假设应用收集服务器为第一应用商 店服务。 The application collection server can serve one or more application stores, and collect and process the application. In an actual application, the application collection server usually serves the fixed application store. The embodiment of the present invention assumes that the application collection server is the first application. Store service.
这样一来, 应用收集服务器收集了不同应用商店中的多个不同 的安装包, 使得第一应用服务器可以在获取所述应用程序的新版本 安装包后, 根据所述不同的安装包得到旧版本安装包及相应的差分 包, 由于第一应用服务器能够提供多个差分包, 那么, 即使用户设 备中需要升级的应用程序的旧版本安装包不是在第一应用服务器中 下载的, 也可以获得相应的差分包对该应用程序进行升级, 因此, 能够实现跨应用商店的应用程序的差分升级。 In this way, the application collection server collects a plurality of different installation packages in different application stores, so that the first application server can obtain the old version according to the different installation packages after acquiring the new version installation package of the application. The installation package and the corresponding differential package, since the first application server can provide multiple differential packages, even if the old version installation package of the application that needs to be upgraded in the user equipment is not downloaded in the first application server, the corresponding package can be obtained. The differential package upgrades the application, thus enabling differential upgrades of applications across the store.
进一步的, 可以通过多种方法获取所述各个应用商店的第一应 用程序的安装包, 示例的, 可以通过应用收集服务器与各个应用商 店之间的应用获取接口获取所述各个应用商店的第一应用程序的安 装包。 Further, the installation package of the first application of each application store may be obtained by using a plurality of methods. For example, the first application store may be obtained by using an application acquisition interface between the application collection server and each application store. The installation package for the application.
也可以通过搜索爬虫获取所述各个应用商店的网页地址, 然后, 根据所述各个应用商店的网页地址在所述各个应用商店的网页中获 取所述第一应用程序的下载地址, 最后根据所述第一应用程序的下 载地址下载得到所述各个应用商店的第一应用程序的安装包。 The webpage addresses of the respective application stores may be obtained by searching the crawler, and then the download addresses of the first application are obtained in the webpages of the respective application stores according to the webpage addresses of the respective application stores, and finally according to the The download address of the first application downloads the installation package of the first application of the respective application stores.
需要说明的是, 搜索爬虫又名网络爬虫, 是一个自动提取网页 的程序, 它为搜索引擎从万维网上下载网页, 是搜索引擎的重要组 成部分。 在本实施例中可以设置应用商店搜索爬虫来获取所述各个 应用商店的网页地址。 It should be noted that the search crawler, also known as web crawler, is a program for automatically extracting web pages. It is a search engine for downloading web pages from the World Wide Web, which is an important part of the search engine. In this embodiment, an application store search crawler may be set to obtain the webpage addresses of the respective application stores.
特别的, 在步骤 101之后, 应用收集服务器还可以对所述 m个 不同的安装包的信息进行整理得到安装包信息, 所述安装包信息包 括: 应用标识、 包名 ( packageName )、 版本号 ( versionCode )、 文 件大小、 摘要信息和来源的任意一种或多种。 其中, 所述应用标识 和包名可以用于第一应用程序的安装包的识别, 版本号和摘要信息
可以用于各个安装包的筛选, 所述文件大小和来源可以由第一应用 服务器通过第一应用商店的客户端显示给用户, 所述文件大小作为 安装包下载的流量大小的参考信息, 所述来源作为安装包下载来源 的参考信息。 所述安装包信息使得各个安装包的形式和信息统一, 便于识别和筛选。 应用收集服务器可以在步骤 102 发送安装包的同 时将所述安装包信息发送至第一应用服务器, 以便于所述第一应用 服务器根据所述安装包信息中的版本号和摘要信息进行安装包的筛 选, 从而在后续过程中有效地生成差分包。 特别的, 当所述安装包 信息中不包括版本号和摘要信息时, 第一应用服务器可以在接收到 安装包时生成与该安装包相应的版本号和摘要信息, 以便于进行各 个安装包的 选。 本发明实施例提供一种应用程序处理方法, 如图 2所示, 应用 于第一应用服务器, 所述第一应用服务器服务于第一应用商店, 包 括: Specifically, after the step 101, the application collection server may further sort the information of the m different installation packages to obtain installation package information, where the installation package information includes: an application identifier, a package name (packageName), and a version number ( Any one or more of versionCode ), file size, summary information, and source. The application identifier and the package name may be used for identification, version number, and summary information of the installation package of the first application. The file size and the source may be displayed by the first application server to the user through the client of the first application store, where the file size is used as reference information for the size of the traffic downloaded by the installation package, The source serves as a reference for the source of the installation package download. The installation package information makes the form and information of each installation package uniform, and is easy to identify and filter. The application collection server may send the installation package information to the first application server while sending the installation package in step 102, so that the first application server performs the installation package according to the version number and the summary information in the installation package information. Filtering to efficiently generate differential packets in subsequent processes. In particular, when the installation package information does not include the version number and the summary information, the first application server may generate a version number and summary information corresponding to the installation package when receiving the installation package, so as to facilitate the installation of each package. selected. An embodiment of the present invention provides an application processing method, as shown in FIG. 2, applied to a first application server, where the first application server serves the first application store, including:
201、 接收应用收集服务器发送的第一应用程序的 m 个不同的 安装包, 所述 m个不同的安装包是由所述应用收集服务器获取的, 来自各个应用商店, m≥2。 201, m different receiving application installation package first application server sends the collected, the m different installation package is acquired by the collection server application, various applications from a store, m≥ 2.
202、 接收所述第一应用程序的新版本安装包。 202. Receive a new version installation package of the first application.
特别的, 所述第一应用程序的新版本安装包通常为开发者开发 完成后上传到第一应用服务器的。 Specifically, the new version installation package of the first application is usually uploaded to the first application server after the developer completes development.
203、 在所述 m个不同的安装包中 选获得 n个旧版本安装包, 所述旧版本安装包的版本号小于所述新版本安装包的版本号。 对于同一个应用程序的同一版本, 应用开发者可能为各个应用商店 提供不同的安装包, 因此, 应用程序的旧版本安装包可能有多个。 203. Select, in the m different installation packages, n old version installation packages, where the version number of the old version installation package is smaller than the version number of the new version installation package. For the same version of the same application, the app developer may provide different installation packages for each app store, so there may be more than one old version of the app.
需要说明的是,通常每个应用商店都有自身相应的应用服务器, 用于实现该应用商店中的应用程序的存储, 获取等等功能, 本实施 例假设第一应用服务器服务于第一应用商店, 所述第一应用服务器
可以是一个或多个子应用服务器集成的服务器系统, 本发明对此不 做限定。 It should be noted that, in general, each application store has its own corresponding application server, which is used to implement storage, acquisition, and the like of the application in the application store. This embodiment assumes that the first application server serves the first application store. The first application server It may be a server system integrated with one or more sub-application servers, which is not limited by the present invention.
204、将所述 n个旧版本安装包分别与所述新版本安装包进行差 分, 得到所述 n个旧版本安装包对应的 n个差分包, 所述差分包用 于对所述旧版本安装包的升级。 204. Differentiate the n old version installation packages from the new version installation package, and obtain n difference packages corresponding to the n old version installation packages, where the difference package is used to install the package of the old version. upgrade.
示例的, 第一应用服务器可以在所述 m个不同的安装包中筛选 得到版本号小于所述新版本安装包的版本号的 n个旧版本安装包。 For example, the first application server may filter, among the m different installation packages, the n old version installation packages whose version number is smaller than the version number of the new version installation package.
这样一来, 由于应用收集服务器收集了不同应用商店中的多个 不同的安装包, 使得第一应用服务器可以在获取所述应用程序的新 版本安装包后, 根据所述不同的安装包得到旧版本安装包及相应的 差分包, 由于第一应用服务器能够提供多个差分包, 那么, 即使用 户设备中需要升级的应用程序的旧版本安装包不是在第一应用服务 器中下载的, 也可以获得相应的差分包对该应用程序进行升级, 因 此, 能够实现跨应用商店的应用程序的差分升级。 In this way, since the application collection server collects a plurality of different installation packages in different application stores, the first application server may obtain the old installation package according to the different installation packages after acquiring the new version installation package of the application. Version installation package and corresponding differential package. Since the first application server can provide multiple differential packages, even if the old version installation package of the application that needs to be upgraded in the user equipment is not downloaded in the first application server, The corresponding differential package upgrades the application, thus enabling differential upgrades of applications across the store.
特别的, 在步骤 201 时, 第一应用服务器还可以接收应用收集 服务器发送的第一应用程序的安装包信息, 所述安装包信息包括: 应用标识、 包名 ( packageName )、 版本号 ( versionCode )、 文件大 小、 摘要信息和来源的任意一种或多种。 所述安装包信息使得各个 安装包的形式和信息统一, 便于识别和筛选。 其中, 所述应用标识 和包名可以用于第一应用程序的安装包的识别, 版本号和摘要信息 可以用于各个安装包的筛选, 所述文件大小和来源可以由第一应用 服务器通过第一应用商店的客户端显示给用户, 所述文件大小作为 安装包下载的流量大小的参考信息, 所述来源作为安装包下载来源 的参考信息。 所述安装包信息使得各个安装包的形式和信息统一, 便于识别和 选。 所述第一应用服务器根据所述安装包信息中的版 本号和摘要信息进行安装包的 选, 从而在后续过程中有效地生成 差分包。 特别的, 当所述安装包信息中不包括版本号和摘要信息时, 第一应用服务器可以在接收到安装包时生成与该安装包相应的版本 号和摘要信息, 以便于进行各个安装包的筛选。 或者, 第一应用服
务器也可以对接收机接收的 m个不同的安装包进行处理, 得到完整 的安装包信息。 Specifically, in step 201, the first application server may further receive installation package information of the first application sent by the application collection server, where the installation package information includes: an application identifier, a package name (packageName), and a version number (versionCode) , one or more of file size, summary information, and source. The installation package information makes the form and information of each installation package uniform, and is easy to identify and filter. The application identifier and the package name may be used for identifying the installation package of the first application, and the version number and summary information may be used for screening each installation package, where the file size and source may be adopted by the first application server. A client of an application store is displayed to the user, and the file size is used as reference information for the size of the traffic downloaded by the installation package, and the source is used as reference information for downloading the installation package. The installation package information makes the form and information of each installation package uniform, and is easy to identify and select. The first application server performs the selection of the installation package according to the version number and the summary information in the installation package information, so as to effectively generate the differential package in the subsequent process. In particular, when the installation package information does not include the version number and the summary information, the first application server may generate a version number and summary information corresponding to the installation package when receiving the installation package, so as to facilitate the installation of each package. filter. Or, the first application service The server can also process m different installation packages received by the receiver to obtain complete installation package information.
进一步的, 在步骤 204之后, 所述方法还包括: Further, after step 204, the method further includes:
接收到用户设备发送的用于升级所述第一应用程序的应用程序 升级请求, 所述应用程序升级请求包括: 所述用户设备中的第一旧 版本安装包的摘要信息; 根据所述第一旧版本安装包的摘要信息在 所述 n 个差分包中 选得到第一差分包, 所述第一差分包和所述第 一旧版本安装包能够组合得到所述新版本安装包; 发送响应消息至 所述用户设备, 所述响应消息包括所述第一差分包的信息, 以便于 所述用户设备根据所述响应消息将所述第一差分包和所述第一旧版 本安装包组合得到所述新版本安装包。 And receiving, by the user equipment, an application upgrade request for upgrading the first application, where the application upgrade request includes: summary information of a first old version installation package in the user equipment; The summary information of the old version installation package selects a first difference package among the n difference packages, the first difference package and the first old version installation package can be combined to obtain the new version installation package; sending a response message to The user equipment, the response message includes information of the first differential packet, so that the user equipment combines the first differential package and the first old version installation package according to the response message to obtain the New version of the installation package.
需要说明的是, 可以通过生成摘要信息的方法进行第一差分包 的筛选, 具体的, 包括: 提取所述应用程序升级请求中的第一旧版 本安装包的摘要信息; 将所述应用程序升级请求中的第一旧版本安 装包的摘要信息与所述 n个差分包的摘要信息进行匹配; 获取所述 n 个差分包中与所述应用程序升级请求中的第一旧版本安装包的摘 要信息相同的所述第一差分包。 示例的, 本发明实施例提供一种应用程序处理方法, 如图 3 所 示, 本实施例假设第一应用程序为微信, 第一应用服务器为应用服 务器 a , 所述应用服务器 a服务于应用商店 A , 应用处理系统中还包 括除应用商店 A之外的其他应用商店, 假设所述其他应用商店中存 在应用商店 B 和应用商店 C , 相应的应用服务器分别为应用服务器 b和应用服务器 c ,应用收集服务器为应用商店 A提供第一应用程序 ( 即微信) 的安装包收集的服务, 具体的, 所述应用程序处理方法 包括: It should be noted that, the method for generating the digest information may be used to perform the screening of the first differential package. Specifically, the method includes: extracting summary information of the first old version installation package in the application upgrade request; and upgrading the application. The summary information of the first old version installation package in the request is matched with the summary information of the n difference packages; obtaining a summary of the first old version installation package in the n difference packages and the application upgrade request The first differential packet of the same information. For example, the embodiment of the present invention provides an application processing method. As shown in FIG. 3, this embodiment assumes that the first application is WeChat, the first application server is the application server a, and the application server a serves the application store. A. The application processing system further includes an application store other than the application store A. It is assumed that the application store B and the application store C exist in the other application stores, and the corresponding application servers are the application server b and the application server c, respectively. The collection server provides the application store A with the service collected by the installation package of the first application (ie, WeChat). Specifically, the application processing method includes:
301、 应用收集服务器获取各个应用商店的微信的安装包。 应用收集服务器可以通过应用收集服务器与各个应用商店之间 的应用获取接口获取所述各个应用商店的微信的安装包。
也可以通过搜索爬虫获取所述各个应用商店的网页地址, 然后, 根据所述各个应用商店的网页地址在所述各个应用商店的网页中获 取所述微信的下载地址, 最后根据所述微信的下载地址下载得到所 述各个应用商店的微信的安装包。 需要说明的是, 搜索爬虫又名网 络爬虫, 是一个自动提取网页的程序, 它为搜索引擎从万维网上下 载网页, 是搜索引擎的重要组成部分。 在本实施例中可以设置应用 商店搜索爬虫来获取所述各个应用商店的网页地址。 301. The application collection server obtains an installation package of WeChat of each application store. The application collection server may obtain an installation package of the WeChat of each application store through an application acquisition interface between the application collection server and each application store. The webpage addresses of the respective application stores may be obtained by searching the crawler, and then, according to the webpage addresses of the respective application stores, the download addresses of the WeChat are obtained in the webpages of the respective application stores, and finally, according to the download of the WeChat The address download is obtained by the WeChat installation package of each of the application stores. It should be noted that the search crawler, also known as the web crawler, is a program for automatically extracting web pages, which is a search engine for downloading web pages from the World Wide Web, and is an important part of the search engine. In this embodiment, an application store search crawler may be set to obtain a webpage address of each of the application stores.
特别的, 由于应用收集服务器服务于应用商店 A , 该应用收集 服务器中可以存储有应用商店 A中的微信的安装包, 因此, 在获取 应用商店 A中的微信的安装包时, 应用收集服务器可以直接在本地 存储的安装包中提取应用商店 A中的微信的安装包。 In particular, since the application collection server serves the application store A, the application collection server may store the installation package of the WeChat in the application store A. Therefore, when acquiring the installation package of the WeChat in the application store A, the application collection server may Extract the WeChat installation package in Store A directly from the locally stored installation package.
本实施例假设应用收集服务器在应用商店 A的应用服务器 a中 获取的微信安装包为微信 A1 .0 , 在应用商店 B的应用服务器 b中获 取的微信安装包为微信 B 1 .0 , 在应用商店 C的应用服务器 c中获取 的微信安装包为微信 C 1 .0。 This embodiment assumes that the WeChat installation package acquired by the application collection server in the application server a of the application store A is WeChat A1. 0, and the WeChat installation package acquired in the application server b of the application store B is WeChat B 1.0. The WeChat installation package obtained in the application server c of the store C is WeChat C 1.0.
302、 应用收集服务器筛选得到微信的 m个不同的安装包。 302. The application collection server filters and obtains m different installation packages of WeChat.
对于同一个应用程序的同一版本, 应用开发者可能为各个应用 商店提供不同的安装包, 因此, 同一个应用程序的安装包可能有多 个, 分别来自应用程序处理系统中的各个应用商店, 由于应用收集 服务器获取的安装包中可能存在相同的安装包, 因此需要进行安装 包的筛选。 For the same version of the same application, the application developer may provide different installation packages for each app store, so there may be multiple installation packages for the same application, each from the app store in the app processing system, due to The same installation package may exist in the installation package obtained by the application collection server, so the installation package needs to be filtered.
应用收集服务器可以釆用同一摘要生成算法生成所述各个应用 商店的应用程序的安装包的摘要信息, 然后通过比较所述摘要信息, 在所述各个应用商店的应用程序的安装包中筛选得到摘要信息不同 的 m个安装包。 所述摘要信息为通过特定摘要生成算法生成的安装 包的摘要信息, 用于区分不同的安装包。 The application collection server may generate the summary information of the installation package of the application of each application store by using the same summary generation algorithm, and then filter the summary information in the installation package of the application of each application store by comparing the summary information. M installation packages with different information. The summary information is summary information of an installation package generated by a specific digest generation algorithm, and is used to distinguish different installation packages.
需要说明 的是, 所述摘要生成算法可以有多种, 如 MD5 ( Message Digest Algorithm , 消息摘要算法)。 It should be noted that the digest generation algorithm may be various, such as MD5 (Message Digest Algorithm).
本实施例假设应用收集服务器获取了 3 个不同的安装包, 即
m=3, 分别为安装包 A1.0、 B1.0和 C1.0。 This example assumes that the application collection server has obtained three different installation packages, namely m=3, which are the installation packages A1.0, B1.0 and C1.0 respectively.
应用收集服务器还可以对所述 m个不同的安装包的信息进行整 理得到安装包信息, 所述安装包信息包括: 应用标识、 包名、 版本 号、 文件大小、 摘要信息和来源的任意一种或多种。 所述安装包信 息使得各个安装包的形式和信息统一, 便于识别和筛选。 其中, 所 述应用标识和包名可以用于微信的安装包的识别, 版本号和摘要信 息可以用于各个安装包的筛选, 所述文件大小和来源可以由应用服 务器 a通过应用商店 A的客户端显示给用户, 所述文件大小作为安 装包下载的流量大小的参考信息, 所述来源作为安装包下载来源的 参考信息。 所述安装包信息使得各个安装包的形式和信息统一, 便 于识别和筛选。 进一步的, 应用服务器可以将所述安装包信息发送 至应用服务器 a,以便于应用服务器 a根据所述安装包信息进行安装 包的筛选, 从而有效地生成差分包。 特别的, 当所述安装包信息中 不包括版本号和摘要信息时, 应用服务器 a 可以在接收到安装包时 生成与该安装包相应的版本号和摘要信息, 以便于进行各个安装包 的筛选。 The application collection server may further organize information of the m different installation packages to obtain installation package information, where the installation package information includes: an application identifier, a package name, a version number, a file size, a summary information, and a source. Or a variety. The installation package information makes the form and information of each installation package uniform, and is easy to identify and filter. The application identifier and the package name may be used for the identification of the installation package of the WeChat, and the version number and the summary information may be used for screening the installation packages, and the file size and source may be used by the application server a through the client of the application store A. The terminal is displayed to the user, and the file size is used as reference information for the size of the traffic downloaded by the installation package, and the source is used as reference information for downloading the installation package. The installation package information makes the form and information of each installation package uniform, which facilitates identification and screening. Further, the application server may send the installation package information to the application server a, so that the application server a performs screening of the installation package according to the installation package information, thereby effectively generating a differential package. Specifically, when the installation package information does not include the version number and the summary information, the application server a may generate a version number and summary information corresponding to the installation package when receiving the installation package, so as to facilitate screening of each installation package. .
应用收集服务器可以以如表 1 所示的形式记录所述 3个不同的 安装包的安装包信息。其中, 微信 A1.0的应用标识为 A1, 微信 B1.0 的应用标识为 A2, 微信 C1.0 的应用标识为 A3, 3 个不同的安装包 的包名均为 "com.tencent.weixin" , 应用名称均为 信, 版本号分别 为 1、 1和 2, 3个不同的安装包的分别来自应用商店 A、 应用商店 B 和应用商店 C, 三者的文件大小和摘要信息都不同。 特别的, 所述 文件大小的单位为比特 ( Byte ), 所述应用标识的生成是为了有效区 分各个微信安装包, 由于本实施例中应用收集服务器为应用商店 A 提供微信的安装包收集的服务, 因此所述应用标识可以使得各个微 信安装包在应用商店 A中的标识唯一。
表 1 The application collection server may record the installation package information of the three different installation packages in the form as shown in Table 1. The application identifier of WeChat A1.0 is A1, the application identifier of WeChat B1.0 is A2, and the application identifier of WeChat C1.0 is A3. The package names of three different installation packages are "com.tencent.weixin". The application names are all letters, the version numbers are 1, 1 and 2, respectively. The three different installation packages are from App Store A, App Store B, and App Store C. The file sizes and summary information of the three are different. Specifically, the unit of the file size is a bit (Byte), and the application identifier is generated to effectively distinguish each WeChat installation package. Because the application collection server provides the WeChat installation package collection service for the application store A in this embodiment. Therefore, the application identifier may make the identification of each WeChat installation package in the application store A unique. Table 1
303、 应用收集服务器发送所述微信的 m 个不同的安装包至应 用服务器 a。 303. The application collection server sends the m different installation packages of the WeChat to the application server a.
应用收集服务器也可以同时将所述安装包信息发送至应用服务 器 a , 以便于应用服务器 a根据所述安装包信息进行安装包的 选, 从而有效地生成差分包。 需要说明的是, 应用服务器 a 也可以对得 到的 m个不同的安装包进行处理, 得到如表 1 所示的安装包信息, 以便于进行安装包的识别和 选, 从而有效地生成差分包。 The application collection server may also send the installation package information to the application server a at the same time, so that the application server a selects the installation package according to the installation package information, thereby effectively generating the differential package. It should be noted that the application server a can also process the obtained m different installation packages, and obtain the installation package information as shown in Table 1, so as to facilitate the identification and selection of the installation package, thereby effectively generating the differential package.
304、 应用服务器 a接收微信的新版本安装包。 304, application server a Receive a new version of WeChat installation package.
特别的, 所述微信的新版本安装包通常为应用开发者上传到应 用商店 A的应用服务器 a中的, 应用开发者向应用商店 A上传的微 信的新版本安装包可能与应用处理系统中其他应用商店的新版本安 装包不同。 本实施例假设应用开发者向应用商店 A上传的微信的新 版本安装包为 A2.0。 In particular, the new version of the WeChat installation package is usually uploaded by the application developer to the application server a of the application store A. The new version of the WeChat installation package uploaded by the application developer to the application store A may be related to other applications in the application processing system. The new version of the app store installation package is different. This embodiment assumes that the new version of the WeChat installation package uploaded by the application developer to the application store A is A2.0.
应用服务器 a 已经获取如表 1 所示的安装包信息, 相应的, 应
用服务器 a 也可以对所述新版本安装包 A2.0 的安装包信息进行记 录 , 如表 2 所示 , 微信 A2.0 的应 用 标识为 A4 , 包名 为 "com.tencent.weixin" , 应用名称均为微信, 版本号分别为 10, 来 自应用商店 A。 微信 A1.0、 B1.0、 Cl.O和 A2.0在应用服务器 a中存 在唯一的应用标识, 分别为 Al、 A2、 A3和 A4, 因此, 在应用商店 A 对微信安装包进行处理时, 可以查询相应的应用标识来获取该安 装包。 Application server a has obtained the installation package information as shown in Table 1, correspondingly, The server A can also record the installation package information of the new version installation package A2.0, as shown in Table 2, the application identifier of WeChat A2.0 is A4, and the package name is "com.tencent.weixin", the application The names are WeChat, the version number is 10, from App Store A. WeChat A1.0, B1.0, Cl.O and A2.0 have unique application identifiers in application server a, namely Al, A2, A3 and A4, so when application store A processes WeChat installation package , you can query the corresponding application ID to get the installation package.
表 2 Table 2
应用服务器 a获取 n个不同的旧版本安装包。 Application Server a Get n different old version installation packages.
应用服务器 a可以在所述 m个不同的安装包中筛选得到版本号 小于所述新版本安装包的版本号的 n个旧版本安装包。 在本实施例
中, 新版本安装包 A2.0的版本号为 10, 分别大于版本号 1、 1和 2, 因此本地安装包 A1.0和异地安装包 B1.0、 C1.0均为旧版本安装包, 本实施例中, 应用服务器 a获取 3个不同的旧版本安装包, 即 n=3。 The application server a may filter, among the m different installation packages, n old version installation packages whose version number is smaller than the version number of the new version installation package. In this embodiment In the new version, the version number of the installation package A2.0 is 10, which is greater than the version numbers 1, 1 and 2, respectively. Therefore, the local installation package A1.0 and the remote installation packages B1.0 and C1.0 are the old version installation packages. In this embodiment, the application server a obtains three different old version installation packages, that is, n=3.
需要说明的是, 由于所述新版本安装包为应用商店 A中最近更 新的安装包, 而其他应用商店可能存在比应用商店 A中的新版本安 装包版本更新的安装包, 所以存在所述 m个不同的安装包中存在版 本号大于等于所述新版本安装包的情况。 若所述 m个不同的安装包 中存在版本号大于等于所述新版本安装包的第一安装包, 应用商店 A对所述第一安装包不做差分处理, 等到应用商店 A中出现新的新 版本安装更新时, 再进行版本号的比较。 It should be noted that, since the new version installation package is the latest update installation package in the application store A, and other application stores may have an installation package updated than the new version installation package version in the application store A, the m exists. There are cases where the version number is greater than or equal to the new version of the installation package in a different installation package. If the first installation package whose version number is greater than or equal to the new version installation package exists in the m different installation packages, the application store A does not perform differential processing on the first installation package, and waits until a new one appears in the application store A. When the new version installs the update, the version number is compared.
306、 应用服务器 a获取 n个不同的差分包。 306. The application server a obtains n different differential packets.
应用服务器 a可以将所述 n个旧版本安装包分别与所述新版本 安装包进行差分, 得到所述 n个旧版本安装包对应的 n个差分包, 所述差分算法与现有技术相同, 本实施例对此不再赘述。 如表 3 所 示记录所述 3 个不同的差分包的信息, 所述 3 个不同的差分包分别 为 A2.0与 A1.0的差分包, A2.0与 B1.0的差分包, A2.0与 C1.0的 差分包, 三个差分包的标识分别为 XI, X2, X3, 示例的, 差分包 的标识为 XI 的差分包由 A2.0与 A1.0进行差分得到,即由应用标识 为 A4与 A1 的安装包进行差分得到, 相应的, 应用商店 A记录的差 分包说明为 A1->A4, 由于 A1.0的版本号为 1, A2.0的版本号为 10, 因此标识为 XI 的差分包的旧版本号为 1, 新版本号为 10。 需要说明 的是, 应用服务器 a 可以釆用摘要生成算法对中的各个差分包生成 摘要信息, 所述摘要生成算法与步骤 302 中的摘要生成算法相同。
表 3 The application server a can differentiate the n old version installation packages from the new version installation package to obtain n difference packets corresponding to the n old version installation packages, and the difference algorithm is the same as the prior art. This will not be repeated here. Record the information of the three different differential packets as shown in Table 3. The three different differential packets are the differential packets of A2.0 and A1.0, and the differential packets of A2.0 and B1.0, A2. The difference packets of .0 and C1.0, the identifiers of the three differential packets are XI, X2, X3, respectively. The difference packet of the differential packet identified by XI is obtained by the difference between A2.0 and A1.0, that is, The application identifier is differentiated between the installation packages of A4 and A1. Correspondingly, the differential package recorded by the application store A is described as A1->A4. Since the version number of A1.0 is 1, the version number of A2.0 is 10, so The old version number of the differential package identified as XI is 1, and the new version number is 10. It should be noted that the application server a may generate summary information for each differential packet in the digest generation algorithm pair, and the digest generation algorithm is the same as the digest generation algorithm in step 302. table 3
特别的, 在差分包生成之后, 应用服务器 a还可以对所述差分 包进行校验, 具体的, 应用服务器 a将旧版本安装包和对应的差分 包进行合并, 得到完整安装包, 并计算所述完整安装包的摘要信息, 判断所述摘要信息与新版本安装包是否完全一致, 若完全一致说明 所述差分包为有效差分包。 示例的, 将应用标识为 A2的旧版本安装 包 B 1 .0与相应的差分标识为 X2 的差分包进行合并, 所述合并方法 与现有技术相同, 本发明对此不再赘述。 合并后得到新的完整安装 包与应用标识为 A4的新版本安装包 A2.0进行比较, 可以通过生成 摘要信息, 并将所述摘要信息与新版本安装包 A2.0的摘要信息进行 比较, 若完全一致, 说明所述差分标识为 X2的差分包为有效的差分 包。 若存在无效的差分包, 可以在重新进行该差分包的生成。 所述 差分包校验的过程可以减少无效差分包的产生。 In particular, after the differential packet is generated, the application server a can also verify the differential packet. Specifically, the application server a merges the old version installation package and the corresponding differential package to obtain a complete installation package, and calculates the The summary information of the complete installation package is determined, and whether the summary information is completely consistent with the new version installation package, if the consistency package is completely consistent, the differential package is a valid differential package. For example, the old version installation package B 1 . 0 of the application identifier A2 is merged with the corresponding differential package with the difference identifier X2. The merge method is the same as the prior art, and the present invention will not be described again. After the combination, the new complete installation package is compared with the new version installation package A2.0 with the application identifier A4, and the summary information can be generated, and the summary information is compared with the summary information of the new version installation package A2.0. If they are completely consistent, the differential packet whose difference is identified by X2 is a valid differential packet. If there is an invalid differential packet, the generation of the differential packet can be performed again. The process of differential packet verification can reduce the generation of invalid differential packets.
307、 用户设备向应用服务器 a发送微信升级请求。
用户设备上安装有应用商店 A的应用客户端, 可以与应用商店 A 的应用服务器 a 进行通信。 同时, 由于用户设备上安装了该应用 客户端, 通常用户设备在开机启动时, 会自动扫描安装在该用户设 备中的应用程序, 得到各个应用程序的应用信息。 示例的, 如表 4 所示, 应用设备上共安装了 3 个应用程序, 分别为愤怒的小鸟、 微 信和微博。 307. The user equipment sends a WeChat upgrade request to the application server a. The application client of the application store A is installed on the user device, and can communicate with the application server a of the application store A. At the same time, since the application client is installed on the user equipment, the user equipment automatically scans the application installed in the user equipment when booting, and obtains application information of each application. For example, as shown in Table 4, a total of 3 applications are installed on the application device, namely Angry Birds, WeChat, and Weibo.
表 4 Table 4
用户设备通过应用商店客户端与应用商店 A的应用服务器 a的 信息接口查询用户设备中的各个应用是否可以升级, 当存在可以升 级的应用时, 可以通过用户设备的显示界面向用户提示可以升级的 应用程序, 当接收到用户的升级指令时, 向应用服务器 a发送应用 升级请求, 所述应用升级请求可以为多个应用程序的升级请求, 也 可以为 1 个应用程序的升级请求, 所述应用升级请求可以包括多个 参数, 如安装包名或应用标识, 应用摘要信息 ( shal -Degist ) 和版 本号中的一个或多个, 所述应用升级请求也可以包括业务自身参数, 例如用户设备联网方式, 如 WIFI ( Wireless Fidelity , 无线保真), 3G ( 3rd-generation , 第三代移动通信技术); 支持的压缩方式, 如
gzi 等等。 The user equipment can query whether the application in the user equipment can be upgraded through the information interface of the application server a of the application store A. When there is an application that can be upgraded, the user can be prompted to upgrade through the display interface of the user equipment. The application, when receiving the upgrade instruction of the user, sends an application upgrade request to the application server a, where the application upgrade request may be an upgrade request of multiple applications, or may be an upgrade request of one application, the application The upgrade request may include multiple parameters, such as an installation package name or an application identifier, one or more of application summary information (shal -Degist) and a version number, and the application upgrade request may also include a service self parameter, such as user equipment networking. Ways such as WIFI (Wireless Fidelity), 3G (3rd-generation, 3rd generation mobile communication technology); supported compression methods, such as Gzi and so on.
本实施例以微信升级请求为例, 所述微信升级请求用于升级微 信, 该微信升级请求中的参数可以包括安装包名: 微信, 摘要信息: 1ASDFSAFSDFASASAASADFSAF SDFASASA , 也可以包括版本号: 1。 In this embodiment, the WeChat upgrade request is used as an example. The WeChat upgrade request is used to upgrade the WeChat. The parameters in the WeChat upgrade request may include the installation package name: WeChat, summary information: 1ASDFSAFSDFASASAASADFSAF SDFASASA, may also include the version number: 1.
308、 应用服务器 a在所述 n个差分包中筛选得到第一差分包。 应用商店 A在接收到用户设备发送的微信升级请求时, 可以提 取所述应用程序升级请求中的摘要信息; 将所述应用程序升级请求 中的摘要信息与所述 n个差分包进行匹配; 获取所述 n个差分包中 与所述应用程序升级请求中的摘要信息相同的所述第一差分包, 所 述第一差分包和所述用户设备中的微信的第一旧版本安装包能够组 合得到所述新版本安装包。 308. The application server a filters the first differential packets in the n differential packets. When receiving the WeChat upgrade request sent by the user equipment, the application store A may extract the summary information in the application upgrade request, and match the summary information in the application upgrade request with the n differential packets; The first differential package of the n difference packets that is the same as the summary information in the application upgrade request, the first difference package and the first old version installation package of the WeChat in the user equipment can be combined Get the new version of the installation package.
具体的, 应用服务器 a 可以提取所述微信升级请求中的摘要信 息; 将所述微信升级请求中的摘要信息与应用服务器 a 中存储的如 表 2 所示的应用安装包的摘要信息进行匹配, 获得与所述微信升级 请求中的摘要信息相同的微信安装包, 该微信安装包为应用标识为 A1 的微信 A1 .0 ,在所述 n个差分包中筛选获取与所述微信升级请求 中的摘要信息相同的应用安装包对应的差分包即为第一差分包, 本 实施例中第一差分包为表 3 中记录的标识为 XI 的差分包。 Specifically, the application server a may extract the summary information in the WeChat upgrade request, and match the summary information in the WeChat upgrade request with the summary information of the application installation package as shown in Table 2 stored in the application server a, Obtaining a WeChat installation package that is the same as the summary information in the WeChat upgrade request, where the WeChat installation package is a WeChat A1.0 with an application identifier of A1, and filtering and acquiring the n differential packets in the WeChat upgrade request The differential packet corresponding to the same application installation package is the first differential packet. In this embodiment, the first differential packet is the differential packet with the identifier XI recorded in Table 3.
309、 应用服务器 a发送响应消息至所述用户设备。 309. The application server a sends a response message to the user equipment.
所述响应消息可以包括多个参数, 如安装包名或应用标识, 新 版本安装包的摘要信息 ( shal -Degist— All )、 第一差分包的摘要信息 ( shal -Degist— Patch )、 新版本安装包的大小第一差分包的大小 ( Size— Patch ) , 所述响应消息也可以包括业务自身参数, 例如差分 包下载地址等等。 The response message may include a plurality of parameters, such as an installation package name or an application identifier, summary information of the new version installation package (shal -Degist_All), summary information of the first differential package (shal -Degist_Patch), new version The size of the installation package is the size of the first differential packet (Size-Patch), and the response message may also include a service self parameter, such as a differential packet download address and the like.
310、用户设备根据所述第一差分包和所述用户设备中的微信的 第一旧版本安装包得到所述新版本安装包。 310. The user equipment obtains the new version installation package according to the first differential package and a first old version installation package of the WeChat in the user equipment.
本实施例中所述微信的第一旧版本安装包为表 4 中应用标识为 A1 的安装包。
用户设备首先可以根据所述响应消息下载得到所述第一差分 包, 获取所述第一差分包后, 可以计算所述第一差分包的摘要信息, 判断所述第一差分包的摘要信息与所述响应消息中的第一差分包的 摘要信息是否一致, 若一致, 说明下载第一差分包成功, 若不一致, 说明下载第一差分包失败, 可以重新进行下载。 The first old version installation package of the WeChat in this embodiment is an installation package whose application identifier is A1 in Table 4. The user equipment may first obtain the first differential packet according to the response message, and after obtaining the first differential packet, calculate summary information of the first differential packet, and determine summary information of the first differential packet. Whether the summary information of the first differential packet in the response message is consistent. If the information is consistent, the first differential packet is successfully downloaded. If the information is inconsistent, the downloading of the first differential packet fails, and the download may be performed again.
当下载第一差分包成功后, 可以将所述第一差分包和所述用户 设备中的微信的第一旧版本安装包组合得到新版本安装包。 特别的, 用户设备可以再次计算所述新版本安装包的摘要信息, 然后判断所 述新版本安装包的摘要信息与所述响应消息中的新版本安装包的摘 要信息是否一致, 若一致, 说明生成新版本安装包成功, 若不一致, 说明生成新版本安装包失败, 可以重新进行新版本安装包的生成。 After the first differential package is successfully downloaded, the first differential package and the first old version installation package of the WeChat in the user equipment may be combined to obtain a new version installation package. In particular, the user equipment may calculate the summary information of the new version of the installation package again, and then determine whether the summary information of the new version installation package is consistent with the summary information of the new version installation package in the response message. The new version of the installation package is successful. If it is inconsistent, it means that the new version of the installation package fails. You can re-create the new version of the installation package.
需要说明的是, 本发明实施例提供的应用处理方法步骤的先后 顺序可以进行适当调整, 步骤也可以根据情况进行相应增减, 任何 熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想 到变化的方法, 因此不再赘述。 It should be noted that the sequence of the steps of the application processing method provided by the embodiment of the present invention may be appropriately adjusted, and the steps may also be correspondingly increased or decreased according to the situation, and any person skilled in the art may be within the technical scope disclosed by the present invention. The method of change can be easily thought of, so it will not be described again.
本发明实施例提供的应用程序处理方法中, 由于应用收集服务 器收集了不同应用商店中的多个不同的安装包, 使得第一应用服务 器可以在获取所述应用程序的新版本安装包后, 根据所述不同的安 装包得到旧版本安装包及相应的差分包, 由于第一应用服务器能够 提供多个差分包, 那么, 即使用户设备中需要升级的应用程序的旧 版本安装包不是在第一应用服务器中下载的, 也可以获得相应的差 分包对该应用程序进行升级, 因此, 能够实现跨应用商店的应用程 序的差分升级。 本发明实施例一种应用收集服务器 40 , 如图 4所示, 包括: 获取单元 401 , 用于获取第一应用程序的 m个不同的安装包, 所述 m个不同的安装包来自各个应用商店, 并发送所述 m个不同的 安装包至第一发送单元 402 , m > 2 o In the application processing method provided by the embodiment of the present invention, the application collection server collects a plurality of different installation packages in different application stores, so that the first application server may obtain the new version installation package of the application, according to The different installation packages obtain the old version installation package and the corresponding differential package. Since the first application server can provide multiple differential packages, even if the old version installation package of the application that needs to be upgraded in the user equipment is not in the first application, The application downloaded from the server can also obtain the corresponding differential package to upgrade the application, thus enabling differential upgrade of applications across the application store. An application collection server 40, as shown in FIG. 4, includes: an obtaining unit 401, configured to acquire m different installation packages of the first application, where the m different installation packages are from various application stores. And sending the m different installation packages to the first sending unit 402, m > 2 o
对于同一个应用程序的同一版本, 应用开发者可能为各个应用
商店提供不同的安装包, 因此, 同一个应用程序的安装包可能有多 个, 分别来自应用程序处理系统中的各个应用商店。 For the same version of the same app, the app developer might be for each app The store offers different installation packages, so there may be multiple installation packages for the same application, one from each app store in the application processing system.
第一发送单元 402 , 用于接收所述获取单元发送的所述 m个不 同的安装包, 并发送所述 m个不同的安装包至第一应用服务器, 以 便于所述第一应用服务器在获取所述第一应用程序的新版本安装包 后, 在所述 m个不同的安装包中 选获得 n个旧版本安装包, 并得 到所述 n个旧版本安装包对应的 n个差分包, 所述差分包用于对所 述旧版本安装包的升级, "≥1。 The first sending unit 402 is configured to receive the m different installation packages sent by the acquiring unit, and send the m different installation packages to the first application server, so that the first application server is acquiring After the new version of the first application is installed, the n old installation packages are selected from the m different installation packages, and the n differential packages corresponding to the n old version installation packages are obtained, and the difference package is obtained. Used to upgrade the old version of the installation package, "≥1.
应用收集服务器可以服务于一个或多个应用商店, 进行应用程 序的收集和处理等工作, 实际应用中, 应用收集服务器通常服务于 固定的应用商店, 本发明实施例假设应用收集服务器为第一应用商 店服务。 The application collection server can serve one or more application stores, and collect and process the application. In an actual application, the application collection server usually serves the fixed application store. The embodiment of the present invention assumes that the application collection server is the first application. Store service.
这样一来, 获取单元收集了不同应用商店中的多个不同的安装 包, 第一发送单元将所述多个不同的安装包发送至第一应用服务器, 使得第一应用服务器可以在获取所述应用程序的新版本安装包后, 根据所述不同的安装包得到旧版本安装包及相应的差分包, 由于第 一应用服务器能够提供多个差分包, 那么, 即使用户设备中需要升 级的应用程序的旧版本安装包不是在第一应用服务器中下载的, 也 可以获得相应的差分包对该应用程序进行升级, 因此, 能够实现跨 应用商店的应用程序的差分升级。 In this way, the obtaining unit collects a plurality of different installation packages in different application stores, and the first sending unit sends the plurality of different installation packages to the first application server, so that the first application server may obtain the After the new version of the application is installed, the old version installation package and the corresponding differential package are obtained according to the different installation packages. Since the first application server can provide multiple differential packages, even if the application needs to be upgraded in the user equipment, The old version of the installation package is not downloaded in the first application server, and the corresponding differential package can be upgraded to the application, thus enabling differential upgrades of applications across the application store.
进一步的, 所述获取单元 401 在获取所述各个应用商店的第一 应用程序的安装包时具体用于: Further, the obtaining unit 401 is specifically configured to: when acquiring an installation package of the first application of each application store:
获取所述各个应用商店的第一应用程序的安装包: 通过与各个 应用商店之间的应用获取接口获取所述各个应用商店的第一应用程 序的安装包; 或者, 通过搜索爬虫获取所述各个应用商店的网页地 址, 根据所述各个应用商店的网页地址在所述各个应用商店的网页 中获取所述第一应用程序的下载地址, 根据所述第一应用程序的下 载地址下载得到所述各个应用商店的第一应用程序的安装包。 生成 所述各个应用商店的第一应用程序的安装包的摘要信息; 通过比较
所述摘要信息, 在所述各个应用商店的第一应用程序的安装包中筛 选得到摘要信息不同的 m个安装包。 Obtaining an installation package of the first application of the respective application stores: acquiring an installation package of the first application of the respective application stores by using an application acquisition interface between the respective application stores; or acquiring the respective by searching a crawler Obtaining, by the webpage address of the application store, the download address of the first application in the webpage of each application store according to the webpage address of the respective application store, and downloading the each according to the download address of the first application The installation package for the first app of the app store. Generating summary information of installation packages of the first application of the respective application stores; by comparison And the summary information is used to filter, in the installation package of the first application of each application store, m installation packages with different summary information.
需要说明的是, 搜索爬虫又名网络爬虫, 是一个自动提取网页 的程序, 它为搜索引擎从万维网上下载网页, 是搜索引擎的重要组 成部分。 在本实施例中可以设置应用商店搜索爬虫来获取所述各个 应用商店的网页地址。 It should be noted that the search crawler, also known as web crawler, is a program for automatically extracting web pages. It is a search engine for downloading web pages from the World Wide Web, which is an important part of the search engine. In this embodiment, an application store search crawler may be set to obtain the webpage addresses of the respective application stores.
特别的, 如图 5所示, 所述应用收集服务器 40还包括: 处理单元 403 , 用于在所述获取单元获取第一应用程序的 m个 不同的安装包之后, 对所述 m个不同的安装包的信息进行整理得到 安装包信息, 所述安装包信息包括: 应用标识、 包名、 版本号、 文 件大小、 摘要信息和来源的任意一种或多种。 Specifically, as shown in FIG. 5, the application collection server 40 further includes: a processing unit 403, configured to: after the obtaining unit acquires m different installation packages of the first application, the m different The information of the installation package is compiled to obtain installation package information, and the installation package information includes: one or more of an application identifier, a package name, a version number, a file size, a summary information, and a source.
第二发送单元 404 , 用于将所述安装包信息发送至第一应用服 务器, 以便于所述第一应用服务器根据所述安装包信息进行安装包 的筛选, 从而在后续过程中有效地生成差分包。 The second sending unit 404 is configured to send the installation package information to the first application server, so that the first application server performs screening of the installation package according to the installation package information, thereby effectively generating a difference in a subsequent process. package.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁, 上述描述的应用收集服务器的各单元的具体步骤, 可以参考应用程 序处理方法实施例中的对应过程, 在此不再赘述。 本发明实施例提供一种应用服务器 50 , 所述应用服务器 50 服 务于第一应用商店, 所述应用服务器可以为上述方法实施例中的第 一应用服务器, 如图 6所示, 包括: A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific steps of the above-mentioned application collection server unit can be referred to the corresponding process in the application processing method embodiment, and details are not described herein again. The embodiment of the present invention provides an application server 50. The application server 50 is configured by the first application store, and the application server may be the first application server in the foregoing method embodiment. As shown in FIG. 6, the method includes:
第一接收单元 501 , 用于接收应用收集服务器发送的第一应用 程序的 m个不同的安装包, 并发送所述 m个不同的安装包至第一筛 选单 503 , 所述 m个不同的安装包是由所述应用收集服务器获取的, 来自各个应用商店, m≥2。 特别的, 所述第一应用程序的新版本安 装包通常为开发者开发完成后上传到应用服务器的。 The first receiving unit 501 is configured to receive m different installation packages of the first application sent by the application collection server, and send the m different installation packages to the first screening list 503, where the m different installations The package is obtained by the application collection server, from various app stores, m ≥ 2 . In particular, the new version of the first application installation package is usually uploaded to the application server after the development of the developer.
所述第一接收单元 501还可以接收应用收集服务器发送的第一 应用程序的安装包信息, 所述安装包信息包括: 应用标识、 包名 ( packageName )、 版本号 ( versionCode )、 文件大小、 摘要信息和
来源的任意一种或多种。 所述安装包信息使得各个安装包的形式和 信息统一, 便于识别和 选。 所述应用服务器根据所述安装包信息 进行安装包的 选, 从而在后续过程中有效地生成差分包。 The first receiving unit 501 may further receive installation package information of the first application sent by the application collection server, where the installation package information includes: an application identifier, a package name (packageName), a version number (versionCode), a file size, and an abstract. Information and Any one or more of the sources. The installation package information makes the form and information of each installation package uniform, and is easy to identify and select. The application server selects an installation package according to the installation package information, thereby effectively generating a differential package in a subsequent process.
第二接收单元 502 , 用于接收所述第一应用程序的新版本安装 包, 并分别发送所述新版本安装包至第一 选单元 503 和差分单元 504。 The second receiving unit 502 is configured to receive a new version installation package of the first application, and send the new version installation package to the first selection unit 503 and the difference unit 504, respectively.
第一 选单元 503 , 用于接收所述第一接收单元 501 发送的所 述 m个不同的安装包以及所述第二接收单元 502发送的所述新版本 安装包,并在所述 m个不同的安装包中 选获得 n个旧版本安装包, 发送所述 n个旧版本安装包至差分单元 504 , "≥1。 所述第一 选单 元 503还可以对接收机接收的 m个不同的安装包进行处理, 得到安 装包信息, 以便于进行安装包的识别和 选, 从而有效地生成差分 包。 a first selection unit 503, configured to receive the m different installation packages sent by the first receiving unit 501 and the new version installation package sent by the second receiving unit 502, and in the m different The n installation packages are selected to obtain n old version installation packages, and the n old version installation packages are sent to the difference unit 504, "≥1. The first selection unit 503 can also process m different installation packages received by the receiver. , get the package information, in order to facilitate the identification and selection of the installation package, thus effectively generating a differential package.
所述旧版本安装包的版本号小于所述新版本安装包的版本号。 对于同一个应用程序的同一版本, 应用开发者可能为各个应用商店 提供不同的安装包, 因此, 应用程序的旧版本安装包可能有多个。 The version number of the old version installation package is smaller than the version number of the new version installation package. For the same version of the same application, the app developer may provide different installation packages for each app store, so there may be more than one old version of the app.
所述第一 选单元 503具体用于: The first selection unit 503 is specifically configured to:
在所述 m个不同的安装包中 选得到版本号小于所述新版本安 装包的版本号的 n个旧版本安装包。 An n old version installation package having a version number smaller than the version number of the new version installation package is selected among the m different installation packages.
需要说明的是,通常每个应用商店都有自身相应的应用服务器, 用于实现该应用商店中的应用程序的存储, 获取等等功能, 本实施 例假设应用服务器服务于第一应用商店, 所述应用服务器可以是一 个或多个子应用服务器集成的服务器系统, 本发明对此不做限定。 It should be noted that, in general, each application store has its own corresponding application server, which is used to implement storage, acquisition, and the like of the application in the application store. This embodiment assumes that the application server serves the first application store. The application server may be a server system integrated with one or more sub-application servers, which is not limited by the present invention.
差分单元 504 , 用于接收所述第二接收单元 502 发送的所述新 版本安装包和所述第一 选单元 503发送的所述 n个旧版本安装包, 将所述 n 个旧版本安装包分别与所述新版本安装包进行差分, 得到 所述 n个旧版本安装包对应的 n个差分包, 所述差分包用于对所述 旧版本安装包的升级。 The difference unit 504 is configured to receive the new version installation package sent by the second receiving unit 502 and the n old version installation packages sent by the first selection unit 503, and respectively, the n old version installation packages are respectively The new version installation package performs a difference to obtain n differential packages corresponding to the n old version installation packages, and the difference package is used to upgrade the old version installation package.
这样一来, 由于第一接收单元接收应用收集服务器收集的不同
应用商店中的多个不同的安装包, 使得在第二接收单元获取所述应 用程序的新版本安装包后, 第一 选单元根据所述不同的安装包得 到旧版本安装包, 差分单元得到相应的差分包, 由于应用服务器能 够提供多个差分包, 那么, 即使用户设备中需要升级的应用程序的 旧版本安装包不是在应用服务器中下载的, 也可以获得相应的差分 包对该应用程序进行升级, 因此, 能够实现跨应用商店的应用程序 的差分升级。 In this way, since the first receiving unit receives the difference collected by the application collection server a plurality of different installation packages in the application store, so that after the second receiving unit acquires the new version installation package of the application, the first selection unit obtains the old version installation package according to the different installation package, and the difference unit is correspondingly obtained. The differential package, since the application server can provide multiple differential packages, even if the old version installation package of the application that needs to be upgraded in the user equipment is not downloaded in the application server, the corresponding differential package can be obtained for the application. Upgrades, therefore, enable differential upgrades of applications across the store.
进一步的, 如图 7所示, 所述应用服务器 50还包括: Further, as shown in FIG. 7, the application server 50 further includes:
第三接收单元 505 , 用于接收到用户设备发送用于升级所述第 一应用程序的应用程序升级请求, 所述应用程序升级请求包括: 所 述用户设备中的第一旧版本安装包的摘要信息。 The third receiving unit 505 is configured to receive, by the user equipment, an application upgrade request for upgrading the first application, where the application upgrade request includes: a summary of the first old version installation package in the user equipment information.
第二 选单元 506 , 用于根据所述第一旧版本安装包的摘要信 息在所述第一 选单元 选出的所述 n 个差分包中 选得到第一差 分包, 所述第一差分包和所述第一旧版本安装包能够组合得到所述 新版本安装包。 a second selection unit 506, configured to select, according to the summary information of the first old version installation package, a first difference packet, among the n difference packets selected by the first selection unit, the first difference packet and The first old version installation package can be combined to obtain the new version installation package.
所述第二筛选单元 506具体用于: The second screening unit 506 is specifically configured to:
提取所述应用程序升级请求中的第一旧版本安装包的摘要信 息。 Extracting summary information of the first old version installation package in the application upgrade request.
将所述应用程序升级请求中的第一旧版本安装包的摘要信息与 所述 n个差分包的摘要信息进行匹配。 And matching the summary information of the first old version installation package in the application upgrade request with the summary information of the n difference packages.
获取所述 n个差分包中与所述应用程序升级请求中的第一旧版 本安装包的摘要信息相同的所述第一差分包。 Obtaining the first difference packet of the n difference packets that is the same as the summary information of the first old version installation package in the application upgrade request.
发送单元 507 , 用于发送响应消息至所述用户设备, 所述响应 消息包括所述第一差分包的信息, 以便于所述用户设备根据所述响 应消息将所述第一差分包和所述第一旧版本安装包组合得到所述新 版本安装包。 The sending unit 507 is configured to send a response message to the user equipment, where the response message includes information about the first differential packet, so that the user equipment, according to the response message, the first differential packet and the The first old version of the installation package is combined to get the new version of the installation package.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁, 上述描述的应用服务器的各单元的具体步骤, 可以参考应用程序处 理方法实施例中的对应过程, 在此不再赘述。
本发明实施例提供一种应用处理系统, 包括: A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific steps of each unit of the application server described above may refer to the corresponding process in the embodiment of the application processing method, and details are not described herein again. An embodiment of the present invention provides an application processing system, including:
本发明任意实施例提供的应用收集服务器。 所述应用收集服务 器用于获取第一应用程序的 m个不同的安装包, 所述 m个不同的安 装包来自各个应用商店, m≥2 ; 发送所述 m个不同的安装包至应用 服务器, 以便于所述应用服务器在获取所述第一应用程序的新版本 安装包后,在所述 m个不同的安装包中 选获得 n个旧版本安装包, 并得到所述 n个旧版本安装包对应的 n个差分包, 所述差分包用于 对所述旧版本安装包的升级, "≥1。 所述应用收集服务器可以为图 4 或图 5所示的应用收集服务器。 An application collection server provided by any embodiment of the present invention. The application server is configured to collect a first application program acquiring m different installation packages, the installation packages m different from each application store, m≥ 2; m different transmitting the installation package to the application server, After the application server obtains the new version installation package of the first application, select n old version installation packages from the m different installation packages, and obtain n corresponding to the n old version installation packages. a differential packet, the differential packet being used for upgrading the old version installation package, "≥1. The application collection server may be an application collection server as shown in FIG. 4 or FIG. 5.
以及本发明任意实施例提供的应用服务器。 所述应用服务器服 务于第一应用商店, 用于接收应用收集服务器发送的第一应用程序 的 m个不同的安装包, 所述 m个不同的安装包是由所述应用收集服 务器获取的, 来自各个应用商店, m≥2 ; 接收所述第一应用程序的 新版本安装包; 在所述 m个不同的安装包中 选获得 n个旧版本安 装包, 《≥1; 将所述 n个旧版本安装包分别与所述新版本安装包进行 差分, 得到所述 n个旧版本安装包对应的 n个差分包, 所述差分包 用于对所述旧版本安装包的升级。 所述应用服务器可以为上述方法 实施例中的第一应用服务器, 如图 6或图 7所示。 本发明实施例提供一种应用收集服务器 60 ,如图 8所示, 包括: 处理器 601 , 用于获取第一应用程序的 m个不同的安装包, 所 述 m个不同的安装包来自各个应用商店, m≥2。 And an application server provided by any embodiment of the present invention. The application server serves the first application store, and is configured to receive m different installation packages of the first application sent by the application collection server, where the m different installation packages are acquired by the application collection server, and are each application store, m≥ 2; the first application receiving a new version of the installation package; n old version of the installation package is obtained in the m different selected installation package, "≥1; n old version of the installation package Differentiating from the new version installation package respectively, obtaining n differential packages corresponding to the n old version installation packages, where the difference package is used for upgrading the old version installation package. The application server may be the first application server in the foregoing method embodiment, as shown in FIG. 6 or FIG. 7. The embodiment of the present invention provides an application collection server 60, as shown in FIG. 8, including: a processor 601, configured to acquire m different installation packages of the first application, where the m different installation packages are from respective applications. Store, m ≥ 2 .
对于同一个应用程序的同一版本, 应用开发者可能为各个应用 商店提供不同的安装包, 因此, 同一个应用程序的安装包可能有多 个, 分别来自应用程序处理系统中的各个应用商店。 For the same version of the same application, the application developer may provide different installation packages for each application store, so there may be multiple installation packages for the same application, each from the respective application store in the application processing system.
发射机 602 , 用于发送所述 m个不同的安装包至第一应用服务 器, 以便于所述第一应用服务器在获取所述第一应用程序的新版本 安装包后,在所述 m个不同的安装包中筛选获得 n个旧版本安装包,
并得到所述 n个旧版本安装包对应的 n个差分包, 所述差分包用于 对所述旧版本安装包的升级, "≥1。 a transmitter 602, configured to send the m different installation packages to the first application server, so that the first application server is different in the m after acquiring the new version installation package of the first application Filtered in the installation package to get n old versions of the installation package, And obtaining n differential packets corresponding to the n old version installation packages, where the difference package is used for upgrading the old version installation package, “≥1.
应用收集服务器可以服务于一个或多个应用商店, 进行应用程 序的收集和处理等工作, 实际应用中, 应用收集服务器通常服务于 固定的应用商店, 本发明实施例假设应用收集服务器为第一应用商 店服务。 The application collection server can serve one or more application stores, and collect and process the application. In an actual application, the application collection server usually serves the fixed application store. The embodiment of the present invention assumes that the application collection server is the first application. Store service.
这样一来,处理器收集了不同应用商店中的多个不同的安装包, 发射机将所述多个不同的安装包发送至第一应用服务器, 使得第一 应用服务器可以在获取所述应用程序的新版本安装包后, 根据所述 不同的安装包得到旧版本安装包及相应的差分包, 由于第一应用服 务器能够提供多个差分包, 那么, 即使用户设备中需要升级的应用 程序的旧版本安装包不是在第一应用服务器中下载的, 也可以获得 相应的差分包对该应用程序进行升级, 因此, 能够实现跨应用商店 的应用程序的差分升级。 In this way, the processor collects a plurality of different installation packages in different application stores, and the transmitter sends the plurality of different installation packages to the first application server, so that the first application server can acquire the application. After the new version of the installation package, the old version installation package and the corresponding differential package are obtained according to the different installation packages. Since the first application server can provide multiple differential packages, even if the user equipment needs to be upgraded, the old application The version installation package is not downloaded in the first application server, and the corresponding differential package can be upgraded to the application, thus enabling differential upgrade of applications across the application store.
进一步的, 所述处理器 601具体用于: Further, the processor 601 is specifically configured to:
获取所述各个应用商店的第一应用程序的安装包; 生成所述各 个应用商店的第一应用程序的安装包的摘要信息; 通过比较所述摘 要信息, 在所述各个应用商店的第一应用程序的安装包中筛选得到 摘要信息不同的 m个安装包。 Obtaining installation packages of the first application of the respective application stores; generating summary information of installation packages of the first application of the respective application stores; and comparing the summary information, the first application of the respective application stores The installation package of the program filters out m installation packages with different summary information.
所述处理器 601 具体用于: 通过与各个应用商店之间的应用获 取接口获取所述各个应用商店的第一应用程序的安装包; 或者, 通 过搜索爬虫获取所述各个应用商店的网页地址, 根据所述各个应用 商店的网页地址在所述各个应用商店的网页中获取所述第一应用程 序的下载地址, 根据所述第一应用程序的下载地址下载得到所述各 个应用商店的第一应用程序的安装包。 The processor 601 is specifically configured to: acquire an installation package of the first application of each application store by using an application acquisition interface between each application store; or obtain a webpage address of each application store by searching a crawler, Acquiring, by the webpage address of each application store, the download address of the first application in the webpage of each application store, and downloading the first application of each application store according to the download address of the first application The installation package for the program.
所述处理器 601还用于: The processor 601 is further configured to:
在获取所述第一应用程序的 m个不同的安装包之后, 对所述 m 个不同的安装包的信息进行整理得到安装包信息, 所述安装包信息 包括: 应用标识、 包名、 版本号、 文件大小、 摘要信息和来源的任
意一种或多种。 After obtaining the m different installation packages of the first application, the information of the m different installation packages is collated to obtain installation package information, where the installation package information includes: an application identifier, a package name, and a version number. , file size, summary information, and source of any One or more.
所述发射机 602还用于将所述安装包信息发送至第一应用服务 器, 以便于所述第一应用服务器根据所述安装包信息进行安装包的 筛选。 The transmitter 602 is further configured to send the installation package information to the first application server, so that the first application server performs screening of the installation package according to the installation package information.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁, 上述描述的应用收集服务器的各模块的具体步骤, 可以参考应用程 序处理方法实施例中的对应过程, 在此不再赘述。 本发明实施例提供一种应用服务器 70 , 所述应用服务器 70 服 务于第一应用商店, 所述应用服务器可以为上述方法实施例中的第 一应用服务器, 如图 9所示, 包括: A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific steps of the modules of the application collection server described above may refer to the corresponding processes in the application processing method embodiment, and details are not described herein again. The embodiment of the present invention provides an application server 70. The application server 70 is configured to serve the first application store. The application server may be the first application server in the foregoing method embodiment. As shown in FIG. 9, the method includes:
接收机 701 , 用于接收应用收集服务器发送的第一应用程序的 m个不同的安装包, 所述 m个不同的安装包是由所述应用收集服务 器获取的, 来自各个应用商店, m≥2。 A receiver 701 for the m different installation packages the first application receives an application transmitted by the collection server, the m different installation package is acquired by the collection server application from various applications store, m≥ 2 .
所述接收机 701 还可以接收应用收集服务器发送的第一应用程 序 的安装包信息 , 所述安装 包信息 包括: 应用 标识 、 包名 ( packageName )、 版本号 ( versionCode )、 文件大小、 摘要信息和 来源的任意一种或多种。 所述安装包信息使得各个安装包的形式和 信息统一, 便于识别和筛选。 其中, 所述应用标识和包名可以用于 第一应用程序的安装包的识别, 版本号和摘要信息可以用于各个安 装包的筛选, 所述文件大小和来源可以由应用服务器通过第一应用 商店的客户端显示给用户, 所述文件大小作为安装包下载的流量大 小的参考信息, 所述来源作为安装包下载来源的参考信息。 所述安 装包信息使得各个安装包的形式和信息统一, 便于识别和 选。 所 述应用服务器根据所述安装包信息中的版本号和摘要信息进行安装 包的筛选, 从而在后续过程中有效地生成差分包。 特别的, 当所述 安装包信息中不包括版本号和摘要信息时, 应用服务器可以在接收 到安装包时生成与该安装包相应的版本号和摘要信息, 以便于进行 各个安装包的筛选。
所述接收机 701还用于接收第一应用程序的新版本安装包。 处理器 702 , 用于在所述 m个不同的安装包中筛选获得 n个旧 版本安装包, "≥1。 The receiver 701 may further receive installation package information of the first application sent by the application collection server, where the installation package information includes: an application identifier, a package name (packageName), a version number (versionCode), a file size, a summary information, and Any one or more of the sources. The installation package information makes the form and information of each installation package uniform, and is easy to identify and filter. The application identifier and the package name may be used for identifying the installation package of the first application, and the version number and the summary information may be used for filtering the installation packages, where the file size and source may be passed by the application server through the first application. The client of the store is displayed to the user, and the file size is used as reference information for the size of the traffic downloaded by the installation package, and the source is used as reference information for downloading the installation package. The installation package information makes the form and information of each installation package uniform, and is easy to identify and select. The application server performs screening of the installation package according to the version number and the summary information in the installation package information, thereby effectively generating a differential package in a subsequent process. Specifically, when the installation package information does not include the version number and the summary information, the application server may generate a version number and summary information corresponding to the installation package when receiving the installation package, so as to facilitate screening of each installation package. The receiver 701 is further configured to receive a new version installation package of the first application. The processor 702 is configured to filter and obtain n old version installation packages in the m different installation packages, “≥1.
所述处理器 702还用于将所述 n个旧版本安装包分别与所述新 版本安装包进行差分, 得到所述 n个旧版本安装包对应的 n个差分 包, 所述差分包用于对所述旧版本安装包的升级。 The processor 702 is further configured to differentiate the n old version installation packages from the new version installation package, and obtain n difference packets corresponding to the n old version installation packages, where the difference package is used for An upgrade of the old version of the installation package.
特别的, 所述处理器 702还可以对接收机接收的 m个不同的安 装包进行处理, 得到安装包信息, 以便于进行安装包的识别和 选, 从而有效地生成差分包。 In particular, the processor 702 can also process m different installation packages received by the receiver to obtain installation package information, so as to facilitate identification and selection of the installation package, thereby effectively generating a differential package.
这样一来, 由于接收机接收应用收集服务器收集的不同应用商 店中的多个不同的安装包, 使得在接收机获取所述应用程序的新版 本安装包后, 处理器根据所述不同的安装包得到旧版本安装包和相 应的差分包, 由于应用服务器能够提供多个差分包, 那么, 即使用 户设备中需要升级的应用程序的旧版本安装包不是在应用服务器中 下载的, 也可以获得相应的差分包对该应用程序进行升级, 因此, 能够实现跨应用商店的应用程序的差分升级。 In this way, since the receiver receives a plurality of different installation packages in different application stores collected by the application collection server, after the receiver acquires the new version installation package of the application, the processor according to the different installation package Obtain the old version installation package and the corresponding difference package. Since the application server can provide multiple differential packages, even if the old version installation package of the application that needs to be upgraded in the user equipment is not downloaded in the application server, the corresponding The differential package upgrades the application, thus enabling differential upgrades of applications across the store.
进一步的, 所述处理器 702具体用于: Further, the processor 702 is specifically configured to:
在所述 m个不同的安装包中 选得到版本号小于所述新版本安 装包的版本号的 n个旧版本安装包。 An n old version installation package having a version number smaller than the version number of the new version installation package is selected among the m different installation packages.
所述接收机 701 还用于接收到用户设备发送的用于升级所述第 一应用程序的应用程序升级请求, 所述应用程序升级请求包括: 所 述用户设备中的第一旧版本安装包的摘要信息; The receiver 701 is further configured to receive, by the user equipment, an application upgrade request for upgrading the first application, where the application upgrade request includes: the first old version installation package of the user equipment Summary information;
所述处理器 702用于根据所述第一旧版本安装包的摘要信息在 所述 n 个差分包中 选得到第一差分包, 所述第一差分包和所述第 一旧版本安装包能够组合得到所述新版本安装包; The processor 702 is configured to select, according to the summary information of the first old version installation package, a first difference packet among the n difference packets, where the first difference package and the first old version installation package can be combined. Obtaining the new version installation package;
特别的, 如图 10所示, 所述应用服务器 70还包括: Specifically, as shown in FIG. 10, the application server 70 further includes:
发射机 703 , 用于发送响应消息至所述用户设备, 所述响应消 息包括所述第一差分包的信息, 以便于所述用户设备根据所述响应 消息将所述第一差分包和所述第一旧版本安装包组合得到所述新版
本安装包。 The transmitter 703 is configured to send a response message to the user equipment, where the response message includes information about the first differential packet, so that the user equipment sends the first differential packet and the The first old version of the installation package combination gets the new version This installation package.
所述处理器 702具体用于: The processor 702 is specifically configured to:
提取所述应用程序升级请求中的第一旧版本安装包的摘要信 息; 将所述应用程序升级请求中的第一旧版本安装包的摘要信息与 所述 n个差分包的摘要信息进行匹配; 获取所述 n个差分包中与所 述应用程序升级请求中的第一旧版本安装包的摘要信息相同的所述 第一差分包。 Extracting summary information of the first old version installation package in the application upgrade request; matching summary information of the first old version installation package in the application upgrade request with summary information of the n difference packages; Obtaining the first difference packet of the n difference packets that is the same as the summary information of the first old version installation package in the application upgrade request.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁, 上述描述的应用服务器的各模块的具体步骤, 可以参考应用程序处 理方法实施例中的对应过程, 在此不再赘述。 本发明实施例提供一种应用处理系统, 包括: A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific steps of the modules of the application server described above may refer to the corresponding processes in the application processing method embodiment, and details are not described herein again. An embodiment of the present invention provides an application processing system, including:
本发明任意实施例提供的应用收集服务器。 所述应用收集服务 器用于获取第一应用程序的 m个不同的安装包, 所述 m个不同的安 装包来自各个应用商店, m≥2 ; 发送所述 m个不同的安装包至应用 服务器, 以便于所述应用服务器在获取所述第一应用程序的新版本 安装包后,在所述 m个不同的安装包中 选获得 n个旧版本安装包, 并得到所述 n个旧版本安装包对应的 n个差分包, 所述差分包用于 对所述旧版本安装包的升级, "≥1。 所述应用收集服务器可以为图 8 所示的应用收集服务器。 An application collection server provided by any embodiment of the present invention. The application server is configured to obtain the first collection of m different application installation package, the m different from each application store installation packages, m≥ 2; m different transmitting the installation package to the application server, After the application server obtains the new version installation package of the first application, select n old version installation packages from the m different installation packages, and obtain n corresponding to the n old version installation packages. a differential packet, the differential packet being used for upgrading the old version installation package, "≥1. The application collection server may be an application collection server as shown in FIG.
以及本发明任意实施例提供的应用服务器。 所述应用服务器服 务于第一应用商店, 用于接收应用收集服务器发送的第一应用程序 的 m个不同的安装包, 所述 m个不同的安装包是由所述应用收集服 务器获取的, 来自各个应用商店, m≥2 ; 接收所述第一应用程序的 新版本安装包; 在所述 m个不同的安装包中 选获得 n个旧版本安 装包, 《≥1; 将所述 n个旧版本安装包分别与所述新版本安装包进行 差分, 得到所述 n个旧版本安装包对应的 n个差分包, 所述差分包 用于对所述旧版本安装包的升级。 所述应用服务器可以为上述方法 实施例中的第一应用服务器, 如图 9或图 10所示。
图 1 1 描述了本发明另一个实施例提供的应用收集服务器的结 构, 包括至少一个处理器 801 (例如 CPU ) , 至少一个网络接口 802 或者其他通信接口, 存储器 803 , 和至少一个通信总线 804 , 用于实 现这些装置之间的连接通信。 处理器 801 用于执行存储器 803 中存 储的可执行模块, 例如计算机程序。 存储器 803 可能包含高速随机 存取存储器 ( RAM: Random Access Memory ) , 也可能还包括非不 稳定的存储器 ( non-volatile memory ) , 例如至少一个磁盘存储器。 通过至少一个网络接口 802 (可以是有线或者无线) 实现该应用收 集服务器与至少一个其他网元之间的通信连接, 可以使用互联网, 广域网, 本地网, 城域网等。 And an application server provided by any embodiment of the present invention. The application server serves the first application store, and is configured to receive m different installation packages of the first application sent by the application collection server, where the m different installation packages are acquired by the application collection server, and are each application store, m≥ 2; the first application receiving a new version of the installation package; n old version of the installation package is obtained in the m different selected installation package, "≥1; n old version of the installation package Differentiating from the new version installation package respectively, obtaining n differential packages corresponding to the n old version installation packages, where the difference package is used for upgrading the old version installation package. The application server may be the first application server in the foregoing method embodiment, as shown in FIG. 9 or FIG. FIG. 11 illustrates a structure of an application collection server according to another embodiment of the present invention, including at least one processor 801 (eg, a CPU), at least one network interface 802 or other communication interface, a memory 803, and at least one communication bus 804. Used to implement connection communication between these devices. The processor 801 is configured to execute an executable module, such as a computer program, stored in the memory 803. The memory 803 may include a high speed random access memory (RAM: Random Access Memory), and may also include a non-volatile memory such as at least one disk memory. The communication connection between the application collection server and at least one other network element is implemented by at least one network interface 802 (which may be wired or wireless), and may use an Internet, a wide area network, a local network, a metropolitan area network, or the like.
在一些实施方式中, 存储器 803 存储了程序 803 1 , 程序 803 1 可以被处理器 801执行, 这个程序 803 1 包括: In some embodiments, the memory 803 stores the program 803 1 , and the program 803 1 can be executed by the processor 801. The program 803 1 includes:
获取第一应用程序的 m个不同的安装包,所述 m个不同的安装 包来自各个应用商店, m≥2 ; Obtaining a first application of m different installation packages, the installation packages m different from each application store, m≥ 2;
发送所述 m个不同的安装包至第一应用服务器, 以便于所述第 一应用服务器在获取所述第一应用程序的新版本安装包后, 在所述 m个不同的安装包中 选获得 n个旧版本安装包, 并得到所述 n个 旧版本安装包对应的 n 个差分包, 所述差分包用于对所述旧版本安 装包的升级, "≥1。 Sending the m different installation packages to the first application server, so that the first application server selects n of the m different installation packages after acquiring the new version installation package of the first application. The old version installs the package, and obtains n differential packages corresponding to the n old version installation packages, and the difference package is used to upgrade the old version installation package, "≥1.
所述获取第一应用程序的 m个不同的安装包,所述 m个不同的 安装包来自各个应用商店包括: Obtaining m different installation packages of the first application, where the m different installation packages are from various application stores, including:
获取所述各个应用商店的第一应用程序的安装包; Obtaining an installation package of the first application of each of the application stores;
生成所述各个应用商店的第一应用程序的安装包的摘要信息; 通过比较所述摘要信息, 在所述各个应用商店的第一应用程序 的安装包中筛选得到摘要信息不同的 m个安装包。 Generating summary information of installation packages of the first application of the respective application stores; and comparing the summary information, filtering, in the installation package of the first application of the respective application stores, m installation packages with different summary information .
所述获取所述各个应用商店的第一应用程序的安装包包括: 通过与各个应用商店之间的应用获取接口获取所述各个应用商 店的第一应用程序的安装包;
或者, The obtaining the installation package of the first application of the respective application stores includes: acquiring, by using an application acquisition interface between the respective application stores, an installation package of the first application of the respective application stores; or,
通过搜索爬虫获取所述各个应用商店的网页地址, Obtaining the webpage addresses of the respective application stores by searching the crawler,
根据所述各个应用商店的网页地址在所述各个应用商店的网页 中获取所述第一应用程序的下载地址, Obtaining a download address of the first application in a webpage of each of the application stores according to a webpage address of each of the application stores,
根据所述第一应用程序的下载地址下载得到所述各个应用商店 的第一应用程序的安装包。 The installation package of the first application of each of the application stores is downloaded according to the download address of the first application.
在所述获取第一应用程序的 m个不同的安装包之后, 所述方法 还包括: After the obtaining the m different installation packages of the first application, the method further includes:
对所述 m个不同的安装包的信息进行整理得到安装包信息, 所 述安装包信息包括: 应用标识、 包名、 版本号、 文件大小、 摘要信 息和来源的任意一种或多种; The information of the m different installation packages is collated to obtain installation package information, where the installation package information includes: one or more of an application identifier, a package name, a version number, a file size, a summary information, and a source;
将所述安装包信息发送至第一应用服务器, 以便于所述第一应 用服务器根据所述安装包信息进行安装包的 选。 图 12描述了本发明另一个实施例提供的应用服务器的结构,所 述应用服务器可以为上述方法实施例中的第一应用服务器, 包括至 少一个处理器 901 (例如 CPU ) , 至少一个网络接口 902或者其他通 信接口, 存储器 903 , 和至少一个通信总线 904 , 用于实现这些装置 之间的连接通信。 处理器 901 用于执行存储器 903 中存储的可执行 模块, 例如计算机程序。 存储器 903 可能包含高速随机存取存储器 ( RAM: Random Access Memory ) , 也可能还包括非不稳定的存储 器 ( non-volatile memory ) , 例 口至少一个磁盘存 4诸器。 通过至少一 个网络接口 902 (可以是有线或者无线) 实现应用服务器与至少一 个其他网元之间的通信连接, 可以使用互联网, 广域网, 本地网, 城域网等。 And sending the installation package information to the first application server, so that the first application server selects an installation package according to the installation package information. FIG. 12 illustrates a structure of an application server according to another embodiment of the present invention. The application server may be the first application server in the foregoing method embodiment, including at least one processor 901 (eg, a CPU), and at least one network interface 902. Or other communication interface, memory 903, and at least one communication bus 904 for enabling connection communication between these devices. The processor 901 is configured to execute an executable module, such as a computer program, stored in the memory 903. The memory 903 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, and at least one disk storage device. The communication connection between the application server and at least one other network element is implemented by at least one network interface 902 (which may be wired or wireless), and may use an Internet, a wide area network, a local area network, a metropolitan area network, or the like.
在一些实施方式中, 存储器 903 存储了程序 903 1 , 程序 903 1 可以被处理器 901执行, 这个程序 903 1 包括: In some embodiments, the memory 903 stores a program 903 1 , and the program 903 1 can be executed by the processor 901. The program 903 1 includes:
接收应用收集服务器发送的第一应用程序的 m 个不同的安装 包, 所述 m个不同的安装包是由所述应用收集服务器获取的, 来自
各个应用商店, m≥2 ; Receiving m different installation packages of the first application sent by the application collection server, where the m different installation packages are acquired by the application collection server, Various app stores, m ≥ 2 ;
接收所述第一应用程序的新版本安装包; Receiving a new version installation package of the first application;
在所述 m个不同的安装包中 选获得 n个旧版本安装包, "≥1; 将所述 n个旧版本安装包分别与所述新版本安装包进行差分, 得到所述 n个旧版本安装包对应的 n个差分包, 所述差分包用于对 所述旧版本安装包的升级。 Selecting n old version installation packages from the m different installation packages, "≥1; respectively differentiating the n old version installation packages from the new version installation package, and obtaining the n old version installation packages n differential packets, the differential packets being used for upgrading the old version installation package.
所述在所述 m个不同的安装包中 选获得 n个旧版本安装包包 括: The selection of n old version installation packages in the m different installation packages includes:
在所述 m个不同的安装包中 选得到版本号小于所述新版本安 装包的版本号的 n个旧版本安装包。 An n old version installation package having a version number smaller than the version number of the new version installation package is selected among the m different installation packages.
在所述将所述 n个旧版本安装包分别与所述新版本安装包进行 差分, 得到所述 n个旧版本安装包对应的 n个差分包之后, 所述方 法还包括: After the n old version installation packages are respectively differentiated from the new version installation package, and the n difference packages corresponding to the n old version installation packages are obtained, the method further includes:
接收到用户设备发送的用于升级所述第一应用程序的应用程序 升级请求, 所述应用程序升级请求包括: 所述用户设备中的第一旧 版本安装包的摘要信息; And receiving, by the user equipment, an application upgrade request for upgrading the first application, where the application upgrade request includes: summary information of the first old version installation package in the user equipment;
根据所述第一旧版本安装包的摘要信息在所述 n个差分包中筛 选得到第一差分包, 所述第一差分包和所述第一旧版本安装包能够 组合得到所述新版本安装包; And filtering, by using the summary information of the first old version installation package, the first difference packet in the n difference packets, where the first difference package and the first old version installation package can be combined to obtain the new version installation. Package
发送响应消息至所述用户设备, 所述响应消息包括所述第一差 分包的信息, 以便于所述用户设备根据所述响应消息将所述第一差 分包和所述第一旧版本安装包组合得到所述新版本安装包。 Sending a response message to the user equipment, where the response message includes information of the first differential packet, so that the user equipment installs the first differential package and the first old version package according to the response message. The combination gets the new version of the installation package.
所述根据所述第一旧版本安装包的摘要信息在所述 n个差分包 中筛选得到第一差分包包括: The filtering, according to the summary information of the first old version installation package, the first differential package selected by the n differential packets includes:
提取所述应用程序升级请求中的第一旧版本安装包的摘要信 息; Extracting summary information of the first old version installation package in the application upgrade request;
将所述应用程序升级请求中的第一旧版本安装包的摘要信息与 所述 n个差分包的摘要信息进行匹配; Matching summary information of the first old version installation package in the application upgrade request with summary information of the n difference packages;
获取所述 n个差分包中与所述应用程序升级请求中的第一旧版
本安装包的摘要信息相同的所述第一差分包。 Obtaining the first old version in the n differential packages and the application upgrade request The summary information of the installation package is the same as the first differential package.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁, 上述描述的系统, 装置和单元的具体工作过程, 可以参考前述方法 实施例中的对应过程, 在此不再赘述。 A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统, 装置和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置 实施例仅仅是示意性的, 例如, 所述单元的划分, 仅仅为一种逻辑 功能划分, 实际实现时可以有另外的划分方式, 例如多个单元或组 件可以结合或者可以集成到另一个系统, 或一些特征可以忽略, 或 不执行。 另一点, 所显示或讨论的相互之间的耦合或直接耦合或通 信连接可以是通过一些接口, 装置或单元的间接耦合或通信连接, 可以是电性或其它的形式。 In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. In addition, the 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 electrical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分 开的, 作为单元显示的部件可以是或者也可以不是物理单元, 即可 以位于一个地方, 或者也可以分布到多个网络单元上。 可以根据实 际的需要选择其中的部分或者全部单元来实现本实施例方案的目 的。 The units described as separate components may or may not be physically separated, and the components displayed as the units may or may not be physical units, and 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 embodiment of the present embodiment.
另外, 在本发明各个实施例中的各功能单元可以集成在一个处 理单元中, 也可以是各个单元单独物理包括, 也可以两个或两个以 上单元集成在一个单元中。 上述集成的单元既可以釆用硬件的形式 实现, 也可以釆用硬件加软件功能单元的形式实现。 In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围 并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技 术范围内, 可轻易想到变化或替换, 都应涵盖在本发明的保护范围 之内。 因此, 本发明的保护范围应所述以权利要求的保护范围为准。
The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.
Claims
1、 一种应用程序处理方法, 其特征在于, 应用于应用收集服务 器, 包括: 1. An application processing method, characterized in that it is applied to an application collection server and includes:
获取第一应用程序的 m个不同的安装包, 所述 m个不同的安装 包来自各个应用商店, m≥2 ; Obtain m different installation packages of the first application, the m different installation packages come from various application stores, m≥2;
发送所述 m 个不同的安装包至第一应用服务器, 以便于所述第 一应用服务器在获取所述第一应用程序的新版本安装包后, 在所述 m 个不同的安装包中 选获得 n个旧版本安装包, 并得到所述 n个旧版 本安装包对应的 n个差分包, 所述差分包用于对所述旧版本安装包的 升级, w≥l。 Send the m different installation packages to the first application server, so that after the first application server obtains the new version installation package of the first application program, it selects n from the m different installation packages. Old version installation packages are obtained, and n differential packages corresponding to the n old version installation packages are obtained. The differential packages are used to upgrade the old version installation packages, w≥l.
2、 根据权利要求 1 所述的方法, 其特征在于, 所述获取第一应 用程序的 m个不同的安装包, 所述 m个不同的安装包来自各个应用 商店包括: 2. The method according to claim 1, characterized in that: obtaining m different installation packages of the first application program, and the m different installation packages coming from various application stores include:
获取所述各个应用商店的第一应用程序的安装包; Obtain the installation package of the first application program in each application store;
生成所述各个应用商店的第一应用程序的安装包的摘要信息; 通过比较所述摘要信息,在所述各个应用商店的第一应用程序的 安装包中筛选得到摘要信息不同的 m个安装包。 Generate summary information of the installation package of the first application program in each application store; by comparing the summary information, filter out m installation packages with different summary information from the installation packages of the first application program in each application store .
3、 根据权利要求 2所述的方法, 其特征在于, 所述获取所述各 个应用商店的第一应用程序的安装包包括: 3. The method according to claim 2, wherein said obtaining the installation package of the first application program of each application store includes:
通过与各个应用商店之间的应用获取接口获取所述各个应用商 店的第一应用程序的安装包; Obtain the installation package of the first application program of each application store through the application acquisition interface with each application store;
或者, or,
通过搜索爬虫获取所述各个应用商店的网页地址, Obtain the web address of each application store through a search crawler,
根据所述各个应用商店的网页地址在所述各个应用商店的网页 中获取所述第一应用程序的下载地址, Obtain the download address of the first application program from the web page of each application store according to the web page address of each application store,
根据所述第一应用程序的下载地址下载得到所述各个应用商店 的第一应用程序的安装包。 Download the installation package of the first application program of each application store according to the download address of the first application program.
4、 根据权利要求 1 至 3任意一项权利要求所述的方法, 其特征 在于, 在所述获取第一应用程序的 m 个不同的安装包之后, 所述方
法还包括: 4. The method according to any one of claims 1 to 3, characterized in that, after obtaining m different installation packages of the first application program, the method The law also includes:
对所述 m 个不同的安装包的信息进行整理得到安装包信息, 所 述安装包信息包括: 应用标识、 包名、 版本号、 文件大小、 摘要信息 和来源的任意一种或多种; The information of the m different installation packages is sorted to obtain the installation package information. The installation package information includes: any one or more of application identification, package name, version number, file size, summary information and source;
将所述安装包信息发送至第一应用服务器,以便于所述第一应用 服务器根据所述安装包信息进行安装包的 选。 The installation package information is sent to the first application server, so that the first application server selects an installation package based on the installation package information.
5、 一种应用程序处理方法, 其特征在于, 应用于第一应用服务 器, 所述第一应用服务器服务于第一应用商店, 包括: 5. An application processing method, characterized in that it is applied to a first application server, and the first application server serves the first application store, including:
接收应用收集服务器发送的第一应用程序的 m个不同的安装包, 所述 m 个不同的安装包是由所述应用收集服务器获取的, 来自各个 应用商店, m≥2 ; Receive m different installation packages of the first application sent by the application collection server, the m different installation packages are obtained by the application collection server and come from various application stores, m≥2;
接收所述第一应用程序的新版本安装包; Receive a new version installation package of the first application;
在所述 m个不同的安装包中 选获得 n个旧版本安装包, w≥l ; 将所述 n个旧版本安装包分别与所述新版本安装包进行差分,得 到所述 n个旧版本安装包对应的 n个差分包, 所述差分包用于对所述 旧版本安装包的升级。 Select n old version installation packages from the m different installation packages, w≥l; differentiate the n old version installation packages with the new version installation packages respectively, and obtain the corresponding n old version installation packages. n differential packages, the differential packages are used to upgrade the old version installation package.
6、 根据权利要求 5所述的方法, 其特征在于, 所述在所述 m个 不同的安装包中 选获得 n个旧版本安装包包括: 6. The method according to claim 5, wherein the selection of n old version installation packages from the m different installation packages includes:
在所述 m 个不同的安装包中 选得到版本号小于所述新版本安 装包的版本号的 n个旧版本安装包。 Select n old version installation packages from the m different installation packages whose version numbers are smaller than the version number of the new version installation package.
7、 根据权利要求 5或 6所述的方法, 其特征在于, 在所述将所 述 n个旧版本安装包分别与所述新版本安装包进行差分, 得到所述 n 个旧版本安装包对应的 n个差分包之后, 所述方法还包括: 7. The method according to claim 5 or 6, wherein the n old version installation packages are respectively differentiated from the new version installation packages to obtain n corresponding to the n old version installation packages. After the differential packets, the method further includes:
接收到用户设备发送的用于升级所述第一应用程序的应用程序 升级请求, 所述应用程序升级请求包括: 所述用户设备中的第一旧版 本安装包的摘要信息; An application upgrade request sent by the user device for upgrading the first application is received, and the application upgrade request includes: summary information of the first old version installation package in the user device;
根据所述第一旧版本安装包的摘要信息在所述 n 个差分包中筛 选得到第一差分包, 所述第一差分包和所述第一旧版本安装包能够组 合得到所述新版本安装包;
发送响应消息至所述用户设备,所述响应消息包括所述第一差分 包的信息, 以便于所述用户设备根据所述响应消息将所述第一差分包 和所述第一旧版本安装包组合得到所述新版本安装包。 According to the summary information of the first old version installation package, the n differential packages are screened to obtain the first differential package. The first differential package and the first old version installation package can be combined to obtain the new version installation. Bag; Send a response message to the user equipment, where the response message includes information about the first differential package, so that the user equipment installs the first differential package and the first old version installation package according to the response message. The combination obtains the new version installation package.
8、 根据权利要求 7所述的方法, 其特征在于, 所述根据所述第 一旧版本安装包的摘要信息在所述 n 个差分包中 选得到第一差分 包包括: 8. The method according to claim 7, characterized in that, selecting the first differential package from the n differential packages according to the summary information of the first old version installation package includes:
提取所述应用程序升级请求中的第一旧版本安装包的摘要信息; 将所述应用程序升级请求中的第一旧版本安装包的摘要信息与 所述 n个差分包的摘要信息进行匹配; Extract the summary information of the first old version installation package in the application upgrade request; Match the summary information of the first old version installation package in the application upgrade request with the summary information of the n differential packages;
获取所述 n 个差分包中与所述应用程序升级请求中的第一旧版 本安装包的摘要信息相同的所述第一差分包。 Obtain the first differential package among the n differential packages that is the same as the summary information of the first old version installation package in the application upgrade request.
9、 一种应用收集服务器, 其特征在于, 包括: 9. An application collection server, characterized by including:
获取单元, 用于获取第一应用程序的 m 个不同的安装包, 所述 m个不同的安装包来自各个应用商店,并发送所述 m个不同的安装包 至第一发送单元, m≥2 ; The acquisition unit is used to acquire m different installation packages of the first application program, the m different installation packages come from various application stores, and send the m different installation packages to the first sending unit, m≥2 ;
第一发送单元, 用于接收所述获取单元发送的所述 m 个不同的 安装包, 并发送所述 m 个不同的安装包至第一应用服务器, 以便于 所述第一应用服务器在获取所述第一应用程序的新版本安装包后, 在 所述 m个不同的安装包中 选获得 n个旧版本安装包, 并得到所述 n 个旧版本安装包对应的 n个差分包, 所述差分包用于对所述旧版本安 装包的升级, w≥l。 The first sending unit is configured to receive the m different installation packages sent by the obtaining unit, and send the m different installation packages to the first application server, so that the first application server obtains all the installation packages. After the new version installation package of the first application is obtained, n old version installation packages are selected from the m different installation packages, and n differential packages corresponding to the n old version installation packages are obtained, and the differential packages are For upgrading the old version installation package, w ≥ l.
10、 根据权利要求 9所述的应用收集服务器, 其特征在于, 所述 获取单元具体用于: 10. The application collection server according to claim 9, characterized in that the acquisition unit is specifically used for:
获取所述各个应用商店的第一应用程序的安装包; Obtain the installation package of the first application program in each application store;
生成所述各个应用商店的第一应用程序的安装包的摘要信息; 通过比较所述摘要信息,在所述各个应用商店的第一应用程序的 安装包中筛选得到摘要信息不同的 m个安装包。 Generate summary information of the installation package of the first application program in each application store; by comparing the summary information, filter out m installation packages with different summary information from the installation packages of the first application program in each application store .
1 1、 根据权利要求 10所述的应用收集服务器, 其特征在于, 所 述获取单元在获取所述各个应用商店的第一应用程序的安装包时具
体用于: 1 1. The application collection server according to claim 10, characterized in that, when obtaining the installation package of the first application program of each application store, the acquisition unit has: Body used for:
通过与各个应用商店之间的应用获取接口获取所述各个应用商 店的第一应用程序的安装包; Obtain the installation package of the first application program of each application store through the application acquisition interface with each application store;
或者, or,
通过搜索爬虫获取所述各个应用商店的网页地址, Obtain the web address of each application store through a search crawler,
根据所述各个应用商店的网页地址在所述各个应用商店的网页 中获取所述第一应用程序的下载地址, Obtain the download address of the first application program from the web page of each application store according to the web page address of each application store,
根据所述第一应用程序的下载地址下载得到所述各个应用商店 的第一应用程序的安装包。 Download the installation package of the first application program of each application store according to the download address of the first application program.
12、 根据权利要求 9至 1 1任意一项权利要求所述的应用收集服 务器, 其特征在于, 所述应用收集服务器还包括: 12. The application collection server according to any one of claims 9 to 11, characterized in that, the application collection server further includes:
处理单元, 用于在所述获取单元获取第一应用程序的 m 个不同 的安装包之后, 对所述 m 个不同的安装包的信息进行整理得到安装 包信息, 所述安装包信息包括: 应用标识、 包名、 版本号、 文件大小、 摘要信息和来源的任意一种或多种; The processing unit is configured to sort out the information of the m different installation packages to obtain the installation package information after the acquisition unit obtains m different installation packages of the first application program. The installation package information includes: Application Any one or more of identification, package name, version number, file size, summary information and source;
第二发送单元, 用于将所述安装包信息发送至第一应用服务器, 以便于所述第一应用服务器根据所述安装包信息进行安装包的 选。 The second sending unit is configured to send the installation package information to the first application server, so that the first application server selects an installation package based on the installation package information.
13、 一种应用服务器, 其特征在于, 所述应用服务器服务于第一 应用商店, 包括: 13. An application server, characterized in that the application server serves the first application store, including:
第一接收单元,用于接收应用收集服务器发送的第一应用程序的 m个不同的安装包, 并发送所述 m个不同的安装包至第一 选单元, 所述 m 个不同的安装包是由所述应用收集服务器获取的, 来自各个 应用商店, m≥2 ; The first receiving unit is configured to receive m different installation packages of the first application program sent by the application collection server, and send the m different installation packages to the first selection unit, where the m different installation packages are Obtained by the application collection server from each application store, m≥2;
第二接收单元, 用于接收所述第一应用程序的新版本安装包, 并 分别发送所述新版本安装包至所述第一 选单元和差分单元; The second receiving unit is configured to receive the new version installation package of the first application program, and send the new version installation package to the first selection unit and the difference unit respectively;
所述第一 选单元, 用于接收所述第一接收单元发送的所述 m 个不同的安装包以及所述第二接收单元发送的所述新版本安装包, 并 在所述 m个不同的安装包中 选获得 n个旧版本安装包, 发送所述 n 个旧版本安装包至所述差分单元, „≥i ;
所述差分单元,用于接收所述第二接收单元发送的所述新版本安 装包和所述第一 选单元发送的所述 n个旧版本安装包, 将所述 n个 旧版本安装包分别与所述新版本安装包进行差分, 得到所述 n个旧版 本安装包对应的 n个差分包, 所述差分包用于对所述旧版本安装包的 升级。 The first selection unit is configured to receive the m different installation packages sent by the first receiving unit and the new version installation package sent by the second receiving unit, and install the m different installation packages on the m different installation packages sent by the second receiving unit. Select n old version installation packages from the installation package, and send the n old version installation packages to the difference unit, „≥i; The difference unit is configured to receive the new version installation package sent by the second receiving unit and the n old version installation packages sent by the first selection unit, and combine the n old version installation packages with the n old version installation packages respectively. The new version installation package is differentiated to obtain n differential packages corresponding to the n old version installation packages, and the differential packages are used to upgrade the old version installation package.
14、 根据权利要求 13所述的应用服务器, 其特征在于, 所述第 一筛选单元具体用于: 14. The application server according to claim 13, characterized in that the first screening unit is specifically used for:
在所述 m 个不同的安装包中 选得到版本号小于所述新版本安 装包的版本号的 n个旧版本安装包。 Select n old version installation packages from the m different installation packages whose version numbers are smaller than the version number of the new version installation package.
15、 根据权利要求 13或 14所述的应用服务器, 其特征在于, 所 述应用服务器还包括: 15. The application server according to claim 13 or 14, characterized in that the application server further includes:
第三接收单元,用于接收到用户设备发送的用于升级所述第一应 用程序的应用程序升级请求, 所述应用程序升级请求包括: 所述用户 设备中的第一旧版本安装包的摘要信息; The third receiving unit is configured to receive an application upgrade request sent by the user equipment for upgrading the first application, where the application upgrade request includes: a summary of the first old version installation package in the user equipment. information;
第二 选单元,用于根据所述第一旧版本安装包的摘要信息在所 述第一 选单元 选出的所述 n个差分包中 选得到第一差分包, 所 述第一差分包和所述第一旧版本安装包能够组合得到所述新版本安 装包; The second selection unit is configured to select a first differential package from the n differential packages selected by the first selection unit based on the summary information of the first old version installation package, the first differential package and the The first old version installation package can be combined to obtain the new version installation package;
发送单元, 用于发送响应消息至所述用户设备, 所述响应消息包 括所述第一差分包的信息, 以便于所述用户设备根据所述响应消息将 所述第一差分包和所述第一旧版本安装包组合得到所述新版本安装 包。 A sending unit, configured to send a response message to the user equipment, where the response message includes information about the first differential packet, so that the user equipment combines the first differential packet and the third differential packet according to the response message. An old version installation package is combined to obtain the new version installation package.
16、 根据权利要求 15所述的应用服务器, 其特征在于, 所述第 二筛选单元具体用于: 16. The application server according to claim 15, characterized in that the second screening unit is specifically used for:
提取所述应用程序升级请求中的第一旧版本安装包的摘要信息; 将所述应用程序升级请求中的第一旧版本安装包的摘要信息与 所述 n个差分包的摘要信息进行匹配; Extract the summary information of the first old version installation package in the application upgrade request; Match the summary information of the first old version installation package in the application upgrade request with the summary information of the n differential packages;
获取所述 n 个差分包中与所述应用程序升级请求中的第一旧版 本安装包的摘要信息相同的所述第一差分包。
Obtain the first differential package among the n differential packages that is the same as the summary information of the first old version installation package in the application upgrade request.
17、 一种应用处理系统, 其特征在于, 包括: 17. An application processing system, characterized by including:
权利要求 9至 12 任意一项权利要求所述的应用收集服务器; 以及权利要求 13至 16 任意一项权利要求所述的应用服务器。 The application collection server according to any one of claims 9 to 12; and the application server according to any one of claims 13 to 16.
18、 一种应用收集服务器, 其特征在于, 包括: 18. An application collection server, characterized by including:
处理器, 用于获取第一应用程序的 m个不同的安装包, 所述 m 个不同的安装包来自各个应用商店, m≥2 ; A processor, used to obtain m different installation packages of the first application, the m different installation packages coming from various application stores, m≥2;
发射机, 用于发送所述 m 个不同的安装包至第一应用服务器, 以便于所述第一应用服务器在获取所述第一应用程序的新版本安装 包后, 在所述 m个不同的安装包中 选获得 n个旧版本安装包, 并 得到所述 n个旧版本安装包对应的 n个差分包, 所述差分包用于对所 述旧版本安装包的升级, „≥ι。 A transmitter, configured to send the m different installation packages to the first application server, so that after the first application server obtains the new version installation package of the first application program, the m different installation packages are n old version installation packages are selected from the installation package, and n differential packages corresponding to the n old version installation packages are obtained, and the differential packages are used to upgrade the old version installation packages, „≥ι.
19、 根据权利要求 18所述的应用收集服务器, 其特征在于, 所 述处理器具体用于: 19. The application collection server according to claim 18, characterized in that the processor is specifically used to:
获取所述各个应用商店的第一应用程序的安装包; Obtain the installation package of the first application program in each application store;
生成所述各个应用商店的第一应用程序的安装包的摘要信息; 通过比较所述摘要信息,在所述各个应用商店的第一应用程序的 安装包中筛选得到摘要信息不同的 m个安装包。 Generate summary information of the installation package of the first application program in each application store; by comparing the summary information, filter out m installation packages with different summary information from the installation packages of the first application program in each application store .
20、 根据权利要求 19所述的应用收集服务器, 其特征在于, 所 述处理器具体用于: 20. The application collection server according to claim 19, characterized in that the processor is specifically used to:
通过与各个应用商店之间的应用获取接口获取所述各个应用商 店的第一应用程序的安装包; Obtain the installation package of the first application program of each application store through the application acquisition interface with each application store;
或者, or,
通过搜索爬虫获取所述各个应用商店的网页地址, Obtain the web address of each application store through a search crawler,
根据所述各个应用商店的网页地址在所述各个应用商店的网页 中获取所述第一应用程序的下载地址, Obtain the download address of the first application program from the web page of each application store according to the web page address of each application store,
根据所述第一应用程序的下载地址下载得到所述各个应用商店 的第一应用程序的安装包。 Download the installation package of the first application program of each application store according to the download address of the first application program.
21、根据权利要求 18至 20任意一项权利要求所述的应用收集服 务器, 其特征在于, 所述处理器还用于:
在获取所述第一应用程序的 m个不同的安装包之后, 对所述 m 个不同的安装包的信息进行整理得到安装包信息, 所述安装包信息包 括: 应用标识、 包名、 版本号、 文件大小、 摘要信息和来源的任意一 种或多种; 21. The application collection server according to any one of claims 18 to 20, characterized in that, the processor is also used to: After obtaining m different installation packages of the first application program, the information of the m different installation packages is sorted to obtain the installation package information. The installation package information includes: application identification, package name, version number , file size, summary information and source any one or more;
所述发射机还用于将所述安装包信息发送至第一应用服务器,以 便于所述第一应用服务器根据所述安装包信息进行安装包的 选。 The transmitter is also used to send the installation package information to the first application server, so that the first application server selects an installation package based on the installation package information.
22、 一种应用服务器, 其特征在于, 所述应用服务器服务于第一 应用商店, 包括: 22. An application server, characterized in that the application server serves the first application store, including:
接收机, 用于接收应用收集服务器发送的第一应用程序的 m 个 不同的安装包, 所述 m 个不同的安装包是由所述应用收集服务器获 取的, 来自各个应用商店, m≥2 ; A receiver, configured to receive m different installation packages of the first application sent by the application collection server, where the m different installation packages are obtained by the application collection server and come from various application stores, m≥2;
所述接收机还用于接收第一应用程序的新版本安装包; The receiver is also used to receive a new version installation package of the first application program;
处理器, 用于在所述 m个不同的安装包中 选获得 n个旧版本 安装包, n≥l ; The processor is used to select n old version installation packages from the m different installation packages, n≥l;
所述处理器还用于将所述 n 个旧版本安装包分别与所述新版本 安装包进行差分, 得到所述 n个旧版本安装包对应的 n个差分包, 所 述差分包用于对所述旧版本安装包的升级。 The processor is also used to differentiate the n old version installation packages with the new version installation packages to obtain n differential packages corresponding to the n old version installation packages. The differential packages are used to compare the n old version installation packages. Upgrade of old version installation package.
23、 根据权利要求 22所述的应用服务器, 其特征在于, 所述处 理器具体用于: 23. The application server according to claim 22, characterized in that the processor is specifically used for:
在所述 m 个不同的安装包中 选得到版本号小于所述新版本安 装包的版本号的 n个旧版本安装包。 Select n old version installation packages from the m different installation packages whose version numbers are smaller than the version number of the new version installation package.
24、 根据权利要求 22或 23所述的应用服务器, 其特征在于, 所述接收机还用于接收到用户设备发送的用于升级所述第一应 用程序的应用程序升级请求, 所述应用程序升级请求包括: 所述用户 设备中的第一旧版本安装包的摘要信息; 24. The application server according to claim 22 or 23, wherein the receiver is further configured to receive an application upgrade request sent by a user device for upgrading the first application, and the application The upgrade request includes: summary information of the first old version installation package in the user device;
所述处理器用于根据所述第一旧版本安装包的摘要信息在所述 n个差分包中筛选得到第一差分包, 所述第一差分包和所述第一旧版 本安装包能够组合得到所述新版本安装包; The processor is configured to filter out the n differential packages according to the summary information of the first old version installation package to obtain a first differential package. The first differential package and the first old version installation package can be combined to obtain The new version installation package;
所述第一应用服务器还包括:
发射机, 用于发送响应消息至所述用户设备, 所述响应消息包括 所述第一差分包的信息, 以便于所述用户设备根据所述响应消息将所 述第一差分包和所述第一旧版本安装包组合得到所述新版本安装包。 The first application server also includes: A transmitter, configured to send a response message to the user equipment, where the response message includes information about the first differential packet, so that the user equipment combines the first differential packet and the third differential packet according to the response message. An old version installation package is combined to obtain the new version installation package.
25、 根据权利要求 24所述的应用服务器, 其特征在于, 所述处 理器具体用于: 25. The application server according to claim 24, characterized in that the processor is specifically used for:
提取所述应用程序升级请求中的第一旧版本安装包的摘要信息; 将所述应用程序升级请求中的第一旧版本安装包的摘要信息与 所述 n个差分包的摘要信息进行匹配; Extract the summary information of the first old version installation package in the application upgrade request; Match the summary information of the first old version installation package in the application upgrade request with the summary information of the n differential packages;
获取所述 n 个差分包中与所述应用程序升级请求中的第一旧版 本安装包的摘要信息相同的所述第一差分包。 Obtain the first differential package among the n differential packages that is the same as the summary information of the first old version installation package in the application upgrade request.
26、 一种应用处理系统, 其特征在于, 包括: 26. An application processing system, characterized by including:
权利要求 18至 21任意一项权利要求所述的应用收集服务器; 以及权利要求 22至 25 任意一项权利要求所述的应用服务器。
The application collection server described in any one of claims 18 to 21; and the application server described in any one of claims 22 to 25.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2013/071397 WO2014121441A1 (en) | 2013-02-05 | 2013-02-05 | Application program processing method, device and system |
CN201310300173.0A CN103442026B (en) | 2013-02-05 | 2013-07-17 | A kind of applied program processing method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2013/071397 WO2014121441A1 (en) | 2013-02-05 | 2013-02-05 | Application program processing method, device and system |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2014121441A1 true WO2014121441A1 (en) | 2014-08-14 |
Family
ID=51299155
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2013/071397 WO2014121441A1 (en) | 2013-02-05 | 2013-02-05 | Application program processing method, device and system |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2014121441A1 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0822685A2 (en) * | 1996-08-02 | 1998-02-04 | Fore Systems, Inc. | Processing of TLV based link-state packets |
CN1777317A (en) * | 2005-12-16 | 2006-05-24 | 北京金山软件有限公司 | Method for realizing programme update of wireless terminal |
CN102081535A (en) * | 2010-12-17 | 2011-06-01 | 东莞宇龙通信科技有限公司 | Android-based application program upgrading method and system and application development platform |
CN102724308A (en) * | 2012-06-13 | 2012-10-10 | 腾讯科技(深圳)有限公司 | Software update method and software update system |
-
2013
- 2013-02-05 WO PCT/CN2013/071397 patent/WO2014121441A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0822685A2 (en) * | 1996-08-02 | 1998-02-04 | Fore Systems, Inc. | Processing of TLV based link-state packets |
CN1777317A (en) * | 2005-12-16 | 2006-05-24 | 北京金山软件有限公司 | Method for realizing programme update of wireless terminal |
CN102081535A (en) * | 2010-12-17 | 2011-06-01 | 东莞宇龙通信科技有限公司 | Android-based application program upgrading method and system and application development platform |
CN102724308A (en) * | 2012-06-13 | 2012-10-10 | 腾讯科技(深圳)有限公司 | Software update method and software update system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103442026B (en) | A kind of applied program processing method, device and system | |
US10033818B2 (en) | Using listen ranges to deliver content to electronic devices from local caching servers | |
JP5608288B2 (en) | Method, apparatus and system for processing firmware based on wireless firmware distribution technology | |
KR102105636B1 (en) | Installing application remotely | |
WO2017088703A1 (en) | Page jumping method and apparatus | |
CN105812435B (en) | Application upgrading data packet processing method and device, electronic equipment and system | |
CN109495433B (en) | Data downloading method and device, storage medium and electronic device | |
CN106911729A (en) | A kind of operating system remote installation method suitable for domestic processor | |
JP2006172472A5 (en) | ||
CN108989430B (en) | Load balancing method, device and storage medium | |
WO2011085625A1 (en) | Method, system and client for downloading software installation packages | |
CN106549789B (en) | Method and system for realizing server installation | |
CN105554137B (en) | A kind of standby system and method | |
WO2015010104A1 (en) | Content source discovery | |
CN101984406A (en) | Method and system for upgrading terminal through wireless local area network | |
CN105786606A (en) | Data transferring method and system for intelligent terminals | |
GB2555858A (en) | Remote malware scanning capable of static and dynamic file analysis | |
CN106708539B (en) | Client updating method and device | |
WO2015074391A1 (en) | Method and apparatus for mounting peripheral components on multiple virtual machines | |
CN109831779B (en) | Upgrade package downloading method, device, server, terminal and system | |
CN105491239B (en) | The hold-up interception method and device of junk information | |
CN107968725B (en) | Method and device for returning and configuring configuration information of home gateway unit type terminal device | |
CN105915613A (en) | Resource supply method and device based on cloud services | |
CN112748937A (en) | Method and device for updating eUICC operating system | |
CN111741044A (en) | Data processing apparatus, data processing method, and storage medium |
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: 13874806 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 13874806 Country of ref document: EP Kind code of ref document: A1 |