CN107797818A - Application program updating method and device - Google Patents
Application program updating method and device Download PDFInfo
- Publication number
- CN107797818A CN107797818A CN201710193623.9A CN201710193623A CN107797818A CN 107797818 A CN107797818 A CN 107797818A CN 201710193623 A CN201710193623 A CN 201710193623A CN 107797818 A CN107797818 A CN 107797818A
- Authority
- CN
- China
- Prior art keywords
- application
- channel
- server
- installation kit
- version
- 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
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000009434 installation Methods 0.000 claims abstract description 210
- 230000015572 biosynthetic process Effects 0.000 claims description 10
- 238000003786 synthesis reaction Methods 0.000 claims description 10
- 230000009471 action Effects 0.000 claims description 2
- 238000012856 packing Methods 0.000 abstract description 11
- 230000008569 process Effects 0.000 abstract description 11
- 230000015654 memory Effects 0.000 description 4
- 239000004744 fabric Substances 0.000 description 3
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 208000033748 Device issues Diseases 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 229910002056 binary alloy Inorganic materials 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention relates to a kind of application program updating method and device.This method includes the application delta package that matching is downloaded from server, obtain local current version application installation package, the channel information of comment field in current version application installation package is backed up and is deleted channel information from comment field, according to application delta package and current version application installation package generation target version installation kit, by the comment field and installation targets version installation kit in the channel information write-in target version installation kit of backup.Above-mentioned application program updating method and device simplifies issue by all kinds of means and applies the packing process of delta package, improves packing efficiency.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of application program updating method and device.
Background technology
With the development of internet especially mobile Internet, there is keen competition in the application product of same type, application
The developer of product needs to meet increasing customer demand by constantly upgrading more to newly arrive to improve the competitiveness of oneself.
Because the application that user's needs update is a lot, if complete new edition will be downloaded when being updated upgrading to application program every time
If this, the more flow of user and storage resource can be taken, therefore, using to existing version patch installing bag, user is only needed
The method being downloaded to application program renewal part can solve this problem well.
Need to issue service packs, in general, for each in multiple publication channels when application program is updated upgrading
Publication channel is required for packing generation to be written with the service packs of corresponding channel information, the channel of application issued it is more, it is necessary to
The quantity of the service packs of offer is more, and packing process expends time length and easily error.
The content of the invention
Based on this, it is necessary to expend time length for the above-mentioned packing process for issuing service packs by all kinds of means and easily malfunction
A kind of problem, there is provided application program updating method and device.
A kind of application program updating method, methods described include:
The application delta package of matching is downloaded from server;
Obtain local current version application installation package;
The channel information of comment field in current version application installation package is backed up and by channel information from comment field
Deleted in domain;
According to application delta package and current version application installation package generation target version installation kit;
By the comment field and installation targets version installation kit in the channel information write-in target version installation kit of backup.
In one of the embodiments, also include before the step of downloading the application delta package of matching from server:
Obtain the latest version information of application;
Whether judge to apply according to latest version information needs to upgrade;
When application needs upgrading, application upgrade request is sent to server, upgrade request comprises at least the current of application
Version information;
The download address using delta package matched with using current version that the reception server is sent.
In one of the embodiments, also include after the step of downloading the application delta package of matching from server:
Obtain the check value using delta package of server issue;
Calculate the check value using delta package downloaded;
Judge whether check value and the check value using delta package being calculated of server issue are consistent, if differing
Cause, sent to server and apply full dose bag download request;If consistent, the step for obtaining locally applied current version installation kit is performed
Suddenly.
In one of the embodiments, channel information includes channel number, channel digit and channel identification code, will be current
Also include before the step of channel information of comment field is backed up in version installation kit:
Read channel number, channel digit and the channel identification code of current version installation kit;
Channel information corresponding to application is obtained from server;
Channel number, channel digit and channel identification code in the channel information that will be obtained from server one by one with reading
Channel number, channel digit be compared with channel identification code and judge whether it is consistent, if inconsistent, to server send
Using full dose bag download request;If consistent, perform backed up the channel information of comment field in current version installation kit
Step.
In one of the embodiments, target version installation kit is generated according to application delta package and current version installation kit
Also include after step:
Calculate the check value of target version installation kit;
The check value of application target version full dose bag is obtained from server;
Judge whether the check value of target version full dose bag is consistent with the check value for the target version installation kit being calculated,
If inconsistent, sent to server and apply full dose bag download request;If consistent, perform and the channel information of backup is write into target version
The comment field of this installation kit and the step of installed to target version installation kit.
A kind of application program updating device, described device include:
Download module, for downloading the application delta package of matching from server;
Installation kit acquisition module, for obtaining local current version application installation package;
Backup removing module, for being backed up and being incited somebody to action the channel information of comment field in current version application installation package
Channel information is deleted from comment field;
Synthesis module, for generating target version installation kit according to application delta package and current version application installation package;
Module is installed, for the comment field and installation targets in the channel information write-in target version installation kit by backup
Version installation kit.
In one of the embodiments, device also includes:
Version acquisition module, for obtaining the latest version information of application;
Upgrade judge module, whether need to upgrade for judging to apply according to latest version information;
Upgrade request module, for when needing upgrading using application, sending application upgrade request to server, upgrading please
Seek the current version information including at least application;
Address receiving module, the download using delta package matched with using current version sent for the reception server
Address.
In one of the embodiments, device also includes:
Delta package check value acquisition module, for obtaining the check value using delta package of server issue;
Delta package check value computing module, for calculating the check value using delta package downloaded;
Delta package check value comparison module, for the application delta package for judging the check value of server issue and being calculated
Check value it is whether consistent, if inconsistent, to server send apply full dose bag download request;If consistent, perform and obtain locally
The step of current version installation kit of application.
In one of the embodiments, channel information includes channel number, channel digit and channel identification code, and device is also
Including:
Channel information read module, channel number, channel digit and channel number for reading current version installation kit are known
Other code;
Channel information acquisition module, for obtaining channel information corresponding to application from server;
Channel information comparison module, for the channel number in the channel information that will be obtained from server, channel digit and
Channel identification code compared with the channel number with reading, channel digit and channel identification code and judges whether one one by one
Cause, if inconsistent, sent to server and apply full dose bag download request;If consistent, performing will annotate in current version installation kit
The step of channel information in region is backed up.
In one of the embodiments, device also includes:
Installation kit check value computing module, for calculating the check value of target version installation kit;
Installation kit check value acquisition module, for obtaining the check value of application target version full dose bag from server;
Installation kit check value comparison module, for the check value for judging target version full dose bag and the target version being calculated
Whether the check value of this installation kit is consistent, if inconsistent, sent to server and applies full dose bag download request;If consistent, perform
The step of channel information of backup is write into the comment field of target version installation kit and installed to target version installation kit.
Above-mentioned application program updating method and device, in pacifying download using delta package and local current version application
Before dress bag generation target version installation kit, after the channel information of comment field in current version application installation package is backed up
Delete, and the comment field of target version installation kit is re-write after target version installation kit is synthetically generated, so as to which user exists
Channel information can be reported to server during using application so that server end is not influenceing what is obtained using download channel information
In the case of, the unification application delta package of channel information only need to not be carried to client offer can meet the application issued by all kinds of means
Upgrade requirement, without carrying out the packing using delta package one by one for a variety of publication channels, simplify delta package packing process,
Improve packing efficiency.
Brief description of the drawings
Fig. 1 is the applied environment figure of application program updating method in one embodiment;
Fig. 2 is the flow chart of application program updating method in one embodiment;
Fig. 3 is the structural representation of application program updating device in one embodiment;
Fig. 4 is the structural representation of application program updating device in another embodiment;
Fig. 5 is the structural representation of application program updating device in further embodiment;
Fig. 6 is the structural representation of application program updating device in another embodiment;
Fig. 7 is the structural representation of application program updating device in another embodiment;
Fig. 8 is the structural representation of terminal in one embodiment.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not
For limiting the present invention.
Application program updating method provided in the embodiment of the present invention can apply to application environment as shown in Figure 1
In.Server 102 passes through network connection with terminal 104.Database is deployed with server 102, application is stored with database
The application delta package of channel information is not write corresponding to each version of program, terminal 104 sends the increment of application to server 102
Bag download request, server 102 receives the delta package download request of application, and is searched and application version phase according to download request
The download address using delta package of matching is sent to terminal 104 by the application delta package matched somebody with somebody, server 102, and terminal 104 receives
Using access download address after the download address of delta package and download using delta package, application delta package of the terminal 104 to download
Handled, the application full dose bag of application delta package and current version is synthesized, channel information is write after synthesis and is carried out
The upgrading of application program.Thus, it is possible to improve server 102 to the packing efficiency using delta package issued by all kinds of means.
In one embodiment, as shown in Figure 2, there is provided a kind of application program updating method, in this way applied to Fig. 1
In terminal exemplified by illustrate, terminal can be that the terminal devices such as mobile phone, tablet personal computer or other intelligent terminals, terminal may be used also
Be other can for users to use, the terminal devices of various application programs, such as computer equipment can be installed.This method is specific
Including:
Step 210:The application delta package of matching is downloaded from server.
Using can be office class application, communication class application, multimedia application, security classes application etc. types of applications journey
Sequence.When application program update upgrades, the developer of application program can release application program redaction on the server application
Installation kit, while developer can also issue the application delta package corresponding to the existing each version of application program on the server.Using
The difference section for redaction application installation package and existing version application installation package can be briefly described in delta package.Each is existing
The application program of version, which has, corresponding with its version applies delta package.It is applied to be mounted with that existing version should using delta package
With program and it is desirable that the user upgraded to application program, user need not re-download the application installation package of new edition, download number
It can be combined and upgraded with the existing version installation kit downloaded using delta package according to amount is less, lower current-carrying can be saved
Amount, memory space and application upgrade time.
For example, the latest edition of " mobile phone house keeper " application is 5.0, and application program is existing with 4.7,4.8 and 4.9 three
Version, in the terminal of different users may installation " mobile phone house keeper " application version it is different, therefore, in order to meet different use
The application upgrade demand at family, developer need to provide answering from 4.7,4.8 and from 4.9 3 edition upgradings to 5.0 versions respectively
Issue with delta package and on the server.
In one embodiment, so that the operating system of terminal is Andriod (Android) operating system as an example, Andriod should
It is the file of apk forms with the installation kit of program, apk files can be regarded to a zip compressed package as, using binary system difference
Algorithm the differential file in the apk files of existing version application program and new edition application is extracted, by file
Delta package is applied in generation one, such as patch bags.Hereinafter illustrated so that terminal uses Android system as an example, at other
In embodiment, this method can also be applied to the terminal or use for using ios systems, application installation package for the installation kit of ipa forms
The terminal of other systems, in addition, in other embodiments other method generation can also be used to apply delta package.
In the present embodiment, the application installation package for application program and situation about being issued by all kinds of means using delta package, clothes
Device be engaged in when issuing the application installation package of redaction, channel information is write to the comment field of application installation package in batches, then will
The application installation package of write-in channel information is sent to corresponding publication channel.Installation kit can be simply treated as content regions by us
Domain and comment field, wherein content area are the cores of installation kit, and the inside has all the elements of installation kit, and comment field is to use
Carry out explanatory notes installation kit.Comment field whether there is, and content is as that how can't influence the content of installation kit in itself.Example
Such as, in Android system, terminal can be by the writeApkComment methods in UpdateTaskManager, and being flowed with IO will
The end of the installation kit of the channel mark batch write-in full dose renewal of different channels is comment field.
And server is sent to applying increment corresponding to same each existing version using latest edition of each publication channel
Wrap identical, be the difference content of content part in two version application installation packages, server is sent to the application of each publication channel
Delta package does not include channel information.
Terminal to server sends application upgrade request, and the application message lookup during server is asked according to application upgrade is deposited
The application delta package to match with application version of storage, and the download address of application delta package is returned into server, terminal is visited
Ask download address and download from a server the application delta package matched with application to be upgraded.
Step 220:Obtain local current version application installation package.
Current version application installation package is the application full dose bag of the currently used version of application.Terminal downloads application delta package
Afterwards, position is locally stored according to the lookup application installation package such as the application message of application to be upgraded such as application identities, finds and deposit
Storage space, which postpones, obtains current version application installation package.
In one embodiment, after current version application installation package is obtained, read in current version application installation package
Channel information, comment field or content area that channel information is write in current version application installation package are judged, if channel
Information writes on content area, then channel information is transferred into comment field from the content area of current version application installation package;If
Channel information writes on comment field, then performs backed up the channel information of comment field in current version application installation package
Step.
Specifically, channel information is transferred to annotation from the content area of current version application installation package in Android system
The method in region be by the readChannel orders in UpdateTaskManager by channel information matching somebody with somebody from content area
Put in file and read out, then by the writeApkComment methods in UpdateTaskManager, will be from using IO streams
The end of the channel information write-in content area read out in configuration file is added to comment field, and by channel information from
Content area is deleted, and completes transfer of the channel information from content area to comment field.
The installation kit that content area is write by channel information is handled, and channel information is transferred into note from content area
Release region, it is ensured that the content area of current version application installation package does not include channel information, makes bag and increment is installed below
The building-up process of bag can be carried out correctly.
Step 230:The channel information of comment field in current version application installation package is backed up and by channel information
Deleted from comment field.
Channel information is to download download channel information when application installation package is full dose bag, the application installation package of same application
Or can be issued by different channels so that user is downloaded using delta package, such as using shop, pea pods or
Using precious wait publication channel is applied for different.Channel information includes channel number, a pair of channel number and the publication channel 1 applied
Should.
Terminal reads the channel information of comment field in application installation package, and the channel information read is carried out into backup and deposited
Storage, can such as be stored into caching, will will be deleted, made current in its comment field from installation kit after channel information backup storage
The application installation package of version only retains content part.Specifically, can be by UpdateTaskManager in Android system
ReadChannel orders read channel information.
Step 240:According to application delta package and current version application installation package generation target version installation kit.
Target version installation kit is the application installation package of latest edition.Terminal increases the application by channel information processing
Amount bag and the current version application installation package generation target version installation kit obtained.For example, terminal can use patch synthesis work
Tool will be synthesized using delta package with current version application installation package.Such as using delta package be " mobile phone house keeper " application by
The application delta package of 4.8 edition upgradings to 5.0 versions is that this is applied into delta package with working as using patch synthetics by terminal
The application installation package that preceding version number is 4.8 is synthesized, and finally gives the target version installation kit that version number is 5.0.
Specifically, above-mentioned patch synthetics can use Differential Compression algorithm, such as C language or C++ languages can be called
Speech compiling Differential Compression algorithm generation SO files, recall SO files and application delta package and target version installation kit are closed
Into.C language or the process of compilation speed of C Plus Plus are higher, can effectively improve delta package and the synthesis processing speed of installation kit.
It should be noted that delta package and the synthesis processing method of installation kit are not limited to the present embodiment, other method can also be used
Handled.
Step 250:By the comment field and installation targets version in the channel information write-in target version installation kit of backup
Installation kit.
After terminal generation target version installation kit, comment field in the current version application installation package of backup storage is obtained
Channel information, and channel information is write in the installation kit of generation so as to obtaining complete target version installation kit.Specifically,
Terminal can write channel information by the writeApkComment methods in UpdateTaskManager the installation of generation
The comment field of bag, that is, write the end of installation kit.Obtain complete target version installation kit it is installed, so as to complete
Upgrading renewal to application program.
Application program updating method in above-mentioned embodiment, terminal using delta package and local in working as according to download
Before preceding version application installation package generation target version installation kit, the channel of comment field in current version application installation package is believed
Breath is deleted after being backed up, and the comment field of target version installation kit is re-write after target version installation kit is generated, from
And enable user in the channel information for downloading channel using retaining while completing escalation process using delta package so that user
Terminal can obtain channel information and report channel information to server when using application program.So that server is not
Influence in the case of being obtained using download channel information, unification need to be only provided to each publication channel does not carry answering for channel information
It can meet the upgrade requirement of application issued by all kinds of means with delta package, without server after generating and applying delta package, for
Issue by all kinds of means will first be decompressed using delta package, again write channel information one by one using in delta package, will finally be write again
The application delta package of channel information is packed, and be enormously simplify the packing process using delta package, is improved packing efficiency.
In one embodiment, it is further comprising the steps of before the step of downloading the application delta package of matching from server:
Obtain the latest version information of application.
Whether terminal needs upgrading to update every mounted application on one section of fixed duration, automatic detection terminal.Terminal
The request obtained using latest version information is sent to server, application identities are included in request, such as application identities can be
The title of application, coding etc..Latest version information can include latest edition number, issuing time of latest edition of application etc.
Information.
Whether judge to apply according to latest version information needs to upgrade.
After server receives acquisition using the request of latest version information, the latest edition of application is searched according to application identities
This information simultaneously returns to terminal, and terminal receives latest version information, and obtains the current version information of mounted application program,
Two version informations are compared, judge version number in the latest version information whether newly version in current version information
Number, if so, then judging that mounted application program needs to upgrade renewal;If it is not, then illustrate that mounted application program is newest
Version, without upgrading.
When application needs upgrading, application upgrade request is sent to server, upgrade request comprises at least the current of application
Version information.
When terminal judges that mounted application program needs upgrading, terminal to server sends application upgrade request, rises
Level request includes the current version information for the application that needs upgrade, in addition to application identities.The current version information of application is extremely
It is few to include using information such as current version number, the download times that current version be included.Server receives application upgrade
After request, the application identities in request are determined to need to provide the application using delta package, and the application in request is worked as
The application delta package with its version match is searched by preceding version number, by the download using delta package matched with using current version
Location returns to terminal.In the present embodiment, give tacit consent to terminal by need upgrade application download application installation package when channel to
Server sends upgrade request.
In another embodiment, before terminal to server sends application upgrade request, application upgrade is prompted the user with
Information, it may be employed the application message of upgrading specifically, can be shown on display interface and whether need upgrading really
Recognize option, application message can include Apply Names, the current version number of application and latest edition number, confirm that option includes validating that
Upgrade option, upgrade option and upgrade option etc. wouldn't be reminded later, confirm that option can also include all confirming upgrade options,
Certain applications upgrade option.After terminal detects the confirmation upgrade option of user, application upgrade request is sent to server.
The download address using delta package matched with using current version that the reception server is sent.
Terminal the reception server send using delta package download address and access download address.
Terminal by obtain application latest version information, can with periodic detection server using whether have redaction hair
Cloth, the upgrade information of application can be obtained in time and real-time update is carried out to application, ensure the smooth use of application program.
In one embodiment, also include after the step of downloading the application delta package of matching from server:
Obtain the check value using delta package of server issue;
Check value is the check value that the content of application delta package is calculated, and server is answered to the issue of each channel
Before delta package, the content of application delta package is carried out that check value is calculated, and check value is also sent into each issue canal
Road.After the application delta package that terminal downloads matching from server, send delta package check value to server and obtain request, terminal is led to
Cross publication channel and obtain the check value for applying delta package.Specifically, server can be calculated using hash algorithm using increasing
The MD5 values of amount bag are check value, and server can also use other checking algorithms to calculate the check value using delta package.
Calculate the check value using delta package downloaded;
The matching that terminal-pair is downloaded from server is calculated using the content of delta package, and that is downloaded applies increment
The check value of bag, equally, terminal can use hash algorithm that the MD5 values using delta package of download are calculated as check value,
Other algorithms can also be used to calculate the check value using delta package downloaded.
Judge whether check value and the check value using delta package being calculated of server issue are consistent, if differing
Cause, sent to server and apply full dose bag download request;If consistent, the step for obtaining locally applied current version installation kit is performed
Suddenly.
Terminal increases the application of download of the check value with being calculated using delta package of the server issue from acquisition
The check value of amount bag be compared and judge whether it is consistent, when check value is consistent, show the application delta package content downloaded and
The content of issue is completely the same, can continue application upgrade, if two check values are inconsistent, shows using delta package under
Content during carrying and issuing is changed, and what is changed can not be with the installation kit of existing version using delta package
Synthesized, terminal can not continue escalation process, and terminal to server sends and applies full dose bag download request, using under full dose bag
Carry request bag and contain application identification information.Terminal receives sends application according to application identities using after full dose bag download request to terminal
The download address of the installation kit of latest edition, terminal access download address download from a server the latest edition installation of application
Bag, and will apply and re-start installation.
After the application delta package that terminal downloads matching from server, the content using delta package of download is sent out with server
Whether cloth is verified using the content of delta package, can examine and be tampered during transmission is issued using delta package,
The application delta package that terminal changes content can also be avoided to carry out wrong synthesis with current version installation kit, waste application
The update time of program, it is possible to increase the efficiency of security and building-up process during application upgrade.
In one embodiment, channel information includes channel number, channel digit and channel identification code, by current version
Also include before the step of channel information of comment field is backed up in installation kit:
Read channel number, channel digit and the channel identification code of current version installation kit.
The publication channel each applied has unique channel number, and channel digit is digit shared by channel number, for example,
Channel number is binary number, and channel digit is the digit of binary number, and channel identification code is the identification code of channel number, channel
Number, can be mutually authenticated between channel digit and channel identification code three, so as to uniquely determine publication channel, enhancing
The security of channel information issue.Specifically, three channel number, channel digit and channel identification code information can be deposited continuously
Storage is in comment field, and digit shared by each information and the position of storage are to determine.Terminal is from current version installation kit
Comment field in read channel number, channel digit and channel identification code respectively.
Channel information corresponding to application is obtained from server;
In the present embodiment, the download downloaded when channel downloads installation kit with application of terminal downloads application delta package is given tacit consent to
Channel is consistent.Terminal to server sends channel information and obtains request, and publication channel is sent to terminal after server reception request
Corresponding channel information.
Channel number, channel digit and channel identification code in the channel information that will be obtained from server one by one with reading
Channel number, channel digit be compared with channel identification code and judge whether it is consistent, if inconsistent, to server send
Using full dose bag download request;If consistent, perform backed up the channel information of comment field in current version installation kit
Step.
Terminal returns the channel number in the channel information of reading, channel digit and channel identification code with server one by one
The channel information returned is compared, and when three information are completely the same, shown that channel information is completely the same, can be continued canal
Road information backup, when at least one information therein is inconsistent, show that channel information is distorted, the channel information of reading
Unavailable, terminal to server, which is sent, applies full dose bag download request, carries out the full dose installation of latest edition application installation package.
In another embodiment, terminal can directly read continuous canal from the comment field of current version installation kit
Road information, calculates the check value of channel information, and obtains the channel information check value for the corresponding publication channel issued on server,
Two check values are compared and judged whether unanimously.
Terminal to itself and server by before backup deletion is carried out to the channel information of current version installation kit, issuing
Channel information verified, when can prevent that channel information from changing or being tampered, terminal by mistake channel information write
In the installation kit for entering synthesis, avoid mistake occur during server later stage statistical analysis channel information.
In one embodiment, the step of target version installation kit being generated with current version installation kit according to application delta package
Also include afterwards:
Calculate the check value of target version installation kit;
Terminal-pair is calculated from the content of the target version installation kit locally obtained, obtains the school of target version installation kit
Test value.
The check value of application target version full dose bag is obtained from server;
Application target version full dose bag is the latest edition installation kit of application issued on server, and server is to newest
Before the comment field write-in channel information of version installation kit, the content of latest edition installation kit is carried out that verification is calculated
Value.Target version installation kit check value is sent to server after terminal generation target version installation kit and obtain request, wrapped in request
Containing application identities, server the check value of installation kit and is sent to server according to corresponding to searching application identities, and server connects
Receive the check value of mark version installation kit.Specifically, server and terminal can be calculated using hash algorithm in the present embodiment
To installation kit MD5 values as check value, it is necessary to explanation be can also use other checking algorithms calculate check value.
Judge whether the check value of target version full dose bag is consistent with the check value for the target version installation kit being calculated,
If inconsistent, sent to server and apply full dose bag download request;If consistent, perform and the channel information of backup is write into target version
The comment field of this installation kit and the step of installed to target version installation kit.
Terminal is by the check value of the application target version full dose bag obtained from server and the latest edition intrinsic safety that is calculated
The check value of dress bag, which is compared, to be judged whether unanimously, when check value is consistent, shows content and the service of the installation kit of generation
The content of the latest edition installation kit of device issue is completely the same, can continue application upgrade, obtain the channel information of backup
And channel information is write in the target version installation kit of generation.If two check values are inconsistent, terminal can not continue to upgrade
Process, terminal to server are sent and apply full dose bag download request, and application identification information is included using full dose bag download request.Eventually
End receives using the download for sending the installation kit for applying latest edition after full dose bag download request to terminal according to application identities
Location, terminal access download address downloads from a server the latest edition installation kit of application, and will apply and re-start installation.
Terminal is verified the content for the latest edition installation kit that the content of the installation kit of generation is issued with server, can
To examine the content for synthesizing obtained target version installation kit whether correct, terminal can also be avoided by the installation kit of content false
Installed, improve security and accuracy during application program updating.
In one embodiment, as shown in Figure 3, there is provided a kind of application program updating device, including download module 310,
Installation kit acquisition module 320, backup removing module 330, synthesis module 340 and installation module 350, wherein:
Download module 310, for downloading the application delta package of matching from server;
Installation kit acquisition module 320, for obtaining local current version application installation package;
Backup removing module 330, for the channel information of comment field in current version application installation package to be backed up
And channel information is deleted from comment field;
Synthesis module 340, for generating target version installation kit according to application delta package and current version application installation package;
Module 350 is installed, for the comment field in the channel information write-in target version installation kit by backup and installation
Target version installation kit.
In one embodiment, as shown in figure 4, application program updating device also includes:Version acquisition module 302, upgrading
Judge module 304, upgrade request module 306 and address receiving module 308, wherein:
Version acquisition module 302, for obtaining the latest version information of application;
Upgrade judge module 304, whether need to upgrade for judging to apply according to latest version information;
Upgrade request module 306, for when needing upgrading using application, sending application upgrade request to server, rising
Current version information of the level request including at least application;
Address receiving module 308, send for the reception server with using current version match using delta package
Download address.
In one embodiment, as shown in figure 5, application program updating device also includes:Delta package check value acquisition module
312nd, delta package check value computing module 314 and delta package check value comparison module 316, wherein:
Delta package check value acquisition module 312, for obtaining the check value using delta package of server issue;
Delta package check value computing module 314, for calculating the check value using delta package downloaded;
Delta package check value comparison module 316, the application for judging the check value of server issue and being calculated increase
Whether consistent measure the check value of bag, if inconsistent, sent to server and apply full dose bag download request;If consistent, acquisition is performed
The step of locally applied current version installation kit.
In one embodiment, channel information includes channel number, channel digit and channel identification code, as shown in fig. 6,
Application program updating device also includes:Channel information read module 322, channel information acquisition module 324 and channel information compare
Module 326, wherein:
Channel information read module 322, for reading channel number, channel digit and the channel number of current version installation kit
Identification code;
Channel information acquisition module 324, for obtaining channel information corresponding to application from server;
Channel information comparison module 326, for the channel number in the channel information that will be obtained from server, channel digit
With compared with channel the identification code one by one channel number with reading, channel digit and channel identification code and judge whether one
Cause, if inconsistent, sent to server and apply full dose bag download request;If consistent, performing will annotate in current version installation kit
The step of channel information in region is backed up.
In one embodiment, as shown in fig. 7, application program updating device also includes:Installation kit check value computing module
342nd, installation kit check value acquisition module 344 and installation kit check value comparison module 346, wherein:
Installation kit check value computing module 342, for calculating the check value of target version installation kit;
Installation kit check value acquisition module 344, for obtaining the check value of application target version full dose bag from server;
Installation kit check value comparison module 346, for the check value for judging target version full dose bag and the mesh being calculated
Whether consistent mark the check value of version installation kit, if inconsistent, sent to server and apply full dose bag download request;If consistent,
Perform the channel information of backup writes the comment field of target version installation kit and target version installation kit is installed
Step.
In one embodiment, as shown in Figure 8, there is provided a kind of terminal 800, including the processor connected by system bus
810th, built-in storage 820, non-volatile memory medium 840 and network interface 830.Wherein, the non-volatile memories of the terminal 800
Operating system 842 and application program updating device 844 are stored with medium 840, application program updating device 844 is used for realization pair
The application program installed in terminal 800 is upgraded.The processor 810 of terminal 800 be used for provide calculate and control ability, by with
It is set to and performs a kind of user behavior recording method.Built-in storage 820 is the application program updating in non-volatile memory medium 840
The operation of device 844 provides environment, can store computer-readable instruction in built-in storage 820, the computer-readable instruction quilt
During computing device, a kind of application program updating method of computing device may be such that.Network interface 830 be used for according to this with outside
Server is communicated by network connection.It will be understood by those skilled in the art that the structure shown in Fig. 8, it is only and the application
The block diagram of the related part-structure of scheme, does not form the restriction for the terminal being applied thereon to application scheme, specifically
Terminal can include, than more or less parts shown in figure, either combining some parts or having different part cloth
Put.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality
Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, the scope that this specification is recorded all is considered to be.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously
Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that come for one of ordinary skill in the art
Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention
Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
- A kind of 1. application program updating method, it is characterised in that the described method comprises the following steps:The application delta package of matching is downloaded from server;Obtain local current version application installation package;The channel information of comment field in the current version application installation package is backed up and by the channel information from institute State in comment field and delete;According to the application delta package and current version application installation package generation target version installation kit;By the comment field in the channel information write-in target version installation kit of backup and the target version is installed Installation kit.
- 2. application program updating method according to claim 1, it is characterised in that described to download answering for matching from server Also included with before the step of delta package:Obtain the latest version information of application;Judge whether the application needs to upgrade according to the latest version information;When the application needs upgrading, application upgrade request is sent to server, the upgrade request should including at least described in Current version information;It is sending with the download address using delta package matched using current version to receive the server.
- 3. application program updating method according to claim 1, it is characterised in that described to download answering for matching from server Also included with after the step of delta package:Obtain the check value using delta package of the server issue;Calculate the check value using delta package downloaded;Judge whether check value and the check value using delta package being calculated of the server issue are consistent, If inconsistent, sent to the server and apply full dose bag download request;If consistent, perform it is described obtain it is locally applied current The step of version installation kit.
- 4. application program updating method according to claim 1, it is characterised in that the channel information include channel number, Channel digit and channel identification code, the channel information by comment field in the current version installation kit are backed up The step of before also include:Read channel number, channel digit and the channel identification code of the current version installation kit;Channel information corresponding to the application is obtained from the server;Channel number, channel digit and channel identification code in the channel information that will be obtained from the server one by one with Read the channel number, the channel digit be compared with the channel identification code and judge whether it is consistent, if not Unanimously, sent to the server and apply full dose bag download request;If consistent, perform described by the current version installation kit The step of channel information of comment field is backed up.
- 5. application program updating method according to claim 1, it is characterised in that it is described according to it is described application delta package with Also include after the step of current version installation kit generation target version installation kit:Calculate the check value of target version installation kit;The check value of the application target version full dose bag is obtained from the server;Whether the check value and the check value for the target version installation kit being calculated for judging the target version full dose bag Unanimously, it is if inconsistent, sent to the server and apply full dose bag download request;If consistent, perform the channel of backup The step of information writes the comment field of the target version installation kit and installed to the target version installation kit.
- 6. a kind of application program updating device, it is characterised in that described device includes:Download module, for downloading the application delta package of matching from server;Installation kit acquisition module, for obtaining local current version application installation package;Backup removing module, for being backed up and being incited somebody to action the channel information of comment field in the current version application installation package The channel information is deleted from the comment field;Synthesis module, for according to the application delta package and current version application installation package generation target version installation Bag;Module is installed, for the comment field for writing the channel information of backup in the target version installation kit and installation The target version installation kit.
- 7. application program updating device according to claim 6, it is characterised in that described device also includes:Version acquisition module, for obtaining the latest version information of application;Upgrade judge module, for judging whether the application needs to upgrade according to the latest version information;Upgrade request module, for when the application application needs upgrading, application upgrade request, institute to be sent to server State the current version information that upgrade request comprises at least the application;Address receiving module, for receive that the server sends with it is described using current version match using delta package Download address.
- 8. application program updating device according to claim 6, it is characterised in that described device also includes:Delta package check value acquisition module, for obtaining the check value using delta package of the server issue;Delta package check value computing module, for calculating the check value using delta package downloaded;Delta package check value comparison module, for judging the check value of the server issue with being answered described in described be calculated It is whether consistent with the check value of delta package, if inconsistent, sent to the server and apply full dose bag download request;If consistent, Perform described the step of obtaining locally applied current version installation kit.
- 9. application program updating device according to claim 6, it is characterised in that the channel information include channel number, Channel digit and channel identification code, described device also include:Channel information read module, channel number, channel digit and channel number for reading the current version installation kit are known Other code;Channel information acquisition module, for obtaining channel information corresponding to the application from the server;Channel information comparison module, for the channel number in the channel information that will be obtained from the server, channel position The channel number with reading, the channel digit and the channel identification code are compared one by one for number and channel identification code Relatively and judge whether unanimously, if inconsistent, sent to the server and apply full dose bag download request;If consistent, described in execution The step of channel information of comment field in the current version installation kit is backed up.
- 10. application program updating device according to claim 6, it is characterised in that described device also includes:Installation kit check value computing module, for calculating the check value of target version installation kit;Installation kit check value acquisition module, for obtaining the check value of the application target version full dose bag from the server;Installation kit check value comparison module, for the check value for judging the target version full dose bag and the mesh being calculated Whether consistent mark the check value of version installation kit, if inconsistent, sent to the server and apply full dose bag download request;If one Cause, perform and the channel information of backup is write into the comment field of the target version installation kit and to the target version intrinsic safety The step of dress bag is installed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710193623.9A CN107797818A (en) | 2017-03-28 | 2017-03-28 | Application program updating method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710193623.9A CN107797818A (en) | 2017-03-28 | 2017-03-28 | Application program updating method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107797818A true CN107797818A (en) | 2018-03-13 |
Family
ID=61531035
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710193623.9A Pending CN107797818A (en) | 2017-03-28 | 2017-03-28 | Application program updating method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107797818A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108874437A (en) * | 2018-04-26 | 2018-11-23 | 深圳爱加密科技有限公司 | A kind of online cloud update method of android application program |
CN109445827A (en) * | 2018-11-16 | 2019-03-08 | 网易(杭州)网络有限公司 | A kind of method and device of game renewal, electronic equipment, storage medium |
CN109582323A (en) * | 2018-11-23 | 2019-04-05 | 网易(杭州)网络有限公司 | Increment updating method, device, terminal and the server of application installation package |
CN110286922A (en) * | 2019-05-22 | 2019-09-27 | 深圳壹账通智能科技有限公司 | Application download update method, device, computer equipment and storage medium |
CN110362333A (en) * | 2019-06-29 | 2019-10-22 | 上海淇馥信息技术有限公司 | A kind of quick solution, device and electronic equipment that client upgrading hinders |
CN111459531A (en) * | 2020-04-21 | 2020-07-28 | 广州虎牙科技有限公司 | Application program upgrading method and device, electronic equipment and storage medium |
WO2021128269A1 (en) * | 2019-12-27 | 2021-07-01 | 深圳市欢太科技有限公司 | File processing method, file processing device, mobile terminal and server |
CN113094076A (en) * | 2021-03-16 | 2021-07-09 | 杭州电魂网络科技股份有限公司 | Version iteration method, device, equipment and medium based on version control |
CN114124924A (en) * | 2020-08-25 | 2022-03-01 | 深圳市欢太科技有限公司 | Method, equipment and system for determining configuration information |
CN114185588A (en) * | 2021-12-17 | 2022-03-15 | 中国平安财产保险股份有限公司 | Incremental package generation method, device, equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102857555A (en) * | 2012-08-03 | 2013-01-02 | 深圳中兴网信科技有限公司 | Terminal, server and software updating method |
CN105808284A (en) * | 2014-12-31 | 2016-07-27 | 广州市动景计算机科技有限公司 | Incremental upgrading method and server using increment upgrading method |
-
2017
- 2017-03-28 CN CN201710193623.9A patent/CN107797818A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102857555A (en) * | 2012-08-03 | 2013-01-02 | 深圳中兴网信科技有限公司 | Terminal, server and software updating method |
CN105808284A (en) * | 2014-12-31 | 2016-07-27 | 广州市动景计算机科技有限公司 | Incremental upgrading method and server using increment upgrading method |
Non-Patent Citations (2)
Title |
---|
ELDWINWANG: "【进阶】全民系列游戏安卓多渠道增量更新方案", 《HTTPS://GAMEINSTITUTE.QQ.COM/COMMUNITY/DETAIL/100059》 * |
腾讯音乐技术团队: "全民K歌增量升级方案", 《HTTPS://JUEJIN.IM/ENTRY/57551FE1A341310063D4BD80》 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108874437A (en) * | 2018-04-26 | 2018-11-23 | 深圳爱加密科技有限公司 | A kind of online cloud update method of android application program |
CN108874437B (en) * | 2018-04-26 | 2022-01-21 | 深圳爱加密科技有限公司 | Online cloud updating method for android application program |
CN109445827A (en) * | 2018-11-16 | 2019-03-08 | 网易(杭州)网络有限公司 | A kind of method and device of game renewal, electronic equipment, storage medium |
CN109582323A (en) * | 2018-11-23 | 2019-04-05 | 网易(杭州)网络有限公司 | Increment updating method, device, terminal and the server of application installation package |
CN110286922A (en) * | 2019-05-22 | 2019-09-27 | 深圳壹账通智能科技有限公司 | Application download update method, device, computer equipment and storage medium |
CN110362333A (en) * | 2019-06-29 | 2019-10-22 | 上海淇馥信息技术有限公司 | A kind of quick solution, device and electronic equipment that client upgrading hinders |
WO2021128269A1 (en) * | 2019-12-27 | 2021-07-01 | 深圳市欢太科技有限公司 | File processing method, file processing device, mobile terminal and server |
CN111459531A (en) * | 2020-04-21 | 2020-07-28 | 广州虎牙科技有限公司 | Application program upgrading method and device, electronic equipment and storage medium |
CN114124924A (en) * | 2020-08-25 | 2022-03-01 | 深圳市欢太科技有限公司 | Method, equipment and system for determining configuration information |
CN113094076A (en) * | 2021-03-16 | 2021-07-09 | 杭州电魂网络科技股份有限公司 | Version iteration method, device, equipment and medium based on version control |
CN114185588A (en) * | 2021-12-17 | 2022-03-15 | 中国平安财产保险股份有限公司 | Incremental package generation method, device, equipment and storage medium |
CN114185588B (en) * | 2021-12-17 | 2024-12-03 | 中国平安财产保险股份有限公司 | Incremental package generation method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107797818A (en) | Application program updating method and device | |
CN110058873B (en) | Application page updating method, device, equipment and storage medium | |
US20040098427A1 (en) | Device memory management during electronic file updating | |
CN107506221A (en) | Application program updating method, apparatus and equipment | |
US20050114852A1 (en) | Tri-phase boot process in electronic devices | |
CN104346167A (en) | Method and device for generating application channel package | |
CN107783776B (en) | Method and device for processing firmware upgrade package, and electronic device | |
CN104063225B (en) | Screen locking theme development method and device | |
CN104021018A (en) | Terminal, upgrade patch generation method and upgrade patch recognition method | |
CN110166543A (en) | Applied program processing method, device and computer equipment | |
CN110083367A (en) | Optimized treatment method, device and the computer equipment of application installation package | |
CN111290801A (en) | Data processing method, data processing device, computer equipment and storage medium | |
CN110837391B (en) | Application program hot updating method and device, storage medium and electronic equipment | |
US12135825B2 (en) | Method and apparatus for custom development of payment application, computer device, and storage medium | |
CN106657361B (en) | A kind of Android installation kit OTA upgrade method that code addition is obscured | |
CN108322540A (en) | Customized data lead-in method, terminal and computer readable storage medium | |
CN112286543B (en) | Application service deployment method and device | |
CN113961226B (en) | Software development kit repairing method, terminal, server and equipment | |
CN108536444B (en) | Plug-in compiling method and device, computer equipment and storage medium | |
CN113867768A (en) | Operating system processing method and device, electronic equipment and storage medium | |
CN112394969B (en) | Patch release method, server and terminal equipment | |
CN104239112A (en) | Device driver installation method and device | |
CN113220314A (en) | APP resource loading and APK generation method, device, equipment and medium | |
CN116795419A (en) | Version package grouping method, device, equipment and storage medium | |
CN113010199B (en) | Application updating method and device, computer equipment 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180313 |