CN107122174A - Application program update method and device - Google Patents

Application program update method and device Download PDF

Info

Publication number
CN107122174A
CN107122174A CN201710204077.4A CN201710204077A CN107122174A CN 107122174 A CN107122174 A CN 107122174A CN 201710204077 A CN201710204077 A CN 201710204077A CN 107122174 A CN107122174 A CN 107122174A
Authority
CN
China
Prior art keywords
page
information
update module
download
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710204077.4A
Other languages
Chinese (zh)
Other versions
CN107122174B (en
Inventor
董红光
吴华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710204077.4A priority Critical patent/CN107122174B/en
Publication of CN107122174A publication Critical patent/CN107122174A/en
Application granted granted Critical
Publication of CN107122174B publication Critical patent/CN107122174B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

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)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure is directed to a kind of application program update method and device, belong to mobile communication technology field.Methods described includes:Based on the page iden-tity of first page to be updated, the second page information of the corresponding second page of the page iden-tity is obtained in the server;If the first page information and the second page information are inconsistent, based on the second page information, the page data of the second page is downloaded;The page data of the second page is loaded, to complete the application program update.The disclosure is by obtaining second page corresponding with first page, judge first page with the presence or absence of renewal based on second page, updated if first page is present, then download and load the page data of second page, complete application program update, so that user can complete the renewal of application program without downloading manually, substantial amounts of man power and material is saved, it is intelligent more excellent.

Description

Application program update method and device
Technical field
This disclosure relates to mobile communication technology field, more particularly to a kind of application program update method and device.
Background technology
In recent years, using tablet personal computer, smart mobile phone as the terminal device of representative, various be based on just is installed from purchase The application program of the operating system of terminal device.During follow-up use, many application programs are in order to reach increase New function, corrective pitting or the purpose for lifting security, can frequently carry out application program update, also i.e. by the application journey of legacy version Sequence is updated to the application program of redaction, is preferably serviced to provide the user.
In correlation technique, when application program needs to update, the server that terminal device is connected is provided the terminal with can be with The specified page for updating installation kit is downloaded, terminal obtains specified page and generates renewal prompting so that updates and is carried in prompting The specified page, and prompting is updated to user's displaying, confirm to update in the specified page that prompting is carried so that user goes to update Application program.After user confirms more new application in specified page, terminal downloads corresponding installation kit, base from server In the application program of legacy version, the installation kit is installed, the renewal to application program is completed.
The content of the invention
To overcome problem present in correlation technique, the disclosure provides a kind of application program update method and device.
According to the first aspect of the embodiment of the present disclosure there is provided a kind of application program update method, methods described includes:
Based on the page iden-tity of first page to be updated, the corresponding second page of the page iden-tity is obtained in the server The second page information in face;
If the first page information and the second page information are inconsistent, based on the second page information, under Carry the page data of the second page;
The page data of the second page is loaded, to complete the application program update.
The method that the embodiment of the present disclosure is provided, obtains second page corresponding with first page, is judged based on second page First page updates with the presence or absence of updating if first page is present, and downloads and load the page data of second page, and completing should With the renewal of program so that user can complete the renewal of application program without being downloaded manually, save substantial amounts of manpower And material resources, it is intelligent more excellent.
In another embodiment, the page data for being based on the second page information, downloading the second page Including:
The second page information is packaged, the first update module is obtained;
Based on the current version number in the first page information, the first version number of first update module is determined;
Based on the first version number, the second update module with the first edition version number matches is downloaded;
Second update module is decompressed, the page data of the second page is obtained.
The method that the embodiment of the present disclosure is provided, by by second page Information encapsulation, obtaining the first update module, and be based on The current version number of first page information, determines the first version number of the first update module, and second is downloaded based on first version number Update module so that the second update module of download meets the requirement of first version number.
In another embodiment, it is described to be based on the first version number, download the with the first edition version number matches Two update modules include:
By the first version number of first update module and the second edition of the update module of at least one in server second This number is compared;
Download the second update module that the second edition number is higher than the first version number.
The method that the embodiment of the present disclosure is provided, by the second edition for obtaining the update module of at least one in server second Number, obtain the second update module that the second edition number is higher than first version number, it is ensured that the version of the second update module of download is high In the first update module, it is ensured that the success rate of application program update.
In another embodiment, it is described to be decompressed second update module, obtain the page of the second page Before the data of face, methods described also includes:
The configuration information of first update module is downloaded, the configuration information at least includes being used to verify described second more Whether correct first check information of new module;
The second check information in the first check information in the configuration information and second update module is carried out Compare, judge whether first check information is consistent with second check information, second check information is to have downloaded The second update module check information;
If first check information is consistent with second check information, performs decompression second update module and obtain To the second page page data the step of.
The method that the embodiment of the present disclosure is provided, by downloading the configuration information of the first update module, by the first update module Configuration information in the first check information and the second check information of the second update module be compared, it is determined that download second Whether update module is correct, it is ensured that correct more new application.
In another embodiment, it is described to be based on the first version number, download the with the first edition version number matches After two update modules, methods described also includes:
When second update module starts to download, then start the monitoring of the download to second update module;
When listen to second update module download complete when, perform decompression second update module and obtain described the The step of page data of two pages.
The method that the embodiment of the present disclosure is provided, by being downloaded monitoring to the second update module so that when listening to the After the completion of two update modules are downloaded, you can perform the step of the second update module of decompression obtains the page data of second page, carry The high renewal efficiency of application program update.
According to the second aspect of the embodiment of the present disclosure there is provided a kind of application program update device, described device includes:
Acquisition module, is configured as the page iden-tity based on first page to be updated, and the page is obtained in the server Face identifies the second page information of corresponding second page;
Download module, if being configured as the first page information and the second page information is inconsistent, based on institute Second page information is stated, the page data of the second page is downloaded;
Load-on module, is configured as loading the page data of the second page, to complete the application program update.
The technical scheme provided by this disclosed embodiment can include the following benefits:
By obtaining second page corresponding with first page, judge first page with the presence or absence of more based on second page Newly, updated if first page is present, download and load the page data of second page, complete the renewal of application program so that User can complete the renewal of application program without being downloaded manually, save substantial amounts of man power and material, intelligent more excellent.
In another embodiment, the download module includes:
Submodule is encapsulated, is configured as the second page information being packaged, obtains the first update module;
Determination sub-module, is configured as, based on the current version number in the first page information, determining described first more The first version number of new module;
Download submodule, be configured as based on the determination sub-module determine the first version number, download with it is described Second update module of first edition version number matches;
Submodule is decompressed, is configured as being decompressed second update module, obtains the page of the second page Data.
In another embodiment, the download submodule, is configured as the first version of first update module Number it is compared with the second edition number of the update module of at least one in server second;The second edition number is downloaded higher than described the Second update module of one version number.
In another embodiment, the download module also includes:
The download submodule, is additionally configured to download the configuration information of first update module, the configuration information At least include being used to verify whether correct first check information of second update module;
Submodule is compared, is configured as in the first check information in the configuration information and second update module The second check information be compared, judge whether first check information consistent with second check information, described Two check informations are the check information for the second update module downloaded;
The decompression submodule, if being additionally configured to the comparison submodule determines first check information and described the Two check informations are consistent, then perform the step of decompression second update module obtains the page data of the second page.
In another embodiment, the download module also includes:
Submodule is monitored, second update module is configured as and starts download, then start and update mould to described second The download of block is monitored;
The download submodule, is additionally configured to download when the monitoring submodule listens to second update module Cheng Shi, performs the step of decompression second update module obtains the page data of the second page.
According to the third aspect of the embodiment of the present disclosure there is provided a kind of application program update device, described device includes:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:Based on the page iden-tity of first page to be updated, obtain in the server The second page information of the corresponding second page of the page iden-tity;If the first page information and the second page information It is inconsistent, then based on the second page information, download the page data of the second page;Load the page of the second page Face data, to complete the application program update.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the present invention Example, and for explaining principle of the invention together with specification.
Fig. 1 is a kind of flow chart of application program update method according to an exemplary embodiment.
Fig. 2A is a kind of flow chart of application program update method according to an exemplary embodiment.
Fig. 2 B are a kind of schematic diagrames of application program update method according to an exemplary embodiment.
Fig. 2 C are a kind of schematic diagrames of application program update method according to an exemplary embodiment.
Fig. 2 D are a kind of schematic diagrames of application program update method according to an exemplary embodiment.
Fig. 3 A are a kind of block diagrams of application program update device according to an exemplary embodiment.
Fig. 3 B are a kind of block diagrams of application program update device according to an exemplary embodiment.
Fig. 3 C are a kind of block diagrams of application program update device according to an exemplary embodiment.
Fig. 3 D are a kind of block diagrams of application program update device according to an exemplary embodiment.
Fig. 4 is a kind of block diagram of application program update device 400 according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the present invention.
Fig. 1 is a kind of flow chart of application program update method according to an exemplary embodiment, as shown in figure 1, This method comprises the following steps:
In a step 101, the page iden-tity based on first page to be updated, obtains page iden-tity correspondence in the server Second page second page information.
In a step 102, if first page information and second page information are inconsistent, based on second page information, under Carry the page data of second page.
In step 103, the page data of second page is loaded, to complete application program update.
The method that the embodiment of the present disclosure is provided, by obtaining second page corresponding with first page, based on second page Judge that first page, with the presence or absence of renewal, updates if first page is present, downloads and load the page data of second page, it is complete Into the renewal of application program so that user can complete the renewal of application program without being downloaded manually, save substantial amounts of Man power and material, it is intelligent more excellent.
In another embodiment, based on second page information, downloading the page data of second page includes:
Second page information is packaged, the first update module is obtained;
Based on the current version number in first page information, the first version number of the first update module is determined;
Based on first version number, the second update module with first edition version number matches is downloaded;
Second update module is decompressed, the page data of second page is obtained.
In another embodiment, based on first version number, the second update module bag with first edition version number matches is downloaded Include:
By the first version number of the first update module and the second edition number of the update module of at least one in server second It is compared;
Download the second update module that the second edition number is higher than first version number.
In another embodiment, the second update module is decompressed, before the page data for obtaining second page, side Method also includes:
The configuration information of the first update module is downloaded, configuration information at least includes being used to whether just to verify the second update module The first true check information;
The first check information in configuration information is compared with the second check information in the second update module, judged Whether the first check information is consistent with the second check information, and the second check information is the verification letter for the second update module downloaded Breath;
If the first check information is consistent with the second check information, performs the second update module of decompression and obtain second page The step of page data.
In another embodiment, based on first version number, download with the second update module of first edition version number matches it Afterwards, method also includes:
When the second update module starts to download, then start the monitoring of the download to the second update module;
When listening to the download completion of the second update module, the page that the second update module of decompression obtains second page is performed The step of data.
Above-mentioned all optional technical schemes, can form the alternative embodiment of the disclosure, herein no longer using any combination Repeat one by one.
Fig. 2A is a kind of flow chart of application program update method according to an exemplary embodiment, such as Fig. 2A institutes Show, this method comprises the following steps:
In step 201, the page iden-tity based on first page to be updated, obtains page iden-tity correspondence in the server Second page second page information.
In order to increase New function, corrective pitting or lifting security, application program can be frequently updated.Work as application program When needing to be updated, the application program of new edition can be in the presence of different, therefore, when updating from the page in the application program of old edition These different pages can be only updated, to reduce volume of transmitted data during renewal.And it is determined that during first page to be updated, Can be determined according to page iden-tity of application program each page etc., for example, detect each page page iden-tity whether With more new logo, if some page iden-tity of server side has more new logo, it is determined that the page is first page.When So, rower glue can also be entered using such as timestamp information, for example, for the page iden-tity of each page, detection service device The timestamp of the page iden-tity of upper storage and the page iden-tity end side timestamp, if the timestamp evening of server side Timestamp in end side, then it is first page that can determine the page.Wherein, page iden-tity can be the page of first page Title, page-tag etc.., can be according in the application program currently downloaded after first page to be updated is determined The page iden-tity of first page, the second page in the application program of the currently stored version of server can be obtained in the server The second page information in face.Wherein, second page information can be page address URL (the Uniform Resource of second page Locator, URL) etc..
It should be noted that the process of the determination first page can be carried out in application program launching, once using journey Sequence starts, then can inquire about version number of the application program etc. to determine that application program, further can be with the presence or absence of renewal Determine which page is first page in application program.Certainly, the process of the determination first page can also be opened in application program Carried out when moving any one page based on the page being activated, for example, as application program launching page A, by the page A page The application identities of mark and application program are sent to server, and whether the page A that the application program is determined by server is first The page, the present embodiment is not limited the determination for specifically taking which kind of mode to carry out first page.
For an application program, its own includes at least one page, and at least one page is respectively provided with corresponding First page information, therefore, be stored with second page information corresponding with least one page in the server.As keeper couple When application program is updated or server detects the application program of renewal, server can be by the application program of legacy version Page info delete, by the page info of the application program of redaction it is corresponding with the new version number of application program store, certainly, Corresponding to the validation testing of above-mentioned first page, server will can also be contrasted between new and old edition, so as to which which is determined The page is updated, so that more new logo will be added in the page iden-tity updated, to carry out being based on more new logo First page determine, can also will in the page iden-tity that have updated add renewal time stamp, to carry out based on timestamp First page is determined.
In step 202., judge whether the first page information of second page information and first page is consistent, if second page Face information is consistent with first page information, then performs following step 203;If second page information differs with first page information Cause, then perform following step 204.
In the disclosed embodiments, however, it is determined that second page information is consistent with first page information, then represents current page It in the absence of renewal, therefore can not continue to perform following step 204 to step 210, directly perform following step 203; If it is determined that second page information and first page information are inconsistent, then represent current page and there is renewal, so just needing should It is updated with the first page to be updated in program, namely performs following step 204 to step 210.
When judging whether second page information is consistent with first page information, application program is marked according to the application of itself Know, the second page information of its storage is obtained in the server, by second page information and itself current first page information It is compared.
For example, for application program A, it includes the page 1, the page 2, the page 3 and the page 4, if the current first page of the page 1 Face information is www.wer.1, and the second page information of the page 1 got in the server is www.wer.2;The page 2 is current First page information be www.wet.1, the second page information of the page 2 got in the server is www.wet.1;Page The current first page information in face 3 is www.wey.1, and the second page information of the page 3 got in the server is www.wey.1;The current first page information of the page 4 is www.weu.1, the second page of the page 4 got in the server Face information is www.weu.2, then the first page information of the page 1 and the page 4 is different from second page information, is represented for application Program A, its page 1 included and the page 4, which exist, to be updated.
In step 203, if second page information is consistent with first page information, application program is maintained at current version This, terminates.
In the disclosed embodiments, for an application program, if the second page information of its whole page included with First page information is consistent, then represents current application program and renewal is not present, application program is maintained at into current version, tie Beam.
In step 204, if second page information and first page information are inconsistent, second page information is sealed Dress, obtains the first update module.
In the disclosed embodiments, in order to avoid occur mismatching in the page data of subsequent download second page or under The situation of mistake is carried, therefore second page information can be packaged, the first update module is encapsulated as, and mould is updated based on first Block downloads the page data of second page.Wherein, the first update module includes manifest files as shown in Figure 2 B, In manifest files, module (module) illustrates the second update module that application program update needs to download, due to service The second page information stored in device has corresponding version number, therefore the second update module also has corresponding version This number, and the version number of second page information with and its matching the second update module version number it is consistent.Due to for current The application program of version, it may not be updated for a long time, and then miss the application program of multiple versions, therefore application program exists Need first to be updated to next version during renewal, the like, until being updated to the application program of current latest edition, therefore Just minLevel attributes are provided with manifest files, what expression application program can be downloaded when updating is higher than application program The minimum version number of current version number.For example, for application program A, current version is 3.1, be stored with version in server Number be respectively 3.2,3.3 and 3.4 the second update module, then application program A the first update module manifest files In, minLevel attributes need to be set to 3.2.
Because first page to be updated in application program can be to be one or more, therefore the matched with first page The second page information of two pages is alternatively one or more.So, can be with one when second page information is packaged Second page Information encapsulation is first update module, obtains multiple first update modules;Can also by with application program Multiple second page Information encapsulations of multiple first page matchings to be updated are in first update module.
In step 205, based on the current version number in first page information, the first version of the first update module is determined Number.
In the disclosed embodiments, the current version number of application program is the current version number of first page information, this Sample it is determined that the first update module version number when current version number also be first version number.
In step 206, by least one second update module in the first version number of the first update module and server The second edition number be compared, download the second edition number be higher than first version number the second update module.
In the disclosed embodiments, for the application program of current version, may be stored with server at least one Two update modules, then application program need the first version number of the first update module and the of at least one the second update module Two version numbers are compared, and the second update module for obtaining the second edition number higher than first version number is downloaded, it is ensured that downloaded The second update module in there is the more new content of application program.Wherein, the second update module is included as that shown in fig. 2 c Manifest files, in manifest files, name represents the module title of the second update module, moduleContent Attribute is the content that module includes, and dex, which represents the second update module, includes Java code;Res represents the second update module Include page resource;Lib, which represents the second update module, includes native codes.
In order to ensure the efficiency of application program update so that the second update module is i.e. executable following in step after the completion of downloading Rapid 207, therefore following step one and step 2 can be performed in the application, set the download to the second update module to monitor.
Step 1: when the second update module starts to download, then starting the monitoring of the download to the second update module.
Wherein, when starting the monitoring of the download to the second update module, application program can be based on the code shown in Fig. 2 D To the incoming callback interface of server.When server detect the second update module download finish after, will pass through callback interface to should Message is sent completely with program, then application program can continue executing with following step two.
Step 2: when listening to the download completion of the second update module, performing following step 207.
In step 207, the configuration information of the first update module is downloaded, by the first check information in configuration information and the The second check information in two update modules is compared, and judges whether the first check information is consistent with the second check information, if First check information and the second check information are inconsistent, then perform following step 208;If the first check information and the second verification are believed Breath is consistent, then performs following step 209.
When downloading, it can be downloaded according to the module title of the first update module, it is necessary to illustrate, to first When update module is packaged, the module id of first update module can be obtained, so as to can be based in subsequent download Module id is downloaded.The module id can for module title or other be used for the information of the unique mark module.
In the disclosed embodiments, configuration information at least includes being used to verify whether correct first school of the second update module Test information, the first check information include the download address of the second update module, MD5 (Message Digest Algorithm, Message Digest Algorithm 5) value and application signature;Second check information is the verification for the second update module downloaded Also download address, MD5 values and the application signature of the second update module are included in information, the second check information.
In order to ensure that the second update module downloaded is matched with the first update module and correctly, it is necessary to by configuration information In the second check information for including with the second update module of the first check information be compared, if the first check information and Two check informations are completely the same, can just proceed step 209 and step 210;If the first check information and the second verification are believed Breath has differences, then performs following step 207.When the first check information and the second check information are compared, by first Under the second update module that the download address for the second update module that check information includes includes with the second check information Set address is compared, if the download address for the second update module that the first check information includes in the second check information with wrapping The download address of the second update module included is inconsistent, then not can determine that the second update module of download and the first update module not Match somebody with somebody or make a mistake, namely directly perform following step 208;If the download for the second update module that the first check information includes Address is consistent with the download address for the second update module that the second check information includes, then includes the first check information The MD5 values that MD5 values include with the second check information are compared, if the MD5 values that include of the first check information and the second school Test that the MD5 values that information includes are inconsistent, then can determine that the second update module of download is mismatched or sent out with the first update module Raw mistake, namely directly perform following step 208;If the MD5 values that the first check information includes in the second check information with wrapping The MD5 values included are consistent, then the application that the application signature and the second check information included the first check information includes Program signature is compared, if the application that application signature and the second check information that the first check information includes include Program signature is inconsistent, then can determine that the second update module of download is mismatched or made a mistake with the first update module, namely Directly perform following step 208;What if application signature and the second check information that the first check information includes included Application signature is consistent, it is determined that the second update module of download is correct, can perform following step 209 and step 210.
In a step 208, if the first check information and the second check information are inconsistent, the second update module is abandoned, And above-mentioned steps 201 are re-executed to step 207.
In the disclosed embodiments, if the first check information has differences with the second check information, then it represents that the of download Two update modules make a mistake when may mismatch or download with the first update module, it is therefore desirable to redefine second page Information, and the second update module is re-downloaded, namely above-mentioned steps 201 are performed again to step 207.
In step 209, if the first check information is consistent with the second check information, the second update module is solved Pressure, obtains the page data of second page.
In the disclosed embodiments, if the first check information is consistent with the second check information, then it represents that the second of download is more New module is matched and correct with the first update module, then the second update module is decompressed, obtain the page of second page Face data.Wherein, page data for display second page relied on page code, page resource.
In step 210, the page data of second page is loaded, to complete application program update.
In the disclosed embodiments, because the second update module includes manifest files, then manifest texts are passed through The moduleContent attributes of part can load the page data of second page, namely pass through the Java of dex loading second pages Code;The page resource of second page is loaded by res;The native codes of second page are loaded by lib;Work as loaded Afterwards, then application program completes to update, and so when user, which opens application program next time, shows the page, application program just shows and is based on The page data of the second page of second update module loading, it is ensured that it is the current newest page to be shown to the page of user.
The method that the embodiment of the present disclosure is provided, obtains second page corresponding with first page, is judged based on second page First page updates with the presence or absence of updating if first page is present, and downloads and load the page data of second page, and completing should With the renewal of program so that user can complete the renewal of application program without being downloaded manually, save substantial amounts of manpower And material resources, it is intelligent more excellent.
In another embodiment, by by second page Information encapsulation, obtaining the first update module, and based on first page The current version number of face information, determines the first version number of the first update module, and downloading second based on first version number updates mould Block so that the second update module of download meets the requirement of first version number.
In another embodiment, by obtaining the second edition number of the update module of at least one in server second, obtain The second edition number is taken to be higher than the second update module of first version number, it is ensured that the version of the second update module of download is higher than first Update module, it is ensured that the success rate of application program update.
In another embodiment, by downloading the configuration information of the first update module, by the configuration of the first update module The first check information and the second check information of the second update module in information are compared, it is determined that download second updates mould Whether block is correct, it is ensured that correct more new application.
In another embodiment, by being downloaded monitoring to the second update module so that when listening to the second renewal After the completion of module is downloaded, you can perform the step of the second update module of decompression obtains the page data of second page, improving should The renewal efficiency updated with program.
Fig. 3 A are a kind of block diagrams of application program update device according to an exemplary embodiment.Reference picture 3A, should Device includes acquisition module 301, download module 302 and load-on module 303.
The acquisition module 301, is configured as the page iden-tity based on first page to be updated, page is obtained in the server Face identifies the second page information of corresponding second page.
The download module 302, if being configured as first page information and second page information is inconsistent, based on second page Face information, downloads the page data of second page.
The load-on module 303, is configured as loading the page data of second page, to complete application program update.
The device that the embodiment of the present disclosure is provided, obtains second page corresponding with first page, is judged based on second page First page updates with the presence or absence of updating if first page is present, and downloads and load the page data of second page, and completing should With the renewal of program so that user can complete the renewal of application program without being downloaded manually, save substantial amounts of manpower And material resources, it is intelligent more excellent.
In another embodiment, referring to Fig. 3 B, the download module 302 includes encapsulation submodule 3021, determination sub-module 3022, download submodule 3023 and decompression submodule 3024.
The encapsulation submodule 3021, is configured as second page information being packaged, obtains the first update module;
The determination sub-module 3022, is configured as, based on the current version number in first page information, determining the first renewal The first version number of module;
The download submodule 3023, is configured as the first version number determined based on determination sub-module, downloaded and the first edition Second update module of version number matches;
The decompression submodule 3024, is configured as being decompressed the second update module, obtains the page number of second page According to.
In another embodiment, the download submodule 3023, is configured as the first version number of the first update module It is compared with the second edition number of the update module of at least one in server second;Download the second edition number and be higher than first version Number the second update module.
In another embodiment, referring to Fig. 3 C, the download module 302 also includes comparing submodule 3025.
The download submodule 3023, is additionally configured to download the configuration information of the first update module, and configuration information is at least wrapped Include for verifying whether correct first check information of the second update module;
The comparison submodule 3025, is configured as in the first check information and the second update module in configuration information Second check information is compared, and judges whether the first check information is consistent with the second check information, and the second check information is The check information for the second update module downloaded;
The decompression submodule 3024, if being additionally configured to comparison submodule determines the first check information and the second check information Unanimously, then the step of the second update module of decompression obtains the page data of second page is performed.
In another embodiment, referring to Fig. 3 D, the download module 302 also includes monitoring submodule 3026.
The monitoring submodule 3026, is configured as the second update module and starts download, then start to the second update module Download monitor;
The download submodule 3023, is additionally configured to when monitoring submodule listens to the second update module and downloads completion, Perform the step of the second update module of decompression obtains the page data of second page.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 4 is a kind of block diagram of application program update device 400 according to an exemplary embodiment.For example, device 400 can be mobile phone, and computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment is set It is standby, body-building equipment, personal digital assistant etc..
Reference picture 4, device 400 can include following one or more assemblies:Processing assembly 402, memory 404, power supply Component 406, multimedia groupware 408, audio-frequency assembly 410, I/O (Input/Output, input/output) interface 412, sensor Component 414, and communication component 416.
The integrated operation of the usual control device 400 of processing assembly 402, such as with display, call, data communication, phase Machine operates the operation associated with record operation.Processing assembly 402 can refer to including one or more processors 420 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing assembly 402 can include one or more modules, just Interaction between processing assembly 402 and other assemblies.For example, processing assembly 402 can include multi-media module, it is many to facilitate Interaction between media component 408 and processing assembly 402.
Memory 404 is configured as storing various types of data supporting the operation in device 400.These data are shown Example includes the instruction of any application program or method for being operated on device 400, and contact data, telephone book data disappears Breath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as SRAM (Static Random Access Memory, static RAM), EEPROM (Electrically-Erasable Programmable Read-Only Memory, the read-only storage of electrically erasable Device), EPROM (Erasable Programmable Read Only Memory, Erasable Programmable Read Only Memory EPROM), PROM (Programmable Read-Only Memory, programmable read only memory), and ROM (Read-Only Memory, it is read-only to deposit Reservoir), magnetic memory, flash memory, disk or CD.
Power supply module 406 provides electric power for the various assemblies of device 400.Power supply module 406 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 400.
Multimedia groupware 408 is included in the screen of one output interface of offer between described device 400 and user.One In a little embodiments, screen can include LCD (Liquid Crystal Display, liquid crystal display) and TP (Touch Panel, touch panel).If screen includes touch panel, screen may be implemented as touch-screen, to receive from user's Input signal.Touch panel includes one or more touch sensors with the gesture on sensing touch, slip and touch panel.Institute State touch sensor can not only sensing touch or sliding action border, but also detection touches or slide phase with described The duration of pass and pressure.In certain embodiments, multimedia groupware 408 includes a front camera and/or rearmounted taken the photograph As head.When device 400 is in operator scheme, such as screening-mode or during video mode, front camera and/or rear camera can With the multi-medium data outside receiving.Each front camera and rear camera can be a fixed optical lens systems Or with focusing and optical zoom capabilities.
Audio-frequency assembly 410 is configured as output and/or input audio signal.For example, audio-frequency assembly 410 includes a MIC (Microphone, microphone), when device 400 is in operator scheme, such as call model, logging mode and speech recognition mode When, microphone is configured as receiving external audio signal.The audio signal received can be further stored in memory 404 Or sent via communication component 416.In certain embodiments, audio-frequency assembly 410 also includes a loudspeaker, for exporting audio Signal.
I/O interfaces 412 is provide interface between processing assembly 402 and peripheral interface module, above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 414 includes one or more sensors, and the state for providing various aspects for device 400 is commented Estimate.For example, sensor cluster 414 can detect opening/closed mode of equipment 400, the relative positioning of component, such as component For the display and keypad of device 400, sensor cluster 414 can be with the position of 400 1 components of detection means 400 or device Put change, the existence or non-existence that user contacts with device 400, the orientation of device 400 or acceleration/deceleration and the temperature of device 400 Change.Sensor cluster 414 can include proximity transducer, be configured in not any physical contact near detection The presence of object.Sensor cluster 414 can also include optical sensor, such as CMOS (Complementary Metal Oxide Semiconductor, CMOS) or CCD (Charge-coupled Device, charge coupled cell) image biography Sensor, for being used in imaging applications.In certain embodiments, the sensor cluster 414 can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between device 400 and other equipment.Device 400 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 416 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, also including NFC, (Near Field Communication, near field leads to the communication component 416 Letter) module, to promote junction service.For example, RFID (Radio Frequency can be based in NFC module Identification, radio frequency identification) technology, IrDA (Infra-red Data Association, Infrared Data Association) skill Art, UWB (Ultra Wideband, ultra wide band) technology, BT (Bluetooth, bluetooth) technologies and other technologies are realized.
In the exemplary embodiment, device 400 can be by one or more ASIC (Application Specific Integrated Circuit, application specific integrated circuit), DSP is (at Digital signal Processor, data signal Manage device), DSPD (Digital signal Processor Device, digital signal processing appts), PLD (Programmable Logic Device, PLD), FPGA) (Field Programmable Gate Array, field programmable gate Array), controller, microcontroller, microprocessor or other electronic components realize, for performing above-mentioned application program update side Method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 404 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 420 of device 400.For example, The non-transitorycomputer readable storage medium can be ROM, RAM (Random Access Memory, random access memory Device), CD-ROM (Compact Disc Read-Only Memory, compact disc read-only memory), tape, floppy disk and light data deposit Store up equipment etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is filled by application program update During the computing device put so that application program update device is able to carry out above-mentioned application program update method.
Those skilled in the art will readily occur to its of the present invention after considering specification and putting into practice invention disclosed herein Its embodiment.The application be intended to the present invention any modification, purposes or adaptations, these modifications, purposes or Person's adaptations follow the general principle of the present invention and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following Claim is pointed out.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is only limited by appended claim.

