CN106843922A - The update method and device of a kind of program - Google Patents
The update method and device of a kind of program Download PDFInfo
- Publication number
- CN106843922A CN106843922A CN201611146429.7A CN201611146429A CN106843922A CN 106843922 A CN106843922 A CN 106843922A CN 201611146429 A CN201611146429 A CN 201611146429A CN 106843922 A CN106843922 A CN 106843922A
- Authority
- CN
- China
- Prior art keywords
- version
- installation kit
- edition
- installation
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000009434 installation Methods 0.000 claims abstract description 267
- 238000001514 detection method Methods 0.000 claims abstract description 48
- 102000006479 Heterogeneous-Nuclear Ribonucleoproteins Human genes 0.000 claims description 30
- 108010019372 Heterogeneous-Nuclear Ribonucleoproteins Proteins 0.000 claims description 30
- 230000008569 process Effects 0.000 claims description 16
- GOLXNESZZPUPJE-UHFFFAOYSA-N spiromesifen Chemical compound CC1=CC(C)=CC(C)=C1C(C(O1)=O)=C(OC(=O)CC(C)(C)C)C11CCCC1 GOLXNESZZPUPJE-UHFFFAOYSA-N 0.000 claims description 15
- 238000012790 confirmation Methods 0.000 claims description 7
- 238000004590 computer program Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 239000004744 fabric Substances 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000013497 data interchange Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000004064 dysfunction Effects 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 230000000630 rising effect Effects 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/65—Updates
-
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention provides the update method and device of a kind of program, using in the terminal, the mobile terminal is provided with the program of first version, and the second edition of the described program that is stored with installation kit, methods described includes:Installation operation of the detection for the installation kit;Whether the installation kit for issuing the second edition has been cancelled according to the installation operation detection service device;If so, then forbidding installing the installation kit;If it is not, then installing the installation kit, described program is updated to the second edition from the first version.By detecting whether revocation issue before the mounting, so as to decide whether to install the installation kit, can avoid that the installation kit for being revoked version is installed, prevent from causing version influence extension of problems, improve Consumer's Experience.
Description
Technical field
The present invention relates to communication technical field, the update method of more particularly to a kind of program and a kind of more new clothes of program
Put.
Background technology
At present, with the high speed development of internet, network program tends to diversification, especially with the big rule of mobile terminal
Mould is popularized, various operating systems and such as immediate communication tool, E-mail address, web browser etc. third-party application
(Application, abbreviation App), by extensive program user's live and work various aspects.
In actual use, operating system, third-party application often carry out the improvement of function, and upgrading should operate and be
System, the version of third-party application, to lift Consumer's Experience.
After new version issue, if version invention there is a problem of that, than more serious, the version may be cancelled,
Stop the issue of the version.
But, during revocation is published to, some mobile terminal applications connect Wi-Fi (Wireless Fidelity) and download plan automatically
Slightly, downloaded by other channels etc., downloaded the installation kit of this version, user do not know the version exist problem by
Revocation, is still upgraded, and causes version influence extension of problems, poor user experience.
The content of the invention
In view of the above problems, extension, this hair are impacted in order to solve the problems, such as that above-mentioned installation has been revoked installation kit
Bright embodiment proposes a kind of update method of program and a kind of corresponding updating device of program.
In order to solve the above problems, the embodiment of the invention discloses a kind of update method of program, apply in mobile terminal
In, the mobile terminal is provided with the program of first version, and the second edition of the described program that is stored with installation kit, the side
Method includes:
Installation operation of the detection for the installation kit;
Whether the installation kit for issuing the second edition has been cancelled according to the installation operation detection service device;
If so, then forbidding installing the installation kit;If it is not, the installation kit is then installed, by described program from described
One version updating is to the second edition.
The embodiment of the invention also discloses a kind of updating device of program, using in the terminal, the mobile terminal
The program of first version is installed, and the second edition of the described program that is stored with installation kit, described device includes installation operation
Detection module, version revocation judge module, installation kit are forbidden installing module and installation kit installation module:
The installation operation detection module is used to detect the installation operation for the installation kit;
Whether the version revocation judge module is used to cancelled described in issue according to the installation operation detection service device
The installation kit of the second edition;If so, then call the installation kit to forbid that module is installed, if it is not, then calling the installation kit to install
Module;
The installation kit forbids installing module for forbidding installing the installation kit;
The installation kit installs module to be used to install the installation kit, by described program from the first version update to
The second edition.
The embodiment of the present invention includes advantages below:
In the embodiment of the present invention, mobile terminal is provided with the program of first version, and the program that is stored with the second edition
Installation kit, if detect install mobile terminal in the installation kit installation operation, whether hair can be cancelled with detection service device
The installation kit of the cloth second edition, it is no to be, then forbid that the installation kit is installed, otherwise, the installation kit is installed, by program from the first edition
The second edition is arrived in this renewal, because version of problems can cancel installation kit, therefore, by detecting whether to remove before the mounting
Pin issue, so as to decide whether to install the installation kit, can avoid installing the installation kit for being revoked version, prevent from causing presence
The version influence extension of problem, improves Consumer's Experience.
Brief description of the drawings
The step of Fig. 1 is a kind of update method embodiment of program of the invention flow chart;
The step of Fig. 2 is the update method embodiment of another program of the invention flow chart;
The step of Fig. 3 is the update method embodiment of another program of the invention flow chart;
Fig. 4 is a kind of structured flowchart of the update method device embodiment of program of the invention;
Fig. 5 is the structured flowchart of the update method device embodiment of another program of the invention.
Specific embodiment
It is below in conjunction with the accompanying drawings and specific real to enable the above objects, features and advantages of the present invention more obvious understandable
The present invention is further detailed explanation to apply mode.
Reference picture 1, flow chart the step of show a kind of update method embodiment of program of the invention, can specifically wrap
Include following steps:
Step 101, installation operation of the detection for the installation kit.
Whether step 102, the installation kit for issuing the second edition has been cancelled according to the installation operation detection service device;
If so, step 103 is then performed, if it is not, then performing step 104.
Step 103, forbids installing the installation kit.
Step 104, installs the installation kit, and described program is updated to the second edition from the first version.
In implementing, the embodiment of the present invention can be using in the terminal, for example, mobile phone, panel computer, individual
Digital assistants, wearable device (such as glasses, wrist-watch) etc..
In embodiments of the present invention, mobile terminal is provided with the program of first version, and the second edition having program stored therein
Installation kit.
It should be noted that the program can be operating system, or the third party in the operating system
Using (App), the embodiment of the present invention is not any limitation as to this.
When program is operating system, first version is higher or lower than the second edition.
If first version is higher than the second edition, then, to install after the installation kit of the second edition, operating system can be real
Now degrade, if first version is less than the second edition, install after the installation kit of the second edition, operating system can be realized rising
Level.
Due to some limitations of operating system, when program is third-party application, first version is generally below the second edition,
If first version is higher than the second edition, can typically forbid being installed.
The operating system of these mobile terminals can include Android (Android), IOS, Windows Phone, Windows
Etc..
To make those skilled in the art more fully understand the embodiment of the present invention, in this manual, using Android as behaviour
A kind of example for making system is illustrated.
Server can provide differential mechanism, such as Google diff arithmetic, therefore, installation kit can be supported whole
Bag (Full Image) and difference bag (Differential Image).
Wherein, whole bag can be based on the program file generation of the second edition, and installing the whole bag can be mounted directly the second edition
This program.
Difference bag can be based on the differential file life between the program file of first version and the program file of the second edition
Into on the basis of the program file of first version, the behaviour such as modify to program file according to the difference bag, replace, increasing
Make, complete the installation of the program of the second edition.
In implementing, when user's startup program, if detected with installation kit, carrying for renewal can be generated
Show information, if user confirms to update in the prompt message by clicking on the modes such as control, confirmation is detected for installation
The installation operation of bag.
Certainly, in addition to prompt message, the installation operation for installation kit, example can also by other means be detected
Such as, for third-party application, a radio receiver can be registered, receives and broadcast is installed "
Android.intent.action.PACKAGE_ADDED ", if listening to installation broadcast, can confirm that and detect pin
Installation operation to installation kit, etc., the embodiment of the present invention is not any limitation as to this.
In embodiments of the present invention, if detecting the installation operation of the installation kit of the second edition, can be in installation
Before, whether detection service device has cancelled the installation kit of the issue second edition.
In a kind of mode, it can be determined that whether server issues the renewal plan updated from first version to the second edition
Slightly;If so, then determining server does not cancel the installation kit of the issue second edition;If it is not, then determining server has cancelled issue
The installation kit of two versions.
In a further mode of operation, it can be determined that whether server currently issues the installation kit of the second edition;If so, then sentencing
Determine the installation kit that server does not cancel the issue second edition;If it is not, then determining server has cancelled the installation of the issue second edition
Bag.
Certainly, the detection mode of above-mentioned revocation issue is intended only as example, when the embodiment of the present invention is implemented, can basis
Actual conditions set the detection mode of other revocation issues, and the embodiment of the present invention is not any limitation as to this.In addition, being removed except above-mentioned
Sell outside the detection mode of issue, those skilled in the art can also according to actual needs using the detection side of other revocation issues
Formula, the embodiment of the present invention is not also any limitation as to this.
If server does not cancel the installation kit of the issue second edition, then it represents that the second edition is generally not present more serious
Problem, the installation kit can be installed, so that program is updated to the second edition from first version.
If server has cancelled the installation kit of the issue second edition, then it represents that the second edition there may be more serious
Problem, has been revoked, then user's second edition can be pointed out to there is problem, it is proposed that user forbids or voluntarily forbids installing the installation
Bag, it is to avoid the extension of problem.
In the embodiment of the present invention, mobile terminal is provided with the program of first version, and the program that is stored with the second edition
Installation kit, if detect install mobile terminal in the installation kit installation operation, whether hair can be cancelled with detection service device
The installation kit of the cloth second edition, it is no to be, then forbid that the installation kit is installed, otherwise, the installation kit is installed, by program from the first edition
The second edition is arrived in this renewal, because version of problems can cancel installation kit, therefore, by detecting whether to remove before the mounting
Pin issue, so as to decide whether to install the installation kit, can avoid installing the installation kit for being revoked version, prevent from causing presence
The version influence extension of problem, improves Consumer's Experience.
Reference picture 2, flow chart the step of show the update method embodiment of another program of the invention is applied and moved
In dynamic terminal, mobile terminal is provided with the program of first version, and the second edition having program stored therein installation kit, specifically can be with
Comprise the following steps:
Step 201, installation operation of the detection for the installation kit.
Step 202, more new strategy issued according to the installation operation detection service device, described program.
In embodiments of the present invention, the server is the official's server for issuing the program, because the program there may be
Multiple versions, version 01, version 02, version 03, version 04 not can directly upgrade between each version, therefore, service
Device can issue the more new strategy of the program in addition to the installation kit of each version of release process, also, and the more new strategy includes
Information from source version updating to target version, such as more new strategy indicate to be upgraded to version 02 from version 01, upgrade from version 02
To 03.
Certainly, if the installation kit of the second edition is general installation kit, the first version for any version can be with
The second edition is updated to by installing the general installation kit, the embodiment of the present invention is not any limitation as to this.
If certain version generates more serious problem, such as dodge move back, certain dysfunction, the installation with the version
The escalation policy for wrapping and being upgraded to the version can typically be cancelled, and stop issue.
In implementing, because the program that different mobile terminals is adapted to is different, therefore, it can first version
(being characterized with version information), the end message of mobile terminal are sent to server.
What the reception server was returned, using first version as source version and the more new strategy that is matched with end message.
For operating system, the end message can be terminal models, IMEI (International Mobile
Equipment Identity, mobile device international identity code) etc., the operating system of some versions is limited in some types
Installed in the mobile terminal of (terminal models), the even mobile terminal of some specific (IMEI).
For example, the operating system of mobile terminal exist 4 versions, 6.10.20,6.10.27,6.11.3,6.11.10, such as
The first version of the operating system of fruit mobile terminal is 6.10.27, and more new strategy is:
1st, it is downgraded to 6.10.20 from 6.10.27
2nd, it is upgraded to 6.11.3 from 6.10.27
3rd, it is upgraded to 6.11.10 from 6.10.27
If it find that 6.11.10 there is a problem of, than more serious, cancelling 6.11.10, meanwhile, revocation is upgraded from 6.10.27
To the more new strategy of 6.11.10, therefore, sent to server when by the end message of first version 6.10.27 and mobile terminal
Afterwards, the more new strategy for receiving server return is with owning that 6.10.27 is matched as source version and with the end message
More new strategy, i.e., be downgraded to 6.10.20 and the more new strategy of 6.11.3 be upgraded to from 6.10.27 from 6.10.27.
For third-party application, the end message can be terminal models, system version etc., the third party of some versions
Pacify using in being limited in the mobile terminal of some types (terminal models), the mobile terminal of some system environments (system version)
Dress.
Step 203, judges whether there is the more new strategy updated from the first version to the second edition;If so,
Step 204 is then performed, if it is not, then performing step 205.
Step 204, determining server does not cancel the installation kit for issuing the second edition, afterwards, performs step 206.
Step 205, determining server has cancelled the installation kit for issuing the second edition, afterwards, performs step 207.
In embodiments of the present invention, more new strategy includes the information from source version updating to target version.
If server issue has the more new strategy that the second edition is updated to from first version, it is determined that server is not cancelled
Issue the installation kit of the second edition.
If server does not issue the more new strategy that the second edition is updated to from first version, it is determined that server has been removed
The installation kit of the pin issue second edition.
In implementing, it can be determined that whether source version is whether first version, target version are the second edition.
If, it is determined that with the more new strategy updated from first version to the second edition.
If not, it is determined that without the more new strategy updated from first version to the second edition.
Step 206, installs the installation kit, and described program is updated to the second edition from the first version.
If with from first version update to the second edition more new strategy, then it represents that the second edition be generally not present compared with
It is serious problem, the installation kit can be installed, so that program is updated to the second edition from first version.
For operating system, then the installation kit downloaded can be verified, Recovery is rebooted into after verifying successfully
Pattern is updated.
For third-party application, then APK installation kits can be replicated under data/app catalogues, decompress and scan installation kit,
Dex files (Dalvik bytecodes) are saved in corresponding application is created under dalvik-cache catalogues, and data/data catalogues
Data directory.
In one embodiment of the invention, in order to ensure the authenticity of installation kit, on the one hand, installation kit can be extracted
First installs package informatin, the first installation package informatin can be from server downloads when subsidiary information, it is also possible to it is direct from peace
Extracted in dress bag, the embodiment of the present invention is not any limitation as to this.
On the other hand, the second installation package informatin of target version can be downloaded from server, the second installation package informatin can
Individually to be downloaded from server, it is also possible in step 202., together returned as the installation package informatin of target version, the present invention
Embodiment is not any limitation as to this.
Judge whether the first installation package informatin installs package informatin with second identical.
In one example, the first installation kit information includes following one or more:
Version number, title, size.
Second installation kit information includes following one or more:
Version number, title, size.
When the first installation package informatin is judged and whether identical the second installation package informatin is, it can be determined that the first peace of same type
Dress package informatin with second install package informatin it is whether identical, if full detail is identical, it is considered that first install package informatin and
Second installation package informatin is identical, if at least one information is differed, it is considered that first installs package informatin and the second installation
Package informatin is differed.
If the first installation package informatin is identical with the second installation package informatin, then it represents that in local installation kit and server
Installation kit is consistent, can install the installation kit.
If the first installation package informatin is differed with the second installation package informatin, then it represents that in local installation kit and server
Installation kit it is inconsistent, situations such as the installation kit or third party that there is official's modification server change local installation kit, can be with
Forbid that the installation kit is installed.
If forbidding installing the installation kit, user can be pointed out to delete or be automatically deleted installation kit, it is to avoid installation kit takes
The memory space of mobile terminal.
Further, it is also possible to the version information of the latest edition downloaded from server, is generated using version information and upgraded
Prompt message, such as JSON (JavaScript Object Notation, a kind of data interchange format of lightweight) object, to carry
Show that the program can be upgraded to newest version by user.
When the confirmation operation for upgrade tip information is detected, such as user clicks on the control of confirmation or upgrading etc,
The installation kit that latest edition then can be downloaded from server is upgraded.
Certainly, the update mode that this upgrading can follow the embodiment of the present invention is upgraded, and is ensureing that the program is direct
When upgrading, it is also possible to which the update mode for not following the embodiment of the present invention is upgraded, and the embodiment of the present invention is not added with to this
To limit.
Step 207, forbids installing the installation kit.
If without from first version update to the second edition more new strategy, then it represents that the second edition there may be compared with
It is serious problem, has been revoked, then user's second edition can be pointed out to there is problem, it is proposed that user forbids or voluntarily forbids peace
Fill the installation kit, it is to avoid the extension of problem.
Similarly, if forbidding installing the installation kit, user can be pointed out to delete or be automatically deleted installation kit, it is to avoid install
Bag takes the memory space of mobile terminal.
Further, it is also possible to the version information of the latest edition downloaded from server, is generated using version information and upgraded
Prompt message, such as JSON objects, to point out user the program can be upgraded into newest version.
When the confirmation operation for upgrade tip information is detected, such as user clicks on the control of confirmation or upgrading etc,
The installation kit that latest edition then can be downloaded from server is upgraded.
Certainly, the update mode that this upgrading can follow the embodiment of the present invention is upgraded, and is ensureing that the program is direct
When upgrading, it is also possible to which the update mode for not following the embodiment of the present invention is upgraded, and the embodiment of the present invention is not added with to this
To limit.In the embodiment of the present invention, mobile terminal is provided with the program of first version, and the second edition of the program that is stored with
Installation kit, if detecting the installation operation for installing the installation kit in mobile terminal, can be issued with the detection service device, program
More new strategy, if server issued from first version update to the second edition more new strategy, the installation kit is installed,
Updated to the second edition from first version with by program, otherwise, forbid that the installation kit is installed, because version of problems can be removed
The issue of pin installation kit and more new strategy, therefore, updated to second by detecting whether to have from first version before the mounting
The more new strategy of version, so as to decide whether to install the installation kit, can avoid installing the installation kit for being revoked version, prevent
Version influence extension of problems is caused, Consumer's Experience is improved.
Reference picture 3, flow chart the step of show the update method embodiment of another program of the invention is applied and moved
In dynamic terminal, mobile terminal is provided with the program of first version, and the second edition having program stored therein installation kit, specifically can be with
Comprise the following steps:
Step 301, installation operation of the detection for the installation kit.
Step 302, when the mobile terminal failed cluster is detected, the data card for mobile terminal adds a certain network
Network request.
Step 303, when the network request completion is added, connects the network.
Step 304, is that the process for currently updating described program adds connecing for the network when the network success is connected
Mouthful, to allow the process to access the network.
Mobile terminal is in the second edition information, download latest edition for detecting more new strategy from server, downloading target version
, it is necessary to network in the operations such as this version information, the installation kit for downloading latest edition, if detecting mobile terminal networking, such as
Connection Wi-Fi opens mobile network data, then can directly perform these operations.
If mobile terminal is not networked, can force to dial up on the telephone, to perform these operations.
In android system, a kind of network, such as mobile, connection can be added in framework (application framework) layer
The network of the operators such as logical, telecommunications.
The network request networkrequest of (build) this network is added with the mark (such as subId) of certain data cards,
Meanwhile, call back function networkCallback is set.
Wherein, the data card includes SIM (Subscriber Identity Module, client identification module) cards, USIM
(Universal Subscriber Identity Module, Global Subscriber identification card) etc., selected data card is generally
Main card, certainly, user can also be specified using certain data cards.
Addition directly asks network after finishing, and can be current in call back function networkCallback after asking successfully
Process adds the interface of network, and it is embodied as bindProcessToNetwork (network), and network is the interface of network.
So, only the process allows to use this network, and other processes can not use this network.
Whether step 305, the installation kit for issuing the second edition has been cancelled according to the installation operation detection service device;
If so, step 306 is then performed, if it is not, then performing step 307.
In embodiments of the present invention, whether the process can cancel issue by network access server, detection service device
The installation kit of the second edition.
Step 306, forbids installing the installation kit.
In embodiments of the present invention, if forbid install the installation kit, the process can by network access server, under
Carry version information, installation kit of download latest edition of latest edition, etc..
Step 307, installs the installation kit, and described program is updated to the second edition from the first version.
In embodiments of the present invention, the process by network access server, can download the second edition of target version
Information, so that the first version information of the installation kit stored with mobile terminal is verified, decides whether to install the installation kit.
Step 308, when default closedown condition is met, closes the network.
In embodiments of the present invention, if meeting the closedown condition, can close in advance to the network settings closedown condition
Close this network, it is to avoid take resource.
In one example, the closedown condition can include following one or more:
Detection revocation issue completion, renewal complete, forbid updating.
It should be noted that detection revocation issue completes to refer to has determined that whether server cancels the issue second edition
Installation kit, updates and completes that the installation kit for installing the second edition in mobile terminal can be referred to, or, install and downloaded most from server
The installation kit of redaction, stopping updating can refer to the installation kit for forbidding the second edition in installation mobile terminal, cancel from server
Installation kit of latest edition of download, etc..
Alternatively, after step 305, more new strategy, the second edition information of acquisition for mobile terminal server issue
Afterwards, step 308 can be performed, network is closed, after forbidding that installation kit is installed, SCN subscriber connection network can be pointed out, passed through
The network of user's connection downloads the version information of latest edition, downloads the installation kit of latest edition.
Certainly, in order to ensure the right of privacy and right to know of user, can first check whether the user of the mobile terminal adds
Specified plan, if it is, confirm that the user of the mobile terminal dials up on the telephone to pressure authorized, mobile terminal can be with
The version letter continue executing with from server and detect more new strategy, the second edition information for downloading target version, downloaded latest edition
The operations such as breath, the installation kit for downloading latest edition, if the user of the mobile terminal does not add executive plan, confirm the shifting
The user of dynamic terminal does not dial up on the telephone to pressure and authorizes, terminating mobile terminal perform from server detect more new strategy, under
Carry the operations such as second edition information, the version information of download latest edition, the installation kit of download latest edition of target version.
Wherein, specified plan can include but is not limited to Consumer's Experience plan that the affiliated platform of program is initiated, etc..
It should be noted that for embodiment of the method, in order to be briefly described, therefore it to be all expressed as a series of action group
Close, but those skilled in the art should know, and the embodiment of the present invention is not limited by described sequence of movement, because according to
According to the embodiment of the present invention, some steps can sequentially or simultaneously be carried out using other.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, the involved action not necessarily present invention is implemented
Necessary to example.
Reference picture 4, shows a kind of structured flowchart of the updating device embodiment of program of the invention, applies mobile whole
In end, the mobile terminal is provided with the program of first version, and the second edition of the described program that is stored with installation kit, it is described
Device can specifically include that following installation operation detection module 401, version revocation judge module 402, installation kit is forbidden installing mould
Block 403 and installation kit install module 404:
The installation operation detection module 401 is used to detect the installation operation for the installation kit;
Whether the version revocation judge module 402 is used for having cancelled issue institute according to the installation operation detection service device
State the installation kit of the second edition;If so, then call the installation kit to forbid that module 403 is installed, if it is not, then calling the installation kit
Module 404 is installed;
The installation kit forbids installing module 403 for forbidding installing the installation kit;
The installation kit installs module 404 to be used to install the installation kit, by described program from the first version more
Newly arrive the second edition.
In one embodiment of the invention, version revocation judge module 402 include more new strategy detection sub-module,
More new strategy judging submodule, do not cancel decision sub-module and cancelled decision sub-module:
The more new strategy detection sub-module is used for the described program issued according to the installation operation detection service device
More new strategy;
The more new strategy judging submodule is used to judge whether to have from the first version to update to the second edition
This more new strategy;If so, decision sub-module is not cancelled described in then calling, if it is not, having cancelled decision sub-module described in then calling;
The decision sub-module that do not cancel does not cancel the installation kit for issuing the second edition for determining server;
The decision sub-module that cancelled has cancelled the installation kit for issuing the second edition for determining server.
In one embodiment of the invention, the more new strategy includes the information from source version updating to target version;
The more new strategy detection sub-module includes:
Required parameter transmitting element, for the end message of the first version and the mobile terminal to be sent to service
Device;
Update Policy receipt unit, for receiving what the server was returned, using the first version as source version and
The more new strategy matched with the end message.
In one embodiment of the invention, the more new strategy includes the information from source version updating to target version;
The more new strategy judging submodule includes version judging unit, the first determining unit and the second determining unit:
The version judging unit is used to judging whether the source version to be whether first version, the target version are the
Two versions;If so, first determining unit is then called, if it is not, then calling second determining unit;
First determining unit is used to determine there is the renewal plan updated from the first version to the second edition
Slightly;
Second determining unit is used to determine the renewal without being updated from the first version to the second edition
Strategy.
In one embodiment of the invention, the installation kit installs module 404 includes the first installation kit information extraction
Module, the second installation package informatin download submodule, install package informatin judging submodule, install submodule and forbid installing submodule
Block:
The first installation kit information extraction submodule is used to extract the first installation package informatin of the installation kit;
Described second installs package informatin downloads submodule is used to be downloaded from the server the second peace of the target version
Dress package informatin;
The installation package informatin judging submodule is used to judge that the first installation package informatin is believed with second installation kit
Whether breath is identical;If so, the installation submodule is then called, if it is not, forbidding installing submodule described in then calling;
The installation submodule is used to install the installation kit;
It is described to forbid installing submodule for forbidding installing the installation kit.
In an example of the embodiment of the present invention, the first installation kit information includes following one or more:
Version number, title, size;
The second installation kit information includes following one or more:
Version number, title, size.
In one embodiment of the invention, the device also includes such as lower module:
Installation kit removing module, for deleting the installation kit;
And/or,
Version information download module, the version information of the latest edition for downloading described program from the server;
Upgrade tip information generating module, for generating upgrade tip information using the version information;
Installation kit download module, for when the confirmation operation for the upgrade tip information is detected, from the clothes
The installation kit that business device downloads latest edition is upgraded.
In implementing, when described program is operating system, the first version is higher or lower than the second edition
This;
When described program is third-party application, the first version is less than the second edition.
Reference picture 5, shows the structured flowchart of the updating device embodiment of another program of the invention, applies in movement
In terminal, the mobile terminal is provided with the program of first version, and the second edition of the described program that is stored with installation kit, institute
Stating device can specifically include following installation operation detection module 501, network request add module 502, network connecting module
503rd, network interface add module 504, version revocation judge module 505, installation kit is forbidden installing the installation of module 506, installation kit
Module 507 and network closed module 508:
The installation operation detection module 501 is used to detect the installation operation for the installation kit;
The network request add module 502 is used for when the mobile terminal failed cluster is detected, for mobile terminal
Data card add the network request of a certain network;
The network connecting module 503 is used to, when the network request completion is added, connect the network;
The network interface add module 504 is used for when the network success is connected, and is currently to update described program
Process adds the interface of the network, to allow the process to access the network;
Whether the version revocation judge module 505 is used for having cancelled issue institute according to the installation operation detection service device
State the installation kit of the second edition;If so, then call the installation kit to forbid that module 506 is installed, if it is not, then calling the installation kit
Module 507 is installed;
The installation kit forbids installing module 506 for forbidding installing the installation kit;
The installation kit installs module 507 to be used to install the installation kit, by described program from the first version more
Newly arrive the second edition;
The network closed module 508 is used to, when default closedown condition is met, close the network.
In implementing, the closedown condition can include following one or more:
Detection revocation issue completion, renewal complete, forbid updating.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related
Part is illustrated referring to the part of embodiment of the method.
Each embodiment in this specification is described by the way of progressive, what each embodiment was stressed be with
The difference of other embodiment, between each embodiment identical similar part mutually referring to.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, device or calculate
Machine program product.Therefore, the embodiment of the present invention can using complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.And, the embodiment of the present invention can using wherein include computer at one or more can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention is with reference to method according to embodiments of the present invention, terminal device (system) and computer program
The flow chart and/or block diagram of product is described.It should be understood that flow chart and/or block diagram can be realized by computer program instructions
In each flow and/or flow and/or square frame in square frame and flow chart and/or block diagram combination.These can be provided
Computer program instructions set to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is producing a machine so that held by the processor of computer or other programmable data processing terminal equipments
Capable instruction is produced for realizing in one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames
The device of the function of specifying.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing terminal equipments
In the computer-readable memory for working in a specific way so that instruction of the storage in the computer-readable memory produces bag
The manufacture of command device is included, the command device is realized in one flow of flow chart or multiple one side of flow and/or block diagram
The function of being specified in frame or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that
Series of operation steps is performed on computer or other programmable terminal equipments to produce computer implemented treatment, so that
The instruction performed on computer or other programmable terminal equipments is provided for realizing in one flow of flow chart or multiple flows
And/or specified in one square frame of block diagram or multiple square frame function the step of.
Although having been described for the preferred embodiment of the embodiment of the present invention, those skilled in the art once know base
This creative concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to
Including preferred embodiment and fall into having altered and changing for range of embodiment of the invention.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation
Between there is any this actual relation or order.And, term " including ", "comprising" or its any other variant meaning
Covering including for nonexcludability, so that process, method, article or terminal device including a series of key elements are not only wrapped
Those key elements, but also other key elements including being not expressly set out are included, or also includes being this process, method, article
Or the intrinsic key element of terminal device.In the absence of more restrictions, by wanting that sentence "including a ..." is limited
Element, it is not excluded that also there is other identical element in the process including the key element, method, article or terminal device.
Update method above to a kind of program provided by the present invention and a kind of updating device of program, have been carried out in detail
Introduce, this paper Programs specific case is set forth to principle of the invention and implementation method, the explanation of above example
It is only intended to help and understands the method for the present invention and its core concept;Simultaneously for those of ordinary skill in the art, according to this
The thought of invention, be will change in specific embodiment and program limit, and in sum, this specification content should not
It is interpreted as limitation of the present invention.
Claims (10)
1. a kind of update method of program, it is characterised in that in the terminal, the mobile terminal is provided with the first edition for application
This program, and the second edition of the described program that is stored with installation kit, methods described includes:
Installation operation of the detection for the installation kit;
Whether the installation kit for issuing the second edition has been cancelled according to the installation operation detection service device;
If so, then forbidding installing the installation kit;If it is not, the installation kit is then installed, by described program from the first edition
The second edition is arrived in this renewal.
2. method according to claim 1, it is characterised in that it is described according to the installation operation detection service device whether
The step of installation kit of the revocation issue second edition, includes:
The more new strategy of the described program issued according to the installation operation detection service device;
Judge whether that there is the more new strategy updated from the first version to the second edition;If so, then determining server
The installation kit for issuing the second edition is not cancelled;If it is not, then determining server has cancelled the installation for issuing the second edition
Bag.
3. method according to claim 2, it is characterised in that the more new strategy is included from source version updating to target version
This information;
The step of more new strategy of the described program issued according to the installation operation detection service device, includes:
The end message of the first version and the mobile terminal is sent to server;
Receive what the server was returned, using the first version as source version and the renewal plan that is matched with the end message
Slightly.
4. method according to claim 2, it is characterised in that the more new strategy is included from source version updating to target version
This information;
It is described to judge whether that the step of having the more new strategy that the second edition is upgraded to from the first version includes:
Judge whether the source version is whether first version, the target version are the second edition;
If, it is determined that with the more new strategy updated from the first version to the second edition;
If not, it is determined that without the more new strategy updated from the first version to the second edition.
5. method according to claim 4, it is characterised in that include the step of the installation installation kit:
Extract the first installation package informatin of the installation kit;
The second installation package informatin of the target version is downloaded from the server;
Judge whether the first installation package informatin installs package informatin with described second identical;
If so, then installing the installation kit;
If it is not, then forbidding installing the installation kit;
Wherein, the first installation kit information includes following one or more:
Version number, title, size;
The second installation kit information includes following one or more:
Version number, title, size.
6. the method according to claim any one of 1-5, it is characterised in that in the step for forbidding installing the installation kit
After rapid, also include:
Delete the installation kit;
And/or,
The version information of the latest edition of described program is downloaded from the server;
Upgrade tip information is generated using the version information;
When the confirmation operation for the upgrade tip information is detected, the installation kit of latest edition is downloaded from the server
Upgraded.
7. the method according to claim any one of 1-5, it is characterised in that
After the step of installation operation of the detection for the installation kit, methods described also includes:
When the mobile terminal failed cluster is detected, the data card for mobile terminal adds the network request of a certain network;
When the network request completion is added, the network is connected;
It is the interface of the process addition network for currently updating described program, to allow when the network success is connected
State process and access the network.
8. a kind of updating device of program, it is characterised in that in the terminal, the mobile terminal is provided with the first edition for application
This program, and the second edition of the described program that is stored with installation kit, described device includes installation operation detection module, version
Revocation judge module, installation kit forbid installing module and installation kit installs module:
The installation operation detection module is used to detect the installation operation for the installation kit;
Whether the version revocation judge module is used for having cancelled issue described second according to the installation operation detection service device
The installation kit of version;If so, then call the installation kit to forbid that module is installed, if it is not, then calling the installation kit to install module;
The installation kit forbids installing module for forbidding installing the installation kit;
The installation kit installs module to be used to install the installation kit, and described program is updated to described from the first version
The second edition.
9. device according to claim 8, it is characterised in that the version revocation judge module includes the detection of more new strategy
Submodule, more new strategy judging submodule, do not cancel decision sub-module and cancelled decision sub-module:
The more new strategy detection sub-module is used for the renewal of the described program issued according to the installation operation detection service device
Strategy;
The more new strategy judging submodule is used to judge whether to have from the first version to update to the second edition
More new strategy;If so, decision sub-module is not cancelled described in then calling, if it is not, having cancelled decision sub-module described in then calling;
The decision sub-module that do not cancel does not cancel the installation kit for issuing the second edition for determining server;
The decision sub-module that cancelled has cancelled the installation kit for issuing the second edition for determining server.
10. device according to claim 9, it is characterised in that the more new strategy is included from source version updating to target
The information of version;
The more new strategy detection sub-module includes:
Required parameter transmitting element, for the end message of the first version and the mobile terminal to be sent to server;
Update Policy receipt unit, for receiving what the server was returned, using the first version as source version and with institute
State the more new strategy of end message matching.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611146429.7A CN106843922B (en) | 2016-12-13 | 2016-12-13 | Program updating method and device |
CN202010631269.5A CN111813429B (en) | 2016-12-13 | 2016-12-13 | Program updating method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611146429.7A CN106843922B (en) | 2016-12-13 | 2016-12-13 | Program updating method and device |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010631269.5A Division CN111813429B (en) | 2016-12-13 | 2016-12-13 | Program updating method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106843922A true CN106843922A (en) | 2017-06-13 |
CN106843922B CN106843922B (en) | 2020-08-04 |
Family
ID=59140042
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010631269.5A Active CN111813429B (en) | 2016-12-13 | 2016-12-13 | Program updating method and device |
CN201611146429.7A Active CN106843922B (en) | 2016-12-13 | 2016-12-13 | Program updating method and device |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010631269.5A Active CN111813429B (en) | 2016-12-13 | 2016-12-13 | Program updating method and device |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN111813429B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113553090B (en) * | 2021-07-26 | 2023-07-25 | 网易(杭州)网络有限公司 | Update control method and device for client application program |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101401072A (en) * | 2006-03-10 | 2009-04-01 | 富士通株式会社 | Applicable patch selecting device and applicable patch selecting method |
US20090252325A1 (en) * | 2008-04-07 | 2009-10-08 | Microsoft Corporation | Secure content pre-distribution to designated systems |
CN102110212A (en) * | 2011-02-21 | 2011-06-29 | 北京奇虎科技有限公司 | Method and device for realizing patch amendment |
CN102855442A (en) * | 2011-02-21 | 2013-01-02 | 北京奇虎科技有限公司 | Method and device for achieving patch amendment |
CN103049692A (en) * | 2012-11-19 | 2013-04-17 | 北京小米科技有限责任公司 | Application installation method, device and facility |
CN103530155A (en) * | 2013-10-12 | 2014-01-22 | 北京奇虎科技有限公司 | Method and device for installing application program |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8201162B2 (en) * | 2001-03-19 | 2012-06-12 | Sony Corporation | Software updating system, software updating method, and software updating program |
TW200535697A (en) * | 2004-04-30 | 2005-11-01 | Hon Hai Prec Ind Co Ltd | System and method for automatic updating program |
US7590841B2 (en) * | 2005-07-19 | 2009-09-15 | Microsoft Corporation | Automatic update of computer-readable components to support a trusted environment |
CN104951336B (en) * | 2015-05-27 | 2017-11-17 | 小米科技有限责任公司 | application program installation method and device |
CN105468418A (en) * | 2015-12-09 | 2016-04-06 | 上海爱数信息技术股份有限公司 | System and method for upgrading software of smart terminal cluster |
CN106201587A (en) * | 2016-06-28 | 2016-12-07 | 青岛海信移动通信技术股份有限公司 | A kind of method for information display applying installation kit and device |
-
2016
- 2016-12-13 CN CN202010631269.5A patent/CN111813429B/en active Active
- 2016-12-13 CN CN201611146429.7A patent/CN106843922B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101401072A (en) * | 2006-03-10 | 2009-04-01 | 富士通株式会社 | Applicable patch selecting device and applicable patch selecting method |
US20090252325A1 (en) * | 2008-04-07 | 2009-10-08 | Microsoft Corporation | Secure content pre-distribution to designated systems |
CN102110212A (en) * | 2011-02-21 | 2011-06-29 | 北京奇虎科技有限公司 | Method and device for realizing patch amendment |
CN102855442A (en) * | 2011-02-21 | 2013-01-02 | 北京奇虎科技有限公司 | Method and device for achieving patch amendment |
CN103049692A (en) * | 2012-11-19 | 2013-04-17 | 北京小米科技有限责任公司 | Application installation method, device and facility |
CN103530155A (en) * | 2013-10-12 | 2014-01-22 | 北京奇虎科技有限公司 | Method and device for installing application program |
Also Published As
Publication number | Publication date |
---|---|
CN106843922B (en) | 2020-08-04 |
CN111813429B (en) | 2024-10-01 |
CN111813429A (en) | 2020-10-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3537329B1 (en) | Access control method and system, electronic device, and computer storage medium | |
CN101371225B (en) | Dependency notification | |
CN105302587B (en) | Data-updating method and device | |
EP3337219B1 (en) | Carrier configuration processing method, device and system, and computer storage medium | |
CN108108181A (en) | The function renewal method, apparatus and computer readable storage medium of application program | |
EP3656156A1 (en) | Network slice selection in a mobile network based on device characteristic | |
US20090124251A1 (en) | Method of Assessing Compatibility Between Applications and Processor Devices | |
KR101201276B1 (en) | Method, software and apparatus for performing actions on a wireless device using action lists and versioning | |
CN106681749B (en) | Local code patch updating method and device based on android platform | |
CN106126203A (en) | A kind of OTA start accelerated method and system | |
EP2266029B1 (en) | Improved application resource updates | |
CN110750286B (en) | Management method, device, system, equipment and medium for upgrading Mbn through OTA | |
CN107637110A (en) | Method for loading configuration file | |
CN104053145A (en) | Method for downloading subscription information and third party platform | |
CN112752258B (en) | eSIM card opening method, mobile phone terminal and service acceptance system | |
CN106843922A (en) | The update method and device of a kind of program | |
CN107479923A (en) | Application program updating method, apparatus and display terminal | |
US11792637B2 (en) | Managing activation and branding of an adaptively branded device | |
CN106375411A (en) | Method and device for acquiring operation data of browser | |
WO2024072387A1 (en) | Systems and methods enabling seamless sim profile transmission at subscription management data preparation (smdp+) | |
KR100642998B1 (en) | Policy message transmission method for upgrade policy of mobile | |
WO2012048632A1 (en) | Java application method and system | |
CN113672264A (en) | System upgrading method and device for embedded universal integrated circuit card and electronic equipment | |
CN108008970A (en) | Application upgrade method and device | |
CN114281459B (en) | Resource acquisition method and related product |
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 | ||
CP01 | Change in the name or title of a patent holder |
Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11 Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd. Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11 Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |