CN113596087A - Application upgrading method and device and computer readable storage medium - Google Patents

Application upgrading method and device and computer readable storage medium Download PDF

Info

Publication number
CN113596087A
CN113596087A CN202110713680.1A CN202110713680A CN113596087A CN 113596087 A CN113596087 A CN 113596087A CN 202110713680 A CN202110713680 A CN 202110713680A CN 113596087 A CN113596087 A CN 113596087A
Authority
CN
China
Prior art keywords
target
terminal
upgrading
server
upgrade
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110713680.1A
Other languages
Chinese (zh)
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.)
Hainan Shilianda Health Intelligent Medical Technology Co Ltd
Original Assignee
Hainan Shilianda Health Intelligent Medical Technology 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 Hainan Shilianda Health Intelligent Medical Technology Co Ltd filed Critical Hainan Shilianda Health Intelligent Medical Technology Co Ltd
Priority to CN202110713680.1A priority Critical patent/CN113596087A/en
Publication of CN113596087A publication Critical patent/CN113596087A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

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)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides an application upgrading method and device and a computer readable storage medium. The method comprises the following steps: receiving a target upgrade file for upgrading a target version of a target application program and a target class of a terminal in which the target application program is installed; sending a push message to a candidate terminal with a terminal type of a target type, wherein the push message is used for notifying that a target application program is upgraded to a target version; receiving a downloading request of a target upgrading file sent by a target terminal in response to a push message, wherein the candidate terminal comprises the target terminal; and responding to the downloading request, and sending the target upgrading file to the target terminal. The invention can inform the terminal of the version upgrading of the application in time in a message pushing mode under the condition that the application upgrading exists, can realize the automatic upgrading of the application at the terminal side, and does not need the user to actively trigger the version upgrading of the program at the terminal side.

Description

