CN106445599A - Application program upgrading method and upgrading device and terminal - Google Patents

Application program upgrading method and upgrading device and terminal Download PDF

Info

Publication number
CN106445599A
CN106445599A CN201610865643.1A CN201610865643A CN106445599A CN 106445599 A CN106445599 A CN 106445599A CN 201610865643 A CN201610865643 A CN 201610865643A CN 106445599 A CN106445599 A CN 106445599A
Authority
CN
China
Prior art keywords
upgrading
application programs
application program
data packet
application
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
CN201610865643.1A
Other languages
Chinese (zh)
Other versions
CN106445599B (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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201610865643.1A priority Critical patent/CN106445599B/en
Publication of CN106445599A publication Critical patent/CN106445599A/en
Application granted granted Critical
Publication of CN106445599B publication Critical patent/CN106445599B/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 invention provides an application program upgrading method and upgrading device and a terminal. Two same application programs are installed in two mutually-independent system spaces, and the two system spaces correspond to the two application programs one to one. The application program upgrading method comprises the steps that when an upgrading data package of any one of the two application programs is downloaded for upgrading, the version of the upgrading data package and the current version of the other one of the two application programs are acquired; if the version of the upgrading data package is newer than the current version of the other application program, the upgrading data package is sent to the system space where the other application program is located, and the other application program is upgraded through the upgrading data package. According to the application program upgrading method and upgrading device and the terminal, when the application programs in multiple mutually-independent system spaces are upgraded, unnecessary system resources can be prevented from being consumed.

Description

The upgrade method of application program, update device and terminal
Technical field
The present invention relates to field of terminal technology, in particular to a kind of upgrade method of application program, a kind of application journey The update device of sequence and a kind of terminal.
Background technology
At present, can be simultaneously installed with terminal double open application program, for example, wechat is installed in terminal and is attended to anything else Wechat.Specifically, by two independent system spaces are opened up, there is identical application program in two systems space, so Just it is treated as two application programs to run, for example, has wechat in each system space, thus equivalent in terminal In multiple wechat are installed.But, when upgrading to application program, the application program in each system space need through The process that downloads, verify and install, has repeated once equivalent to same action.So not only consume and unnecessary be System resource (such as flow and electricity), wastes power consumption, it is also possible to can point out user repeatedly whether upgrade applications, cause Bad Consumer's Experience.
Therefore, how the application program in the system space separate to two is upgraded, to avoid the consumption need not The system resource that wants becomes technical problem urgently to be resolved hurrily.
Content of the invention
The present invention is based on the problems referred to above, it is proposed that a kind of new technical scheme, in the system separate to two When application program in space is upgraded, can avoid consuming unnecessary system resource.
In view of this, a first aspect of the present invention proposes a kind of upgrade method of application program, separate two Two application programs of identical are installed, one a pair of described two system spaces and described two application programs in individual system space Should, the upgrade method of the application program includes:Ascending series are being downloaded for the arbitrary application program in described two application programs When being upgraded according to bag, working as the other application programs in the version and described two application programs of the upgrading data packet is obtained Front version;If the version of the upgrading data packet is newer than the current version of the other application programs, by the upgrading data Bag is sent in the system space at other application programs place, with using the upgrading data packet to the other application journey Sequence is upgraded.
In the technical scheme, by two application programs of identical are separately mounted to separate system space In, open or open application program more to realize installation pair in same terminal.Arbitrary application journey in two application programs When sequence download upgrading data packet is upgraded, if other application programs are not upgraded, can be directly using under arbitrary application program The upgrading data packet of load is upgraded, and not only in time the application program that does not upgrade is upgraded, it is thus also avoided that do not upgrade Application program re-download upgrading data packet, waste unnecessary system resource so as to avoid.Particularly use in terminal When flow download upgrading data packet is upgraded, avoid to the full extent consuming unnecessary flow.In addition, it also avoid repeatedly Prompting user upgrades to application program, so as to lift the experience of user.
In technique scheme, it is preferable that also include:When setting signal is received, the other application journey is set The automatic upgrading authority of sequence.
In the technical scheme, by arranging the automatic upgrading authority of other application programs, so as to ensure other application journey Sequence can be smoothed out upgrading.
In any of the above-described technical scheme, it is preferable that described when setting signal is received, the other application journey is set The step of automatic upgrading authority of sequence, specifically include:If the signal that arranges is to obtain the current of the other application programs The signal for triggering during version, then arrange the authority that the other application programs do not have upgrading automatically;If or described setting is believed The signal that triggers or the other application journey when number being completed using upgrading data packet upgrading for the other application programs The signal that the current version of sequence is triggered when newer than the version of the upgrading data packet, or the current version of the other application programs The signal for triggering when this is identical with the version of the upgrading data packet, then arrange the other application programs and have upgrading automatically Authority.
In the technical scheme, during the signal for triggering when the current version of other application programs is obtained, arranging other should There is no with program the authority of upgrading automatically, other application programs repeatedly upgrading can be prevented.If in addition, the version of upgrading data packet Originally do not have the version of other application programs new, then the authority that other application programs have upgrading automatically is set, to issue new edition This when, ensures that other application programs can be upgraded automatically.
In any of the above-described technical scheme, it is preferable that by changing the automatic upgrading mark of the other application programs, come The automatic upgrading authority of the other application programs is set.
In the technical scheme, by the automatic upgrading mark of other application programs is changed, other application programs are realized Automatic upgrading authority setting, so as to ensure that the operational reliability of other application programs.
In any of the above-described technical scheme, it is preferable that lead between any two system spaces in described two system spaces Cross socket socket to be communicated.
In the technical scheme, communicated by socket between separate two systems space, that is, passed through Upgrading data packet is sent to another system space independent therewith from a system space by socket, so as to ensure that mutually The reliability for communicating between independent two systems space.
A second aspect of the present invention proposes a kind of update device of application program, in separate two systems space In two application programs of identical are installed, described two system spaces are corresponded with described two application programs, described should Included with the update device of program:Acquiring unit, for downloading liter for the arbitrary application program in described two application programs When DBMS bag is upgraded, the other application programs in the version and described two application programs of the upgrading data packet are obtained Current version;Upgrade unit, if newer than the current version of the other application programs for the version of the upgrading data packet, Then the upgrading data packet is sent in the system space at other application programs place, to use the upgrading data packet The other application programs are upgraded.
In the technical scheme, by two application programs of identical are separately mounted to separate system space In, open or open application program more to realize installation pair in same terminal.Arbitrary application journey in two application programs When sequence download upgrading data packet is upgraded, if other application programs are not upgraded, can be directly using under arbitrary application program The upgrading data packet of load is upgraded, and not only in time the application program that does not upgrade is upgraded, it is thus also avoided that do not upgrade Application program re-download upgrading data packet, waste unnecessary system resource so as to avoid.Particularly use in terminal When flow download upgrading data packet is upgraded, avoid to the full extent consuming unnecessary flow.In addition, it also avoid repeatedly Prompting user upgrades to application program, so as to lift the experience of user.
In technique scheme, it is preferable that also include:Arranging unit, for when setting signal is received, arranging institute State the automatic upgrading authority of other application programs.
In the technical scheme, by arranging the automatic upgrading authority of other application programs, so as to ensure other application journey Sequence can be smoothed out upgrading.
In any of the above-described technical scheme, it is preferable that the arranging unit is specifically for if the setting signal is to obtain The signal for triggering during the current version for taking the other application programs, then arrange the other application programs and do not have upgrading automatically Authority, if or triggering when the setting signal other application programs are completed using upgrading data packet upgrading The signal that the current version of signal or the other application programs is triggered when newer than the version of the upgrading data packet, or The signal that the current version of the other application programs is triggered when identical with the version of the upgrading data packet, then arrange described its His application program has the authority of upgrading automatically.
In the technical scheme, during the signal for triggering when the current version of other application programs is obtained, arranging other should There is no with program the authority of upgrading automatically, other application programs repeatedly upgrading can be prevented.If in addition, the version of upgrading data packet Originally do not have the version of other application programs new, then the authority that other application programs have upgrading automatically is set, to issue new edition This when, ensures that other application programs can be upgraded automatically.
In any of the above-described technical scheme, it is preferable that the arranging unit is specifically for by changing the other application The automatic upgrading mark of program, arranges the automatic upgrading authority of the other application programs.
In the technical scheme, by the automatic upgrading mark of other application programs is changed, other application programs are realized Automatic upgrading authority setting, so as to ensure that the operational reliability of other application programs.
In any of the above-described technical scheme, it is preferable that carried out by socket socket between described two system spaces Communication.
In the technical scheme, communicated by socket between separate two systems space, that is, passed through Upgrading data packet is sent to another system space independent therewith from a system space by socket, so as to ensure that mutually The reliability for communicating between independent two systems space.
A third aspect of the present invention proposes a kind of terminal, including the application program any one of technique scheme Update device, therefore, the terminal have identical with the update device of the application program any one of technique scheme Technique effect, will not be described here.
By technical scheme, the application program in the system space separate to two is upgraded When, can avoid consuming unnecessary system resource.
Description of the drawings
Fig. 1 shows the schematic flow sheet of the upgrade method of application program according to an embodiment of the invention;
Fig. 2 shows the schematic flow sheet of the upgrade method of application program according to another embodiment of the invention;
Fig. 3 shows the structural representation of the update device of application program according to an embodiment of the invention;
Fig. 4 shows the structural representation of terminal according to an embodiment of the invention;
Fig. 5 shows the structural representation of terminal according to another embodiment of the invention;
Fig. 6 shows the structural representation of terminal according to still another embodiment of the invention.
Specific embodiment
In order to the above objects, features and advantages of the present invention can be more clearly understood that, below in conjunction with the accompanying drawings and concrete real Apply mode to be further described in detail the present invention.It should be noted that in the case of not conflicting, the enforcement of the application Feature in example and embodiment can be mutually combined.
A lot of details are elaborated in the following description in order to fully understand the present invention, but, the present invention may be used also Implemented with being different from other modes described here using other, therefore, protection scope of the present invention is not by described below Specific embodiment restriction.
Fig. 1 shows the schematic flow sheet of the upgrade method of application program according to an embodiment of the invention.
As shown in figure 1, the upgrade method of application program according to an embodiment of the invention, at separate two Two application programs of identical are installed, one a pair of described two system spaces and described two application programs in system space Should, the upgrade method of the application program includes:
Step 102, when being upgraded for the arbitrary application program download upgrading data packet in described two application programs, Obtain the current version of the other application programs in the version and described two application programs of the upgrading data packet.
Step 104, if the version of the upgrading data packet is newer than the current version of the other application programs, will be described Upgrading data packet be sent to the other application programs place system space in, with using the upgrading data packet to described its He is upgraded at application program.
The version number of upgrading data packet and the current version number of other application programs can be passed through, determine upgrading data packet Whether version is newer than the current version of other application programs.
In the technical scheme, by two application programs of identical are separately mounted to separate system space In, open or open application program more to realize installation pair in same terminal.Arbitrary application journey in two application programs When sequence download upgrading data packet is upgraded, if other application programs are not upgraded, can be directly using under arbitrary application program The upgrading data packet of load is upgraded, and not only in time the application program that does not upgrade is upgraded, it is thus also avoided that do not upgrade Application program re-download upgrading data packet, waste unnecessary system resource so as to avoid.Particularly use in terminal When flow download upgrading data packet is upgraded, avoid to the full extent consuming unnecessary flow.In addition, it also avoid repeatedly Prompting user upgrades to application program, so as to lift the experience of user.
Above scheme is that the application program in the system space separate to two is upgraded, if there is three or three Individual above separate system space, then the scheme to the application program updating in the system space of three or more than three Identical with above scheme, it is no longer repeated for here.
In technique scheme, it is preferable that also include:When setting signal is received, the other application journey is set The automatic upgrading authority of sequence.
In the technical scheme, by arranging the automatic upgrading authority of other application programs, so as to ensure other application journey Sequence can be smoothed out upgrading.
In any of the above-described technical scheme, it is preferable that described when setting signal is received, the other application journey is set The step of automatic upgrading authority of sequence, specifically include:If the signal that arranges is to obtain the current of the other application programs The signal for triggering during version, then arrange the authority that the other application programs do not have upgrading automatically;If or described setting is believed The signal that triggers or the other application journey when number being completed using upgrading data packet upgrading for the other application programs The signal that the current version of sequence is triggered when newer than the version of the upgrading data packet, or the current version of the other application programs The signal for triggering when this is identical with the version of the upgrading data packet, then arrange the other application programs and have upgrading automatically Authority.
In the technical scheme, during the signal for triggering when the current version of other application programs is obtained, arranging other should There is no with program the authority of upgrading automatically, other application programs repeatedly upgrading can be prevented.If in addition, the version of upgrading data packet Originally do not have the version of other application programs new, then the authority that other application programs have upgrading automatically is set, to issue new edition This when, ensures that other application programs can be upgraded automatically.
Automatically upgrading refers to application program and downloads upgrading data packet, the upgrading that the application program is downloaded according to its own Packet is upgraded, and is not that the upgrading data that is downloaded using its attend to anything else application program or its primary application program are upgraded.
In any of the above-described technical scheme, it is preferable that by changing the automatic upgrading mark of the other application programs, come The automatic upgrading authority of the other application programs is set.
In the technical scheme, by the automatic upgrading mark of other application programs is changed, other application programs are realized Automatic upgrading authority setting, so as to ensure that the operational reliability of other application programs.
In any of the above-described technical scheme, it is preferable that carried out by socket socket between described two system spaces Communication.
In the technical scheme, communicated by socket between separate two systems space, that is, passed through Upgrading data packet is sent to another system space independent therewith from a system space by socket, so as to ensure that mutually The reliability for communicating between independent two systems space.
Below socket is explained:Two programs on network realize data by a two-way communication connection Exchange, one end of this connection is referred to as socket, a socket to be used for describing IP address and port, is the sentence of a communication chain Handle, can be used to realize the communication between different virtual machine or different computers.Main frame on internet typically runs Multiple service softwares, while providing several services, a socket is all opened in every kind of service, and is tied in a port, no Same port corresponds to different services.
Fig. 2 shows the schematic flow sheet of the upgrade method of application program according to another embodiment of the invention.
As shown in Fig. 2 the upgrade method of application program according to another embodiment of the invention, including:
Step 202, detects and primary application program is upgraded.
Step 204, downloads upgrading data packet, and primary application program is upgraded.
Step 206, whether primary application program has application program of attending to anything else, if primary application program has application program of attending to anything else, holds Row step 208, the application program if primary application program is not attended to anything else, terminates this flow process.
Step 208, sends GET_VER data to application program of attending to anything else, so that application program of attending to anything else obtains the version of itself Primary application program is responded to, and its auto_update traffic sign placement is 0, that is, to arrange application journey of attending to anything else by application program of attending to anything else Sequence does not have the authority of upgrading automatically.
Step 210, whether the version of the application program that judges to attend to anything else is relatively low, and whether the version of the concrete application program that judges to attend to anything else Lower than the version of upgrading data packet, judge attend to anything else application program version relatively low when, execution step 212, judge attend to anything else should With the version of program low when, terminate this flow process.
Step 212, sends system space of the UPDATE packet to application program place of attending to anything else, so that application program of attending to anything else The data for removing in the DATA in UPDATE packet are upgraded.
Step 214, after the completion of application program updating of attending to anything else by its auto_update traffic sign placement be 1, that is, arrange attend to anything else should There is the authority of upgrading automatically with program.
Fig. 3 shows the structural representation of the update device of application program according to an embodiment of the invention.
As shown in figure 3, the update device 300 of application program according to an embodiment of the invention, separate Two application programs of identical are installed in two systems space, described two system spaces are with described two application programs one by one Corresponding, the update device 300 of the application program includes:Acquiring unit 302 and upgrade unit 304.
Acquiring unit 302, for entering for the arbitrary application program download upgrading data packet in described two application programs During row upgrading, the current version of the other application programs in the version and described two application programs of the upgrading data packet is obtained This;Upgrade unit 304, if newer than the current version of the other application programs for the version of the upgrading data packet, will The upgrading data packet is sent in the system space at other application programs place, with using the upgrading data packet to institute State other application programs to be upgraded.
In the technical scheme, by two application programs of identical are separately mounted to separate system space In, open or open application program more to realize installation pair in same terminal.Arbitrary application journey in two application programs When sequence download upgrading data packet is upgraded, if other application programs are not upgraded, can be directly using under arbitrary application program The upgrading data packet of load is upgraded, and not only in time the application program that does not upgrade is upgraded, it is thus also avoided that do not upgrade Application program re-download upgrading data packet, waste unnecessary system resource so as to avoid.Particularly use in terminal When flow download upgrading data packet is upgraded, avoid to the full extent consuming unnecessary flow.In addition, it also avoid repeatedly Prompting user upgrades to application program, so as to lift the experience of user.
In technique scheme, it is preferable that also include:Arranging unit 306, for receive arrange signal when, if Put the automatic upgrading authority of the other application programs.
In the technical scheme, by arranging the automatic upgrading authority of other application programs, so as to ensure other application journey Sequence can be smoothed out upgrading.
In any of the above-described technical scheme, it is preferable that the arranging unit 306 is specifically for if the setting signal is The signal for triggering when the current version of the other application programs is obtained, then arrange the other application programs and do not have automatically The authority of upgrading, if or described setting signal be the other application programs using the upgrading data packet upgrading complete when touch The signal that the signal that sends out or the current version of the other application programs are triggered when newer than the version of the upgrading data packet, Or the signal that the current version of the other application programs is triggered when identical with the version of the upgrading data packet, then institute is set State the authority that other application programs have upgrading automatically.
In the technical scheme, during the signal for triggering when the current version of other application programs is obtained, arranging other should There is no with program the authority of upgrading automatically, other application programs repeatedly upgrading can be prevented.If in addition, the version of upgrading data packet Originally do not have the version of other application programs new, then the authority that other application programs have upgrading automatically is set, to issue new edition This when, ensures that other application programs can be upgraded automatically.
In any of the above-described technical scheme, it is preferable that the arranging unit 306 specifically for, by modification described other The automatic upgrading mark of application program, arranges the automatic upgrading authority of the other application programs.
In the technical scheme, by the automatic upgrading mark of other application programs is changed, other application programs are realized Automatic upgrading authority setting, so as to ensure that the operational reliability of other application programs.
In any of the above-described technical scheme, it is preferable that carried out by socket socket between described two system spaces Communication.
In the technical scheme, communicated by socket between separate two systems space, that is, passed through Upgrading data packet is sent to another system space independent therewith from a system space by socket, so as to ensure that mutually The reliability for communicating between independent two systems space.
Fig. 4 shows the structural representation of terminal according to an embodiment of the invention.
As shown in figure 4, terminal according to an embodiment of the invention 400, including any one of technique scheme institute The update device 300 of the application program that states, therefore, the terminal 400 has and the application any one of technique scheme The 300 identical technique effect of update device of program, will not be described here.
Fig. 5 shows the structural representation of terminal according to another embodiment of the invention.
As shown in figure 5, terminal 500 according to another embodiment of the invention, is provided with two mutually in the terminal 500 Independent system space, is provided with primary application program in one of system space, is provided with main answering in another system space Application program of attending to anything else with program.So system bottom will by primary application program and application program of attending to anything else be considered as two different Application program, realizes the purpose that application is attended to anything else.When application program is opened in realization pair, have an identifier to identify whether to be divided Body mistake, for example, identified using variable mDuplicate, when attending to anything else to certain application program, this identifier is set to 1. Two separate system spaces are connected by socket socket, for transmission data in two systems space.Using The pattern of request/response carrys out transmission data.The form of data may be defined as the form of { command, data }, command field Represent order, that is, representing needs operation to be performed, data field represents data, that is, the data for carrying when executing operation.For example when When command is GET_VER, the operation of execution is for obtaining version number.Then Requested Party receive this request after, according to Command field requires to get the version number of itself, by way of response, the version number of oneself is responded to requesting party, this Sample just completes the interaction in two systems space.When command field is UPDATA, expression will carry out updating operation, data The data of middle carrying are application upgrade data, and Requested Party, will be by the number in data field after UPDATE order is received According to the corresponding catalogue being put in routine data area, upgrading is completed.Wherein, the comprising the following steps that of upgrading.
Primary application program and its upgrading detection module for attending to anything else the one application program in application program detect its download When upgrading data packet is upgraded, this application program first checks for whether mDuplicate identifier is 1, represents if 1 This application program have attend to anything else application program or itself for attending to anything else application program, need to carry out follow-up upgrading to judge and upgrade Operation.If this identifier is that 0, then it represents that this application program is not attended to anything else, upgrading application program itself, does not carry out the later stage The operation of application program updating correlation of attending to anything else.
When the upgrading detection module of certain application program such as primary application program detects identifier of being upgraded and attended to anything else When mDuplicate is 1, then the data of { GET_VER, null } are sent to application program of attending to anything else, application program of attending to anything else is connecing After receiving this data, command is judged for GET_VER, i.e. primary application program response obtains the current version number of oneself, does and upgrades Front preparation, application program of now attending to anything else needs to do following two steps:
First, oneself current version number, such as V1 is obtained, and main application is replied to by the response forms of { GET_VER, V1 } Program.
2nd, oneself automatic upgrading mark (auto_update) is set to not upgrade automatically, will auto_update 0 is set to, to prevent application program repeatedly upgrading of attending to anything else.
Primary application program needs to do three below step:
First, upgrade itself application program, the corresponding mesh file in upgrading data packet being put in routine data area Record.
2nd, after the response of { GET_VER, V1 } of application program transmission of attending to anything else is received, by the current of application program of attending to anything else The version number of version number and upgrading data packet is contrasted, if the version number of upgrading data packet is more current than application program of attending to anything else Version number is new, then carry out the updating operation in step 3, and data are sent out by otherwise primary application program with the form of { UPDATE, NULL } Application program of attending to anything else is given, when application program of attending to anything else receives this data, judges that command is NULL for UPDATE, data, according to For NULL, data determines which need not be upgraded, application program of attending to anything else is automatically updated identifier (auto_update) weight Newly be set to and can upgrade automatically, will auto_update be set to 1, the automatically updating of the application program later stage that do not affect to attend to anything else.
3rd, according to the judgement in step 2, when upgrading data packet version number than application program of attending to anything else current version number When new, upgrading data packet is sent to, with the form of { UPDATE, DATA }, application program of attending to anything else, application program of attending to anything else receives this During packet, command being detected for UPDATE, and data being not sky, representing oneself needs upgrading, and DATA data are stored in Updating operation is completed in corresponding catalogue in its routine data area.After updating operation is completed, equally by application program of attending to anything else Automatically upgrading mark (auto_update) is set to and can upgrade automatically, will auto_update be set to 1, do not affect the later stage to attend to anything else The upgrading of application program.
The benefit of aforesaid operations also resides in and is not limited to primary application program and goes upgrading to attend to anything else application program, when application journey of attending to anything else Sequence is first detected when being upgraded using upgrading data packet, can equally remove primary application program of upgrading, and has accomplished bidirectionally updating, spirit Activity height.
It is related to two identifiers, respectively mDuplicate and auto_update, the phase of the two marks in this motion Pass information is as shown in table 1:
Table 1
The data structure being related in this programme is as follows:
Fig. 6 shows the structural representation of terminal according to still another embodiment of the invention.
As shown in fig. 6, terminal 600 according to still another embodiment of the invention, including:Processor 602, memorizer 604 With communication bus 606.Communication bus 606 is used for realizing the connection communication between processor 602 and memorizer 604.Memorizer 604 Can be high-speed RAM (Random Access Memory, random access memory), or nonvolatile memory (non- Volatile memory), for example, at least one disk memory.Processor 602 includes CPU (Central Processing Unit, central processing unit).Wherein, by calling the instruction for storing in memorizer 604, processor 602 is made to execute following step Suddenly:When being upgraded for the arbitrary application program download upgrading data packet in two application programs, the upgrading data are obtained The current version of the other application programs in the version of bag and described two application programs;If the version ratio of the upgrading data packet The current version of the other application programs is new, then by what the upgrading data packet was sent to other application programs place be In system space, to be upgraded to the other application programs using the upgrading data packet.
Preferably, processor 602 is additionally operable to, and when setting signal is received, arranges the automatic of the other application programs Upgrading authority.
Preferably, processor 602 is specifically for if the signal that arranges is to obtain the current of the other application programs The signal for triggering during version, then arrange the authority that the other application programs do not have upgrading automatically;If or described setting is believed The signal that triggers or the other application journey when number being completed using upgrading data packet upgrading for the other application programs The signal that the current version of sequence is triggered when newer than the version of the upgrading data packet, or the current version of the other application programs The signal for triggering when this is identical with the version number of the upgrading data packet, then arrange the other application programs and have upgrading automatically Authority.
Preferably, processor 602 is specifically for by changing the automatic upgrading mark of the other application programs, setting Put the automatic upgrading authority of the other application programs.
Preferably, communicated by socket socket between described two system spaces.
Technical scheme is described in detail above in association with accompanying drawing, by technical scheme, to two When application program in separate system space is upgraded, can avoid consuming unnecessary system resource.
The preferred embodiments of the present invention are the foregoing is only, the present invention is not limited to, for the skill of this area For art personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, made any repair Change, equivalent, improvement etc., should be included within the scope of the present invention.

Claims (11)

1. a kind of upgrade method of application program, it is characterised in that be provided with separate two systems space identical Two application programs, described two system spaces are corresponded with described two application programs, the upgrading of the application program Method includes:
When being upgraded for the arbitrary application program download upgrading data packet in described two application programs, the upgrading is obtained The current version of the other application programs in the version of packet and described two application programs;
If the version of the upgrading data packet is newer than the current version of the other application programs, the upgrading data packet is sent out It is sent in the system space at other application programs place, to be entered to the other application programs using the upgrading data packet Row upgrading.
2. the upgrade method of application program according to claim 1, it is characterised in that also include:
When setting signal is received, the automatic upgrading authority of the other application programs is set.
3. the upgrade method of application program according to claim 2, it is characterised in that described receiving setting signal When, arrange the other application programs automatic upgrading authority the step of, specifically include:
If the signal that arranges is the signal for triggering when the current version of the other application programs is obtained, arrange described its His application program does not have the authority of upgrading automatically;Or
If described arrange signal that signal triggered when to be the other application programs completed using upgrading data packet upgrading or The signal that the current version of other application programs described in person is triggered when newer than the version of the upgrading data packet, or described other The signal that the current version of application program is triggered when identical with the version of the upgrading data packet, then arrange the other application journey Sequence has the authority of upgrading automatically.
4. the upgrade method of application program according to claim 2, it is characterised in that
By changing the automatic upgrading mark of the other application programs, the automatic upgrading power of the other application programs is set Limit.
5. the upgrade method of application program according to any one of claim 1 to 4, it is characterised in that
Communicated by socket socket between described two system spaces.
6. a kind of update device of application program, it is characterised in that be provided with separate two systems space identical Two application programs, described two system spaces are corresponded with described two application programs, the upgrading of the application program Device includes:
Acquiring unit, for being upgraded for the arbitrary application program download upgrading data packet in described two application programs When, obtain the current version of the other application programs in the version and described two application programs of the upgrading data packet;
Upgrade unit, if newer than the current version of the other application programs for the version of the upgrading data packet, by institute State in the system space that upgrading data packet is sent to other application programs place, with using the upgrading data packet to described Other application programs are upgraded.
7. the update device of application program according to claim 6, it is characterised in that also include:
Arranging unit, for when setting signal is received, arranging the automatic upgrading authority of the other application programs.
8. the update device of application program according to claim 7, it is characterised in that the arranging unit specifically for,
If the signal that arranges is the signal for triggering when the current version of the other application programs is obtained, arrange described its His application program does not have the authority of upgrading automatically, or
If described arrange signal that signal triggered when to be the other application programs completed using upgrading data packet upgrading or The signal that the current version of other application programs described in person is triggered when newer than the version of the upgrading data packet, or described other The signal that the current version of application program is triggered when identical with the version of the upgrading data packet, then arrange the other application journey Sequence has the authority of upgrading automatically.
9. the update device of application program according to claim 7, it is characterised in that
The arranging unit specifically for, by changing the automatic upgrading mark of the other application programs, arrange described its The automatic upgrading authority of his application program.
10. the update device of the application program according to any one of claim 6 to 9, it is characterised in that
Communicated by socket socket between described two system spaces.
11. a kind of terminals, it is characterised in that include:The upgrading dress of the application program as any one of claim 6 to 10 Put.
CN201610865643.1A 2016-09-29 2016-09-29 Application program upgrading method and device and terminal Active CN106445599B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610865643.1A CN106445599B (en) 2016-09-29 2016-09-29 Application program upgrading method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610865643.1A CN106445599B (en) 2016-09-29 2016-09-29 Application program upgrading method and device and terminal

Publications (2)

Publication Number Publication Date
CN106445599A true CN106445599A (en) 2017-02-22
CN106445599B CN106445599B (en) 2023-03-10

Family

ID=58171181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610865643.1A Active CN106445599B (en) 2016-09-29 2016-09-29 Application program upgrading method and device and terminal

Country Status (1)

Country Link
CN (1) CN106445599B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107506222A (en) * 2017-09-28 2017-12-22 努比亚技术有限公司 A kind of application upgrade method, terminal and computer-readable recording medium
CN112449245A (en) * 2019-09-05 2021-03-05 海信视像科技股份有限公司 Method for displaying application upgrading progress of dual-system display equipment and display equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1690964A (en) * 2004-04-23 2005-11-02 英特维数位科技股份有限公司 Computer system with two operating systems capable of automatically downloading and updating data and method therefor
CN104168557A (en) * 2014-08-28 2014-11-26 酷派软件技术(深圳)有限公司 Upgrading method for operating systems and upgrading device for operating systems
CN104461749A (en) * 2014-12-30 2015-03-25 宇龙计算机通信科技(深圳)有限公司 Application program synchronization method and device of multi-system terminal and terminal
CN105722119A (en) * 2016-01-27 2016-06-29 努比亚技术有限公司 Mobile terminal and system upgrade method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1690964A (en) * 2004-04-23 2005-11-02 英特维数位科技股份有限公司 Computer system with two operating systems capable of automatically downloading and updating data and method therefor
CN104168557A (en) * 2014-08-28 2014-11-26 酷派软件技术(深圳)有限公司 Upgrading method for operating systems and upgrading device for operating systems
CN104461749A (en) * 2014-12-30 2015-03-25 宇龙计算机通信科技(深圳)有限公司 Application program synchronization method and device of multi-system terminal and terminal
CN105722119A (en) * 2016-01-27 2016-06-29 努比亚技术有限公司 Mobile terminal and system upgrade method thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107506222A (en) * 2017-09-28 2017-12-22 努比亚技术有限公司 A kind of application upgrade method, terminal and computer-readable recording medium
CN112449245A (en) * 2019-09-05 2021-03-05 海信视像科技股份有限公司 Method for displaying application upgrading progress of dual-system display equipment and display equipment
CN112449245B (en) * 2019-09-05 2022-12-16 海信视像科技股份有限公司 Method for displaying application upgrading progress of dual-system display equipment and display equipment

Also Published As

Publication number Publication date
CN106445599B (en) 2023-03-10

Similar Documents

Publication Publication Date Title
CN107896162B (en) Deployment method and device of monitoring system, computer equipment and storage medium
CN110413288B (en) Application deployment method, device, server and storage medium
CN104516783B (en) Authority control method and device
CN104252342B (en) Embedded application implementation method and device capable of configuring parameters
CN108536519A (en) The automatic method and terminal device for building Kubernetes host nodes
CN107992308B (en) Plug-in management method for android terminal application program
CN104750528B (en) A kind of assembly management method and apparatus in Android program
CN109684054A (en) Information processing method and device, electronic equipment and memory
CN109656807A (en) Interface mock test method, device, equipment and storage medium based on information security
CN106708597A (en) Method, device and system for creating cluster environment on the basis of Openstack
CN103425511A (en) System and method of installing and deploying application software in cloud computing environment
CN109814524A (en) A kind of Vehicular diagnostic method, apparatus and system
CN111580926A (en) Model publishing method, model deploying method, model publishing device, model deploying device, model publishing equipment and storage medium
CN105159721A (en) Method of multi-mode startup intelligent equipment and system of multi-mode startup intelligent equipment
CN105765533A (en) Method and apparatus for firmware virtualization
CN105897902B (en) It is a kind of to start locally applied method and system by browser
US20220214931A1 (en) System and method for exposing features of integration platform adapters as first-class actions in an orchestration template
CN106502717A (en) application program operation method and device
CN106445599A (en) Application program upgrading method and upgrading device and terminal
CN112860251A (en) Method and system for constructing website front end
CN109740342A (en) Obtain method, system, computer installation and storage medium that shell executes permission
CN101236510B (en) EJB cluster failure recovery processing method and system
CN112527449A (en) Cluster node label creating method and system, electronic device and storage medium
CN107491316A (en) Extended method, device and the electronic equipment of baseboard management controller
US20170286046A1 (en) Universal application pinning

Legal Events

Date Code Title Description
C06 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