CN107436756A - One kind applies update method, server, terminal and system - Google Patents
One kind applies update method, server, terminal and system Download PDFInfo
- Publication number
- CN107436756A CN107436756A CN201610362031.0A CN201610362031A CN107436756A CN 107436756 A CN107436756 A CN 107436756A CN 201610362031 A CN201610362031 A CN 201610362031A CN 107436756 A CN107436756 A CN 107436756A
- Authority
- CN
- China
- Prior art keywords
- application
- bag
- data
- version
- delta package
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/658—Incremental updates; Differential updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
One kind apply update method, server, terminal and system, can receiving terminal send application renewal ask;And according to the application version information carried in application renewal request, determine whether to prestore meets the delta package of the application renewal request, if so, the delta package then is handed down into the terminal.That is, when having great amount of terminals while asking application upgrade, can according to application version information by it is prestoring, meet that each application updates the delta package of request and is handed down to corresponding terminal respectively, server can not only be avoided while carry out substantial amounts of difference, contrast computing, mitigate the load pressure of server, but also the speed using renewal can be improved, that saves user applies renewal time.
Description
Technical field
The present invention relates to software maintenance technology field, more particularly to a kind of method of application renewal, server, terminal and it is
System.
Background technology
The various softwares for being supplied to user to use by means of software platform using needs are typically referred to, such as, Android application,
Apple application etc..With the continuous lifting of continuous development and the user's request of technology, the function of application needs constantly improve,
That is, it needs to constantly modify, to realize the upgrading of application, the renewal also referred to as applied.Because highest version application is generally repaiied
The part BUG (leak) of lowest version application has been answered, so using experienced upgrading, renewal, typically all can be than original version performance more
Good, effect is more excellent, so as to improve the Experience Degree of user.
At present, the renewal of terminal applies is mainly using online difference by the way of, i.e. terminal to server sends application and updated
Request, server determine terminal according to the current version information for the application to be updated for carrying the terminal in application renewal request
After the version for the application currently installed, decompress application to be updated request version application bag (such as it is to be updated not provide its for terminal
The request version information of application, then it is defaulted as the latest edition application bag of the terminal request application to be updated) and to be updated answer
Current version application bag, and the request version application bag of application to be updated and the current version application of application to be updated are wrapped
Carry out differential pair ratio and obtain corresponding delta package, then the corresponding delta package is issued to terminal, pacify after being combined by terminal
Dress.Because terminal only upgrades difference section, therefore, for single terminal, this mode updating speed is fast, flow needed for upgrading
It is few, and seamless upgrade can be realized, there is no any influence to the normal use of terminal.
But if great amount of terminals asks online updating simultaneously, then because the application version of each terminal is typically different,
Server needs to carry out substantial amounts of contrast differences division of labor work simultaneously, and this brings huge without disposal ability and load capacity suspected of server
Big pressure, reduces the treatment effeciency of server, and then reduces the updating speed of terminal applies, cause user time waste,
Reduce the Experience Degree of user.
The content of the invention
The embodiments of the invention provide one kind to apply update method, server, terminal and system, to solve existing answer
With the problem of server load amount caused by update mode is big, renewal speed is slow.
The embodiments of the invention provide one kind to apply update method, and methods described includes:
The application renewal request that receiving terminal is sent;
According to the application version information carried in application renewal request, determine whether to prestore meets the application
Update the delta package of request;
If so, the delta package is then handed down to the terminal.
Alternatively, according to the application version information carried in application renewal request, the satisfaction to prestore is determined whether
The delta package of the application renewal request, including:
If the application version information includes the current version information for the application that the terminal is currently installed on and the institute of request
The upgraded version information of application is stated, then judges whether to be stored with application bag corresponding to the upgraded version information and works as relative to described
First delta package of application bag corresponding to preceding version information, if so, then first delta package is to meet that the application renewal please
The delta package asked;
If the application version information only includes the current version information for the application that the terminal is currently installed on, sentence
Application bag is answered relative to corresponding to the current version information corresponding to the disconnected latest version information for whether being stored with the application
With the second delta package of bag, if so, then second delta package is to meet the delta package of the application renewal request.
Alternatively, before the application renewal request that receiving terminal is sent, methods described also includes:
For, using bag, being wrapped corresponding to two version informations of same application to being applied corresponding to described two version informations
In data differential pair ratio is carried out in units of the minimum data unit set, obtain belonging to upgraded version in two version informations
Application bag relative to another version application wrap delta package.
Still optionally further, include using the data in bag:Code data, image data, window configuration data, textual data
Any one or more in, application bag corresponding to two version informations for same application, to described two versions
Data in application bag corresponding to this information carry out differential pair ratio in units of the minimum data unit set, specifically include following
It is any one or more in step:
The execution included in the code data wrapped to the application for belonging to upgraded version in two version informations of same application
The configuration processor and corresponding function storehouse included in program and function library, with the code data of the application bag of another version is carried out
Differential pair ratio, obtain configuration processor incremental data and function library incremental data;
The each window picture bag included in the image data that the application for belonging to upgraded version is wrapped, with another version
The respective window picture bag included in the image data of this application bag carries out differential pair ratio, obtains corresponding window picture bag and increases
Measure data;
It described will belong in the window configuration data of the application bag of upgraded version each window configuration bag included, it is and another
The respective window configuration bag included in the window configuration data of the application bag of individual version carries out differential pair ratio, obtains corresponding window
Configure bag incremental data;
The each text bag included in the text data that the application for belonging to upgraded version is wrapped, with another version
Differential pair ratio is carried out using the corresponding text bag included in the text data of bag, obtains corresponding text bag incremental data.
The embodiment of the present invention additionally provides another kind and applies update method, and methods described includes:
Send application renewal request;
The delta package that the reception server issues in response to application renewal request;Wherein, the delta package is the clothes
Business device according to the application version information that carries in application renewal request, it is determined that the satisfaction that prestores of the server described in should
With the delta package of renewal request;
Application is updated according to the delta package.
Alternatively, application is updated according to the delta package, specifically included:
The delta package is decompressed, the minimum data unit incremental number of the respective class data of obtained application will be decompressed
The temp directory specified according to being cached to;
By the installation directory of the minimum data unit incremental data cached in the temp directory renewal to respective class data
In.
Still optionally further, the minimum data unit incremental data that the delta package includes is the configuration processor of code data
Incremental data and function library incremental data, window picture bag incremental data, window configuration bag incremental data, text bag incremental number
Any one in or combination, it is described that phase is arrived into the minimum data unit incremental data cached in the temp directory renewal
One or more of in the installation directory for answering class data, comprise the following steps:
The installation mesh of obtained configuration processor incremental data and the renewal of function library incremental data to code data will be decompressed
In record;
Obtained window picture bag incremental data renewal will be decompressed into the installation directory of image data;
Obtained window configuration bag incremental data renewal will be decompressed into the installation directory of window configuration data;
Obtained text bag incremental data renewal will be decompressed into the installation directory of text data.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of server, and the server includes:
Receiving unit, the application renewal request sent for receiving terminal;
Judging unit, for according to the application version information carried in application renewal request, determining whether to prestore
The delta package for meeting application renewal request;
Transmitting element, if for determining there is what is prestored to meet that the application updates according to the judged result of the judging unit
The delta package of request, then the delta package is handed down to the terminal.
Alternatively, the judging unit, specifically for if it is determined that the application version information is currently pacified including the terminal
The current version information of the application of dress and the upgraded version information of the application of request, then judge whether to be stored with the upgrading
Application bag is relative to the first delta package that bag is applied corresponding to the current version information corresponding to version information, if so, then institute
It is to meet the delta package of the application renewal request to state the first delta package;Or,
If it is determined that the application version information only includes the current version information for the application that the terminal is currently installed on,
It is corresponding relative to the current version information then to judge whether to be stored with application bag corresponding to the latest version information of the application
Application bag the second delta package, if so, then second delta package is to meet the delta package of application renewal request.
Alternatively, the server also includes difference unit, for the application sent in the receiving unit receiving terminal
Before renewal request, for applying bag corresponding to two version informations of same application, to corresponding to described two version informations
Differential pair ratio is carried out in units of the minimum data unit set using the data in bag, obtains belonging to liter in two version informations
The delta package that the application bag of level version wraps relative to the application of another version.
Still optionally further, include using the data in bag:Code data, image data, window configuration data, textual data
Any one or more in, the difference unit, specifically for by any one or more to institute in following steps
The data stated in application bag corresponding to two version informations carry out differential pair ratio in units of the minimum data unit set:
The execution included in the code data wrapped to the application for belonging to upgraded version in two version informations of same application
The configuration processor and corresponding function storehouse included in program and function library, with the code data of the application bag of another version is carried out
Differential pair ratio, obtain configuration processor incremental data and function library incremental data;
The each window picture bag included in the image data that the application for belonging to upgraded version is wrapped, with another version
The respective window picture bag included in the image data of this application bag carries out differential pair ratio, obtains corresponding window picture bag and increases
Measure data;
It described will belong in the window configuration data of the application bag of upgraded version each window configuration bag included, it is and another
The respective window configuration bag included in the window configuration data of the application bag of individual version carries out differential pair ratio, obtains corresponding window
Configure bag incremental data;
The each text bag included in the text data that the application for belonging to upgraded version is wrapped, with another version
Differential pair ratio is carried out using the corresponding text bag included in the text data of bag, obtains corresponding text bag incremental data.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of terminal, and the terminal includes:
Transmitting element, for sending application renewal request;
Receiving unit, the delta package issued for the reception server in response to application renewal request;Wherein, the increasing
Amount bag is the server according to the application version information carried in application renewal request, it is determined that the server prestore
The delta package for meeting application renewal request;
Updating block, for being updated according to the delta package to application.
Alternatively, the updating block, specifically for being decompressed to the delta package, the phase of obtained application will be decompressed
The minimum data unit incremental data of class data is answered to be cached to the temp directory specified;
By the installation directory of the minimum data unit incremental data cached in the temp directory renewal to respective class data
In.
Still optionally further, the minimum data unit incremental data that the delta package includes is the configuration processor of code data
Incremental data and function library incremental data, window picture bag incremental data, window configuration bag incremental data, text bag incremental number
Any one in or combination, the updating block, described in being incited somebody to action by one or more of following steps
The minimum data unit incremental data cached in temp directory is updated into the installation directory of respective class data:
The installation mesh of obtained configuration processor incremental data and the renewal of function library incremental data to code data will be decompressed
In record;
Obtained window picture bag incremental data renewal will be decompressed into the installation directory of image data;
Obtained window configuration bag incremental data renewal will be decompressed into the installation directory of window configuration data;
Obtained text bag incremental data renewal will be decompressed into the installation directory of text data.
Based on same inventive concept, the embodiment of the present invention additionally provides one kind and applies more new system, and the system includes
Server, and at least one terminal, wherein:
The terminal, for sending application renewal request to server;
The server, update request for the application that receiving terminal is sent;And updated and asked according to the application
The application version information of middle carrying, determine whether to prestore meets the delta package of the application renewal request;If so, then by institute
State delta package and be handed down to the terminal;
The terminal, it is additionally operable to the delta package that the reception server issues;And application is carried out according to the delta package
Renewal.
The present invention has the beneficial effect that:
The embodiments of the invention provide one kind apply update method, server, terminal and system, can receiving terminal transmission
Asked using renewal;And according to the application version information carried in application renewal request, determine whether the satisfaction to prestore
The delta package of the application renewal request, if so, the delta package then is handed down into the terminal.It is that is, a large amount of when having
When terminal asks application upgrade simultaneously, can according to application version information by it is prestoring, meet that each application updates the increasing of request
Amount bag is handed down to corresponding terminal respectively, can not only avoid server while carry out substantial amounts of difference, contrast computing, mitigate service
The load pressure of device, but also the speed using renewal can be improved, that saves user applies renewal time.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment
Accompanying drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this
For the those of ordinary skill in field, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other
Accompanying drawing.
Fig. 1 show the step flow chart using update method in the embodiment of the present invention one;
Fig. 2 show a kind of possible structural representation using bag;
Fig. 3 show the step flow chart of the another kind application update method in the embodiment of the present invention two;
Fig. 4 show the structural representation of the server in the embodiment of the present invention three;
Fig. 5 show the structural representation of the terminal in the embodiment of the present invention four;
Fig. 6 show the structural representation of the application more new system in the embodiment of the present invention five.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, the present invention is made below in conjunction with accompanying drawing into
One step it is described in detail, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole implementation
Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made
All other embodiment, belongs to the scope of protection of the invention.
Embodiment one:
The embodiment of the present invention one provides one kind and applies update method, specifically, as shown in figure 1, it is implemented for the present invention
The step flow chart of update method is applied described in example one, methods described may include following steps:
Step 101:The application renewal request that receiving terminal is sent;
Step 102:According to the application version information carried in application renewal request, the satisfaction to prestore is determined whether
The delta package of the application renewal request;
Step 103:If so, the delta package is then handed down to the terminal.
Wherein, the executive agent of methods described can be dedicated for carrying out server or generic server using renewal
Deng network side equipment, it is not limited in any way herein.
That is, server can receiving terminal send application renewal request;And according in application renewal request
The application version information of carrying, the delta package for meeting the application renewal request to prestore is handed down to the terminal, with by institute
Terminal-pair application is stated to be updated.Therefore, when having great amount of terminals while asking application upgrade, server can be according to application version
Information by it is prestoring, meet that each application updates the delta package of request and is handed down to corresponding terminal respectively, can not only avoid taking
Business device carries out substantial amounts of difference, contrast computing simultaneously, mitigates the load pressure of server, but also can improve the speed using renewal
Degree, that saves user applies renewal time.
Below by being elaborated using each step of update method described in the embodiment of the present invention one:
Alternatively,, can be right for applying bag corresponding to two version informations of same application before step 101 is performed
Data in application bag corresponding to described two version informations carry out differential pair ratio in units of the minimum data unit set, obtain
Belong to the delta package that the application bag of upgraded version wraps relative to the application of another version into two version informations.
Wherein, for applying bag corresponding to any two version information of any application, wherein belonging to answering for upgraded version
It can be regarded as wrapping relative to the application of the upgraded version for possessing more new content using bag of another version with bag;Another version
The application that the legacy version for the application bag of the upgraded version can be seen as using bag is wrapped.
That is, for, using bag, will can wherein belong to upgrading corresponding to any two version information of any application
Version application bag with another version application bag carry out differential pair ratio, extract this belong to upgraded version application bag relative to
The renewal part of the application bag of another version, and the renewal part extracted is packed to obtain the application for belonging to upgraded version
The delta package that bag wraps relative to the application of another version.Based on the above method, can obtain server possessed respectively apply it is each
The delta package that the application bag of upgraded version wraps relative to the application of legacy version, and be stored in the server.
In addition, being directed to any application, the application bag of each upgraded version of the application is being stored relative to the application of legacy version
While the delta package of bag to server, can also by each version of the application application bag (the full dose bag of i.e. each version) store to
Server.
Wherein, the delta package of application refers to, by for the version of last revision/before, this time version updating and change it is interior
Hold the program bag of composition, i.e. delta package may not have all data relied on using operation, and being when its is separately installed can not
Successful operation, corresponding legacy version must be installed in equipment;Refer to using bag (the full dose bag for herein referring to application), transported by application
The program bag of the partial data composition of all dependences in row, it is separately installed to can be used.
In addition, it is necessary to explanation, in the present embodiment, can the difference instrument based on setting, to the two of any application
Data in application bag corresponding to individual version information carry out differential pair ratio in units of the minimum data unit set.Wherein, institute
State the differential pair that can be wrapped using bag difference instrument for the application of the new and old edition that can realize application independently of the server
Any autonomous device of ratio or can also be integrated in the server it is existing as a part for the server,
Can realize the new and old edition of application application bag differential pair than any integrated equipment.And the application bag difference instrument
The differential pair of application bag of multiple application versions of multiple applications can be carried out simultaneously every time than work, this is not construed as limiting.
Further, after the delta package that the application bag for the upgraded version being applied wraps relative to the application of legacy version,
Version information and upgrade version that the application of the version information, upgraded version of the application bag of the legacy version of application is wrapped can also be established
This application bag relative to legacy version application wrap delta package between corresponding relation (or establish legacy version application wrap version
This information, upgraded version application bag version information, upgraded version application bag and upgraded version application bag relative to
Corresponding relation between the delta package of the application bag of legacy version) and store to server, so that subsequent server is receiving end
After the application renewal request that end is sent, the application version information that carries and above-mentioned right can be updated in request according to the application
It should be related to, directly determine the delta package for meeting the application renewal request.
For example, possess autonavi_LINX010117, autonavi_ with a certain application autonavi_LINX
Exemplified by tetra- versions of LINX010123, autonavi_LINX010124, autonavi_LINX010125, that is established should with this
Version information, the upgraded version that the application of the version information, upgraded version that are wrapped with the application of the legacy version of the application of correlation is wrapped
Application bag and upgraded version application bag relative to legacy version application wrap delta package between corresponding relation can
As shown in table 1.
Table 1:Version information, the upgrade version of the version information of the application bag of the legacy version of application, the application bag of upgraded version
The corresponding relation between the delta package wrapped relative to the application of legacy version is wrapped in the application of this application bag and upgraded version
Table
As can be seen from Table 1, autonavi_LINX010117 versions can correspond to three upgraded versions application bag and
Three corresponding delta packages;Autonavi_LINX010123 versions can correspond to the application bag and two phases of two upgraded versions
The delta package answered;Autonavi_LINX010124 versions can correspond to the application bag of upgraded version and one corresponding increases
Amount bag.In addition, as shown in Table 1, each delta package is poor by the application bag of upgraded version and the application bag of corresponding legacy version
The delta package got.Such as, delta package autonavi_LINX010124_LINX010123.gpk is autonavi_
LINX010124.gpk (the application bag for belonging to upgraded version in the application bag of two versions) is relative to autonavi_
LINX010123.gpk (the application bag of another version in the application bag of two versions) delta package, i.e. be by more recent version
Application bag autonavi_LINX010124.gpk and version number be autonavi_LINX010123 the application of legacy version wrap
Differential pair is carried out than resulting, is not repeated herein.
Further optionally, in the present embodiment, above-mentioned corresponding relation can need not be also established, in such cases, for the ease of rear
For continuous server after the application for receiving terminal transmission updates request, quick search determines whether server local is stored with completely
The delta package of foot application renewal request, can version information (such as old edition that wraps of the application of legacy version with each delta package corresponding to
This application bag version number) and upgraded version application bag version information (such as upgraded version application bag version number)
Corresponding delta package is named, specifically naming method can be found in table 1, not be limited in any way herein.
Further, it should be noted that in the present embodiment, in the differential pair ratio applied, for appointing for any application
One version application bag, can by the version application bag corresponding to each upgraded version application bag and the version application wrap into
Row differential pair ratio, obtain corresponding each delta package;Certainly, also can be only by the application bag and the version of the latest edition of the application
Differential pair ratio is carried out using bag and obtains delta package, is not also limited in any way herein.
Still optionally further, as shown in Figure 2 (Fig. 2 is a kind of possible structural representation of application bag), using in bag
Data include:Any one or more in code data, image data, window configuration data, text data, wherein:
Code data, it is caused data in cataloged procedure;
Image data, for the image data needed for program operation;
Window configuration data, required configuration data is shown for window;
Text data, the text data used for program.
Still optionally further, as shown in Figure 2:
The minimum data unit of the code data may include configuration processor and it is at least one be used for realize corresponding function
Function library, such as navigation, weather, the function library of news function independently;
The minimum data unit of the image data may include at least one and application application interface possessed
The one-to-one window picture bag of window, in addition, also the picture that some windows share can be made into public picture bag, some are special
The picture that window uses makes special picture bag, such as background picture bag;
The minimum data unit of the window configuration data may include that at least one application interface with the application is had
The one-to-one window configuration bag of standby window;
The minimum data unit of the text data may include the text bag of the corresponding languages of at least one correspondence, such as Chinese letter
Body text bag, traditional Chinese text bag, English text bag etc..
Therefore, correspondingly, application bag corresponding to two version informations for same application, to described two versions
Data in application bag corresponding to information carry out differential pair ratio in units of the minimum data unit set, specifically include following step
It is any one or more in rapid:
The execution included in the code data wrapped to the application for belonging to upgraded version in two version informations of same application
The configuration processor and corresponding function storehouse included in program and function library, with the code data of the application bag of another version is carried out
Differential pair ratio, obtain configuration processor incremental data and function library incremental data;
The each window picture bag included in the image data that the application for belonging to upgraded version is wrapped, with another version
The respective window picture bag included in the image data of this application bag carries out differential pair ratio, obtains corresponding window picture bag and increases
Measure data;
It described will belong in the window configuration data of the application bag of upgraded version each window configuration bag included, it is and another
The respective window configuration bag included in the window configuration data of the application bag of individual version carries out differential pair ratio, obtains corresponding window
Configure bag incremental data;
The each text bag included in the text data that the application for belonging to upgraded version is wrapped, with another version
Differential pair ratio is carried out using the corresponding text bag included in the text data of bag, obtains corresponding text bag incremental data.
Correspondingly, the application bag of upgraded version is belonged in described two version informations relative to the application bag of another version
Delta package, it is by by the configuration processor incremental data and function library incremental data, window picture bag incremental data, window
Any one or combination in configuration bag incremental data, text bag delta package pack resulting.
That is, each data using in bag may include code data, image data, window configuration data, text
Any one or more in data, wherein every kind of data are all divided into multiple minimum data according to function or scope of application etc. again
Unit.So, the application for any two version of any application is wrapped, when the application bag of the upgraded version to the application
Application bag (another version in two versions of (belong in two versions upgraded version application bag) and the legacy version of the application
Application bag) when carrying out differential pair ratio, the unit that can refine to minimum is updated to each data (such as to code
The differential pair of data carries out independent contrast, renewal to each function library than that can refine to), so, it can not only improve difference
The speed of computing is contrasted, also may be such that operation result is more accurate, obtained delta package is more simplified, and then causes the transmission of delta package
Flow is more saved, and is transmitted time-consuming shorter.In addition, difference is carried out to the application bag for possessing the different editions of this data structure
Delta package obtained by contrast also possesses same data structure, therefore, can not only save the spatial cache of terminal, can also carry
High terminal decompression application bag, the efficiency of installation application.
So far, you can application bag the answering relative to legacy version for each upgraded version that the determination for completing to carry out in advance is respectively applied
With the operation of the delta package of bag, so, when server receives the application renewal request of terminal transmission, you can perform step
The application version information carried in request is updated according to the application described in 102, should described in the satisfaction for determining whether to prestore
The operation of delta package with renewal request etc..
It should be noted that due in fact, each application every setting time all it is possible that the version of renewal, because
And in the present embodiment, it is determined that each application each upgraded version application bag relative to legacy version application wrap delta package with
And above-mentioned each corresponding relation is not unalterable, but can be constantly updated according to the actual update status of application.
That is, for any application, when issuing the redaction of the application every time, can be wrapped according to the application of the redaction of issue, renewal should
The application bag of each upgraded version of application is relative to the delta package of the application bag of legacy version and above-mentioned each corresponding relation etc., to this
It is not construed as limiting.
Alternatively, the application version information carried in request is updated according to the application described in step 102, judged whether
There is the delta package for meeting the application renewal request to prestore, it may include:
If the current version information that the application version information includes the application that the terminal is currently installed on (is applied as described
Current version version number) and request the application upgraded version information (as request the application upgraded version
Version number), then judge whether to be stored with application bag corresponding to the upgraded version information of request and believe relative to the current version
First delta package of application bag corresponding to breath, if so, then first delta package is to meet the increment of the application renewal request
Bag;
If the application version information only includes the current version information for the application that the terminal is currently installed on, sentence
Application bag is answered relative to corresponding to the current version information corresponding to the disconnected latest version information for whether being stored with the application
With the second delta package of bag, if so, then second delta package is to meet the delta package of the application renewal request.
That is, when the current version that the application that the terminal is currently installed on only is carried in application renewal request
During information, it is latest edition that terminal described in Server Default, which is needed the application upgrade,;When same in application renewal request
When carry the application that the terminal is currently installed on current version information and and request the application upgraded version
During information, then it is the version corresponding with the upgraded version information of request that server, which thinks that the terminal is needed the application upgrade,
This.
For example, it is assumed that server is directed to the version information of the application bag of the legacy version of the application of a certain application memory, upgrading
Application bag the answering relative to legacy version of version information, the application bag of upgraded version and upgraded version that the application of version is wrapped
It is as shown in table 1 with the corresponding relation between the delta package of bag, then, if the application that a certain terminal is sent to the server is more
The version number autonavi_LINX010123 of the current version of the application of the terminal installation is only carried in new request, then
It is latest edition that terminal described in the Server Default, which is needed the application upgrade, thus, it can determine whether that the server local is
The application bag autonavi_LINX010125.gpk of the no latest edition for being stored with the application is relative to autonavi_
LINX010123.gpk delta package autonavi_LINX010125_LINX010123.gpk, if so, then autonavi_
LINX010125_LINX010123.gpk is the delta package for meeting the application renewal request.
For another example, if carrying being somebody's turn to do for the terminal installation in the application renewal request that a certain terminal is sent to the server
The version number autonavi_LINX010123 of the current version of application and the upgraded version of the application of request version number
Autonavi_LINX010124, then it is autonavi_ that the server, which can confirm that the terminal is needed the application upgrade,
LINX010124 versions, thus, it is relative to can determine whether the server local is stored with autonavi_LINX010124.gpk
In autonavi_LINX010123.gpk delta package autonavi_LINX010124_LINX010123.gpk, if so, then
Autonavi_LINX010124_LINX010123.gpk is the delta package for meeting the application renewal request.
If according to the application version information carried in application renewal request, determine that server local has the satisfaction to prestore
The delta package of the application renewal request, then it can perform step 103 and the delta package be then handed down to the terminal, herein no longer
Repeat.
Still optionally further, in the present embodiment, when it is determined that updating the increasing of request in the absence of the application for meeting terminal to prestore
Amount bag (is not yet deployed with application bag or the upgrading of terminal request of the latest edition for the application that terminal is currently installed in server
The delta package that application bag corresponding to version information wraps relative to the application of the current version of terminal installation) when, methods described may be used also
Including:
According to the application version information carried in application renewal request, determine whether to prestore meets the application
The application bag of renewal request;If so, the application bag is then handed down to the terminal.
Alternatively, according to the application version information carried in application renewal request, the satisfaction to prestore is determined whether
The application bag of the application renewal request, it may include:
If it is determined that the application version information includes current version information and the request for the application that the terminal is currently installed on
The application upgraded version information, then judge whether to be stored with corresponding to the upgraded version information of request the first application bag,
If so, then wrapped the described first application bag as the application for meeting the application renewal request;
If it is determined that the application version information only includes the current version information for the application that the terminal is currently installed on,
Then judge whether to be stored with the second application bag corresponding to the latest version information of the application, if so, then being applied described second
Wrap as the application bag for meeting the application renewal request.
That is, it is preferable that the delta package that the application for meeting terminal can be updated to request is handed down to the terminal;In nothing
In the presence of the delta package for meeting the application renewal request, alternatively, the application renewal for meeting the terminal can be asked
The application bag (full dose bag) asked is handed down to the terminal.
Further, alternatively, exist in the application bag for the application renewal request for meeting the terminal, but meet the application
In the case that the delta package of renewal request is not present, the application that can update request to the application for meeting the terminal online is wrapped
The application bag of the current version for the application being currently installed on the terminal carries out application of the differential pair than being met the terminal
The delta package of request is updated, and is handed down to the terminal, the present embodiment is not limited in any way herein.
Still optionally further, in the present embodiment, when it is determined that updating the increasing of request in the absence of the application for meeting terminal to prestore
Amount bag (is not yet deployed with application bag or the upgrading of terminal request of the latest edition for the application that terminal is currently installed in server
The delta package that application bag corresponding to version information wraps relative to the application of the current version of terminal installation), and, in the absence of what is prestored
Meet the application renewal request (is not yet deployed with the latest edition for the application that terminal is currently installed on using bag in server
Application bag or terminal request upgraded version information corresponding to application bag) when, corresponding request error information can also be issued
To the terminal, this is not repeated.
In addition, the situation for issuing request error information in order to avoid above-mentioned occurs, terminal can be described in send to server
Before being asked using renewal, corresponding version information inquiry request is sent to the server, as the server according to
Version information inquiry request, related each version information of applying to terminal installation that the server local stores is inquired about, and
The version information inquired is returned into the terminal, so that the terminal is according to the version information received, decides whether to send out
Send the application renewal request.
The application update method that the embodiment of the present invention is provided, can receiving terminal send application renewal request;And according to
The application version information carried in the application renewal request, determine whether to prestore meets the increasing of the application renewal request
Amount bag;If so, the delta package is then handed down to the terminal.Therefore, can when having great amount of terminals while asking application upgrade
According to application version information by it is prestoring, meet that each application updates the delta package of request and is handed down to corresponding terminal respectively,
Server can not only be avoided while carry out substantial amounts of difference, contrast computing, mitigate the load pressure of server, but also can improve
Using the speed of renewal, that saves user applies renewal time.
In addition, the data in each application bag are included in code data, image data, window configuration data, text data
Any one or more, wherein every kind of data again multiple minimum data units are all divided into according to function or scope of application etc.,
Therefore, when the application bag of any two version to any application carries out differential pair ratio, the unit pair of minimum can be refine to
Each data is updated, and so, can not only be improved speed of the differential pair than computing, also be may be such that operation result is more accurate
Really, the delta package obtained is more simplified, and then causes the transmission of delta package more to save flow, and is transmitted time-consuming shorter.It is in addition, right
The different editions application bag progress differential pair for possessing this data structure also possesses same data knot than resulting delta package
Structure, therefore, the spatial cache of terminal can be not only saved, can also improve terminal decompression application bag, the efficiency of installation application.
Embodiment two:
Based on same inventive concept, the embodiment of the present invention two provides another kind and applies update method, specifically, such as Fig. 3
Shown, it is the step flow chart that update method is applied described in the embodiment of the present invention two, and methods described may include following steps:
Step 301:Send application renewal request;
Step 302:The delta package that the reception server issues in response to application renewal request;Wherein, the delta package
The server according to the application version information carried in application renewal request, it is determined that expiring of prestoring of the server
The delta package of the foot application renewal request;
Step 303:Application is updated according to the delta package.
Wherein, the executive agent of methods described can be that smart mobile phone, tablet personal computer, PC, intelligent television etc. possess application
Installation and the terminal of more New function, are not limited in any way herein.
That is, in application update method provided in an embodiment of the present invention, terminal can send application renewal to server
Request;And receive the server according to the application version information carried in application renewal request, it is determined that the clothes
Delta package that business device prestores, meeting the application renewal request;And application is updated according to the delta package.Thus,
When having great amount of terminals while asking application upgrade, prestore, satisfaction can respectively should by server according to application version information
Corresponding terminal is handed down to respectively with the delta package of renewal request, can not only be avoided server while be carried out substantial amounts of difference, right
Than computing, mitigate the load pressure of server, but also the speed using renewal can be improved, when saving the application renewal of user
Between.
Alternatively, the delta package that the reception server described in step 302 issues in response to application renewal request, can have
Body includes:
If the application version information includes the current version information for the application that the terminal is currently installed on and the institute of request
The upgraded version information of application is stated, then receives request that the server issues in response to application renewal request, described
Application bag is relative to the first delta package that bag is applied corresponding to the current version information corresponding to upgraded version information;
If the application version information only includes the current version information for the application that the terminal is currently installed on, connect
Bag phase is applied corresponding to the latest version information for receiving application that the server issues in response to application renewal request, described
The second delta package for applying bag corresponding to the current version information.
That is, the current of the application that the terminal is currently installed on only is carried in application renewal is asked
During version information, it by the application upgrade is latest edition that terminal described in Server Default, which needs, and by the newest of the application
Application bag applies the delta package of bag to be sent to the terminal relative to corresponding to the current version information corresponding to version information;
When the institute for carrying the current version information for the application that the terminal is currently installed on simultaneously in application renewal request and asking
When stating the upgraded version information of application, then it is the upgrade version with request that server, which thinks that the terminal is needed the application upgrade,
The corresponding version of this information, and bag will be applied corresponding to the upgraded version information of request relative to the current version information pair
The delta package for the application bag answered is handed down to the terminal.
It should be noted that in the presence of the server is without the delta package for meeting the application renewal request,
Alternatively, the terminal can also receive the (complete using bag of the application renewal request for meeting the terminal that the server issues
Amount bag).Further, exist but have without the delta package for meeting the application renewal request in the server and meet the end
In the presence of the application bag of the application renewal request at end, the server can be online to the application for meeting the terminal
The application bag of renewal request carries out differential pair ratio with the application bag of the current version of the application of terminal installation is expired
The delta package of the application renewal request of the foot terminal, and issued to be received by the terminal.
Further, exist while also without satisfaction without the delta package for meeting the application renewal request in the server
In the presence of the application bag of the application renewal request of the terminal, the server can also issue corresponding request error letter
Cease to the terminal.
In addition, in order to avoid the above-mentioned situation for issuing request error information occurs, terminal can be sent to the server
Before application renewal request, corresponding version information inquiry request is sent to the server, by the server according to
The version information inquiry request, each version related to the application of terminal installation for inquiring about the server local storage are believed
Breath, and the version information inquired is returned into the terminal, so that the terminal is according to the version information received, decision
It is no to send the application renewal request.
Still optionally further, the terminal is updated according to the delta package to application, may particularly include:
The delta package is decompressed, the minimum data unit incremental number of the respective class data of obtained application will be decompressed
The temp directory specified according to being cached to;
By the installation directory of the minimum data unit incremental data cached in the temp directory renewal to respective class data
In.
That is, described terminal can use non-replaced decompression mode to carry out the decompression of delta package, therefore, both may be such that and solved
When pressing the delta package, the application can normal operation, in turn, ensure that the reliability of renewal process.
Further optionally, the minimum data unit incremental data that the delta package includes is the configuration processor of code data
Incremental data and function library incremental data, window picture bag incremental data, window configuration bag incremental data, text bag incremental number
Any one or combination in, therefore, the correspondingly minimum data unit increment that will be cached in the temp directory
One or more of data are updated into the installation directory of respective class data, comprise the following steps:
The installation mesh of obtained configuration processor incremental data and the renewal of function library incremental data to code data will be decompressed
In record;
Obtained window picture bag incremental data renewal will be decompressed into the installation directory of image data;
Obtained window configuration bag incremental data renewal will be decompressed into the installation directory of window configuration data;
Obtained text bag incremental data renewal will be decompressed into the installation directory of text data.
That is, each data using in bag may include code data, image data, window configuration data, text
Any one or more in data, wherein every kind of data are all divided into multiple minimum data according to function or scope of application etc. again
Unit.So, differential pair is carried out by the application bag of any two version of any application than resulting delta package also to possess together
The data structure of sample, is more simplified;Therefore, can not only save the spatial cache of terminal, can also improve terminal decompression application bag,
The efficiency of application is installed.
Still optionally further, methods described also includes:
When starting to perform the operation being updated to the application, by the mark of the more new state for reflecting the application
Knowledge file mark is beginning state;
It is completion status by the mark file mark after the application updates.
Still optionally further, methods described also includes:
When the terminal is restarted, if detecting, the mark file is beginning state, again according to the satisfaction
The application is updated using the delta package of renewal request.
That is, the terminal can judge according to the mark file for being used to reflect the more new state of the application
The more new state of the application.If during the application updates, normal shutdown occurs for the terminal or exception is disconnected
The situation of electricity, after treating that the terminal is restarted, if determining that the renewal work of the application does not complete according to the mark file,
Again the application can be updated according to the delta package for meeting the application renewal request.
Alternatively, after being updated according to the delta package for meeting the application renewal request to the application,
Methods described also includes:
The delta package for meeting the application renewal and asking is deleted, and restarts the application;And, however, it is determined that institute
State the number continuously to fail using restarting and exceed the frequency threshold value of setting and (can flexibly be set according to actual conditions, such as 5
It is secondary), then call script file to reinstall the application.
If it should be noted that the number that application restarting continuously fails exceedes the frequency threshold value of setting, say
The bright data using under installation directory have been damaged, it is therefore desirable to which the application is reinstalled, it is preferable that can first be pacified
The application bag (the application full dose bag of the current version of the terminal storage) of the current version of the application is filled, then to the application
Again updated, here is omitted.
Alternatively, the delta package that the reception server issues in response to application renewal request, may particularly include:
If it is determined that the network connection that the terminal is between normal boot-strap state and the terminal and the server is just
Often, then the delta package for meeting the application renewal request that the server issues is received, otherwise, suspends connecing for the delta package
Receive, until it is determined that the network connection that is between normal boot-strap state and the terminal and the server of the terminal just
Chang Shi, it is further continued for receiving the delta package.
For example, in the case of breaking in a network, the terminal can be network-like every setting time (as at intervals of two minutes) request
Condition, after network connection to be determined is normal, continue to the delta package;In the terminal normal shutdown or the feelings of abnormal power-down
Under condition, data receiver pause, the delta package is continued to after the next starting up of terminal.
That is, for the damage in file decompression/installation process caused by the reasons such as suspension, abnormal power-down, it is described
Terminal can increase mistake proofing treatment mechanism, be reduced as far as the disabled situation of application and occur, here is omitted.
In summary, provided in an embodiment of the present invention to apply update method, terminal can send application renewal to server please
Ask;And receive the server according to the application version information carried in application renewal request, it is determined that the service
Delta package that device prestores, meeting the application renewal request;And application is updated according to the delta package.Thus, when
When having great amount of terminals while asking application upgrade, server can according to application version information by it is prestoring, meet each application
The delta package of renewal request is handed down to corresponding terminal respectively, can not only avoid server while carry out substantial amounts of difference, contrast
Computing, mitigate the load pressure of server, but also the speed using renewal can be improved, that saves user applies renewal time.
In addition, the terminal can be updated installation by the way of non-replaced formula decompression to application;And in delta package
Download, decompress, add mistake proofing treatment mechanism during installation, ensured as far as possible that the reliability of renewal process, reduce
The disabled situation of application occurs.
Embodiment three:
Based on same inventive concept, the embodiment of the present invention three provides a kind of server, specifically, as shown in figure 4, its
For the structural representation of server described in the embodiment of the present invention three, the server includes:
Receiving unit 401, the application renewal request sent for receiving terminal;
Judging unit 402, for according to the application version information carried in application renewal request, determining whether pre-
That deposits meets the delta package of the application renewal request;
Transmitting element 403, if for according to the judged result of the judging unit 402 determine have the satisfaction to prestore described in should
With the delta package of renewal request, then the delta package is handed down to the terminal.
That is, the server can receiving terminal send application renewal request;And please according to application renewal
The application version information of middle carrying is sought, determine whether to prestore meets the delta package of the application renewal request;If so, then will
The delta package is handed down to the terminal.Therefore, when having great amount of terminals while asking application upgrade, server can be according to application
Version information by it is prestoring, meet that each application updates the delta package of request and is handed down to corresponding terminal respectively, can not only keep away
Exempt from server while carry out substantial amounts of difference, contrast computing, mitigate the load pressure of server, but also can improve using renewal
Speed, save user apply renewal time.
Alternatively, the judging unit 402, specifically for if it is determined that the application version information is current including the terminal
The current version information of the application of installation and the upgraded version information of the application of request, then judge whether to be stored with the liter
Application bag is relative to the first delta package that bag is applied corresponding to the current version information corresponding to level version information, if so, then
First delta package is to meet the delta package of the application renewal request;
If it is determined that the application version information only includes the current version information for the application that the terminal is currently installed on,
It is corresponding relative to the current version information then to judge whether to be stored with application bag corresponding to the latest version information of the application
Application bag the second delta package, if so, then second delta package is to meet the delta package of application renewal request.
Alternatively, the server also includes difference unit (Fig. 4 is not shown), in the receiving unit receiving terminal
Before the application renewal request of transmission, for applying bag corresponding to two version informations of same application, to two version informations
Data in corresponding application bag carry out differential pair ratio in units of the minimum data unit set, obtain in two version informations
Belong to the delta package that the application bag of upgraded version wraps relative to the application of another version.
Still optionally further, include using the data in bag:Code data, image data, window configuration data, textual data
Any one or more in;Therefore, correspondingly, the difference unit, specifically for by any one in following steps
It is individual or multiple to applying the data in bag to be carried out in units of the minimum data unit set corresponding to described two version informations
Differential pair ratio:
The execution included in the code data wrapped to the application for belonging to upgraded version in two version informations of same application
The configuration processor and corresponding function storehouse included in program and function library, with the code data of the application bag of another version is carried out
Differential pair ratio, obtain configuration processor incremental data and function library incremental data;
The each window picture bag included in the image data that the application for belonging to upgraded version is wrapped, with another version
The respective window picture bag included in the image data of this application bag carries out differential pair ratio, obtains corresponding window picture bag and increases
Measure data;
It described will belong in the window configuration data of the application bag of upgraded version each window configuration bag included, it is and another
The respective window configuration bag included in the window configuration data of the application bag of individual version carries out differential pair ratio, obtains corresponding window
Configure bag incremental data;
The each text bag included in the text data that the application for belonging to upgraded version is wrapped, with another version
Differential pair ratio is carried out using the corresponding text bag included in the text data of bag, obtains corresponding text bag incremental data.
In addition, the difference unit, is additionally operable to the configuration processor incremental data and function library incremental data, window
Any one in picture bag incremental data, window configuration bag incremental data, text bag delta package or combination, are bundled to described
Belong in two version informations in delta package of the application bag of upgraded version relative to the application bag of another version.
That is, each data using in bag may include code data, image data, window configuration data, text
Any one or more in data, wherein every kind of data are all divided into multiple minimum data according to function or scope of application etc. again
Unit.So, the application for any two version of any application is wrapped, when the application bag of the upgraded version to the application
Application bag (another version in two versions of (belong in two versions upgraded version application bag) and the legacy version of the application
Application bag) when carrying out differential pair ratio, the unit that can refine to minimum is updated to each data (such as to code
The differential pair of data carries out independent contrast, renewal to each function library than that can refine to), so, it can not only improve difference
The speed of computing is contrasted, also may be such that operation result is more accurate, obtained delta package is more simplified, and then causes the transmission of delta package
Flow is more saved, and is transmitted time-consuming shorter.In addition, difference is carried out to the application bag for possessing the different editions of this data structure
Delta package obtained by contrast also possesses same data structure, therefore, can not only save the spatial cache of terminal, can also carry
High terminal decompression application bag, the efficiency of installation application.
Example IV:
Based on same inventive concept, the embodiment of the present invention four provides a kind of terminal, specifically, as shown in figure 5, it is
The structural representation of terminal described in the embodiment of the present invention four, the terminal include:
Transmitting element 501, for sending application renewal request;
Receiving unit 502, the delta package issued for the reception server in response to application renewal request;Wherein, institute
It is the server according to the application version information carried in application renewal request to state delta package, it is determined that the server
What is prestored meets the delta package of the application renewal request;
Updating block 503, for being updated according to the delta package to application.
That is, terminal provided in an embodiment of the present invention, can send application renewal request to server;And receive institute
Server is stated according to the application version information that carries in application renewal request, determine it is that the server prestores, meet institute
State using renewal request, and be handed down to the delta package of the terminal;And application is updated according to the delta package.Cause
And when having great amount of terminals while asking application upgrade, server can according to application version information by it is prestoring, meet it is each
Using renewal request delta package be handed down to corresponding terminal respectively, can not only avoid server at the same carry out substantial amounts of difference,
Computing is contrasted, mitigates the load pressure of server, but also the speed using renewal can be improved, when saving the application renewal of user
Between.
Alternatively, the updating block 503, is specifically used for:
The delta package is decompressed, the minimum data unit incremental number of the respective class data of obtained application will be decompressed
The temp directory specified according to being cached to;
By the installation directory of the minimum data unit incremental data cached in the temp directory renewal to respective class data
In.
Still optionally further, the minimum data unit incremental data that the delta package includes is the configuration processor of code data
Incremental data and function library incremental data, window picture bag incremental data, window configuration bag incremental data, text bag incremental number
Any one in or combination;Therefore, correspondingly, the updating block 503, specifically for passing through one in following steps
Individual or multiple installation directories by the minimum data unit incremental data cached in the temp directory renewal to respective class data
In:
The installation mesh of obtained configuration processor incremental data and the renewal of function library incremental data to code data will be decompressed
In record;
Obtained window picture bag incremental data renewal will be decompressed into the installation directory of image data;
Obtained window configuration bag incremental data renewal will be decompressed into the installation directory of window configuration data;
Obtained text bag incremental data renewal will be decompressed into the installation directory of text data.
That is, each data using in bag may include code data, image data, window configuration data, text
Any one or more in data, wherein every kind of data are all divided into multiple minimum data according to function or scope of application etc. again
Unit.So, differential pair is carried out by the application bag of any two version of any application than resulting delta package also to possess together
The data structure of sample, is more simplified;Therefore, can not only save the spatial cache of terminal, can also improve terminal decompression application bag,
The efficiency of application is installed.
Embodiment five:
Based on same inventive concept, the embodiment of the present invention five provides one kind and applies more new system, specifically, such as Fig. 6
Shown, it is the structural representation that more new system is applied described in the embodiment of the present invention five, and the application more new system includes clothes
Business device 601, and at least one terminal 602, wherein:
The terminal 602, for sending application renewal request to server 601;
The server 601, update request for the application that receiving terminal 602 is sent;And according to the application more
The application version information carried in new request, determine whether to prestore meets the delta package of the application renewal request;If so,
The delta package is then handed down to the terminal 602;
The terminal 602, it is additionally operable to the delta package that the reception server issues;And application is entered according to the delta package
Row renewal.
That is, in the application more new system that the present embodiment provides, terminal can send application renewal to server please
Ask;The application renewal request that the server receiving terminal is sent, and should according to what is carried in application renewal request
With version information, determine whether to prestore meets the delta package of the application renewal request, if so, then by under the delta package
Issue the terminal;The delta package that the terminal the reception server issues, and application is carried out more according to the delta package
Newly.That is, when having great amount of terminals while asking application upgrade, server be able to will prestore according to application version information
, delta package that meet each application renewal request be handed down to corresponding terminal respectively, can not only avoid server while carry out greatly
The difference of amount, contrast computing, mitigate the load pressure of server, but also can improve the speed using renewal, save user's
Using renewal time.
It will be understood by those skilled in the art that embodiments of the invention can be provided as method, apparatus (equipment) or computer journey
Sequence product.Therefore, in terms of the present invention can use complete hardware embodiment, complete software embodiment or combine software and hardware
The form of embodiment.Moreover, the present invention can use the calculating for wherein including computer usable program code in one or more
The computer program that machine usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention is the flow chart with reference to method, apparatus (equipment) and computer program product according to embodiments of the present invention
And/or block diagram describes.It should be understood that can be by each flow in computer program instructions implementation process figure and/or block diagram
And/or square frame and the flow in flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided to refer to
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is made to produce
One machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for realizing
The device for the function of being specified in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.
Claims (15)
1. one kind applies update method, it is characterised in that methods described includes:
The application renewal request that receiving terminal is sent;
According to the application version information carried in application renewal request, determine whether to prestore meets the application renewal
The delta package of request;
If so, the delta package is then handed down to the terminal.
2. the method as described in claim 1, it is characterised in that the application version according to being carried in application renewal request is believed
Breath, determine whether to prestore meets the delta package of the application renewal request, including:
If the application version information includes the current version information for the application that the terminal is currently installed on and the described of request should
Upgraded version information, then judge whether to be stored with application bag corresponding to the upgraded version information relative to the current version
First delta package of application bag corresponding to this information, if so, then first delta package is to meet the application renewal request
Delta package;
If the application version information only includes the current version information for the application that the terminal is currently installed on, judgement is
Application bag corresponding to the no latest version information for being stored with the application relative to corresponding to the current version information using bag
The second delta package, if so, then second delta package is to meet the delta package of application renewal request.
3. the method as described in claim 1, it is characterised in that described before the application renewal request that receiving terminal is sent
Method also includes:
For applying bag corresponding to two version informations of same application, in corresponding to described two version informations using wrapping
Data carry out differential pair ratio in units of the minimum data unit set, obtain belonging to answering for upgraded version in two version informations
The delta package wrapped with bag relative to the application of another version.
4. method as claimed in claim 3, it is characterised in that the data in application bag include:Code data, image data,
Any one or more in window configuration data, text data, corresponding to two version informations for same application
It is poor to applying the data in bag to be carried out in units of the minimum data unit set corresponding to described two version informations using bag
Divide contrast, specifically include any one or more in following steps:
The configuration processor included in the code data wrapped to the application for belonging to upgraded version in two version informations of same application
And the configuration processor included in function library, with the code data of the application bag of another version and corresponding function storehouse carry out difference
Contrast, obtains configuration processor incremental data and function library incremental data;
The each window picture bag included in the image data that the application for belonging to upgraded version is wrapped, with another version
Differential pair ratio is carried out using the respective window picture bag included in the image data of bag, obtains corresponding window picture bag incremental number
According to;
The each window included in the window configuration data that the application for belonging to upgraded version is wrapped configures bag, with another version
The respective window configuration bag included in the window configuration data of this application bag carries out differential pair ratio, obtains corresponding window configuration
Bag incremental data;
The each text bag included in the text data that the application for belonging to upgraded version is wrapped, the application with another version
The corresponding text bag included in the text data of bag carries out differential pair ratio, obtains corresponding text bag incremental data.
5. one kind applies update method, it is characterised in that methods described includes:
Send application renewal request;
The delta package that the reception server issues in response to application renewal request;Wherein, the delta package is the server
According to the application version information that carries in application renewal request, it is determined that the server prestore meet the application more
The delta package newly asked;
Application is updated according to the delta package.
6. method as claimed in claim 5, it is characterised in that be updated, specifically included to application according to the delta package:
The delta package is decompressed, the minimum data unit incremental data for the respective class data for decompressing obtained application is delayed
It is stored to the temp directory specified;
By the minimum data unit incremental data cached in the temp directory renewal into the installation directory of respective class data.
7. method as claimed in claim 6, it is characterised in that the minimum data unit incremental data that the delta package includes is
The configuration processor incremental data and function library incremental data of code data, window picture bag incremental data, window configuration bag increase
Measure any one in data, text bag incremental data or combination, the minimum data that will be cached in the temp directory
One or more of unit incremental data is updated into the installation directory of respective class data, comprise the following steps:
Obtained configuration processor incremental data will be decompressed and function library incremental data is updated into the installation directory of code data;
Obtained window picture bag incremental data renewal will be decompressed into the installation directory of image data;
Obtained window configuration bag incremental data renewal will be decompressed into the installation directory of window configuration data;
Obtained text bag incremental data renewal will be decompressed into the installation directory of text data.
8. a kind of server, it is characterised in that the server includes:
Receiving unit, the application renewal request sent for receiving terminal;
Judging unit, for according to the application version information carried in application renewal request, determine whether to prestore to expire
The delta package of the foot application renewal request;
Transmitting element, if for determining there is what is prestored to meet the application renewal request according to the judged result of the judging unit
Delta package, then the delta package is handed down to the terminal.
9. server as claimed in claim 8, it is characterised in that
The judging unit, specifically for if it is determined that the application that the application version information is currently installed on including the terminal is worked as
The upgraded version information of the application of preceding version information and request, then judge whether that being stored with the upgraded version information corresponds to
Application bag relative to corresponding to the current version information apply bag the first delta package, if so, then first delta package
To meet the delta package of the application renewal request;If it is determined that the application version information only includes what the terminal was currently installed on
The current version information of the application, then it is relative to judge whether to be stored with application bag corresponding to the latest version information of the application
In the second delta package that bag is applied corresponding to the current version information, if so, then second delta package for meet it is described should
With the delta package of renewal request.
10. server as claimed in claim 8, it is characterised in that the server also includes difference unit, is used for:
Before the application renewal request that the receiving unit receiving terminal is sent, for two version informations pair of same application
The application bag answered, to applying the data in bag to enter in units of the minimum data unit set corresponding to described two version informations
Row differential pair ratio, obtain belonging to the increment that the application bag of upgraded version wraps relative to the application of another version in two version informations
Bag.
11. server as claimed in claim 10, it is characterised in that the data in application bag include:Code data, picture number
According to, any one or more in window configuration data, text data, the difference unit, specifically for passing through following steps
In any one or more minimum data units of the data to set to being applied corresponding to described two version informations in bag
Differential pair ratio is carried out for unit:
The configuration processor included in the code data wrapped to the application for belonging to upgraded version in two version informations of same application
And the configuration processor included in function library, with the code data of the application bag of another version and corresponding function storehouse carry out difference
Contrast, obtains configuration processor incremental data and function library incremental data;
The each window picture bag included in the image data that the application for belonging to upgraded version is wrapped, with another version
Differential pair ratio is carried out using the respective window picture bag included in the image data of bag, obtains corresponding window picture bag incremental number
According to;
The each window included in the window configuration data that the application for belonging to upgraded version is wrapped configures bag, with another version
The respective window configuration bag included in the window configuration data of this application bag carries out differential pair ratio, obtains corresponding window configuration
Bag incremental data;
The each text bag included in the text data that the application for belonging to upgraded version is wrapped, the application with another version
The corresponding text bag included in the text data of bag carries out differential pair ratio, obtains corresponding text bag incremental data.
12. a kind of terminal, it is characterised in that the terminal includes:
Transmitting element, for sending application renewal request;
Receiving unit, the delta package issued for the reception server in response to application renewal request;Wherein, the delta package
The server according to the application version information carried in application renewal request, it is determined that expiring of prestoring of the server
The delta package of the foot application renewal request;
Updating block, for being updated according to the delta package to application.
13. terminal as claimed in claim 12, it is characterised in that the updating block, be specifically used for:
The delta package is decompressed, the minimum data unit incremental data for the respective class data for decompressing obtained application is delayed
It is stored to the temp directory specified;
By the minimum data unit incremental data cached in the temp directory renewal into the installation directory of respective class data.
14. terminal as claimed in claim 13, it is characterised in that the minimum data unit incremental data that the delta package includes
Configuration processor incremental data and function library incremental data, window picture bag incremental data, window configuration bag for code data
Any one in incremental data, text bag incremental data or combination, the updating block, specifically for passing through following steps
One or more of by the minimum data unit incremental data cached in the temp directory renewal to respective class data peace
Fill in catalogue:
Obtained configuration processor incremental data will be decompressed and function library incremental data is updated into the installation directory of code data;
Obtained window picture bag incremental data renewal will be decompressed into the installation directory of image data;
Obtained window configuration bag incremental data renewal will be decompressed into the installation directory of window configuration data;
Obtained text bag incremental data renewal will be decompressed into the installation directory of text data.
15. one kind applies more new system, it is characterised in that the system includes server, and at least one terminal, wherein:
The terminal, for sending application renewal request to server;
The server, update request for the application that receiving terminal is sent;And taken according in application renewal request
The application version information of band, determine whether to prestore meets the delta package of the application renewal request;If so, then by the increasing
Amount bag is handed down to the terminal;
The terminal, it is additionally operable to the delta package that the reception server issues;And application is updated according to the delta package.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610362031.0A CN107436756A (en) | 2016-05-26 | 2016-05-26 | One kind applies update method, server, terminal and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610362031.0A CN107436756A (en) | 2016-05-26 | 2016-05-26 | One kind applies update method, server, terminal and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107436756A true CN107436756A (en) | 2017-12-05 |
Family
ID=60454502
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610362031.0A Pending CN107436756A (en) | 2016-05-26 | 2016-05-26 | One kind applies update method, server, terminal and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107436756A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109189460A (en) * | 2018-11-20 | 2019-01-11 | 北京千丁互联科技有限公司 | offline firmware upgrade system and method |
CN109345365A (en) * | 2018-09-11 | 2019-02-15 | 航天信息股份有限公司 | A kind of tax controlling equipment information remote variation and system |
CN109656613A (en) * | 2018-12-12 | 2019-04-19 | 深圳市丰巢科技有限公司 | A kind of application and development method and apparatus based on increment |
CN109688472A (en) * | 2018-12-10 | 2019-04-26 | 未来电视有限公司 | Upgrading TV system method, apparatus, equipment and storage medium |
CN112988213A (en) * | 2021-04-13 | 2021-06-18 | 荣耀终端有限公司 | Program data updating method, electronic equipment and computer storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102081536A (en) * | 2010-12-30 | 2011-06-01 | 华为终端有限公司 | Method for updating increment, and server |
CN103701930A (en) * | 2014-01-07 | 2014-04-02 | 浙江大学 | Mobile application program real-time updating method and system |
CN104461593A (en) * | 2013-09-18 | 2015-03-25 | 中兴通讯股份有限公司 | Differential upgrade patch manufacturing method and device |
CN105373410A (en) * | 2015-12-22 | 2016-03-02 | 京信通信技术(广州)有限公司 | Differential upgrading method and device for base station software |
-
2016
- 2016-05-26 CN CN201610362031.0A patent/CN107436756A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102081536A (en) * | 2010-12-30 | 2011-06-01 | 华为终端有限公司 | Method for updating increment, and server |
CN104461593A (en) * | 2013-09-18 | 2015-03-25 | 中兴通讯股份有限公司 | Differential upgrade patch manufacturing method and device |
CN103701930A (en) * | 2014-01-07 | 2014-04-02 | 浙江大学 | Mobile application program real-time updating method and system |
CN105373410A (en) * | 2015-12-22 | 2016-03-02 | 京信通信技术(广州)有限公司 | Differential upgrading method and device for base station software |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109345365A (en) * | 2018-09-11 | 2019-02-15 | 航天信息股份有限公司 | A kind of tax controlling equipment information remote variation and system |
CN109189460A (en) * | 2018-11-20 | 2019-01-11 | 北京千丁互联科技有限公司 | offline firmware upgrade system and method |
CN109688472A (en) * | 2018-12-10 | 2019-04-26 | 未来电视有限公司 | Upgrading TV system method, apparatus, equipment and storage medium |
CN109656613A (en) * | 2018-12-12 | 2019-04-19 | 深圳市丰巢科技有限公司 | A kind of application and development method and apparatus based on increment |
CN112988213A (en) * | 2021-04-13 | 2021-06-18 | 荣耀终端有限公司 | Program data updating method, electronic equipment and computer storage medium |
CN112988213B (en) * | 2021-04-13 | 2023-11-14 | 荣耀终端有限公司 | Program data updating method, electronic equipment and computer storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107436756A (en) | One kind applies update method, server, terminal and system | |
KR100915564B1 (en) | Method, software and apparatus for application upgrade during execution | |
CN108241500B (en) | Method, device and system for repairing hardware component and storage medium | |
CN105138382B (en) | A kind of method and terminal of android system upgrading | |
US20080216066A1 (en) | Program upgrade system and method for ota-capable mobile terminal | |
CN107273160A (en) | A kind of method and device of edition upgrading | |
CN105208127A (en) | Webpage caching processing method and system and intelligent terminal | |
CN105260209A (en) | Hot-update solution of program | |
CN101656739A (en) | Method, system and equipment for updating assembly | |
CN111459523A (en) | Image quality chip software upgrading method and device, electronic equipment and storage medium | |
CN115202686A (en) | Virtualization system upgrading method and device, electronic equipment and storage medium | |
CN109617950B (en) | Data updating method, device, equipment and readable storage medium | |
CN110764805A (en) | Method, device, terminal and storage medium for noninductive upgrade of client | |
CN106293790B (en) | application program upgrading method and device based on Firefox operating system | |
CN110221840A (en) | The function realizing method and device of application program, equipment and storage medium | |
CN112084254A (en) | Data synchronization method and system | |
KR100524588B1 (en) | succeeding method of data in mobile | |
CN116069366A (en) | Client application program updating method and device, storage medium and electronic equipment | |
CN115495436A (en) | Database upgrading method and device | |
CN112181470B (en) | Patch deployment method and device | |
CN104090805A (en) | Method, device and system for updating terminal operating systems | |
KR100626517B1 (en) | Method for downloading for a operating system program in a mobile communication terminal | |
CN113721959A (en) | Information processing method and device and electronic equipment | |
CN106873967A (en) | The method and apparatus of bug on a kind of reparation APP lines | |
CN110769053A (en) | Data pushing method, system and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200417 Address after: 310012 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province Applicant after: Alibaba (China) Co.,Ltd. Address before: 100102, Beijing, Chaoyang District, Wangjing, Tong Tung Street East Square International Center, block A, 16 Applicant before: AUTONAVI INFORMATION TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171205 |
|
RJ01 | Rejection of invention patent application after publication |