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

Application program upgrading method and device and terminal Download PDF

Info

Publication number
CN106445599B
CN106445599B CN201610865643.1A CN201610865643A CN106445599B CN 106445599 B CN106445599 B CN 106445599B CN 201610865643 A CN201610865643 A CN 201610865643A CN 106445599 B CN106445599 B CN 106445599B
Authority
CN
China
Prior art keywords
upgrading
application program
application programs
application
data packet
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.)
Active
Application number
CN201610865643.1A
Other languages
Chinese (zh)
Other versions
CN106445599A (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

Images

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

Abstract

The invention provides an upgrading method, an upgrading device and a terminal of application programs, wherein two identical application programs are installed in two mutually independent system spaces, the two system spaces correspond to the two application programs one by one, and the upgrading method of the application programs comprises the following steps: when an upgrading data package is downloaded for any one of the two application programs to be upgraded, acquiring the version of the upgrading data package and the current version of the other application program of the two application programs; and if the version of the upgrading data packet is newer than the current version of the other application programs, sending the upgrading data packet to a system space where the other application programs are located so as to upgrade the other application programs by using the upgrading data packet. By the technical scheme of the invention, unnecessary system resources can be prevented from being consumed when the application programs in a plurality of mutually independent system spaces are upgraded.

Description

Application program upgrading method and device and terminal
Technical Field
The invention relates to the technical field of terminals, in particular to an application program upgrading method, an application program upgrading device and a terminal.
Background
Currently, a terminal can be simultaneously installed with a double-open application, for example, a WeChat and an individual WeChat. Specifically, by opening up two independent system spaces, in which the same application is present, it is considered that two applications are running, for example, there is a WeChat in each system space, which is equivalent to installing a plurality of WeChats in the terminal. However, when upgrading the application program, the application program in each system space needs to go through the processes of downloading, checking and installing, which is equivalent to that the same action is repeatedly executed once. This not only consumes unnecessary system resources (e.g., traffic and power), wasting power consumption, but may also prompt the user whether to upgrade the application many times, resulting in poor user experience.
Therefore, how to upgrade the application programs in two mutually independent system spaces to avoid consuming unnecessary system resources becomes an urgent technical problem to be solved.
Disclosure of Invention
The present invention is based on the above problems, and provides a new technical solution, which can avoid unnecessary system resource consumption when upgrading the application programs in two mutually independent system spaces.
In view of this, a first aspect of the present invention provides an application program upgrading method, in which two identical application programs are installed in two mutually independent system spaces, and the two system spaces correspond to the two application programs one to one, and the application program upgrading method includes: when an upgrading data package is downloaded for any one of the two application programs to be upgraded, acquiring the version of the upgrading data package and the current version of the other application program of the two application programs; and if the version of the upgrading data packet is newer than the current version of the other application programs, sending the upgrading data packet to a system space where the other application programs are located so as to upgrade the other application programs by using the upgrading data packet.
In the technical scheme, two identical application programs are respectively installed in mutually independent system spaces, so that double-open or multi-open application programs are installed on the same terminal. When any application program of the two application programs downloads the upgrade data packet for upgrading, if other application programs are not upgraded, the upgrade data packet downloaded by any application program can be directly used for upgrading, so that the application programs which are not upgraded are upgraded in time, the upgrade data packet is prevented from being downloaded again by the application programs which are not upgraded, and unnecessary system resources are prevented from being wasted. Especially, when the terminal uses the flow to download the upgrade data packet for upgrading, unnecessary flow consumption is avoided to the maximum extent. In addition, the situation that the user is prompted to upgrade the application program for multiple times is avoided, and therefore the use experience of the user is improved.
In the above technical solution, preferably, the method further includes: and when a setting signal is received, setting the automatic upgrading permission of the other application programs.
In the technical scheme, the automatic upgrading authority of other application programs is set, so that the other application programs can be smoothly upgraded.
In any one of the above technical solutions, preferably, the step of setting the automatic upgrade permission of the other application program when the setting signal is received specifically includes: if the setting signal is a signal triggered when the current version of the other application program is acquired, setting that the other application program does not have the authority of automatic upgrading; or if the setting signal is a signal triggered when the other application program finishes upgrading by using the upgrading data packet, or a signal triggered when the current version of the other application program is newer than the version of the upgrading data packet, or a signal triggered when the current version of the other application program is the same as the version of the upgrading data packet, setting the other application program to have the authority of automatic upgrading.
In the technical scheme, when the signal triggered when the current version of other application program is acquired, the other application program is set to have no authority of automatic upgrading, so that the other application program can be prevented from being repeatedly upgraded. In addition, if the version of the upgrade data packet is not new than the versions of other application programs, the other application programs are set to have the authority of automatic upgrade, so that the other application programs can be automatically upgraded when the new version is released.
In any of the above technical solutions, preferably, the automatic upgrade authority of the other application program is set by modifying the automatic upgrade identifier of the other application program.
In the technical scheme, the automatic upgrading permission of other application programs is set by modifying the automatic upgrading identification of other application programs, so that the operation reliability of other application programs is ensured.
In any of the above technical solutions, preferably, any two of the two system spaces communicate with each other through a socket.
In the technical scheme, two mutually independent system spaces are communicated through a socket, namely, an upgrade data packet is sent to the other system space independent from the system space through the socket, so that the reliability of communication between the two mutually independent system spaces is ensured.
A second aspect of the present invention provides an application program upgrading apparatus, in which two identical application programs are installed in two mutually independent system spaces, and the two system spaces correspond to the two application programs one to one, and the application program upgrading apparatus includes: the device comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring the version of an upgrade data packet and the current version of other application programs in the two application programs when the upgrade data packet is downloaded for any one of the two application programs for upgrading; and the upgrading unit is used for sending the upgrading data packet to a system space where the other application programs are located if the version of the upgrading data packet is newer than the current version of the other application programs so as to upgrade the other application programs by using the upgrading data packet.
In the technical scheme, two identical application programs are respectively installed in mutually independent system spaces, so that double-open or multi-open application programs are installed on the same terminal. When any application program of the two application programs downloads the upgrade data packet for upgrading, if other application programs are not upgraded, the upgrade data packet downloaded by any application program can be directly used for upgrading, so that the application programs which are not upgraded are upgraded in time, the upgrade data packet is prevented from being downloaded again by the application programs which are not upgraded, and unnecessary system resources are prevented from being wasted. Especially, when the terminal uses the flow to download the upgrade data packet for upgrading, unnecessary flow consumption is avoided to the maximum extent. In addition, the situation that the user is prompted to upgrade the application program for multiple times is avoided, and therefore the use experience of the user is improved.
In the above technical solution, preferably, the method further includes: and the setting unit is used for setting the automatic upgrading permission of the other application programs when receiving the setting signal.
In the technical scheme, the automatic upgrading authority of other application programs is set, so that the other application programs can be smoothly upgraded.
In any of the above technical solutions, preferably, the setting unit is specifically configured to set that the other application program does not have an authority to be automatically upgraded if the setting signal is a signal triggered when the current version of the other application program is obtained, or set that the other application program has an authority to be automatically upgraded if the setting signal is a signal triggered when the other application program completes upgrading by using the upgrade data package, or a signal triggered when the current version of the other application program is newer than the version of the upgrade data package, or a signal triggered when the current version of the other application program is the same as the version of the upgrade data package.
In the technical scheme, when the signal triggered when the current version of other application program is acquired, the other application program is set to have no authority of automatic upgrading, so that the other application program can be prevented from being repeatedly upgraded. In addition, if the version of the upgrade data packet is not new than the versions of other application programs, the other application programs are set to have the authority of automatic upgrade, so that the other application programs can be automatically upgraded when the new version is released.
In any of the foregoing technical solutions, preferably, the setting unit is specifically configured to set the automatic upgrade permission of the other application program by modifying the automatic upgrade identifier of the other application program.
In the technical scheme, the automatic upgrading authority of other application programs is set by modifying the automatic upgrading identifications of the other application programs, so that the operation reliability of the other application programs is ensured.
In any of the above technical solutions, preferably, the two system spaces communicate with each other through a socket.
In the technical scheme, two mutually independent system spaces are communicated through a socket, namely, an upgrade data packet is sent to the other system space independent from the system space through the socket, so that the reliability of communication between the two mutually independent system spaces is ensured.
A third aspect of the present invention provides a terminal, including the apparatus for upgrading an application program according to any one of the foregoing technical solutions, so that the terminal has the same technical effects as the apparatus for upgrading an application program according to any one of the foregoing technical solutions, and details are not repeated here.
By the technical scheme of the invention, unnecessary system resources can be avoided being consumed when the application programs in two mutually independent system spaces are upgraded.
Drawings
FIG. 1 shows a flow diagram of a method for upgrading an application according to one embodiment of the invention;
FIG. 2 shows a flow diagram of a method for upgrading an application according to another embodiment of the invention;
fig. 3 is a schematic structural diagram of an application program upgrading apparatus according to an embodiment of the present invention;
fig. 4 shows a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 5 shows a schematic configuration diagram of a terminal according to another embodiment of the present invention;
fig. 6 shows a schematic structural diagram of a terminal according to still another embodiment of the present invention.
Detailed Description
So that the manner in which the above recited objects, features and advantages of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to the embodiments thereof which are illustrated in the appended drawings. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described herein, and therefore the scope of the present invention is not limited by the specific embodiments disclosed below.
Fig. 1 shows a flow diagram of an upgrade method of an application according to an embodiment of the present invention.
As shown in fig. 1, according to an application program upgrading method of an embodiment of the present invention, two identical application programs are installed in two mutually independent system spaces, and the two system spaces correspond to the two application programs one to one, and the application program upgrading method includes:
and 102, when an upgrading data package is downloaded for any one of the two application programs for upgrading, acquiring the version of the upgrading data package and the current version of the other application program of the two application programs.
And 104, if the version of the upgrading data packet is newer than the current version of the other application program, sending the upgrading data packet to a system space where the other application program is located so as to upgrade the other application program by using the upgrading data packet.
Whether the version of the upgrade data package is newer than the current versions of the other application programs may be determined by the version number of the upgrade data package and the current version numbers of the other application programs.
In the technical scheme, two identical application programs are respectively installed in mutually independent system spaces, so that double-open or multi-open application programs are installed on the same terminal. When any application program of the two application programs downloads the upgrade data packet for upgrading, if other application programs are not upgraded, the upgrade data packet downloaded by any application program can be directly used for upgrading, so that the application programs which are not upgraded are upgraded in time, the upgrade data packet is prevented from being downloaded again by the application programs which are not upgraded, and unnecessary system resources are prevented from being wasted. Especially, when the terminal uses the flow to download the upgrade data packet for upgrading, unnecessary flow consumption is avoided to the maximum extent. In addition, the situation that the user is prompted to upgrade the application program for multiple times is avoided, and therefore the use experience of the user is improved.
The above scheme is to upgrade the application programs in two mutually independent system spaces, and if there are three or more mutually independent system spaces, the scheme for upgrading the application programs in three or more system spaces is the same as the above scheme, and is not repeated here.
In the above technical solution, preferably, the method further includes: and when a setting signal is received, setting the automatic upgrading permission of the other application programs.
In the technical scheme, the automatic upgrading authority of other application programs is set, so that the other application programs can be smoothly upgraded.
In any one of the above technical solutions, preferably, the step of setting the automatic upgrade permission of the other application program when the setting signal is received specifically includes: if the setting signal is a signal triggered when the current version of the other application program is acquired, setting that the other application program does not have the authority of automatic upgrading; or if the setting signal is a signal triggered when the other application program finishes upgrading by using the upgrading data packet, or a signal triggered when the current version of the other application program is newer than the version of the upgrading data packet, or a signal triggered when the current version of the other application program is the same as the version of the upgrading data packet, setting the other application program to have the authority of automatic upgrading.
In the technical scheme, when the signal triggered when the current version of other application program is acquired, the other application program is set to have no authority of automatic upgrading, so that the other application program can be prevented from being repeatedly upgraded. In addition, if the version of the upgrade data packet is not new than the versions of other application programs, the other application programs are set to have the authority of automatic upgrade, so that the other application programs can be automatically upgraded when the new version is released.
Automatic upgrade refers to an application downloading an upgrade data package, where the application upgrades according to the upgrade data package downloaded by itself, but does not upgrade using upgrade data downloaded by its own application or its main application.
In any of the above technical solutions, preferably, the automatic upgrade authority of the other application program is set by modifying the automatic upgrade identifier of the other application program.
In the technical scheme, the automatic upgrading permission of other application programs is set by modifying the automatic upgrading identification of other application programs, so that the operation reliability of other application programs is ensured.
In any of the above technical solutions, preferably, the two system spaces communicate with each other through a socket.
In the technical scheme, two mutually independent system spaces are communicated through a socket, namely, an upgrade data packet is sent to the other system space independent from the system space through the socket, so that the reliability of communication between the two mutually independent system spaces is ensured.
The socket is explained below: two programs on the network realize data exchange through a bidirectional communication connection, one end of the connection is called a socket, the socket is used for describing IP addresses and ports, and the socket is a handle of a communication chain and can be used for realizing communication between different virtual machines or different computers. A host on the Internet typically runs a plurality of service software, and provides several services at the same time, each service opens a socket and binds to a port, and different ports correspond to different services.
Fig. 2 is a flowchart illustrating an upgrade method of an application according to another embodiment of the present invention.
As shown in fig. 2, the method for upgrading an application according to another embodiment of the present invention includes:
step 202, detecting upgrading of the main application program.
And step 204, downloading the upgrading data packet and upgrading the main application program.
And step 206, judging whether the main application program has the body-divided application program, if so, executing step 208, and if not, ending the process.
And step 208, sending the GET _ VER data to the body-divided application program, so that the body-divided application program obtains a version response of the body-divided application program to the main application program, and setting an auto _ update flag of the body-divided application program to be 0 by the body-divided application program, namely setting the body-divided application program not to have the authority of automatic upgrading.
Step 210, judging whether the version of the self-body application program is lower, specifically judging whether the version of the self-body application program is lower than the version of the upgrading data packet, executing step 212 when judging that the version of the self-body application program is lower, and ending the process when judging that the version of the self-body application program is not lower.
And step 212, sending the UPDATE DATA packet to a system space where the personal identification application program is located, so that the personal identification application program removes DATA in the UPDATE DATA packet for upgrading.
And step 214, after the upgrading of the body-divided application program is finished, setting the auto _ update flag of the body-divided application program to be 1, namely setting the body-divided application program to have the authority of automatic upgrading.
Fig. 3 is a schematic structural diagram of an application program upgrading apparatus according to an embodiment of the present invention.
As shown in fig. 3, an apparatus 300 for upgrading an application according to an embodiment of the present invention installs two identical applications in two system spaces independent of each other, where the two system spaces correspond to the two applications one to one, and the apparatus 300 for upgrading an application includes: an acquisition unit 302 and an upgrade unit 304.
An obtaining unit 302, configured to obtain a version of an upgrade data package and a current version of another application program in the two application programs when the upgrade data package is downloaded for upgrading of any application program in the two application programs; an upgrading unit 304, configured to send the upgrade data package to a system space where the other application program is located if the version of the upgrade data package is newer than the current version of the other application program, so as to upgrade the other application program by using the upgrade data package.
In the technical scheme, two identical application programs are respectively installed in mutually independent system spaces, so that double-open or multi-open application programs are installed on the same terminal. When any application program of the two application programs downloads the upgrade data packet for upgrading, if other application programs are not upgraded, the upgrade data packet downloaded by any application program can be directly used for upgrading, so that the application programs which are not upgraded are upgraded in time, the upgrade data packet is prevented from being downloaded again by the application programs which are not upgraded, and unnecessary system resources are prevented from being wasted. Especially, when the terminal uses the flow to download the upgrade data packet for upgrading, unnecessary flow consumption is avoided to the maximum extent. In addition, the situation that the user is prompted to upgrade the application program for multiple times is avoided, and therefore the use experience of the user is improved.
In the above technical solution, preferably, the method further includes: a setting unit 306, configured to set an automatic upgrade permission of the other application program when receiving the setting signal.
In the technical scheme, the automatic upgrading authority of other application programs is set, so that the other application programs can be smoothly upgraded.
In any of the foregoing technical solutions, preferably, the setting unit 306 is specifically configured to set that the other application program does not have an authority to be automatically upgraded if the setting signal is a signal triggered when the current version of the other application program is obtained, or set that the other application program has an authority to be automatically upgraded if the setting signal is a signal triggered when the other application program completes upgrading by using the upgrade data package, or a signal triggered when the current version of the other application program is newer than the version of the upgrade data package, or a signal triggered when the current version of the other application program is the same as the version of the upgrade data package.
In the technical scheme, when the signal triggered when the current version of other application program is acquired, the other application program is set to have no authority of automatic upgrading, so that the other application program can be prevented from being repeatedly upgraded. In addition, if the version of the upgrade data packet is not new than the versions of other application programs, the other application programs are set to have the authority of automatic upgrade, so that the other application programs can be automatically upgraded when the new version is released.
In any of the foregoing technical solutions, preferably, the setting unit 306 is specifically configured to set the automatic upgrade permission of the other application program by modifying the automatic upgrade identifier of the other application program.
In the technical scheme, the automatic upgrading permission of other application programs is set by modifying the automatic upgrading identification of other application programs, so that the operation reliability of other application programs is ensured.
In any of the above technical solutions, preferably, the two system spaces communicate with each other through a socket.
In the technical scheme, two mutually independent system spaces are communicated through a socket, namely, an upgrade data packet is sent to the other system space independent from the system space through the socket, so that the reliability of communication between the two mutually independent system spaces is ensured.
Fig. 4 shows a schematic structural diagram of a terminal according to an embodiment of the present invention.
As shown in fig. 4, the terminal 400 according to an embodiment of the present invention includes the upgrading apparatus 300 for an application program according to any one of the above technical solutions, and therefore, the terminal 400 has the same technical effects as the upgrading apparatus 300 for an application program according to any one of the above technical solutions, and is not described herein again.
Fig. 5 shows a schematic configuration diagram of a terminal according to another embodiment of the present invention.
As shown in fig. 5, in a terminal 500 according to another embodiment of the present invention, two mutually independent system spaces are provided in the terminal 500, wherein a main application is installed in one system space, and an avatar application of the main application is installed in the other system space. Therefore, the system bottom layer can regard the main application program and the body-separated application program as two different application programs, and the purpose of applying the body-separated application program is achieved. In implementing a dual-open application, there is an identifier to identify whether it has been differentiated, for example, using the variable mDuplicate, and when an application is differentiated, the identifier is set to 1. Two mutually independent system spaces are connected by a socket and are used for transmitting data in the two system spaces. The request/response mode is used to transmit data. The form of data may be defined as { command, data }, where the command field represents a command, i.e., an operation that needs to be performed, and the data field represents data, i.e., data carried when the operation is performed. For example, when command is GET _ VER, the operation performed is to obtain the version number. After receiving the request, the requested party acquires the version number of the requested party according to the demand field requirement, and responds the version number of the requested party to the requesting party in a response mode, so that the interaction of the two system spaces is completed. When the command field is UPDATA, the upgrading operation is performed, the data carried in the data is application upgrading data, and after the requested party receives an UPDATE command, the data in the data field is placed into a corresponding directory in the program data area to complete the upgrading. The upgrading method comprises the following specific steps.
When an upgrade detection module of one application program of the main application program and the split application programs detects that the download upgrade data packet is upgraded, the application program firstly checks whether the mDuplicate identifier is 1, if the mDuplicate identifier is 1, the application program has the split application program or is the split application program, and subsequent upgrade judgment and upgrade operation are required. If the identifier is 0, the application program is not distinguished, only the application program is upgraded, and the operation related to later-stage distinguishing application program upgrading is not carried out.
When an application program, such as an upgrade detection module of a host application program, detects that upgrade is performed and an identifier mdiplicate of a sub-body is 1, sending data of { GET _ VER, null } to the sub-body application program, after receiving the data, the sub-body application program judges that a command is GET _ VER, that is, the host application program responds to obtain a current version number of the application program itself to prepare before upgrade, and at this time, the sub-body application program needs to perform the following two steps:
1. and acquiring the current version number of the user, such as V1, and replying to the host application program in a response form of { GET _ VER, V1 }.
2. The auto _ update is set to 0 to prevent the split application from being upgraded repeatedly.
The main application needs to do the following three steps:
1. and upgrading the application program of the self, and putting the files in the upgrading data packet into the corresponding directories in the program data area.
2. After receiving the response of { GET _ VER, V1} sent by the split application program, comparing the current version number of the split application program with the version number of the upgrading data packet, if the version number of the upgrading data packet is newer than the current version number of the split application program, performing upgrading operation in the third step, otherwise, sending data to the split application program in the form of { UPDATE, NULL } by the main application program, judging that the command is UPDATE and the data is NULL when the split application program receives the data, determining that the data does not need to be upgraded according to the fact that the data is NULL, and resetting the auto UPDATE identifier (auto _ UPDATE) of the split application program to be automatically upgradable by the split application program, namely setting the auto _ UPDATE to be 1 without influencing the later automatic UPDATE of the split application program.
3. According to the judgment in the step two, when the version number of the upgrading DATA packet is newer than the current version number of the split application program, the upgrading DATA packet is sent to the split application program in the form of { UPDATE, DATA }, when the split application program receives the DATA packet, the fact that the command is UPDATE is detected, the DATA is not empty, the fact that the DATA needs to be upgraded is shown, and the DATA is stored in the corresponding directory in the program DATA area to complete the upgrading operation. After the upgrading operation is completed, an auto _ update flag (auto _ update) of the split application program is set to be automatically upgraded, namely the auto _ update is set to be 1, and the upgrading of the split application program in the later period is not influenced.
The operation has the advantages that the operation is not limited to the main application program to upgrade the divided application program, when the divided application program detects that the upgrade is carried out by using the upgrade data packet, the main application program can be upgraded, the bidirectional upgrade is achieved, and the flexibility is high.
In this proposal, two identifiers are referred to, mdiplate and auto _ update, and the related information of these two identifiers is shown in table 1:
TABLE 1
Figure BDA0001124000400000121
The data structure involved in the scheme is as follows:
Figure BDA0001124000400000122
fig. 6 shows a schematic structural diagram of a terminal according to still another embodiment of the present invention.
As shown in fig. 6, a terminal 600 according to still another embodiment of the present invention includes: a processor 602, a memory 604, and a communication bus 606. The communication bus 606 is used to enable communications among the processors 602 and the memories 604. The Memory 604 may be a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The processor 602 includes a CPU (Central Processing Unit). Wherein the instructions stored in the memory 604 are called to make the processor 602 execute the following steps: when an upgrading data package is downloaded for any one of two application programs to be upgraded, acquiring the version of the upgrading data package and the current version of the other application program of the two application programs; and if the version of the upgrading data packet is newer than the current version of the other application programs, sending the upgrading data packet to a system space where the other application programs are located so as to upgrade the other application programs by using the upgrading data packet.
Preferably, the processor 602 is further configured to set the automatic upgrade right of the other application program upon receiving the setting signal.
Preferably, the processor 602 is specifically configured to set that the other application program does not have the authority to automatically upgrade if the setting signal is a signal triggered when the current version of the other application program is acquired; or if the setting signal is a signal triggered when the other application program finishes upgrading by using the upgrading data packet, or a signal triggered when the current version of the other application program is newer than the version of the upgrading data packet, or a signal triggered when the current version of the other application program is the same as the version number of the upgrading data packet, setting the other application program to have the authority of automatic upgrading.
Preferably, the processor 602 is specifically configured to set an automatic upgrade permission of the other application program by modifying an automatic upgrade flag of the other application program.
Preferably, the two system spaces communicate with each other through a socket.
The technical scheme of the invention is described in detail in the above with reference to the attached drawings, and through the technical scheme of the invention, unnecessary system resources can be avoided being consumed when the application programs in two mutually independent system spaces are upgraded.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. The application program upgrading method is characterized in that two identical application programs are installed in two mutually independent system spaces to realize the installation of double-open application programs on the same terminal, the two system spaces correspond to the two application programs one by one, and the application program upgrading method comprises the following steps:
when an upgrading data package is downloaded for any one of the two application programs to be upgraded, acquiring the version of the upgrading data package and the current version of the other application program of the two application programs;
if the version of the upgrading data packet is newer than the current version of the other application programs, sending the upgrading data packet to a system space where the other application programs are located so as to upgrade the other application programs by using the upgrading data packet;
the main application program is installed in one system space of the two mutually independent system spaces, and the body-separated application program of the main application program is installed in the other system space of the two mutually independent system spaces.
2. The method for upgrading an application program according to claim 1, further comprising:
and when a setting signal is received, setting the automatic upgrading permission of the other application programs.
3. The method for upgrading an application program according to claim 2, wherein the step of setting the automatic upgrading right of the other application programs when the setting signal is received specifically includes:
if the setting signal is a signal triggered when the current version of the other application program is acquired, setting that the other application program does not have the authority of automatic upgrading; or
And if the setting signal is a signal triggered when the other application programs use the upgrading data packet for upgrading, or a signal triggered when the current versions of the other application programs are newer than the version of the upgrading data packet, or a signal triggered when the current versions of the other application programs are the same as the version of the upgrading data packet, setting the other application programs to have the authority of automatic upgrading.
4. The method for upgrading an application program according to claim 2,
and setting the automatic upgrading authority of the other application programs by modifying the automatic upgrading identifications of the other application programs.
5. The method for upgrading an application program according to any one of claims 1 to 4,
the two system spaces are communicated through socket sockets.
6. An application upgrading apparatus, wherein two identical applications are installed in two mutually independent system spaces, and the two system spaces correspond to the two applications one to one, the application upgrading apparatus comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the version of an upgrade data packet and the current version of other application programs in the two application programs when the upgrade data packet is downloaded for any one of the two application programs for upgrading;
and the upgrading unit is used for sending the upgrading data packet to a system space where the other application programs are located if the version of the upgrading data packet is newer than the current version of the other application programs so as to upgrade the other application programs by using the upgrading data packet.
7. The apparatus for upgrading an application program according to claim 6, further comprising:
and the setting unit is used for setting the automatic upgrading permission of the other application programs when receiving the setting signal.
8. The application program upgrading device of claim 7, wherein the setting unit is specifically configured to,
if the setting signal is a signal triggered when the current version of the other application program is acquired, setting that the other application program does not have the authority of automatic upgrading, or
And if the setting signal is a signal triggered when the other application programs use the upgrading data packet for upgrading, or a signal triggered when the current versions of the other application programs are newer than the version of the upgrading data packet, or a signal triggered when the current versions of the other application programs are the same as the version of the upgrading data packet, setting the other application programs to have the authority of automatic upgrading.
9. The apparatus for upgrading an application according to claim 7,
the setting unit is specifically configured to set the automatic upgrade permission of the other application program by modifying the automatic upgrade identifier of the other application program.
10. The apparatus for upgrading an application program according to any one of claims 6 to 9,
the two system spaces are communicated through socket sockets.
11. A terminal, comprising: an apparatus for upgrading an application program as claimed in any one of claims 6 to 10.
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 CN106445599A (en) 2017-02-22
CN106445599B true 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)

