Application program upgrade method, device, electronic device, and readable storage medium

By setting up multiple sub-applications and corresponding type information for the application, and generating adaptation type information based on terminal information, the problem of insufficient adaptability in traditional application upgrades is solved, and stable and efficient application upgrades are achieved.

CN114281372BActive Publication Date: 2024-11-22TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202011041698.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-28
Publication Date
2024-11-22
Estimated Expiration
2040-09-28

AI Technical Summary

Technical Problem

In traditional application upgrade methods, the downloaded application may not be adapted to the device, resulting in abnormal operation, and the adaptability of the application configuration file and the terminal cannot be effectively guaranteed.

Method used

By setting up multiple sub-applications of the application, each sub-application is set with corresponding type information and sub-application identifiers, and adaptive type information is generated based on the device information and function information of the target terminal, and corresponding upgrade tasks are configured and sent to ensure that during upgrade The configuration information of the downloaded sub-app is adapted to the target terminal.

Benefits of technology

It avoids application operation abnormalities, meets the upgrade needs of specific device and function information, and saves user traffic and ensures the stability and adaptability of the upgrade process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114281372B_ABST
    Figure CN114281372B_ABST
Patent Text Reader

Abstract

The present application relates to the field of software upgrades, and discloses an application upgrade method, device, electronic device, and readable storage medium. The application upgrade method includes: receiving a target sub-application identifier for an application to be upgraded sent by a target terminal; the target sub-application identifier is determined based on the target type information of the application; the sub-application of the application corresponding to the target type information is adapted to the target terminal; sending an upgrade task corresponding to the target sub-application identifier to the target terminal; receiving a confirmation upgrade indication for the upgrade task returned by the target terminal; and sending configuration information corresponding to the upgrade task to the target terminal based on the confirmation upgrade indication, so that the application of the target terminal is upgraded based on the configuration information. The application upgrade method provided by the present application adapts the configuration information of the sub-application downloaded during the upgrade to the target terminal, thereby avoiding abnormal operation of the application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of software upgrades, and more specifically, to an application program upgrade method, device, electronic device, and readable storage medium. Background Art

[0002] With the popularization of electronic products, various applications with various functions are provided in third-party application markets or websites, and users can download and install them on their terminals from third-party application markets or websites. As the functions of applications are improved or new functions are added, new versions are generated. Therefore, users need to upgrade the installed applications to obtain the new versions of applications.

[0003] In the traditional application upgrade method, the source of the application is marked by the channel number, and there is no restriction on downloading from channels such as the app store to other channel packages. For devices that are strongly related to the characteristics of the application, the application downloaded during the upgrade may not be compatible with the device, causing the application to run abnormally. Summary of the invention

[0004] The purpose of this application is to solve at least one of the above technical defects, and the following technical solutions are proposed:

[0005] In a first aspect, a method for upgrading an application is provided, comprising:

[0006] receiving a target sub-application identifier for an application to be upgraded sent by a target terminal; the target sub-application identifier is determined based on target type information of the application; and a sub-application of the application corresponding to the target type information is adapted to the target terminal;

[0007] Sending an upgrade task corresponding to the target sub-application identifier to the target terminal;

[0008] Receiving a confirmation upgrade instruction for the upgrade task returned by the target terminal;

[0009] Based on the confirmation upgrade instruction, configuration information corresponding to the upgrade task is sent to the target terminal, so that the application program of the target terminal is upgraded based on the configuration information.

[0010] In an optional embodiment of the first aspect, before receiving the target sub-application identifier for the application to be upgraded sent by the target terminal, the method further includes:

[0011] Receiving target type information sent by the target terminal;

[0012] The target sub-application identifier corresponding to the target type information is queried, and the target sub-application identifier is sent to the target terminal.

[0013] In an optional embodiment of the first aspect, before receiving the target type information sent by the target terminal, the method further includes:

[0014] Acquire at least one type of information of the application to be upgraded; the type information is used to indicate device information of the adapted terminal;

[0015] Configure sub-applications of the application corresponding to the type information, and assign a corresponding sub-application identifier to each sub-application;

[0016] Create an upgrade task corresponding to each sub-application ID.

[0017] In an optional embodiment of the first aspect, the type information is further used to indicate at least one of function information of the application to be upgraded and service information of the application to be upgraded;

[0018] Obtain at least one type of information about the application to be upgraded, including:

[0019] Acquire device information corresponding to at least one terminal, and acquire at least one of function information and service information to be upgraded of the application program;

[0020] At least one type of information of the application to be upgraded is generated based on the device information and at least one of the function information and service information of the application to be upgraded.