Claims (11)

1. a kind of application program update method, it is characterised in that methods described includes:
Based on the page iden-tity of first page to be updated, the corresponding second page of the page iden-tity is obtained in the server Second page information;
If the first page information and the second page information are inconsistent, based on the second page information, institute is downloaded State the page data of second page;
The page data of the second page is loaded, to complete the application program update.
2. according to the method described in claim 1, it is characterised in that described to be based on the second page information, described the is downloaded The page data of two pages includes:
The second page information is packaged, the first update module is obtained;
Based on the current version number in the first page information, the first version number of first update module is determined;
Based on the first version number, the second update module with the first edition version number matches is downloaded;
Second update module is decompressed, the page data of the second page is obtained.
3. method according to claim 2, it is characterised in that described to be based on the first version number, download and described the Second update module of one version numbers match includes:
By the first version number of first update module and the second edition number of the update module of at least one in server second It is compared;
Download the second update module that the second edition number is higher than the first version number.
4. method according to claim 2, it is characterised in that described to be decompressed second update module, is obtained Before the page data of the second page, methods described also includes:
The configuration information of first update module is downloaded, the configuration information at least includes being used to verify the second renewal mould Whether correct first check information of block;
The first check information in the configuration information is compared with the second check information in second update module, Judge whether first check information is consistent with second check information, second check information is second downloaded The check information of update module;
If first check information is consistent with second check information, performs decompression second update module and obtain institute The step of stating the page data of second page.
5. method according to claim 2, it is characterised in that described to be based on the first version number, download and described the After second update module of one version numbers match, methods described also includes:
When second update module starts to download, then start the monitoring of the download to second update module;
When listening to the second update module download completion, perform decompression second update module and obtain the second page The step of page data in face.
6. a kind of application program update device, it is characterised in that described device includes:
Acquisition module, is configured as the page iden-tity based on first page to be updated, and the page mark is obtained in the server Know the second page information of corresponding second page;
Download module, if being configured as the first page information and the second page information is inconsistent, based on described Two page infos, download the page data of the second page;
Load-on module, is configured as loading the page data of the second page, to complete the application program update.
7. device according to claim 6, it is characterised in that the download module includes:
Submodule is encapsulated, is configured as the second page information being packaged, obtains the first update module;
Determination sub-module, is configured as based on the current version number in the first page information, determines that described first updates mould The first version number of block;
Submodule is downloaded, the first version number determined based on the determination sub-module is configured as, downloads and described first Second update module of version numbers match;
Submodule is decompressed, is configured as being decompressed second update module, obtains the page data of the second page.
8. device according to claim 7, it is characterised in that the download submodule, is configured as described first more The first version number of new module and the second edition number of the update module of at least one in server second are compared;Download second Version number is higher than the second update module of the first version number.
9. device according to claim 7, it is characterised in that the download module also includes:
The download submodule, is additionally configured to the module title based on first update module, downloads described first and updates The configuration information of module, the configuration information at least includes being used to verify whether correct first verification of second update module Information;
Submodule is compared, is configured as the in the first check information in the configuration information and second update module Two check informations are compared, and judge whether first check information is consistent with second check information, second school Test the check information that information is the second update module downloaded;
The decompression submodule, if being additionally configured to the comparison submodule determines first check information and second school Test information consistent, then perform the step of decompression second update module obtains the page data of the second page.
10. device according to claim 7, it is characterised in that the download module also includes:
Submodule is monitored, second update module is configured as and starts download, then start to second update module Download and monitor;
The download submodule, is additionally configured to download completion when the monitoring submodule listens to second update module When, perform the step of decompression second update module obtains the page data of the second page.
11. a kind of application program update device, it is characterised in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:Based on the page iden-tity of first page to be updated, obtain in the server described The second page information of the corresponding second page of page iden-tity;If the first page information differs with the second page information Cause, then based on the second page information, download the page data of the second page;Load the page number of the second page According to complete the application program update.
CN201710204077.4A 2017-03-30 2017-03-30 Application program updating method and device Active CN107122174B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710204077.4A CN107122174B (en) 2017-03-30 2017-03-30 Application program updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710204077.4A CN107122174B (en) 2017-03-30 2017-03-30 Application program updating method and device

Publications (2)

Publication Number Publication Date
CN107122174A true CN107122174A (en) 2017-09-01
CN107122174B CN107122174B (en) 2021-06-01

Family

ID=59717492

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710204077.4A Active CN107122174B (en) 2017-03-30 2017-03-30 Application program updating method and device

Country Status (1)

Country Link
CN (1) CN107122174B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445832A (en) * 2018-10-09 2019-03-08 深圳点猫科技有限公司 Language carries out the method and electronic equipment of hot update to application program based on programming
CN109726097A (en) * 2018-01-23 2019-05-07 平安普惠企业管理有限公司 Environment changing method, apparatus and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777317A (en) * 2005-12-16 2006-05-24 北京金山软件有限公司 Method for realizing programme update of wireless terminal
US20070300149A1 (en) * 2006-06-27 2007-12-27 Gems Tv Ltd. Computer system
CN102497407A (en) * 2011-12-07 2012-06-13 宇龙计算机通信科技(深圳)有限公司 Terminal and server-based data updating method
CN103023941A (en) * 2011-09-26 2013-04-03 腾讯科技(深圳)有限公司 Terminal application program updating method and system based on Web page
CN103761115A (en) * 2013-11-30 2014-04-30 北京中启智源数字信息技术有限责任公司 Method for achieving self-update of software
CN104834549A (en) * 2015-05-26 2015-08-12 广东小天才科技有限公司 Application program file updating method and device of mobile terminal
CN105404622A (en) * 2014-08-20 2016-03-16 阿里巴巴集团控股有限公司 Client page display method, apparatus and system
CN105893607A (en) * 2016-04-25 2016-08-24 青岛海信传媒网络技术有限公司 Page data management method, device and data server

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777317A (en) * 2005-12-16 2006-05-24 北京金山软件有限公司 Method for realizing programme update of wireless terminal
US20070300149A1 (en) * 2006-06-27 2007-12-27 Gems Tv Ltd. Computer system
CN103023941A (en) * 2011-09-26 2013-04-03 腾讯科技(深圳)有限公司 Terminal application program updating method and system based on Web page
CN102497407A (en) * 2011-12-07 2012-06-13 宇龙计算机通信科技(深圳)有限公司 Terminal and server-based data updating method
CN103761115A (en) * 2013-11-30 2014-04-30 北京中启智源数字信息技术有限责任公司 Method for achieving self-update of software
CN105404622A (en) * 2014-08-20 2016-03-16 阿里巴巴集团控股有限公司 Client page display method, apparatus and system
CN104834549A (en) * 2015-05-26 2015-08-12 广东小天才科技有限公司 Application program file updating method and device of mobile terminal
CN105893607A (en) * 2016-04-25 2016-08-24 青岛海信传媒网络技术有限公司 Page data management method, device and data server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109726097A (en) * 2018-01-23 2019-05-07 平安普惠企业管理有限公司 Environment changing method, apparatus and electronic equipment
CN109445832A (en) * 2018-10-09 2019-03-08 深圳点猫科技有限公司 Language carries out the method and electronic equipment of hot update to application program based on programming