Families Citing this family (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
CN112449245B (en) * 2019-09-05 2022-12-16 海信视像科技股份有限公司 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

Also Published As

Publication number Publication date
CN106445599A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
EP2973147B1 (en) Policy-based secure web boot
US9015694B2 (en) Cloud-based firmware distribution service
CN110463162B (en) Application deployment method, device and system
CA2333304A1 (en) An autoconfigurable method and system having automated downloading
CN104572372A (en) System and method for building server performance testing environment
CN107193609B (en) Function module calling method and device in application and electronic equipment
US20150350916A1 (en) Profile Integration Management
KR102571100B1 (en) Terminal application activation method, apparatus and system
CN107547274B (en) Multi-network-port aggregation method and device
CN104991800A (en) Method, apparatus and system for upgrading firmware of device that is not networked
CN111752582A (en) Software updating method and device in local area network and electronic equipment
CN106445599B (en) Application program upgrading method and device and terminal
CN111163167A (en) System installation method and device
EP3091435A1 (en) Resource management method and device for terminal system
KR20180050001A (en) Firmware upgrade system and method for IoT
CN103744707A (en) Method, device and system for upgrading program of VCI (virtual channel identifier) equipment
CN102685115A (en) Resource access method, resource management device and system
US8880701B2 (en) System and method for supporting of network service
CN113094064A (en) Gateway software module upgrading method, device, equipment and storage medium
CN103442041A (en) Method, device and system for upgrading firmware of embedded device
CN111818463A (en) Method and device for transmitting mirror image file, storage medium and electronic equipment
CN115335803A (en) Equipment upgrading method, intelligent equipment and computer readable storage medium
CN115080068A (en) Resource file transmission method, device, equipment and storage medium
CN111294374B (en) Heterogeneous equipment starting system, method and device and electronic equipment
CN109669699B (en) Application program distribution method, wireless controller and wireless access point

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