[0021] In an optional embodiment of the first aspect, the method for upgrading the application further includes:

[0022] If the target sub-application identifier corresponding to the target type information is not found, a sub-application of the application corresponding to the target type information is configured, and the corresponding target sub-application identifier is set;

[0023] An upgrade task corresponding to the target sub-application identifier is created, and the configured target sub-application identifier is sent to the target terminal.

[0024] In an optional embodiment of the first aspect, the method for upgrading the application further includes:

[0025] 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 compatible with the configuration information corresponding to the target upgrade task, then the device information of the target device is obtained;

[0026] The corresponding target type information is updated based on the device information of the target device, and the corresponding target sub-application identifier is updated.

[0027] 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:

[0028] Determine the network connection status of the target terminal;

[0029] Sending an upgrade task corresponding to the target sub-application identifier to the target terminal includes:

[0030] If the network connection status of the target terminal is connected to a wireless network, directly sending the upgrade task corresponding to the target sub-application identifier to the target terminal; and / or,

[0031] If the network connection state of the target terminal is connected to a mobile network, the upgrade task and the data volume of the corresponding configuration information of the upgrade task are sent to the target terminal.

[0032] In a second aspect, a device for upgrading an application is provided, comprising:

[0033] A first receiving module is used to receive a target sub-application identifier for an application to be upgraded sent by a target terminal; the target sub-application identifier is determined based on target type information of the application; and the sub-application of the application corresponding to the target type information is adapted to the target terminal;

[0034] A first sending module, used for sending an upgrade task corresponding to a target sub-application identifier to a target terminal;

[0035] A second receiving module is used to receive a confirmation upgrade instruction for the upgrade task returned by the target terminal;

[0036] The second sending module is used to send configuration information corresponding to the upgrade task to the target terminal based on the confirmation upgrade instruction, so that the application program of the target terminal is upgraded based on the configuration information.

[0037] In an optional embodiment of the second aspect, the application program upgrade device further includes a query module, which is used to:

[0038] Receiving target type information sent by the target terminal;

[0039] The target sub-application identifier corresponding to the target type information is queried, and the target sub-application identifier is sent to the target terminal.

[0040] In an optional embodiment of the second aspect, the application program upgrade device further includes a first creation module, which is used to:

[0041] Acquire at least one type of information of the application to be upgraded; the type information is used to indicate device information of the adapted terminal;

[0042] Configure sub-applications of the application corresponding to the type information, and assign a corresponding sub-application identifier to each sub-application;

[0043] Create an upgrade task corresponding to each sub-application ID.

[0044] In an optional embodiment of the second aspect, the type information is further used to indicate at least one of function information of the application to be upgraded and service information of the application to be upgraded;

[0045] When the first creation module obtains at least one type of information of the application to be upgraded, it is specifically used to:

[0046] Acquire device information corresponding to at least one terminal, and acquire at least one of function information and service information to be upgraded of the application program;

[0047] At least one type of information of the application to be upgraded is generated based on the device information and at least one of the function information and service information of the application to be upgraded.

[0048] In an optional embodiment of the second aspect, the application program upgrade apparatus further includes a second creation module, which is used to:

[0049] If the target sub-application identifier corresponding to the target type information is not found, a sub-application of the application corresponding to the target type information is configured, and the corresponding target sub-application identifier is set;

[0050] An upgrade task corresponding to the target sub-application identifier is created, and the configured target sub-application identifier is sent to the target terminal.

[0051] In an optional embodiment of the second aspect, the application program upgrade device further includes an update module, which is used to:

[0052] 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 compatible with the configuration information corresponding to the target upgrade task, then the device information of the target device is obtained;

[0053] The corresponding target type information is updated based on the device information of the target device, and the corresponding target sub-application identifier is updated.

[0054] In an optional embodiment of the second aspect, the application program upgrade device further includes a determination module, which is used to:

[0055] Determine the network connection status of the target terminal;

[0056] When the first sending module sends the upgrade task corresponding to the target sub-application identifier to the target terminal, it is specifically used to:

[0057] If the network connection status of the target terminal is connected to a wireless network, directly sending the upgrade task corresponding to the target sub-application identifier to the target terminal; and / or,

[0058] If the network connection state of the target terminal is connected to a mobile network, the upgrade task and the data volume of the corresponding configuration information of the upgrade task are sent to the target terminal.

[0059] In a third aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for upgrading the application program shown in the first aspect of the present application is implemented.

[0060] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method for upgrading the application program shown in the first aspect of the present application is implemented.

[0061] The beneficial effects of the technical solution provided by this application are:

