CN114281372A - Application program upgrading method and device, electronic equipment and readable storage medium - Google Patents

Application program upgrading method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN114281372A
CN114281372A CN202011041698.3A CN202011041698A CN114281372A CN 114281372 A CN114281372 A CN 114281372A CN 202011041698 A CN202011041698 A CN 202011041698A CN 114281372 A CN114281372 A CN 114281372A
Authority
CN
China
Prior art keywords
target
application
application program
information
sub
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
CN202011041698.3A
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011041698.3A priority Critical patent/CN114281372A/en
Publication of CN114281372A publication Critical patent/CN114281372A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The application relates to the field of software upgrading, and discloses an upgrading method and device of an application program, electronic equipment and a readable storage medium, wherein the upgrading method of the application program comprises the following steps: receiving a target sub-application identifier which is sent by a target terminal and aims at an application program to be upgraded; the target sub-application identification is determined based on target type information of the application program; the sub-application of the application program corresponding to the target type information is adapted to the target terminal; sending an upgrading task corresponding to the target sub-application identifier to a target terminal; receiving an upgrade confirmation instruction for an upgrade task returned by a target terminal; and sending configuration information corresponding to the upgrading task to the target terminal based on the upgrading confirmation instruction so as to upgrade the application program of the target terminal based on the configuration information. According to the application program upgrading method, the configuration information of the downloaded sub-application is adapted to the target terminal when the upgrading is carried out, so that the abnormal operation of the application program is avoided.

Description