Application upgrading method and device and computer readable storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to an application upgrade method and apparatus, and a computer-readable storage medium.
Background
At present, the main mode of upgrading an application program is that a user actively triggers updating of the program on the terminal side of installing the program, for example, the application program is updated by clicking an application update button of an application store, however, some terminals do not have a user operation entrance, for example, terminal devices used in public places such as an information distribution box, a large-screen display terminal, and the like.
Obviously, the above application upgrading schemes are all that the user actively triggers the upgrading request of the application program on the terminal side, and the automatic upgrading of the program on the terminal side cannot be realized.
Disclosure of Invention
In view of the problem that the application upgrade scheme in the related art cannot automatically upgrade the program on the terminal side by actively triggering an upgrade request of the application program on the terminal side by a user, an application upgrade method, an application upgrade apparatus, and a computer-readable storage medium according to embodiments of the present invention are proposed to overcome or at least partially solve the above problem.
In order to solve the above problem, an embodiment of the present invention discloses an application upgrading method, including:
the method comprises the steps that a server receives a target upgrading file for upgrading a target version of a target application program and a target category of a terminal where the target application program is installed;
the server sends a push message to a candidate terminal with a terminal type of the target type, wherein the push message is used for notifying the target application program to be upgraded to the target version;
the server receives a downloading request of a target terminal for the target upgrading file, wherein the target terminal is sent by the target terminal in response to the push message, and the candidate terminal comprises the target terminal;
and the server responds to the downloading request and sends the target upgrading file to the target terminal.
The embodiment of the invention also discloses an application upgrading device, which comprises:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a target upgrading file for upgrading a target version of a target application program and a target category of a terminal in which the target application program is installed;
a first sending module, configured to send a push message to a candidate terminal whose terminal type is the target type, where the push message is a message for notifying that the target application program is upgraded to the target version;
a second receiving module, configured to receive a download request of the target upgrade file sent by a target terminal in response to the push message, where the candidate terminals include the target terminal;
and the second sending module is used for responding to the downloading request and sending the target upgrading file to the target terminal.
The embodiment of the invention also discloses an application upgrading device, which comprises:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform an application upgrade method according to an embodiment of the present invention.
The embodiment of the invention also discloses a computer readable storage medium, and a stored computer program enables a processor to execute the application upgrading method according to the embodiment of the invention.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, after receiving the target upgrade file for upgrading the target version of the target application program and the target class of the terminal where the target application program is installed, a push message may be sent to the candidate terminals with the terminal class being the target class to inform each candidate terminal that the target application program is upgraded to the target version, enabling, in the presence of a program update, the server actively informs each candidate terminal installed with the program of upgrading the program in a push message mode, the terminal requests the server to perform program upgrading without actively triggering the upgrading request of the application program at the terminal side by the user, so that the method can not only realize the upgrading of the program in the case that the version of the target application program is updated, the terminal can update the target application program in real time, so that the instantaneity of program update is improved, and update delay is reduced; moreover, the server actively informs the terminal to carry out program upgrading, so that automatic upgrading of the program at the terminal side is realized, the problem that automatic upgrading cannot be finished due to the fact that some terminals do not have user operation entries is solved, and because program updating can be informed to each candidate terminal, each candidate terminal can successfully upgrade the target application program; in addition, in the embodiment of the invention, the upgrading program uses the upgrading file of a certain version, but not the difference file between the applications of two versions, so that the program of the terminal can be subjected to covering type full-scale updating in a full-scale upgrading mode, the integrity and the accuracy of the program updating are ensured, and the condition that the missing program is not updated is avoided.
Drawings
Fig. 1 is an interaction block diagram between an application upgrade system and a terminal according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of an embodiment of a method for upgrading an application;
fig. 3 is a schematic structural diagram of an application upgrading apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The embodiment of the invention provides an application upgrading method, which mainly comprises the steps that after a server receives an upgrading file of a program, a pushing message is immediately sent to a terminal needing to upgrade the program to inform the terminal to download the upgrading file, so that the terminal can respond to the pushing message to download the upgrading file from the server to upgrade the local program, in the process of upgrading the program, a terminal side does not need to actively trigger a program upgrading request by a user to request the upgrading file from the server, but informs the terminal to upgrade the program by actively sending the pushing message through the server, can still realize the program upgrading of the terminal under the condition that the terminal side does not have a user operation entrance, and the server can send the pushing message to the terminal needing to upgrade the program in batch, thereby improving the program upgrading efficiency, and each terminal can realize automatic upgrading of the program.
Moreover, the application upgrading method of each embodiment of the present invention may be applied to a server, and optionally, the server may be a server in a video network, so as to complete batch upgrading of programs on a plurality of terminal sides in an intranet or an extranet of the video network.
In one embodiment, the invention provides an application upgrade system, and fig. 1 shows a block diagram of interaction between the application upgrade system and a terminal.
As shown in fig. 1, the application upgrade system may include a server, a storage server, a Database (DB), and a Client (Client), where the Client may be a web management interface displayed by a browser.
In fig. 1, the network where the application upgrading system is located is an internet, and in other embodiments, the network where the application upgrading system is located may also be other networks such as the internet.
However, the three terminals shown in fig. 1 may be terminals that need to perform certain program upgrade in an intranet (here, a video network), so as to meet the requirement that the application upgrade system performs batch upgrade on the application programs of the terminals in the intranet.
Of course, in other embodiments, the terminal for program upgrade interacting with the application upgrade system may also be a terminal of an external network (e.g., a network outside the video network, such as the internet), and if the terminal is a terminal of the external network, the server needs to know the port number of the terminal in the external network, so that the server can keep connected with the terminal through the port number to perform various interactions of application upgrade.
The interaction flow of fig. 1 will be described in detail below with reference to the application upgrading method according to each embodiment of the present invention.
Specifically, referring to fig. 2, a flowchart of steps of an embodiment of an application upgrade method according to an embodiment of the present invention is shown, where the method may be applied to a server (taking a service end of the video network in fig. 1 as an example to perform a description of a subsequent method), and the method may include the following steps:
step 101, a server receives a target upgrade file for upgrading a target version of a target application program and a target class of a terminal in which the target application program is installed;
the server may receive, from the outside, an upgrade file of a target application and information on which types of terminals the upgrade file needs to upgrade the target application (i.e., a target type of the terminal), and thus, the target type may be one or more terminal types.
Since the upgrade file is used for upgrading programs on terminals of target classes, the target application programs are installed on the terminals of the target classes in advance.
In addition, the method of the embodiment of the invention adopts a full-scale upgrading mode when the application is upgraded, so that the target upgrade file is a complete program file of the target application program which can be installed independently and is not a file of the difference between two version programs of the target application program.
Alternatively, when step 101 is executed, the server may receive a target upgrade file for upgrading a target version of a target application program and a target class of a terminal in which the target application program is installed, where the target upgrade file is sent by a client.
As shown in fig. 1, a developer may upload an upgrade package of a target application to a server through a Client, where the upgrade package may be a compressed package (tar package), and when uploading the tar package, the developer may select a parameter of a terminal type (a target type is selected here) on the Client and upload a previously packaged tar package, so that the Client may upload the parameter of the tar package and the target type of the terminal to the server.
The tar package is a target upgrade file, and includes a script file required by upgrading a target application program of the terminal, where the script file may specifically include a so library, a data file of the target application program itself (for example, may include a package name, a target version number, a program file, and the like), a web page, a configuration file, and the like.
Optionally, the target upgrade file is a program upgrade package for installing in an android operating system.
That is to say, the method of the embodiment of the present invention is mainly directed to upgrading a target application installed in a terminal of an android operating system, and therefore, the target upgrade file may also be installed in the terminal of the android operating system only for upgrading the target application. Then, in fig. 1, the script file included in the tar packet may be a shell script, and the shell script may be run in the android operating system, and the script type of the shell script matches the script run on the android operating system.
In the embodiment of the invention, the server receives the target upgrading file of the program and the information of the category of the terminal acted by the target upgrading file of the program from the client, so that the server can directly receive the packaged target upgrading file of the program through the client without generating the upgrading file of the program in real time, and the integrity and the accuracy of the target upgrading file for upgrading the program are ensured; in addition, the target upgrading file is a program upgrading package installed in the android operating system, so that batch automatic upgrading of programs can be completed for the terminal of the android operating system without triggering an upgrading request of the programs at the terminal by a user.
104, the server sends a push message to a candidate terminal with a terminal type of the target type, wherein the push message is used for notifying the target application program to be upgraded to the target version;
after receiving the tar packet and the target category of the terminal from the client, the server may determine candidate terminals for batch upgrading of the program based on the target category, and then the server may send a push message to the candidate terminals to notify the candidate terminals of upgrading the target application program and upgrading to the target version.
Optionally, in an embodiment, in executing step 104, the server may filter, from among a plurality of terminals that have previously established a long connection with the server, a terminal class as a candidate terminal of the target class; then, the server sends a push message to the candidate terminal.
Taking batch upgrading of programs of terminals in an intranet (video network) by a server as an example, the server can establish long connection with each terminal in the intranet in advance, once the server receives information of a tar packet and a target category from a client, the server can determine that the program upgrading is required, the server can identify candidate terminals with the terminal category as the target category from a plurality of terminals with the long connection established in advance, then send push messages to the candidate terminals respectively to inform the candidate terminals of performing full upgrading of the programs on the target application programs installed by the candidate terminals respectively, and upgrade the target upgrading files to a target version.
In the embodiment of the invention, as the server and the terminal establish long connection in advance, as long as the server receives the upgrade file of the target application program, the server can immediately send the push message for notifying the update application to the candidate terminal with the terminal type of the target application program as the target type, and notify the candidate terminal to carry out program upgrade, so that the instantaneity of application upgrade can be improved, and the upgrade delay of the application can be reduced.
Optionally, the parameters in the push message may include a package name of the target application program, a target version number of the target version, and a download address of the target upgrade file.
In step 104, taking the example of fig. 1 as an example, after receiving the tar packet from the Client, the server may extract metadata information such as a packet name, a version number, and the like from the tar packet, and may further specify an index address of a storage location for the tar packet, where the index address also belongs to the metadata information of the tar packet;
under the condition that the server side has transaction control, as shown in fig. 2, the metadata information of the tar packet is firstly stored in a database; then, the tar packet is stored in the index address in the storage server.
Of course, in other embodiments, the tar packet may be first stored in the index address of the storage server; then, the metadata information of the tar packet is stored in a database.
The server generates a request of an http protocol for accessing the index address, so as to obtain a download address of the tar packet;
then, the server carries the package name, the version number (i.e. the target version number) and the download address to a push message and sends the push message to the candidate terminals of which the terminal types are the target types. Optionally, the push message may also include information of the file size of the tar packet.
In the embodiment of the invention, the server side stores the tar packet to the storage server separately, so that the data damage of the tar packet can be avoided when the server side fails, and the reliability of data storage is improved; moreover, because the method of the embodiment of the invention is full-scale upgrading, the tar packet is larger than the files of the upgrade files upgraded in increments, and the tar packet is separately stored in another storage server, so that the excessive occupation of the upgrade files on the storage space of the server can be reduced, and the utilization rate of the storage space of the server is improved.
In addition, in the embodiment of the present invention, the server may notify each terminal that a new program needs to be upgraded and a package name of the program to be upgraded, an upgraded version number, and a download address of an upgrade file that needs to be used for the upgrade are carried in the message by using a message push method, so that the terminal determines which program needs to be upgraded according to the package name, compares the version number after the upgrade with the version number of the target application program that has been installed locally to determine whether the program needs to be upgraded, and quickly acquires the upgrade file for the program upgrade according to the download address.
Step 105, the server receives a downloading request of the target upgrading file sent by a target terminal in response to the push message, wherein the candidate terminal comprises the target terminal;
although each candidate terminal receives the push message sent by the server, each candidate terminal does not necessarily request to download the upgrade file for program upgrade, and therefore the candidate terminal requesting for program upgrade is named as a target terminal and includes the target terminal.
Specifically, after receiving the push message, the candidate terminal extracts information of a package name, a target version number and a download address in the push message, and then the candidate terminal can compare the version number of an installed program with the same local package name and package name in the push message with the target version number in the push message, if the target version number is higher than the version number of the installed program, the version upgrading is required, otherwise, the version upgrading is not required;
under the condition that the version upgrading is determined to be needed, the candidate terminal can call a downloading program to access the downloading address to request the downloading of the target upgrading file, and then the server side can receive the downloading request of the candidate terminal to the target upgrading file.
And 106, the server responds to the downloading request and sends the target upgrading file to the target terminal.
After receiving a download request of a target terminal for a tar packet, the server may query metadata information of the tar packet in the DB in response to the download request to obtain an index address of the target application program, then find an actual storage location of the target application program in the storage server through the index address, read data of the tar packet at the actual storage location, and transmit the data in the tar packet to the target terminal in a serialized manner.
After the target terminal receives the tar packet, because the operating system of the target terminal is an android operating system, the tar packet may be decompressed to a specified directory of the target terminal by using a shell command, and a shell script in the decompressed data packet is executed to perform full upgrade and update on a target program file of an original version that has been locally installed, so that the target terminal upgrades the target application program to the target version by using the target upgrade file.
In the embodiment of the invention, after receiving the target upgrade file for upgrading the target version of the target application program and the target class of the terminal where the target application program is installed, a push message may be sent to the candidate terminals with the terminal class being the target class to inform each candidate terminal that the target application program is upgraded to the target version, enabling, in the presence of a program update, the server actively informs each candidate terminal installed with the program of upgrading the program in a push message mode, the terminal requests the server to perform program upgrading without actively triggering the upgrading request of the application program at the terminal side by the user, so that the method can not only realize the upgrading of the program in the case that the version of the target application program is updated, the terminal can update the target application program in real time, so that the instantaneity of program update is improved, and update delay is reduced; moreover, the server actively informs the terminal to carry out program upgrading, so that automatic upgrading of the program at the terminal side is realized, the problem that automatic upgrading cannot be finished due to the fact that some terminals do not have user operation entries is solved, and because program updating can be informed to each candidate terminal, each candidate terminal can successfully upgrade the target application program; in addition, in the embodiment of the invention, the upgrading program uses the upgrading file of a certain version, but not the difference file between the applications of two versions, so that the program of the terminal can be subjected to covering type full-scale updating in a full-scale upgrading mode, the integrity and the accuracy of the program updating are ensured, and the condition that the missing program is not updated is avoided.
Alternatively, the terminal according to the embodiments of the present invention may be a terminal device in a hospital, which does not have a user operation entrance.
Optionally, after the step 101 and before the step 104, the method according to the embodiment of the present invention may further include:
step 102, the server identifies the terminal number of the candidate terminal with the terminal type being the target type;
the server can identify the terminal number of the candidate terminal with the terminal type being the target type in the terminal of the intranet or the extranet, wherein the terminal number is the only identification information of the terminal.
103, the server generates a mapping relation among the target category, the terminal number, the package name of the target application program, the target version number of the target version and an upgrading state, wherein an initial value of the upgrading state is an un-upgrading state;
illustratively, the category of the terminal may include a television set-top box, a tablet computer, an information distribution terminal, a digital television terminal, a rocker screen terminal used inside a ward, and the like.
Table 1 schematically shows an example of the mapping relationship, in the example of table 1, the number of candidate terminals is 2, the terminal numbers are ID1 and ID2, respectively, the target category is category 1, the package name is application 1, and the target version number is 2.0:
Figure BDA0003133926930000091
TABLE 1
Then after step 106, the method according to an embodiment of the invention may further comprise:
and 107, under the condition that the server receives a notification message which is sent by the target terminal and used for indicating that the target application program is successfully upgraded by adopting the target upgrading file, the server updates the value of the upgrading state matched with the target terminal number of the target terminal in the mapping relation into the upgrading successful state.
The value of the upgrade status may include an un-upgraded status, a downloading status, and an upgrade success status.
For example, if the target terminal is a terminal with a terminal number of ID1, and if the terminal is a terminal with a terminal number of ID1, then in the process that the server side transmits the data in the tar packet to the target terminal in a serialized manner in response to the download request of the target terminal for the tar packet, the server side may update the value of the upgrade state corresponding to the terminal with the terminal number of ID1 in table 1 to the download state; after the terminal with the terminal number of ID1 downloads the tar packet and executes the shell script in the decompressed tar to complete the update of the full-scale of the target program file of the original version installed locally, the terminal with the terminal number of ID1 may send a notification message to the server, where the notification message is a message used to indicate that the application program with the package name of application 1 is successfully updated by using the tar packet, and then the server receives the notification message sent by the terminal with the terminal number of ID1, and may update the upgrade state corresponding to the terminal with the terminal number of ID1 in table 1 to the upgrade successful state.
In the embodiment of the invention, by setting the mapping relation among the target category, the terminal number of the candidate terminal, the package name of the target application program, the target version number of the target version and the upgrading state, after the terminal successfully upgrades the application program, the server can be informed, the server can update the state of the terminal, identify that the terminal has successfully upgraded the application program, because the value of the upgrade status in the mapping relationship will change and update at any time along with the upgrade progress of the candidate terminal on the target application program, therefore, and determining which candidate terminals have not finished the upgrading of the target application program according to the parameter of the upgrading state in the mapping relation, and which candidate terminals have finished the upgrading of the target application program, so that the server is convenient to determine the upgrading progress of each candidate terminal to the target application program of the target version.
In summary, with the application upgrading system according to the embodiment of the present invention, versions of application programs can be managed in a unified manner, so that management of program versions is more convenient, and programs installed on a terminal side can be upgraded through a management platform of the application upgrading system, which is beneficial to batch upgrading of programs of multiple terminals.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 3, an application upgrade apparatus according to an embodiment of the present invention is shown, which may be applied to a server, and may include the following modules:
a first receiving module 31, configured to receive a target upgrade file for upgrading a target version of a target application and a target category of a terminal in which the target application is installed;
a first sending module 32, configured to send a push message to a candidate terminal whose terminal type is the target type, where the push message is a message for notifying that the target application program is upgraded to the target version;
a second receiving module 33, configured to receive a download request of the target upgrade file sent by a target terminal in response to the push message, where the candidate terminals include the target terminal;
a second sending module 34, configured to send the target upgrade file to the target terminal in response to the download request.
Optionally, the first sending module 32 includes:
the screening submodule is used for screening a terminal type as a candidate terminal of the target type from a plurality of terminals which are in long connection with the server in advance;
and the sending submodule is used for sending the push message to the candidate terminal.
Optionally, the apparatus further comprises:
the identification module is used for identifying the terminal number of the candidate terminal with the terminal type being the target type;
a generating module, configured to generate a mapping relationship between the target category, the terminal number, the package name of the target application, the target version number of the target version, and an upgrade state, where an initial value of the upgrade state is an un-upgraded state;
and the updating module is used for updating the value of the upgrading state matched with the target terminal number of the target terminal in the mapping relation into the upgrading successful state under the condition of receiving a notification message which is sent by the target terminal and used for indicating that the target application program is successfully upgraded by adopting the target upgrading file.
Optionally, the first receiving module 31 is further configured to receive a target upgrade file sent by a client and used for upgrading a target version of a target application program and a target class of a terminal where the target application program is installed, where the target upgrade file is a program upgrade package for installing in an android operating system.
In the embodiment of the invention, after receiving the target upgrade file for upgrading the target version of the target application program and the target class of the terminal where the target application program is installed, a push message may be sent to the candidate terminals with the terminal class being the target class to inform each candidate terminal that the target application program is upgraded to the target version, enabling, in the presence of a program update, the server actively informs each candidate terminal installed with the program of upgrading the program in a push message mode, the terminal requests the server to perform program upgrading without actively triggering the upgrading request of the application program at the terminal side by the user, so that the method can not only realize the upgrading of the program in the case that the version of the target application program is updated, the terminal can update the target application program in real time, so that the instantaneity of program update is improved, and update delay is reduced; moreover, the server actively informs the terminal to carry out program upgrading, so that automatic upgrading of the program at the terminal side is realized, the problem that automatic upgrading cannot be finished due to the fact that some terminals do not have user operation entries is solved, and because program updating can be informed to each candidate terminal, each candidate terminal can successfully upgrade the target application program; in addition, in the embodiment of the invention, the upgrading program uses the upgrading file of a certain version, but not the difference file between the applications of two versions, so that the program of the terminal can be subjected to covering type full-scale updating in a full-scale upgrading mode, the integrity and the accuracy of the program updating are ensured, and the condition that the missing program is not updated is avoided.
For the embodiment of the application upgrading device, since it is basically similar to the embodiment of the application upgrading method, the description is relatively simple, and for relevant points, reference may be made to part of the description of the embodiment of the application upgrading method.
An embodiment of the present invention further provides an application upgrading apparatus, including:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform an application upgrade method according to any one of the embodiments of the present invention.
Embodiments of the present invention further provide a computer-readable storage medium, which stores a computer program for enabling a processor to execute the application upgrade method according to any one of the embodiments of the present invention.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The application upgrade method, the application upgrade apparatus and the computer readable storage medium provided by the present invention are described in detail above, and specific examples are applied herein to illustrate the principles and embodiments of the present invention, and the description of the above embodiments is only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. An application upgrade method, characterized in that the method comprises:
the method comprises the steps that a server receives a target upgrading file for upgrading a target version of a target application program and a target category of a terminal where the target application program is installed;
the server sends a push message to a candidate terminal with a terminal type of the target type, wherein the push message is used for notifying the target application program to be upgraded to the target version;
the server receives a downloading request of a target terminal for the target upgrading file, wherein the target terminal is sent by the target terminal in response to the push message, and the candidate terminal comprises the target terminal;
and the server responds to the downloading request and sends the target upgrading file to the target terminal.
2. The method of claim 1, wherein the server sending the push message to the candidate terminal with the terminal class of the target class comprises:
the server screens a terminal type as a candidate terminal of the target type from a plurality of terminals which establish long connection with the server in advance;
and the server sends a push message to the candidate terminal.
3. The method of claim 1,
after the server receives a target upgrade file for upgrading a target version of a target application program and a target class of a terminal in which the target application program is installed, the server sends a push message to a candidate terminal whose terminal class is the target class, and the method further includes:
the server identifies the terminal number of the candidate terminal with the terminal type being the target type;
the server generates a mapping relation among the target category, the terminal number, the package name of the target application program, the target version number of the target version and an upgrading state, wherein an initial value of the upgrading state is an un-upgrading state;
after the server responds to the downloading request and sends the target upgrading file to the target terminal, the method further comprises the following steps:
and under the condition that the server receives a notification message which is sent by the target terminal and used for indicating that the target application program is successfully upgraded by adopting the target upgrading file, the server updates the value of the upgrading state matched with the target terminal number of the target terminal in the mapping relation into the upgrading successful state.
4. The method of claim 1, wherein the server receiving a target upgrade file for upgrading a target version of a target application and a target class of a terminal in which the target application is installed comprises:
the server receives a target upgrading file which is sent by a client and used for upgrading a target version of a target application program and a target type of a terminal where the target application program is installed, wherein the target upgrading file is a program upgrading package which is used for being installed in an android operating system.
5. An application upgrade apparatus, comprising:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a target upgrading file for upgrading a target version of a target application program and a target category of a terminal in which the target application program is installed;
a first sending module, configured to send a push message to a candidate terminal whose terminal type is the target type, where the push message is a message for notifying that the target application program is upgraded to the target version;
a second receiving module, configured to receive a download request of the target upgrade file sent by a target terminal in response to the push message, where the candidate terminals include the target terminal;
and the second sending module is used for responding to the downloading request and sending the target upgrading file to the target terminal.
6. The apparatus of claim 5, wherein the first sending module comprises:
the screening submodule is used for screening a terminal type as a candidate terminal of the target type from a plurality of terminals which are in long connection with the server in advance;
and the sending submodule is used for sending the push message to the candidate terminal.
7. The apparatus of claim 5, further comprising:
the identification module is used for identifying the terminal number of the candidate terminal with the terminal type being the target type;
a generating module, configured to generate a mapping relationship between the target category, the terminal number, the package name of the target application, the target version number of the target version, and an upgrade state, where an initial value of the upgrade state is an un-upgraded state;
and the updating module is used for updating the value of the upgrading state matched with the target terminal number of the target terminal in the mapping relation into the upgrading successful state under the condition of receiving a notification message which is sent by the target terminal and used for indicating that the target application program is successfully upgraded by adopting the target upgrading file.
8. The apparatus of claim 5,
the first receiving module is further configured to receive a target upgrade file, which is sent by a client and used for upgrading a target version of a target application program, and a target category of a terminal where the target application program is installed, where the target upgrade file is a program upgrade package for installing in an android operating system.
9. An application upgrade apparatus, comprising:
one or more processors; and
one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform the application upgrade method of any one of claims 1 to 4.
10. A computer-readable storage medium storing a computer program for causing a processor to execute the application upgrade method according to any one of claims 1 to 4.
CN202110713680.1A 2021-06-25 2021-06-25 Application upgrading method and device and computer readable storage medium Pending CN113596087A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110713680.1A CN113596087A (en) 2021-06-25 2021-06-25 Application upgrading method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110713680.1A CN113596087A (en) 2021-06-25 2021-06-25 Application upgrading method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113596087A true CN113596087A (en) 2021-11-02