[0062] By setting up multiple sub-applications of an application, each sub-application is set with corresponding type information and a corresponding sub-application identifier. Sub-applications with different type information are adapted to corresponding terminals. When a target sub-application identifier sent by a target terminal is received, an upgrade task of the corresponding target sub-application identifier is configured for the target terminal, so that the configuration information of the sub-application downloaded during the upgrade is adapted to the target terminal, thereby avoiding abnormal operation of the application.

[0063] Furthermore, by querying the sub-application identifier corresponding to both the device information and the functional information of the application to be upgraded, the application with specific device information and specific functional information can be upgraded, while ensuring that the configuration file of the sub-application is compatible with the terminal, it can also meet the needs of upgrading specific functional information.

[0064] Furthermore, by querying the sub-application identifier corresponding to both the device information and the business information of the application to be upgraded, the application with specific device information and specific business information can be upgraded, while ensuring that the configuration file of the sub-application is compatible with the terminal, and at the same time, the needs of upgrading specific business information can be met.

[0065] Furthermore, before sending the configuration information to the target terminal, the network connection status of the target terminal may be determined first, so as to save the user's traffic.

[0066] Additional aspects and advantages of the present application will be partially given in the following description, which will become apparent from the following description, or will be understood through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0068] Figure 1An application environment diagram of an application program upgrade method provided in an embodiment of the present application;

[0069] Figure 2 A flowchart of a method for upgrading an application program provided in an embodiment of the present application;

[0070] Figure 3 A flowchart of a method for upgrading an application program provided in an embodiment of the present application;

[0071] Figure 4 A schematic diagram of the type information provided in an example of this application;

[0072] Figure 5 A schematic diagram of the type information provided in an example of this application;

[0073] Figure 6 A schematic diagram of a solution for determining a sub-application identifier according to type information in an example of the present application;

[0074] Figure 7 A flowchart of an application upgrade method provided in an example of an embodiment of the present application;

[0075] Figure 8 A flowchart of an application upgrade method provided in an example of an embodiment of the present application;

[0076] Fig. 9 A schematic diagram of the structure of an application program upgrade device provided in an embodiment of the present application;

[0077] Fig.10 A schematic diagram of the structure of an electronic device for loading a web page provided in an embodiment of the present application. DETAILED DESCRIPTION

[0078] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present application.

[0079] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0080] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0081] The application upgrade method, device, electronic device and computer-readable storage medium provided in this application are intended to solve the above technical problems in the prior art.

[0082] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0083] The application program upgrade method provided in this application can be applied to Figure 1 In the application environment shown. The configuration system 101 performs network communication with multiple terminals 102, determines multiple types of information of the application to be upgraded according to the device information corresponding to the multiple terminals 102, configures the sub-applications of the application corresponding to the multiple types of information, and assigns a corresponding sub-application identifier to each sub-application. When receiving the target sub-application identifier for the application to be upgraded sent by the target terminal, the upgrade task corresponding to the target sub-application identifier is sent to the target terminal; the confirmation upgrade indication for the upgrade task returned by the target terminal is received; and the configuration information corresponding to the upgrade task is sent to the target terminal based on the confirmation upgrade indication, so that the application of the target terminal is upgraded based on the configuration information.

[0084] The configuration system may be set in a server or in a terminal, and the specific setting method of the configuration system is not limited here.

[0085] Those skilled in the art will appreciate that the “terminal” used herein may be a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a MID (Mobile Internet Device), or the like.

[0086] A possible implementation method is provided in the embodiment of the present application, such as Figure 2 As shown, a method for upgrading an application is provided, and the method is applied to Figure 1 The configuration system in is used as an example to illustrate, which can include the following steps:

[0087] Step S201: receiving a target sub-application identifier for an application to be upgraded sent by a target terminal.

[0088] Among them, a sub-application refers to an application (Application, APP), which is forked through multiple APP description parameters to form APP forms with different parameters.

[0089] For example, the scenario parameters include 1, 2, and 3; the name parameters include dev and release, then the following six APP forms can be forked: {scenario parameter 1, name parameter dev}, {scenario parameter 2, name parameter dev}, {scenario parameter 3, name parameter dev}, {scenario parameter 1, name parameter release}, {scenario parameter 2, name parameter release}, and {scenario parameter 3, name parameter release}.

[0090] The target sub-application identifier is determined by the configuration system based on the 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.

[0091] The target type information may be related to the device information of the target terminal, so that the sub-application of the application corresponding to the target type information is adapted to the target terminal.

[0092] Step S202: sending an upgrade task corresponding to the target sub-application identifier to the target terminal.

[0093] Specifically, a plurality of upgrade tasks and a plurality of sub-application identifiers are pre-set in the configuration system, and each sub-application identifier is set with a corresponding upgrade task.

[0094] After receiving the target sub-application identifier sent by the target terminal, the configuration system queries for an upgrade task corresponding to the target sub-application identifier, and sends the queried upgrade task to the target terminal.

[0095] Step S203: receiving an upgrade confirmation instruction for the upgrade task returned by the target terminal.

[0096] Specifically, the user can choose whether to upgrade according to the received upgrade task. If the user is sure to upgrade, the user can input a confirmation upgrade instruction.

[0097] Step S204: sending configuration information corresponding to the upgrade task to the target terminal based on the confirmed upgrade instruction, so that the application program of the target terminal is upgraded based on the configuration information.

[0098] Specifically, the target terminal receives the configuration information corresponding to the upgrade task sent by the configuration system, installs the configuration information to complete the upgrade, and reports the upgrade result to the configuration system to complete the upgrade task.

[0099] In the above embodiment, by setting up multiple sub-applications of an application, each sub-application is set with corresponding type information and a corresponding sub-application identifier. Sub-applications with different type information are adapted to corresponding terminals. When a target sub-application identifier sent by a target terminal is received, an upgrade task of the corresponding target sub-application identifier is configured for the target terminal, so that the configuration information of the sub-application downloaded during the upgrade is adapted to the target terminal, thereby avoiding abnormal operation of the application.

[0100] A possible implementation method is provided in the embodiment of the present application, such as Figure 3 As shown, before receiving the target sub-application identifier for the application to be upgraded sent by the target terminal in step S201, the following may also be included:

[0101] Step S200a, receiving target type information sent by the target terminal;

[0102] Step S200b, querying the target sub-application identifier corresponding to the target type information, and sending the target sub-application identifier to the target terminal.

[0103] Specifically, multiple types of information can be set in the configuration system, and each type of information is set with a corresponding sub-application identifier. When the target type information sent by the target terminal is received, the target sub-application identifier corresponding to the target type information is queried, and the queried target sub-application identifier is sent to the target terminal.

[0104] A possible implementation method is provided in an embodiment of the present application. Before step S200a of receiving the target type information sent by the target terminal, the following may also be included:

[0105] (1) obtaining at least one type of information of the application to be upgraded; the type information is used to indicate device information of the adapted terminal;

[0106] (2) configuring a sub-application of the application corresponding to at least one type of information, and assigning a corresponding sub-application identifier to each sub-application;

[0107] (3) Create an upgrade task corresponding to each sub-application ID.

[0108] Specifically, device information of multiple terminals may be acquired, and corresponding multiple types of information may be determined according to the device information of the multiple terminals.

[0109] The device information may include hardware information of the terminal.

[0110] It is understandable that each sub-application is correspondingly provided with a sub-application identifier, but it is possible that different types of information correspond to the same sub-application, that is, terminals with different types of information may correspond to one sub-application identifier.

[0111] like Figure 4 As shown, taking the two dimensions of type information including scene and name as an example, the scene field may be a_scene, the name field may be b_name, and the values ​​corresponding to the scene field may include 1, 2, and 3; the values ​​corresponding to the name field may include dev and release.

[0112] like Figure 5 As shown, each scene field value and each name field value can form a type information, then according to Figure 4 The scene field and name field shown can obtain the following type information: {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}.

[0113] like Figure 6 As shown, if you have created Figure 5 For multiple types of information shown, a corresponding sub-application identifier can be assigned to each type of information, for example, the sub-application identifier assigned to the {a_scene: 1, b_name: release} type information is sub-application A, the sub-application identifier assigned to the {a_scene: 2, b_name: dev} type information is sub-application B, and so on; wherein, Figure 6 The parent application in the above example refers to the same application corresponding to all sub-applications.

[0114] A possible implementation method is provided in an embodiment of the present application, where the type information is also used to indicate at least one of functional information of the application to be upgraded and business information of the application to be upgraded.

[0115] Obtaining at least one type of information about the application to be upgraded may include:

[0116] a. Obtain device information corresponding to at least one terminal, and obtain at least one of function information and service information to be upgraded of the application program;

[0117] b. Based on the device information and at least one of the function information and service information of the application to be upgraded, generate at least one type of information of the application to be upgraded.

[0118] In some implementations, if the type information is not only used to represent device information but also can be used to represent functional information of the application to be upgraded, it means that the configuration information of the corresponding sub-application is only adapted to the corresponding terminal and the corresponding functional information of the terminal.

[0119] That is to say, the upgrade method at this time is applicable to the scenario where certain specific terminals and specific functional information need to be upgraded.

[0120] In the above embodiment, by querying the sub-application identifier corresponding to both the device information and the functional information of the application to be upgraded, the application with specific device information and specific functional information can be upgraded, while ensuring that the configuration file of the sub-application is compatible with the terminal, and at the same time, the needs of upgrading specific functional information can be met.

[0121] In some implementations, if the type information is not only used to represent device information but also can be used to represent the service information of the application to be upgraded, it means that the configuration information of the corresponding sub-application is only adapted to the corresponding terminal and the corresponding service information of the terminal.

[0122] In other words, the upgrade method at this time is applicable to the scenario where certain specific terminals and specific business information need to be upgraded. This can avoid the situation where a development version is tested in grayscale and all devices on the external network are installed with the test version.

[0123] In the above embodiment, by querying the sub-application identifier corresponding to both the device information and the business information of the application to be upgraded, the application with specific device information and specific business information can be upgraded, while ensuring that the configuration file of the sub-application is compatible with the terminal, and at the same time, the needs of upgrading specific business information can be met.

[0124] Of course, in other implementations, the type information can be used not only to represent device information, but also to represent the functional information and business information of the application to be upgraded. The configuration information of the corresponding sub-application is then only applicable to the corresponding terminal and the corresponding functional information and business information of the terminal.

[0125] The present application provides a possible implementation method, and the application upgrade method may further include:

[0126] (1) If the target sub-application identifier corresponding to the target type information is not found, a sub-application of the application corresponding to the target type information is configured and the corresponding target sub-application identifier is set;

[0127] (2) Create an upgrade task corresponding to the target sub-application identifier, and send the configured target sub-application identifier to the target terminal.

[0128] Specifically, if the target sub-application identifier corresponding to the target type information is not found, that is, there is no target type information in the multiple type information set, or some type information is not configured with corresponding sub-application identifiers, then it is necessary to configure the corresponding sub-application and sub-application identifier for the target type information, that is, to improve the pre-set type information and the corresponding sub-application and sub-application identifier.

[0129] 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 to send the target sub-application identifier of the application to be upgraded to the configuration system.

[0130] The present application provides a possible implementation method, and the application upgrade method may further include:

[0131] 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 compatible with the configuration information corresponding to the target upgrade task, then the device information of the target device is obtained;

[0132] The corresponding target type information is updated based on the device information of the target device, and the corresponding target sub-application identifier is updated.

[0133] Specifically, if upgrade failure information is received from the target terminal, and it is determined based on the upgrade failure information that the device information of the target terminal is incompatible with the configuration information corresponding to the target upgrade task, it means that the pre-configured type information may be incorrect, or the correspondence between the type information and the corresponding sub-application identifier may be set incorrectly. 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 to complete and correct the pre-set type information and the corresponding sub-application and sub-application identifier.

[0134] Specifically, after updating the corresponding target type information and the corresponding target sub-application identifier, the updated target sub-application identifier is sent to the target terminal. If the target terminal needs to be upgraded, step S201 is executed to send the target sub-application identifier of the application to be upgraded to the configuration system.

[0135] A possible implementation method is provided in the embodiment of the present application. Before sending the upgrade task corresponding to the target sub-application identifier to the target terminal in step S202, the following may also be included:

[0136] Determine the network connection status of the target terminal;

[0137] Step S202 of sending the upgrade task corresponding to the target sub-application identifier to the target terminal may include:

[0138] If the network connection status of the target terminal is connected to a wireless network, directly sending the upgrade task corresponding to the target sub-application identifier to the target terminal; and / or,

[0139] If the network connection state of the target terminal is connected to a mobile network, the upgrade task and the data volume of the corresponding configuration information of the upgrade task are sent to the target terminal.

[0140] Specifically, before sending the configuration information to the target terminal, the network connection status of the target terminal may be determined first, so as to save the user's traffic.

[0141] If the network connection status of the target terminal is connected to a wireless network, the upgrade task is sent directly to the target terminal; if the network connection status of the target terminal is connected to a mobile network, the size of the configuration information can be prompted. If the user chooses to update anyway, the configuration information is sent to the target terminal so that the target terminal can update the application based on the configuration information.

[0142] In order to better understand the above-mentioned application upgrade method, an example of the application upgrade method of the present invention is described in detail below:

[0143] In one example, if Figure 7 As shown, the application upgrade method provided by the present application may include the following steps:

[0144] Step S701, receiving a target sub-application identifier for an application to be upgraded sent by a target terminal;

[0145] Step S702, determining the network connection status of the target terminal; if the network connection status of the target terminal is connected to a wireless network, executing step S703; if the network connection status of the target terminal is connected to a mobile network, executing step S704;

[0146] Step S703, directly sending the upgrade task corresponding to the target sub-application identifier to the target terminal;

[0147] Step S704, sending the upgrade task and the data volume of the corresponding configuration information of the upgrade task to the target terminal;

[0148] Step S705, receiving a confirmation upgrade instruction for the upgrade task returned by the target terminal;

[0149] Step S706: Send configuration information corresponding to the upgrade task to the target terminal based on the confirmed upgrade instruction.

[0150] In order to better understand the above-mentioned application upgrade method, an example of the application upgrade method of the present invention is described in detail below:

[0151] In one example, if Figure 8 As shown, the application upgrade method provided by the present application may include the following steps:

[0152] Step S801, obtaining various types of information of the application to be upgraded;

[0153] Step S802, configuring sub-applications of the application corresponding to the various types of information;

[0154] Step S803, assigning a corresponding sub-application identifier to each sub-application;

[0155] Step S804, creating an upgrade task corresponding to each sub-application identifier;

[0156] Step S805, the target terminal sends target type information to the configuration system;

[0157] Step S806, querying the target sub-application identifier corresponding to the target type information;

[0158] Step S807, sending the target sub-application identifier to the target terminal;

[0159] Step S808, the target terminal sends the target sub-application identifier for the application to be upgraded to the configuration system;

[0160] Step S809, sending the upgrade task corresponding to the target sub-application identifier to the target terminal;

[0161] Step S810, the target terminal sends a confirmation upgrade instruction for the upgrade task to the configuration system;

[0162] Step S811, sending configuration information corresponding to the upgrade task to the target terminal based on the confirmed upgrade instruction;

[0163] Step S812: the application program of the target terminal is upgraded based on the configuration information.

[0164] It can be understood that steps S801 to S804 can be the preparatory work for configuring the system, and configuring for all types of terminals; steps S805 to S807 can be understood as authenticating the target terminal; each time the application of the target terminal needs to be updated, the above steps S808 to S812 can be repeated in a cycle.

[0165] The above-mentioned application upgrade method sets up multiple sub-applications of the application, each sub-application is set with corresponding type information, and is set with a corresponding sub-application identifier. Sub-applications with different type information are adapted to corresponding terminals. When a target sub-application identifier sent by a target terminal is received, an upgrade task corresponding to the target sub-application identifier is configured for the target terminal, so that the configuration information of the sub-application downloaded during the upgrade is adapted to the target terminal, thereby avoiding abnormal operation of the application.

[0166] Furthermore, by querying the sub-application identifier corresponding to both the device information and the functional information of the application to be upgraded, the application with specific device information and specific functional information can be upgraded, while ensuring that the configuration file of the sub-application is compatible with the terminal, it can also meet the needs of upgrading specific functional information.

[0167] Furthermore, by querying the sub-application identifier corresponding to both the device information and the business information of the application to be upgraded, the application with specific device information and specific business information can be upgraded, while ensuring that the configuration file of the sub-application is compatible with the terminal, and at the same time, the needs of upgrading specific business information can be met.

[0168] Furthermore, before sending the configuration information to the target terminal, the network connection status of the target terminal may be determined first, so as to save the user's traffic.

[0169] A possible implementation method is provided in the embodiment of the present application, such as Fig. 9 As shown, an application program upgrade device 90 is provided. The application program upgrade device 90 may include: a first receiving module 901, a first sending module 902, a second receiving module 903, and a second sending module 904, wherein:

[0170] The first receiving module 901 is used to receive a target sub-application identifier for an application to be upgraded sent by a target terminal; the target sub-application identifier is determined based on target type information of the application; and the sub-application of the application corresponding to the target type information is adapted to the target terminal;

[0171] A first sending module 902, configured to send an upgrade task corresponding to a target sub-application identifier to a target terminal;

[0172] The second receiving module 903 is used to receive a confirmation upgrade instruction for the upgrade task returned by the target terminal;

[0173] The second sending module 904 is used to send configuration information corresponding to the upgrade task to the target terminal based on the confirmation upgrade indication, so that the application program of the target terminal is upgraded based on the configuration information.

[0174] In an embodiment of the present application, a possible implementation is provided, in which the application program upgrade device 90 further includes a query module for:

[0175] Receiving target type information sent by the target terminal;

[0176] The target sub-application identifier corresponding to the target type information is queried, and the target sub-application identifier is sent to the target terminal.

[0177] In an embodiment of the present application, a possible implementation is provided, where the application program upgrade device 90 further includes a first creation module, which is used to:

[0178] Acquire at least one type of information of the application to be upgraded; the type information is used to indicate device information of the adapted terminal;

[0179] Configuring sub-applications of the application corresponding to at least one type of information, and assigning a corresponding sub-application identifier to each sub-application;

[0180] Create an upgrade task corresponding to each sub-application ID.

[0181] A possible implementation method is provided in an embodiment of the present application, where the type information is also used to indicate at least one of function information of the application to be upgraded and service information of the application to be upgraded;

[0182] When the first creation module obtains at least one type of information of the application to be upgraded, it is specifically used to:

[0183] Acquire device information corresponding to at least one terminal, and acquire at least one of function information and service information to be upgraded of the application program;

[0184] At least one type of information of the application to be upgraded is generated based on the device information and at least one of the function information and service information of the application to be upgraded.

[0185] In an embodiment of the present application, a possible implementation is provided, where the application program upgrade device 90 further includes a second creation module, which is used to:

[0186] If the target sub-application identifier corresponding to the target type information is not found, a sub-application of the application corresponding to the target type information is configured, and the corresponding target sub-application identifier is set;

[0187] An upgrade task corresponding to the target sub-application identifier is created, and the configured target sub-application identifier is sent to the target terminal.

[0188] In an embodiment of the present application, a possible implementation is provided, where the application program upgrade device 90 further includes an update module for:

[0189] 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 incompatible with the configuration information corresponding to the target upgrade task, then the device information of the target device is obtained;

[0190] The corresponding target type information is updated based on the device information of the target device, and the corresponding target sub-application identifier is updated.

[0191] In an embodiment of the present application, a possible implementation is provided, in which the application program upgrade device 90 further includes a determination module, which is used to:

[0192] Determine the network connection status of the target terminal;

[0193] When sending the upgrade task corresponding to the target sub-application identifier to the target terminal, the first sending module 902 is specifically used to:

[0194] If the network connection status of the target terminal is connected to a wireless network, directly sending the upgrade task corresponding to the target sub-application identifier to the target terminal; and / or,

[0195] If the network connection state of the target terminal is connected to a mobile network, the upgrade task and the data volume of the corresponding configuration information of the upgrade task are sent to the target terminal.

[0196] The above-mentioned application upgrade device sets up multiple sub-applications of the application, each sub-application is set with corresponding type information and a corresponding sub-application identifier. The sub-applications with different type information are adapted to the corresponding terminals. When the target sub-application identifier sent by the target terminal is received, the upgrade task of the corresponding target sub-application identifier is configured for the target terminal, so that the configuration information of the sub-application downloaded during the upgrade is adapted to the target terminal, thereby avoiding abnormal operation of the application.

[0197] Furthermore, by querying the sub-application identifier corresponding to both the device information and the functional information of the application to be upgraded, the application with specific device information and specific functional information can be upgraded, while ensuring that the configuration file of the sub-application is compatible with the terminal, it can also meet the needs of upgrading specific functional information.

[0198] Furthermore, by querying the sub-application identifier corresponding to both the device information and the business information of the application to be upgraded, the application with specific device information and specific business information can be upgraded, while ensuring that the configuration file of the sub-application is compatible with the terminal, and at the same time, the needs of upgrading specific business information can be met.

[0199] Furthermore, before sending the configuration information to the target terminal, the network connection status of the target terminal may be determined first, so as to save the user's traffic.

[0200] The image application upgrade device of the embodiment of the present disclosure can execute a image application upgrade method provided by the embodiment of the present disclosure, and the implementation principle is similar. The actions performed by each module in the image application upgrade device in each embodiment of the present disclosure correspond to the steps in the image application upgrade method in each embodiment of the present disclosure. For the detailed functional description of each module in the image application upgrade device, please refer to the description in the corresponding image application upgrade method shown in the previous text, which will not be repeated here.

[0201] Based on the same principle as the method shown in the embodiment of the present disclosure, an electronic device is also provided in the embodiment of the present disclosure, which may include but is not limited to: a processor and a memory; the memory is used to store computer operation instructions; the processor is used to execute the upgrade method of the application shown in the embodiment by calling the computer operation instructions. Compared with the prior art, the configuration information of the sub-application downloaded during the upgrade of the application in the present application is adapted to the target terminal, thereby avoiding abnormal operation of the application.

[0202] In an alternative embodiment, an electronic device is provided, such as Fig.10 As shown, Fig.10 The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.

[0203] 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 devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0204] The bus 4002 may include a path to transmit information between the above components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.10 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0205] The memory 4003 can 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, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this.

[0206] The memory 4003 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the application code stored in the memory 4003 to implement the contents shown in the above method embodiment.

[0207] Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.10 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0208] The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run on a computer, the computer can execute the corresponding content of the aforementioned method embodiment. Compared with the prior art, the configuration information of the sub-application downloaded during the application upgrade method of the present application is adapted to the target terminal, thereby avoiding abnormal operation of the application.

[0209] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0210] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0211] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0212] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0213] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving 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 may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0214] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0215] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of the module does not limit the module itself in some cases. For example, the first receiving module may also be described as a "module for receiving a target sub-application identifier".

[0216] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

Claims

1. A method for upgrading an application, comprising: Acquire device information corresponding to at least one terminal, and acquire at least one of function information and service information to be upgraded of the application to be upgraded; Based on the device information and at least one of the function information and service information to be upgraded of the application, generating at least one type information of the application; the type information is used to indicate the device information of the adapted terminal; The type information is also used to indicate at least one of function information of the application to be upgraded and service information of the application to be upgraded; Configuring sub-applications of the application corresponding to the at least one type of information, and assigning a corresponding sub-application identifier to each sub-application; Create an upgrade task corresponding to each sub-application identifier; Receiving target type information sent by the target terminal; Querying a target sub-application identifier for the application corresponding to the target type information; wherein the sub-application of the application is an application form corresponding to different description parameters of the application; the description parameters include scenario parameters and name parameters; for an application, a configuration system pre-configures a plurality of corresponding sub-applications; a sub-application is applicable to a terminal of at least one type of information; the sub-application of the application corresponding to the target type information is adapted to the target terminal; Sending an upgrade task corresponding to the target sub-application identifier to the target terminal; receiving a confirmation upgrade instruction for the upgrade task returned by the target terminal; The configuration information corresponding to the upgrade task is sent to the target terminal based on the confirmed upgrade indication, so that the application of the target terminal is upgraded based on the configuration information.

2. The method for upgrading an application according to claim 1, characterized in that: Also includes: If the target sub-application identifier corresponding to the target type information is not found, configuring a sub-application of the application corresponding to the target type information, and setting the corresponding target sub-application identifier; An upgrade task corresponding to the target sub-application identifier is created, and the configured target sub-application identifier is sent to the target terminal.

3. The method for upgrading an application according to claim 1, characterized in that: Also includes: 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 incompatible with the configuration information corresponding to the upgrade task, then the device information of the target terminal is acquired; The corresponding target type information is updated based on the device information of the target terminal, and the corresponding target sub-application identifier is updated.

4. The method for upgrading an application according to claim 1, characterized in that: Before sending the upgrade task corresponding to the target sub-application identifier to the target terminal, the method further includes: Determining a network connection status 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 connected to a wireless network, directly sending an upgrade task corresponding to the target sub-application identifier to the target terminal; and / or, If the network connection state of the target terminal is connected to a mobile network, the upgrade task and the data volume of the corresponding configuration information of the upgrade task are sent to the target terminal.

5. An application program upgrade device, characterized in that: include: A first receiving module is used to obtain device information corresponding to at least one terminal, and obtain at least one of function information and service information to be upgraded of the application to be upgraded; based on the device information and at least one of function information and service information to be upgraded of the application, generate at least one type information of the application; the type information is used to indicate the device information of the adapted terminal; The type information is also used to indicate at least one of the function information of the application to be upgraded and the service information of the application to be upgraded; configuring the sub-application of the application corresponding to the at least one type information, and assigning a corresponding sub-application identifier to each sub-application; Create an upgrade task corresponding to each sub-application identifier; Receive target type information sent by the target terminal; query the target sub-application identifier for the application corresponding to the target type information; wherein the sub-application of the application is the application form corresponding to different description parameters of the application; the description parameters include scenario parameters and name parameters; for an application, a configuration system pre-configures a plurality of corresponding sub-applications; a sub-application is applicable to a terminal of at least one type of information; the sub-application of the application corresponding to the target type information is adapted to the target terminal; A first sending module, configured to send an upgrade task corresponding to the target sub-application identifier to the target terminal; A second receiving module is used to receive a confirmation upgrade instruction for the upgrade task returned by the target terminal; The second sending module is used to send configuration information corresponding to the upgrade task to the target terminal based on the upgrade confirmation indication, so that the application of the target terminal is upgraded based on the configuration information.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for upgrading the application program described in any one of claims 1 to 4 is implemented.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the method for upgrading the application program according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Upgrading method and device of application and electronic device

    CN106445621A

  • Upgrading method, device and system of vehicle-mounted integrated machine

    CN107783777A

  • System upgrading method and device, terminal and storage medium

    CN107943499A

  • Data updating method and device

    CN109189458A

  • Software remote upgrading method and related equipment

    CN110727455A