Application program upgrading method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of software upgrading, and in particular, to an application program upgrading method and apparatus, an electronic device, and a readable storage medium.
Background
With the popularization of electronic products, applications with various functions are provided in a third party application market or a website, and a user can download and install the applications on a terminal from the third party application market or the website. The application generates a new version as the functions are improved or new functions are added, and therefore, a user needs to upgrade the installed application to obtain a new version of the application.
In a traditional application upgrading mode, the source of an application program is marked through a channel number, downloading from channels such as an application store to other channel packages is not limited, and for equipment with strong characteristics related to the application program, the downloaded application program may not adapt to the equipment during upgrading, so that the operation of the application program is abnormal.
Disclosure of Invention
The purpose of the present application is to solve at least one of the above technical drawbacks, and to provide the following solutions:
in a first aspect, a method for upgrading an application program is provided, including:
receiving a target sub-application identifier which is sent by a target terminal and aims at an application program to be upgraded; the target sub-application identification is determined based on target type information of the application program; the sub-application of the application program corresponding to the target type information is adapted to the target terminal;
sending an upgrading task corresponding to the target sub-application identifier to a target terminal;
receiving an upgrade confirmation instruction for an upgrade task returned by a target terminal;
and sending configuration information corresponding to the upgrading task to the target terminal based on the upgrading confirmation instruction so as to upgrade the application program of the target terminal based on the configuration information.
In an optional embodiment of the first aspect, before receiving the target sub-application identifier, sent by the target terminal, for the application program to be upgraded, the method further includes:
receiving target type information sent by a target terminal;
and inquiring a target sub-application identifier corresponding to the target type information, and sending the target sub-application identifier to the target terminal.
In an optional embodiment of the first aspect, before receiving the target type information sent by the target terminal, the method further includes:
acquiring at least one type of information of an application program to be upgraded; the type information is used for representing the equipment information of the adaptive terminal;
configuring sub-applications of the application program corresponding to the type information, and distributing corresponding sub-application identifications for each sub-application;
and creating an upgrading task corresponding to each sub-application identification.
In an optional embodiment of the first aspect, the type information is further used to indicate at least one of function information to be upgraded for the application program and service information to be upgraded for the application program;
acquiring at least one type of information of an application program to be upgraded, comprising:
acquiring device information corresponding to at least one terminal respectively, and acquiring at least one of function information and service information to be upgraded of an application program;
and generating at least one type of information of the application program to be upgraded based on the device information and at least one of the function information and the service information of the application program to be upgraded.
In an optional embodiment of the first aspect, the method for upgrading an application further includes:
if the target sub-application identification corresponding to the target type information is not inquired, configuring the sub-application of the application program corresponding to the target type information, and setting the corresponding target sub-application identification;
and creating an upgrading task corresponding to the target sub-application identifier, and sending the configured target sub-application identifier to the target terminal.
In an optional embodiment of the first aspect, the method for upgrading an application further includes:
if the upgrade fault information returned by the target terminal is received and the equipment information of the target terminal is determined not to be matched with the configuration information corresponding to the target upgrade task based on the upgrade fault information, acquiring the equipment information of the target equipment;
and updating the corresponding target type information based on the device information of the target device, and updating the corresponding target sub-application identifier.
In an optional embodiment of the first aspect, before sending the upgrade task corresponding to the target sub-application identifier to the target terminal, the method further includes:
determining a network connection state of a target terminal;
sending an upgrade task corresponding to the target sub-application identifier to the target terminal, including:
if the network connection state of the target terminal is wireless network connection, directly sending an upgrading task corresponding to the target sub-application identifier to the target terminal; and/or the presence of a gas in the gas,
and if the network connection state of the target terminal is the connection of the mobile network, sending the upgrading task and the data volume of the configuration information of the corresponding upgrading task to the target terminal.
In a second aspect, an apparatus for upgrading an application program is provided, including:
the first receiving module is used for receiving a target sub-application identifier which is sent by a target terminal and aims at an application program to be upgraded; the target sub-application identification is determined based on target type information of the application program; the sub-application of the application program corresponding to the target type information is adapted to the target terminal;
the first sending module is used for sending the upgrading task corresponding to the target sub-application identifier to the target terminal;
the second receiving module is used for receiving an upgrade confirmation instruction which is returned by the target terminal and aims at the upgrade task;
and the second sending module is used for sending the configuration information corresponding to the upgrading task to the target terminal based on the upgrading confirmation instruction so as to upgrade the application program of the target terminal based on the configuration information.
In an optional embodiment of the second aspect, the apparatus for upgrading an application further comprises a query module configured to:
receiving target type information sent by a target terminal;
and inquiring a target sub-application identifier corresponding to the target type information, and sending the target sub-application identifier to the target terminal.
In an optional embodiment of the second aspect, the apparatus for upgrading an application further comprises a first creating module configured to:
acquiring at least one type of information of an application program to be upgraded; the type information is used for representing the equipment information of the adaptive terminal;
configuring sub-applications of the application program corresponding to the type information, and distributing corresponding sub-application identifications for each sub-application;
and creating an upgrading task corresponding to each sub-application identification.
In an optional embodiment of the second aspect, the type information is further used to indicate at least one of function information to be upgraded of the application program and service information to be upgraded of the application program;
when acquiring at least one type of information of an application program to be upgraded, the first creation module is specifically configured to:
acquiring device information corresponding to at least one terminal respectively, and acquiring at least one of function information and service information to be upgraded of an application program;
and generating at least one type of information of the application program to be upgraded based on the device information and at least one of the function information and the service information of the application program to be upgraded.
In an optional embodiment of the second aspect, the apparatus for upgrading an application further comprises a second creating module configured to:
if the target sub-application identification corresponding to the target type information is not inquired, configuring the sub-application of the application program corresponding to the target type information, and setting the corresponding target sub-application identification;
and creating an upgrading task corresponding to the target sub-application identifier, and sending the configured target sub-application identifier to the target terminal.
In an optional embodiment of the second aspect, the apparatus for upgrading an application further comprises an update module configured to:
if the upgrade fault information returned by the target terminal is received and the equipment information of the target terminal is determined not to be matched with the configuration information corresponding to the target upgrade task based on the upgrade fault information, acquiring the equipment information of the target equipment;
and updating the corresponding target type information based on the device information of the target device, and updating the corresponding target sub-application identifier.
In an optional embodiment of the second aspect, the apparatus for upgrading an application further comprises a determining module configured to:
determining a network connection state of a target terminal;
when sending the upgrade task corresponding to the target sub-application identifier to the target terminal, the first sending module is specifically configured to:
if the network connection state of the target terminal is wireless network connection, directly sending an upgrading task corresponding to the target sub-application identifier to the target terminal; and/or the presence of a gas in the gas,
and if the network connection state of the target terminal is the connection of the mobile network, sending the upgrading task and the data volume of the configuration information of the corresponding upgrading task to the target terminal.
In a third aspect, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method for upgrading an application program shown in the first aspect of the present application is implemented.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor, implements the method for upgrading an application program as shown in the first aspect of the present application.
The beneficial effect that technical scheme that this application provided brought is:
by setting a plurality of sub-applications of the application program, each sub-application is provided with corresponding type information and a corresponding sub-application identifier, the sub-applications with different types of information are adapted to corresponding terminals, and when a target sub-application identifier sent by a target terminal is received, an upgrading task of the corresponding target sub-application identifier is configured for the target terminal, so that the configuration information of the sub-applications downloaded during upgrading is adapted to the target terminal, and the abnormal operation of the application program is avoided.
Furthermore, the sub-application identifiers corresponding to the device information and the function information of the application program to be upgraded are inquired, the application program with the specific device information and the specific function information can be upgraded, and the requirement for upgrading the specific function information can be met while the configuration file of the sub-application is ensured to be adaptive to the terminal.
Furthermore, the sub-application identifiers corresponding to the equipment information and the service information of the application program to be upgraded are inquired, the application program with the specific equipment information and the specific service information can be upgraded, and the requirement for upgrading the specific service information can be met while the configuration file of the sub-application is ensured to be adaptive to the terminal.
Further, before sending the configuration information to the target terminal, the network connection state of the target terminal may be judged first, so as to save the traffic of the user.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is an application environment diagram of an application program upgrading method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of an application program upgrading method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of an application program upgrading method according to an embodiment of the present application;
FIG. 4 is a schematic illustration of type information provided in an example of the present application;
FIG. 5 is a schematic illustration of type information provided in an example of the present application;
FIG. 6 is a diagram illustrating an example of a scheme for determining a sub-application identifier according to type information;
fig. 7 is a flowchart illustrating an upgrading method for an application program according to an example of the embodiment of the present application;
FIG. 8 is a flowchart illustrating an upgrading method for an application program according to an example of the embodiment of the present application;
fig. 9 is a schematic structural diagram of an application program upgrading apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device for loading a web page according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The application program upgrading method and device, the electronic device and the computer readable storage medium provided by the application program aim to solve the technical problems in the prior art.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
The application program upgrading method provided by the application program upgrading method can be applied to the application environment shown in fig. 1. The configuration system 101 performs network communication with the plurality of terminals 102, determines various types of information of the application program to be upgraded according to the device information corresponding to each of the plurality of terminals 102, configures sub-applications of the application program corresponding to the various types of information, and allocates a corresponding sub-application identifier to each sub-application. When a target sub-application identifier aiming at an application program to be upgraded and sent by a target terminal is received, sending an upgrading task corresponding to the target sub-application identifier to the target terminal; receiving an upgrade confirmation instruction for an upgrade task returned by a target terminal; and sending configuration information corresponding to the upgrading task to the target terminal based on the upgrading confirmation instruction so as to upgrade the application program of the target terminal based on the configuration information.
The configuration system may be disposed in the server or the terminal, and the specific configuration manner of the configuration system is not limited herein.
As will be understood by those skilled in the art, the "terminal" used herein may be a Mobile phone, a tablet computer, a PDA (Personal Digital Assistant), an MID (Mobile Internet Device), etc.
A possible implementation manner is provided in the embodiment of the present application, as shown in fig. 2, a method for upgrading an application program is provided, which is described by taking the application of the method to the configuration system in fig. 1 as an example, and may include the following steps:
step S201, receiving a target sub-application identifier for an application program to be upgraded, which is sent by a target terminal.
The sub-Application refers to an Application program (APP), and describes parameters through multiple APPs, and forms APP forms under different parameters through forking.
For example, the scene parameters include 1,2, 3; the name parameters include dev and release, and then can be forked into the following six forms of APP: { scene parameter 1, name parameter dev }, { scene parameter 2, name parameter dev }, { scene parameter 3, name parameter dev }, { scene parameter 1, name parameter release }, { scene parameter 2, name parameter release } and { scene parameter 3, name parameter release }.
The target sub-application identification is determined by the configuration system based on the target type information of the application program; the sub-applications of the application program corresponding to the target type information are adapted to the target terminal.
The target type information may be related to device information of the target terminal, so that the sub-application of the application program corresponding to the target type information is adapted to the target terminal.
Step S202, sending the upgrading task corresponding to the target sub-application identification to the target terminal.
Specifically, a plurality of upgrading tasks and a plurality of sub-application identifiers are preset in the configuration system, and each sub-application identifier is provided with a corresponding upgrading task.
And after receiving the target sub-application identifier sent by the target terminal, the configuration system inquires the upgrading task corresponding to the target sub-application identifier and sends the inquired upgrading task to the target terminal.
And step S203, receiving an upgrade confirmation instruction for the upgrade task returned by the target terminal.
Specifically, the user may select whether to perform the upgrade according to the received upgrade task, and may input an upgrade confirmation instruction if it is determined that the upgrade is to be performed.
And step S204, sending the configuration information corresponding to the upgrading task to the target terminal based on the upgrading confirmation instruction so as to upgrade the application program of the target terminal based on the configuration information.
Specifically, the target terminal receives configuration information corresponding to the upgrade task sent by the configuration system, installs the configuration information to complete the upgrade, and reports an upgrade result to the configuration system to complete the upgrade task.
In the above embodiment, by setting a plurality of sub-applications of the application program, each sub-application is provided with corresponding type information and a corresponding sub-application identifier, the sub-applications with different types of information are adapted to corresponding terminals, and when receiving a target sub-application identifier sent by a target terminal, an upgrade task of the corresponding target sub-application identifier is configured for the target terminal, so that configuration information of the sub-applications downloaded during upgrade is adapted to the target terminal, thereby avoiding abnormal operation of the application program.
As shown in fig. 3, before receiving the target sub-application identifier, sent by the target terminal, for the application program to be upgraded in step S201, a possible implementation manner is provided in the embodiment of the present application, which may further include:
step S200a, receiving target type information sent by a target terminal;
step S200b, querying a target sub-application identifier corresponding to the target type information, and sending the target sub-application identifier to the target terminal.
Specifically, the configuration system may be provided with multiple types of information, each type of information is provided with a corresponding sub-application identifier, and when receiving target type information sent by a target terminal, the configuration system queries the target sub-application identifier corresponding to the target type information and sends the queried target sub-application identifier to the target terminal.
In this embodiment, a possible implementation manner is provided, before the receiving, in step S200a, the target type information sent by the target terminal, the method may further include:
(1) acquiring at least one type of information of an application program to be upgraded; the type information is used for representing the equipment information of the adaptive terminal;
(2) configuring sub-applications of the application program corresponding to the at least one type of information, and allocating corresponding sub-application identifiers to each sub-application;
(3) and creating an upgrading task corresponding to each sub-application identification.
Specifically, the device information of multiple terminals may be obtained, and the corresponding multiple types of information may be determined according to the device information of the multiple terminals.
The device information may include hardware information of the terminal.
It can be understood that each sub-application is correspondingly provided with a sub-application identifier, but different types of information may correspond to the same sub-application, that is, terminals with different types of information may correspond to a sub-application identifier.
As shown in fig. 4, taking two dimensions of the type information including a scene and a name as an example, a field of the scene may be a _ scene, a field of the name may be b _ name, and corresponding values of the scene fields may include 1,2, and 3; the value corresponding to the name field may include dev, release.
As shown in fig. 5, each scene field value and each name field value may form a type information, and the following type information may be obtained according to the scene field and the name field shown in fig. 4: { a _ scene: 1, b _ name: dev }, { a _ scene: 2, b _ name: dev }, { a _ scene: 3, b _ name: dev }, { a _ scene: 1, b _ name: release }, { a _ scene: 2, b _ name: release } and { a _ scene: 3, b _ name: release }.
As shown in fig. 6, if multiple types of information as shown in fig. 5 have been created, each type of information may be assigned with a corresponding sub-application identifier, for example { a _ scene: 1, b _ name: release type information allocates a sub-application identifier as a sub-application a, which is { a _ scene: 2, b _ name: dev } type information assigns a sub-application identifier as sub-application B, etc.; the parent application in fig. 6 refers to the same application program corresponding to all the child applications.
The embodiment of the application provides a possible implementation manner, and the type information is further used for representing at least one of function information to be upgraded of the application program and service information to be upgraded of the application program.
Acquiring at least one type of information of an application program to be upgraded may include:
a. acquiring device information corresponding to at least one terminal respectively, and acquiring at least one of function information and service information to be upgraded of an application program;
b. and generating at least one type of information of the application program to be upgraded based on the device information and at least one of the function information and the service information of the application program to be upgraded.
In some embodiments, if the type information is used to represent not only the device information but also the function information to be upgraded for the application program, the configuration information indicating that the corresponding sub-application is only adapted to the corresponding terminal and the corresponding function information of the terminal.
That is, the applicable scenarios of the upgrade method at this time are as follows: certain terminals, and certain functional information, need to be upgraded.
In the above embodiment, the sub-application identifiers corresponding to the device information and the function information of the application program to be upgraded are queried, the application program with the specific device information and the specific function information can be upgraded, and the requirement for upgrading the specific function information can be met while the configuration file of the sub-application is ensured to be adapted to the terminal.
In some embodiments, if the type information is used to represent not only the device information but also the service information to be upgraded for the application program, the configuration information of the corresponding sub-application is only adapted to the corresponding terminal and the corresponding service information of the terminal.
That is, the applicable scenarios of the upgrade method at this time are as follows: some specific terminals and specific service information need to be upgraded, so that the situation that the test version is installed on all the external network equipment as a result when a development version is subjected to gray scale amplification test can be avoided.
In the above embodiment, the sub-application identifiers corresponding to the device information and the service information of the application program to be upgraded are queried, the application program with the specific device information and the specific service information can be upgraded, and the requirement for upgrading the specific service information can be met while the configuration file of the sub-application is ensured to be adapted to the terminal.
Of course, in other embodiments, the type information may be used to represent not only the device information, but also the function information and the service information to be upgraded for the application program, and the configuration information of the corresponding sub-application is only adapted to the corresponding terminal and the corresponding function information and the service information of the terminal.
The embodiment of the present application provides a possible implementation manner, and the method for upgrading the application program may further include:
(1) if the target sub-application identification corresponding to the target type information is not inquired, configuring the sub-application of the application program corresponding to the target type information, and setting the corresponding target sub-application identification;
(2) and creating an upgrading task corresponding to the target sub-application identifier, and sending the configured target sub-application identifier to the target terminal.
Specifically, if the target sub-application identifier corresponding to the target type information is not queried, that is, there is no target type information in the set multiple types of information, or there is some types of information without configuring the corresponding sub-application identifier, it is necessary to configure the corresponding sub-application and sub-application identifier for the target type information, that is, to perfect the preset type information and the corresponding sub-application and sub-application identifier.
Specifically, after the updated target sub-application identifier is sent to the target terminal, if the target terminal needs to be upgraded, step S201 is executed again, and the target sub-application identifier of the application program to be upgraded is sent to the configuration system.
The embodiment of the present application provides a possible implementation manner, and the method for upgrading the application program may further include:
if the upgrade fault information returned by the target terminal is received and the equipment information of the target terminal is determined not to be matched with the configuration information corresponding to the target upgrade task based on the upgrade fault information, acquiring the equipment information of the target equipment;
and updating the corresponding target type information based on the device information of the target device, and updating the corresponding target sub-application identifier.
Specifically, if the upgrade failure information returned by the target terminal is received and it is determined based on the upgrade failure information that the device information of the target terminal is not adapted to the configuration information corresponding to the target upgrade task, it indicates that there is a possibility that the preconfigured type information is incorrect, or that the correspondence between the type information and the corresponding sub-application identifier is set to be incorrect, it is necessary to update the corresponding target type information based on the device information of the target device and update the corresponding target sub-application identifier, so as to perfect and correct the preconfigured type information and the corresponding sub-application and sub-application identifiers.
Specifically, after the corresponding target type information is updated and the corresponding target sub-application identifier is updated, the updated target sub-application identifier is sent to the target terminal, and if the target terminal needs to be upgraded, step S201 is executed again, and the target sub-application identifier of the application program to be upgraded is sent to the configuration system.
Before the step S202 of sending the upgrade task corresponding to the target sub-application identifier to the target terminal, a possible implementation manner is provided in the embodiment of the present application, and may further include:
determining a network connection state of a target terminal;
the step S202 of sending the upgrade task corresponding to the target sub-application identifier to the target terminal may include:
if the network connection state of the target terminal is wireless network connection, directly sending an upgrading task corresponding to the target sub-application identifier to the target terminal; and/or the presence of a gas in the gas,
and if the network connection state of the target terminal is the connection of the mobile network, sending the upgrading task and the data volume of the configuration information of the corresponding upgrading task to the target terminal.
Specifically, before sending the configuration information to the target terminal, the network connection state of the target terminal may be determined first, so as to save the traffic of the user.
If the network connection state of the target terminal is the connection wireless network, directly sending an upgrading task to the target terminal; if the network connection state of the target terminal is the connection mobile network, the size of the configuration information can be prompted, and under the condition that the user selects to still update, the configuration information is sent to the target terminal, so that the target terminal updates the application program based on the configuration information.
In order to better understand the above upgrading method of the application program, an example of the upgrading method of the application program of the present invention is set forth in detail below:
in one example, as shown in fig. 7, the application program upgrading method provided by the present application may include the following steps:
step S701, receiving a target sub-application identifier which is sent by a target terminal and aims at an application program to be upgraded;
step S702, judging the network connection state of the target terminal; if the network connection state of the target terminal is to connect to the wireless network, executing step S703; if the network connection status of the target terminal is to connect to the mobile network, step S704 is executed;
step S703, directly sending the upgrade task corresponding to the target sub-application identifier to the target terminal;
step S704, sending the upgrading task and the data volume of the configuration information of the corresponding upgrading task to the target terminal;
step S705, receiving an upgrade confirmation instruction for the upgrade task returned by the target terminal;
step S706, based on the upgrade confirmation instruction, sending the configuration information corresponding to the upgrade task to the target terminal.
In order to better understand the above upgrading method of the application program, an example of the upgrading method of the application program of the present invention is set forth in detail below:
in one example, as shown in fig. 8, the application program upgrading method provided by the present application may include the following steps:
step S801, acquiring various types of information of an application program to be upgraded;
step S802, configuring sub-applications of the application program corresponding to the various types of information respectively;
step S803, distributing corresponding sub-application identification for each sub-application;
step S804, an upgrade task corresponding to each sub-application identifier is created;
step S805, the target terminal sends target type information to a configuration system;
step S806, inquiring a target sub-application identifier corresponding to the target type information;
step S807, the target sub-application identifier is sent to the target terminal;
step S808, sending a target sub-application identifier aiming at the application program to be upgraded to a configuration system by the target terminal;
step S809, sending an upgrading task corresponding to the target sub-application identifier to the target terminal;
step S810, the target terminal sends an upgrade confirmation instruction aiming at the upgrade task to a configuration system;
step S811, based on the upgrade confirmation instruction, transmitting configuration information corresponding to the upgrade task to the target terminal;
in step S812, the application program of the target terminal is upgraded based on the configuration information.
It is understood that steps S801 to S804 may be a preparation for configuring the system, and configure for all types of terminals; the steps S805 to S807 may be understood as authenticating the target terminal; the above steps S808 to S812 may be repeatedly and cyclically performed each time the application of the target terminal needs to be updated.
According to the method for upgrading the application program, the plurality of sub-applications of the application program are set, each sub-application is provided with the corresponding type information and the corresponding sub-application identifier, the sub-applications with different types of information are adapted to the corresponding terminals, when the target sub-application identifier sent by the target terminal is received, the upgrading task of the corresponding target sub-application identifier is configured for the target terminal, the configuration information of the sub-applications downloaded during upgrading is adapted to the target terminal, and therefore the abnormal operation of the application program is avoided.
Furthermore, the sub-application identifiers corresponding to the device information and the function information of the application program to be upgraded are inquired, the application program with the specific device information and the specific function information can be upgraded, and the requirement for upgrading the specific function information can be met while the configuration file of the sub-application is ensured to be adaptive to the terminal.
Furthermore, the sub-application identifiers corresponding to the equipment information and the service information of the application program to be upgraded are inquired, the application program with the specific equipment information and the specific service information can be upgraded, and the requirement for upgrading the specific service information can be met while the configuration file of the sub-application is ensured to be adaptive to the terminal.
Further, before sending the configuration information to the target terminal, the network connection state of the target terminal may be judged first, so as to save the traffic of the user.
A possible implementation manner is provided in the embodiment of the present application, as shown in fig. 9, an upgrade apparatus 90 for an application program is provided, where the upgrade apparatus 90 for an application program may include: a first receiving module 901, a first transmitting module 902, a second receiving module 903, and a second transmitting module 904, wherein,
a first receiving module 901, configured to receive a target sub-application identifier, which is sent by a target terminal and is for an application program to be upgraded; the target sub-application identification is determined based on target type information of the application program; the sub-application of the application program corresponding to the target type information is adapted to the target terminal;
a first sending module 902, configured to send an upgrade task corresponding to the target sub-application identifier to the target terminal;
a second receiving module 903, configured to receive an upgrade confirmation instruction for the upgrade task, where the upgrade confirmation instruction is returned by the target terminal;
and a second sending module 904, configured to send, based on the upgrade confirmation instruction, the configuration information corresponding to the upgrade task to the target terminal, so that the application program of the target terminal is upgraded based on the configuration information.
In the embodiment of the present application, a possible implementation manner is provided, and the upgrading apparatus 90 of the application further includes a query module, configured to:
receiving target type information sent by a target terminal;
and inquiring a target sub-application identifier corresponding to the target type information, and sending the target sub-application identifier to the target terminal.
In an embodiment of the present application, a possible implementation manner is provided, and the upgrading apparatus 90 of the application further includes a first creating module, configured to:
acquiring at least one type of information of an application program to be upgraded; the type information is used for representing the equipment information of the adaptive terminal;
configuring sub-applications of the application program corresponding to the at least one type of information, and allocating corresponding sub-application identifiers to each sub-application;
and creating an upgrading task corresponding to each sub-application identification.
The embodiment of the application provides a possible implementation manner, and the type information is also used for representing at least one of function information to be upgraded of the application program and service information to be upgraded of the application program;
when acquiring at least one type of information of an application program to be upgraded, the first creation module is specifically configured to:
acquiring device information corresponding to at least one terminal respectively, and acquiring at least one of function information and service information to be upgraded of an application program;
and generating at least one type of information of the application program to be upgraded based on the device information and at least one of the function information and the service information of the application program to be upgraded.
In an embodiment of the present application, a possible implementation manner is provided, and the upgrading apparatus 90 of the application further includes a second creating module, configured to:
if the target sub-application identification corresponding to the target type information is not inquired, configuring the sub-application of the application program corresponding to the target type information, and setting the corresponding target sub-application identification;
and creating an upgrading task corresponding to the target sub-application identifier, and sending the configured target sub-application identifier to the target terminal.
In the embodiment of the present application, a possible implementation manner is provided, and the upgrading apparatus 90 of the application further includes an updating module, configured to:
if the upgrade fault information returned by the target terminal is received and the equipment information of the target terminal is determined not to be matched with the configuration information corresponding to the target upgrade task based on the upgrade fault information, acquiring the equipment information of the target equipment;
and updating the corresponding target type information based on the device information of the target device, and updating the corresponding target sub-application identifier.
In the embodiment of the present application, a possible implementation manner is provided, and the upgrading apparatus 90 of the application further includes a determining module, configured to:
determining a network connection state of a target terminal;
when sending the upgrade task corresponding to the target sub-application identifier to the target terminal, the first sending module 902 is specifically configured to:
if the network connection state of the target terminal is wireless network connection, directly sending an upgrading task corresponding to the target sub-application identifier to the target terminal; and/or the presence of a gas in the gas,
and if the network connection state of the target terminal is the connection of the mobile network, sending the upgrading task and the data volume of the configuration information of the corresponding upgrading task to the target terminal.
According to the upgrading device of the application program, the plurality of sub-applications of the application program are arranged, each sub-application is provided with the corresponding type information and the corresponding sub-application identifier, the sub-applications with different types of information are adapted to the corresponding terminals, when the target sub-application identifier sent by the target terminal is received, the upgrading task of the corresponding target sub-application identifier is configured for the target terminal, the configuration information of the sub-applications downloaded during upgrading is adapted to the target terminal, and therefore the abnormal operation of the application program is avoided.
Furthermore, the sub-application identifiers corresponding to the device information and the function information of the application program to be upgraded are inquired, the application program with the specific device information and the specific function information can be upgraded, and the requirement for upgrading the specific function information can be met while the configuration file of the sub-application is ensured to be adaptive to the terminal.
Furthermore, the sub-application identifiers corresponding to the equipment information and the service information of the application program to be upgraded are inquired, the application program with the specific equipment information and the specific service information can be upgraded, and the requirement for upgrading the specific service information can be met while the configuration file of the sub-application is ensured to be adaptive to the terminal.
Further, before sending the configuration information to the target terminal, the network connection state of the target terminal may be judged first, so as to save the traffic of the user.
The upgrading device for an application program of a picture according to the embodiment of the present disclosure may execute the upgrading method for an application program of a picture according to the embodiment of the present disclosure, and the implementation principles thereof are similar, the actions performed by each module in the upgrading device for an application program of a picture according to the embodiments of the present disclosure correspond to the steps in the upgrading method for an application program of a picture according to the embodiments of the present disclosure, and for the detailed function description of each module of the upgrading device for an application program of a picture, reference may be specifically made to the description in the upgrading method for an application program of a corresponding picture shown in the foregoing, and details are not repeated here.
Based on the same principle as the method shown in the embodiments of the present disclosure, embodiments of the present disclosure also provide an electronic device, which may include but is not limited to: a processor and a memory; a memory for storing computer operating instructions; and the processor is used for executing the upgrading method of the application program shown in the embodiment by calling the computer operation instruction. Compared with the prior art, the method for upgrading the application program has the advantages that the configuration information of the downloaded sub-application is adapted to the target terminal when the method for upgrading the application program is used for upgrading, and therefore the abnormal operation of the application program is avoided.
In an alternative embodiment, an electronic device is provided, as shown in fig. 10, the electronic device 4000 shown in fig. 10 comprising: a processor 4001 and a memory 4003. Processor 4001 is coupled to memory 4003, such as via bus 4002. Optionally, the electronic device 4000 may further comprise a transceiver 4004. In addition, the transceiver 4004 is not limited to one in practical applications, and the structure of the electronic device 4000 is not limited to the embodiment of the present application.
The Processor 4001 may be a CPU (Central Processing Unit), a general-purpose Processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 4001 may also be a combination that performs a computational function, including, for example, a combination of one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 4002 may include a path that carries information between the aforementioned components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 4002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 10, but this is not intended to represent only one bus or type of bus.
The Memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), a magnetic Disc storage medium or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these.
The memory 4003 is used for storing application codes for executing the scheme of the present application, and the execution is controlled by the processor 4001. Processor 4001 is configured to execute application code stored in memory 4003 to implement what is shown in the foregoing method embodiments.
Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 10 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
The present application provides a computer-readable storage medium, on which a computer program is stored, which, when running on a computer, enables the computer to execute the corresponding content in the foregoing method embodiments. Compared with the prior art, the method for upgrading the application program has the advantages that the configuration information of the downloaded sub-application is adapted to the target terminal when the method for upgrading the application program is used for upgrading, and therefore the abnormal operation of the application program is avoided.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a module does not in some cases constitute a limitation of the module itself, for example, the first receiving module may also be described as a "module receiving the identification of the target sub-application".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (10)

1. An application program upgrading method comprises the following steps:
receiving a target sub-application identifier which is sent by a target terminal and aims at an application program to be upgraded; the target sub-application identification is determined based on target type information of the application program; the sub-application of the application program corresponding to the target type information is adapted to the target terminal;
sending an upgrading task corresponding to the target sub-application identifier to the target terminal;
receiving an upgrade confirmation instruction which is returned by the target terminal and aims at the upgrade task;
and sending configuration information corresponding to the upgrading task to the target terminal based on the upgrading confirmation instruction so as to upgrade the application program of the target terminal based on the configuration information.
2. The method for upgrading an application program according to claim 1, wherein before receiving the target sub-application identifier for the application program to be upgraded sent by the target terminal, the method further comprises:
receiving target type information sent by the target terminal;
and inquiring a target sub-application identifier corresponding to the target type information, and sending the target sub-application identifier to the target terminal.
3. The method for upgrading an application program according to claim 2, wherein before receiving the target type information sent by the target terminal, the method further comprises:
acquiring at least one type of information of the application program to be upgraded; the type information is used for representing the equipment information of the adaptive terminal;
configuring sub-applications of the application program corresponding to the type information, and allocating corresponding sub-application identifications to each sub-application;
and creating an upgrading task corresponding to each sub-application identification.
4. The upgrading method of the application program according to claim 3, wherein the type information is further used for indicating at least one of function information to be upgraded of the application program and business information to be upgraded of the application program;
the acquiring at least one type of information of the application program to be upgraded includes:
acquiring device information corresponding to at least one terminal respectively, and acquiring at least one of function information and service information to be upgraded of the application program;
and generating at least one type of information of the application program to be upgraded based on the equipment information and at least one of the function information and the service information of the application program to be upgraded.
5. The method for upgrading an application program according to claim 3, further comprising:
if the target sub-application identification corresponding to the target type information is not inquired, configuring the sub-application of the application program corresponding to the target type information, and setting the corresponding target sub-application identification;
and creating an upgrading task corresponding to the target sub-application identifier, and sending the configured target sub-application identifier to the target terminal.
6. The method for upgrading an application program according to claim 3, further comprising:
if the upgrade fault information returned by the target terminal is received and the equipment information of the target terminal is determined not to be matched with the configuration information corresponding to the target upgrade task based on the upgrade fault information, acquiring the equipment information of the target equipment;
and updating the corresponding target type information based on the equipment information of the target equipment, and updating the corresponding target sub-application identifier.
7. The method for upgrading an application program according to claim 1, wherein before sending the upgrade task corresponding to the target sub-application identifier to the target terminal, the method further comprises:
determining the network connection state of the target terminal;
the sending the upgrade task corresponding to the target sub-application identifier to the target terminal includes:
if the network connection state of the target terminal is wireless network connection, directly sending an upgrading task corresponding to the target sub-application identifier to the target terminal; and/or the presence of a gas in the gas,
and if the network connection state of the target terminal is the connection of a mobile network, sending the upgrading task and the data volume of the configuration information of the corresponding upgrading task to the target terminal.
8. An apparatus for upgrading an application program, comprising:
the first receiving module is used for receiving a target sub-application identifier which is sent by a target terminal and aims at an application program to be upgraded; the target sub-application identification is determined based on target type information of the application program; the sub-application of the application program corresponding to the target type information is adapted to the target terminal;
the first sending module is used for sending the upgrading task corresponding to the target sub-application identifier to the target terminal;
the second receiving module is used for receiving an upgrade confirmation instruction which is returned by the target terminal and aims at the upgrade task;
and the second sending module is used for sending configuration information corresponding to the upgrading task to the target terminal based on the upgrading confirmation instruction so as to upgrade the application program of the target terminal based on the configuration information.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for upgrading an application program according to any one of claims 1 to 7 when executing the program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the method for upgrading an application program according to any one of claims 1 to 7.
CN202011041698.3A 2020-09-28 2020-09-28 Application program upgrading method and device, electronic equipment and readable storage medium Pending CN114281372A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011041698.3A CN114281372A (en) 2020-09-28 2020-09-28 Application program upgrading method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011041698.3A CN114281372A (en) 2020-09-28 2020-09-28 Application program upgrading method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN114281372A true CN114281372A (en) 2022-04-05

Family

ID=80868156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011041698.3A Pending CN114281372A (en) 2020-09-28 2020-09-28 Application program upgrading method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114281372A (en)

Similar Documents

Publication Publication Date Title
CN107193609B (en) Function module calling method and device in application and electronic equipment
CN104035800A (en) Incremental packet generation method and device, version upgrade method and device, and version upgrade system
CN105516246A (en) Method for preventing application program downloading hijacking and server
CN113892279A (en) Resource subscription method, device, server and computer storage medium
CN111381848A (en) Resource file updating method, device, equipment and storage medium
CN114785685A (en) Software differential upgrading method and device, electronic equipment and readable storage medium
CN111046371A (en) Method, electronic device and computer-readable medium for generating device identification
CN109343970B (en) Application program-based operation method and device, electronic equipment and computer medium
CN112230969B (en) Method and equipment for formatting user space storage area in firmware upgrading process
CN111722857A (en) Updating method and device of software development kit, electronic equipment and storage medium
CN112748962B (en) Application loading method, device, electronic equipment and computer readable medium
CN113986312B (en) Software upgrading method and device, electronic equipment and computer readable storage medium
CN114281372A (en) Application program upgrading method and device, electronic equipment and readable storage medium
CN115080068A (en) Resource file transmission method, device, equipment and storage medium
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN109669679B (en) Service detection and processing method and device and electronic equipment
CN113076128B (en) Method, device, electronic equipment and storage medium for robot configuration
CN112035127B (en) Method and device for installing application, vehicle, storage medium and electronic equipment
CN113515299A (en) Software development kit SDK hot upgrading method, device, equipment and storage medium
CN113283891A (en) Information processing method and device and electronic equipment
CN113381938A (en) Data packet sending method and device, storage medium and electronic equipment
CN111427603A (en) Application program upgrading method and device
CN112328288A (en) Method, system, equipment and storage medium for updating server component
CN112910985A (en) Protocol conversion method, device, equipment and storage medium based on intelligent contract
CN117560285B (en) Intelligent control internet of things OTA upgrading method, client and server

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