Family

ID=78244753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110713680.1A Pending CN113596087A (en) 2021-06-25 2021-06-25 Application upgrading method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113596087A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115865662A (en) * 2022-11-17 2023-03-28 四川启睿克科技有限公司 Smart factory APP updating method based on light application framework
CN116582872A (en) * 2023-07-07 2023-08-11 北京集度科技有限公司 Data transmitting apparatus, data transmitting method, data receiving apparatus, and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176809A (en) * 2011-12-23 2013-06-26 腾讯科技(深圳)有限公司 Application upgrading method and application upgrading system
CN104518904A (en) * 2013-09-30 2015-04-15 中兴通讯股份有限公司 Mobile terminal application batch management method and system, and updating server
CN105993147A (en) * 2014-07-23 2016-10-05 华为技术有限公司 Terminal upgrading method and related equipment
CN109600451A (en) * 2018-12-28 2019-04-09 厦门中控智慧信息技术有限公司 A kind of terminal device firmware upgrade method and system based on Websocket long connection
CN109857416A (en) * 2018-11-08 2019-06-07 深圳壹账通智能科技有限公司 A kind of application upgrade method, apparatus, equipment and storage medium
CN110597544A (en) * 2019-08-20 2019-12-20 杭州辰汉智能科技有限公司 Software system upgrading method and device
CN110768817A (en) * 2018-07-27 2020-02-07 视联动力信息技术股份有限公司 Upgrading method and device for video networking terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176809A (en) * 2011-12-23 2013-06-26 腾讯科技(深圳)有限公司 Application upgrading method and application upgrading system
CN104518904A (en) * 2013-09-30 2015-04-15 中兴通讯股份有限公司 Mobile terminal application batch management method and system, and updating server
CN105993147A (en) * 2014-07-23 2016-10-05 华为技术有限公司 Terminal upgrading method and related equipment
US20170214568A1 (en) * 2014-07-23 2017-07-27 Huawei Technologies Co., Ltd. Terminal upgrade method and related device
CN110768817A (en) * 2018-07-27 2020-02-07 视联动力信息技术股份有限公司 Upgrading method and device for video networking terminal
CN109857416A (en) * 2018-11-08 2019-06-07 深圳壹账通智能科技有限公司 A kind of application upgrade method, apparatus, equipment and storage medium
CN109600451A (en) * 2018-12-28 2019-04-09 厦门中控智慧信息技术有限公司 A kind of terminal device firmware upgrade method and system based on Websocket long connection
CN110597544A (en) * 2019-08-20 2019-12-20 杭州辰汉智能科技有限公司 Software system upgrading method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
詹永强;罗日贵;: "双向数字电视网络终端软件升级系统设计与实现", 有线电视技术, no. 04 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115865662A (en) * 2022-11-17 2023-03-28 四川启睿克科技有限公司 Smart factory APP updating method based on light application framework
CN116582872A (en) * 2023-07-07 2023-08-11 北京集度科技有限公司 Data transmitting apparatus, data transmitting method, data receiving apparatus, and storage medium
CN116582872B (en) * 2023-07-07 2023-09-15 北京集度科技有限公司 Data transmitting apparatus, data transmitting method, data receiving apparatus, and storage medium