Also Published As

Publication number Publication date
CN107122174B (en) 2021-06-01

Similar Documents

Publication Publication Date Title
CN104980580B (en) Short message inspection method and device
CN104484200A (en) Method and device for updating firmware
CN104105169B (en) From method and the device of the WLAN (wireless local area network) that is dynamically connected
CN105488112A (en) Information pushing method and device
CN104216736A (en) Method and device for incremental upgrading and terminal device
CN104469741A (en) Terminal configuration method and device
CN105472596A (en) Binding method of communication number, apparatus and terminal thereof
CN104639533A (en) Safety control method and device based on terminal
CN104536783A (en) Method and device for setting reserved space
CN104462296A (en) File managing method and device and terminal
CN105228141A (en) A kind of methods, devices and systems set up network and connect
CN105068848A (en) System upgrading method and apparatus
CN103914520A (en) Data query method, terminal equipment and server
CN106126025A (en) Replicate the exchange method and device pasted
CN105446768A (en) System upgrading method and apparatus
CN104965732A (en) Desktop startup method and apparatus
CN105183571A (en) Function calling method and device
CN104809158A (en) Network content filter method and device
CN104219378A (en) Information processing method and device
CN105094830A (en) Method and device for executing target functions
CN105354284A (en) Template processing method and apparatus and short message identification method and apparatus
CN106528113A (en) File compiling method and apparatus
CN106126382B (en) Identify the method and device of file system error
CN107122174A (en) Application program update method and device
CN106709284A (en) Root package validation method and device

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
GR01 Patent grant
GR01 Patent grant