Similar Documents

Publication Publication Date Title
US11032140B2 (en) Using a template to update a stack of resources
US10713034B2 (en) Updating web resources
KR101373461B1 (en) Terminal and method for using cloud sevices
US20150347552A1 (en) Synchronization system for multiple client devices
CN102541596A (en) Operating system upgrading method and device
CN111897564A (en) Application updating method and system
CN113596087A (en) Application upgrading method and device and computer readable storage medium
US11900089B2 (en) Automatically configuring and deploying a software operator in a distributed computing environment from a package
CN113590169B (en) Application deployment method, application deployment system, and computer-readable storage medium
CN110968331A (en) Method and device for running application program
CN112702195A (en) Gateway configuration method, electronic device and computer readable storage medium
CN107844597B (en) Game application management method, electronic device and computer readable medium
CN111158654A (en) Algorithm calling method, device, server and storage medium
EP3260981B1 (en) Information processing apparatus, information processing system, and information processing method for updating firmware
CN110597513B (en) WEB interface generation method and related device
CN116351070A (en) Data processing method, device, computer equipment and readable storage medium
CN113448609B (en) Container upgrading method, device, equipment and storage medium
CN109814911A (en) Method, apparatus, computer equipment and storage medium for Manage Scripts program
CN110677443A (en) Data transmitting and receiving method, transmitting end, receiving end, system and storage medium
CN108959553A (en) UR L updating method and device and electronic equipment
CN111596933B (en) File processing method, device, electronic equipment and computer readable storage medium
CN112040320B (en) Television fruit application upgrading method and device
CN113867778A (en) Method and device for generating mirror image file, electronic equipment and storage medium
CN110825406A (en) Software upgrading method and related equipment
JP2016091449A (en) Local storage synchronization method, local storage synchronizer and local storage synchronization program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination