Application program updating method and device

By pre-downloading the update data locally when the application is updated, the problem in the existing technology that the update progress is restricted by network bandwidth is solved and a faster update speed is achieved.

CN112905209BActive Publication Date: 2024-09-03VIVO MOBILE COMM (SHENZHEN) CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202110310968.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-23
Publication Date
2024-09-03
Estimated Expiration
2041-03-23

AI Technical Summary

Technical Problem

In the existing application update solution, the update progress is restricted by network bandwidth, resulting in slow update speed.

Method used

By sending an update request to the server when an application version update is detected, receiving version update information, and pre-downloading update data locally, this avoids downloading data from the server during updates.

Benefits of technology

Improved application update speed and reduced the impact of update progress on network bandwidth.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112905209B
    Figure CN112905209B
Patent Text Reader

Abstract

The present application discloses an application updating method and device, belonging to the field of communication technology, wherein the method comprises: when a first electronic device detects a version update of a first application, sending a first update request to a first server, wherein the first update request carries a first application identifier and first version information of the first application that has been installed; receiving version update information of the first application returned by the first server; downloading version update data from the first server according to the version update information, and performing a version update on the first application; sending first update prompt information to a second server, so that the second server sends second update prompt information to a second electronic device to download the update data of the first application according to the first update prompt information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and in particular, to a method and device for updating an application. Background Art

[0002] With the development of mobile Internet and electronic equipment hardware, the performance of electronic equipment is becoming more and more powerful. With the improvement of electronic equipment hardware and network environment, mobile games have ushered in a substantial development. Currently, mobile games installed on electronic devices are all equipped with online update functions. The specific update process is as follows: after the user opens the mobile game application, the update prompt information is output; after receiving the update command entered by the user, the update interface is entered, and the update data is downloaded from the mobile game developer server and installed.

[0003] The existing method of downloading update data from the mobile game developer's server in real time has the update progress restricted by network bandwidth. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide an application updating method, which can solve the problem that the update progress of the existing application updating solutions is restricted by the network bandwidth.

[0005] In a first aspect, an embodiment of the present application provides an application updating method, wherein the method comprises: upon detecting a version update of a first application of a first electronic device, sending a first update request to a first server, wherein the first update request carries a first application identifier and first version information of the installed first application; receiving version update information of the first application returned by the first server, wherein the version update information comprises: a download link of a second version to be updated and second version information to be updated; downloading version update data from the first server according to the version update information, and performing a version update on the first application; sending a first update prompt information to a second server, so that the second server sends a second update prompt information to the second electronic device for downloading the update data of the first application according to the first update prompt information, wherein the first update prompt information comprises the version update information.

[0006] In a second aspect, an embodiment of the present application provides an application update method, which is applied to a second electronic device, wherein the method includes: receiving a second update prompt information sent by a second server, wherein the second update prompt information includes: a first application identifier, a second version download link to be updated, and the second version information to be updated; when the update data corresponding to the second version information is not downloaded locally, downloading the version update data from the first server according to the second update prompt information while connected to a wireless local area network; when a first application update instruction is detected, switching the remote resource download to local resource loading, and loading the version update data of the first application from the local.

[0007] In a third aspect, an embodiment of the present application provides an application updating device, wherein the device comprises: a first sending module, for sending a first update request to a first server when a version update of a first application of a first electronic device is detected, wherein the first update request carries a first application identifier and first version information of the installed first application; a first receiving module, for receiving version update information of the first application returned by the first server, wherein the version update information comprises: a download link of a second version to be updated and the second version information to be updated; a first downloading module, for downloading version update data from the first server according to the version update information, and performing a version update on the first application; a second sending module, for sending a first update prompt information to a second server, so that the second server sends a second update prompt information to the second electronic device for downloading the update data of the first application according to the first update prompt information, wherein the first update prompt information comprises the version update information.

[0008] In a fourth aspect, an embodiment of the present application provides a device, which is applied to a second electronic device, wherein the device includes: a second receiving module, used to receive second update prompt information sent by a second server, wherein the second update prompt information includes: a first application identifier, a second version download link to be updated and the second version information to be updated; a second download module, used to download version update data from the first server according to the second update prompt information when connected to a wireless local area network when the update data corresponding to the second version information is not downloaded locally; a loading module, used to switch remote resource download to local resource loading when a first application update instruction is detected, and load the version update data of the first application from the local.

[0009] In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect or the second aspect.

[0010] In a sixth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect or the second aspect are implemented.

[0011] In the seventh aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect or the second aspect.

[0012] In an embodiment of the present application, after downloading version update data from a first server, i.e., the first application developer server, the first application sends a first update prompt message to a second server to prompt that there is a version update for the first application. The second server sends a message to the second electronic device to download the version update data of the first application based on the first update prompt message. The second electronic device can pre-download the version update data of the first application locally, and when updating the first application, the version update data can be directly loaded locally. Since the version update data does not need to be downloaded from the first server but is stored locally, the version update speed of the first application is fast and the update progress is not restricted by network bandwidth. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0014] Figure 1 is a flowchart showing the steps of an application updating method according to an embodiment of the present application;

[0015] Figure 2 is a flowchart showing the steps of another application updating method according to an embodiment of the present application;

[0016] Figure 3 is an interactive schematic diagram of an application updating system according to an embodiment of the present application;

[0017] Figure 4 is a structural block diagram of an application updating device according to an embodiment of the present application

[0018] Figure 5 is a structural block diagram of an application updating device according to an embodiment of the present application;

[0019] Figure 6 is a structural block diagram of an electronic device according to an embodiment of the present application;

[0020] Figure 7 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0021] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0022] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0023] The following is a detailed description of the application updating method provided by the embodiment of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0024] Reference Figure 1 , showing a step flow chart of an application updating method according to an embodiment of the present application.

[0025] In the embodiment of the present application, the application updating method is described from the first electronic device side. The application updating method in the embodiment of the present application includes the following steps:

[0026] Step 101: When it is detected that a first application version of a first electronic device is updated, a first update request is sent to a first server.

[0027] The application updating method provided in the embodiment of the present application is applied to a first electronic device. In the actual implementation process, an update service supporting version optimization updates can be added to the network bottom layer of the network module of the first electronic device, and the update service executes the corresponding application updating process.

[0028] The first update request carries a first application identifier and first version information of the installed first application. The information carried in the first update request facilitates the first server to determine the update resource requested by the update request sent by the first electronic device. The first server is a server of the developer of the first application, and the first application can be any type of application, such as: a game application, a multimedia application, a navigation application, or a communication application, etc., and the embodiments of the present application do not impose specific restrictions on this.

[0029] After the developer of the first application program publishes an update to the first server, the second server has not yet obtained the update prompt information sent by the electronic device because the electronic device has not updated the first application program. When the first electronic device starts the first application program, an update prompt is output. At this time, the system detects that the version of the first application program needs to be updated, and the first electronic device needs to send a first update request to the first server to complete the version update of the first application program.

[0030] In the actual implementation process, when a version update of the first application is detected, it is first determined whether version update data of the to-be-updated version of the first application is stored locally; if so, the corresponding version update data can be directly loaded from the local to complete the version update of the first application; if not, step 101 is executed to send a first update request to the first server, and the corresponding version update data is downloaded from the first server side through a network connection.

[0031] Step 102: Receive version update information of the first application returned by the first server.

[0032] The version update information includes: a download link of the second version to be updated and information of the second version to be updated.

[0033] The second version download link to be updated stores update data corresponding to the second version information.

[0034] Step 103: Download version update data from the first server according to the version update information, and perform version update on the first application.

[0035] After downloading the version update data from the first server, the first electronic device locally records the download status of the second version of the version update data, and the field version1-url1 being 1 indicates that the version update data has been downloaded.

[0036] Step 104: Send the first update prompt information to the second server.

[0037] The second server sends second update prompt information for downloading update data of the first application to the second electronic device according to the first update prompt information. The first update prompt information includes version update information, which includes: a download link of the second version to be updated and the second version information to be updated.

[0038] The second server is an update server, which is a server of the electronic device manufacturer. The second server can provide application version update prompt service to each electronic device it manages. After receiving the first update prompt information sent by the first electronic device, the second server prompts the second electronic device to download the update data of the first application in the background according to the first update prompt information.

[0039] After receiving the first update prompt information, the second server searches for electronic devices that have the first application installed among the electronic devices it manages, and then further searches for second electronic devices that have version update requirements among the found electronic devices. Finally, the second update prompt information is sent to each second electronic device, prompting each second electronic device to download the version update data in the background, so that it can be loaded locally when the user of the second electronic device triggers a version update of the first application.

[0040] It should be noted that the second server can send the second update prompt information to each second electronic device after receiving the first update prompt information sent by a first electronic device; the second server can also send the second update prompt information to each second electronic device when the total number of first update prompt information corresponding to the first application received is greater than the preset number. The latter trigger mechanism for sending the second update prompt information to each second electronic device can determine that the version update of the first application is not just a personalized demand of a certain user but a general demand. On this basis, providing update prompts to each second electronic device can improve the reliability of the second update prompt information and avoid unnecessary interference to the second electronic device.

[0041] The application update method provided in the embodiment of the present application is that after the first application downloads the version update data from the first server, i.e., the first application developer server, the first application sends a first update prompt message to the second server for prompting that there is a version update for the first application. The second server sends a second update prompt message to the second electronic device for downloading the version update data of the first application based on the first update prompt message. The second electronic device can pre-download the version update data of the first application to the local computer. When the first application is updated, the version update data can be directly loaded from the local computer. Since the version update data does not need to be downloaded from the first server but is stored locally, the first application version is updated quickly and the update progress is not restricted by the network bandwidth.

[0042] In an optional embodiment, when sending the first update prompt information to the second server, the data volume of the version update data downloaded from the first server can be detected; when the data volume is greater than a preset data volume, the first update prompt information is sent to the second server.

[0043] The preset data volume can be set by those skilled in the art according to actual needs, and no specific limitation is made in the embodiments of the present application.

[0044] By the amount of downloaded version update data, it can be determined whether the first application is a specific type of application, for example, a game application. When the first application is determined to be a specific type of application, the first update prompt information is sent to the second server, which can avoid the second server from frequently sending the second update prompt information to each second electronic device. In actual use, even if some types of application versions are updated, the amount of version update data to be downloaded is relatively small. Therefore, even if the second electronic device downloads the version update data from the first server when the application is turned on, it takes a short time. In order to minimize the interference to the second electronic device, there is no need to prompt the second electronic device to download the version update data of this type of application in the background, but only prompt the second electronic device to download the version update data of a specific type of application with a large amount of version update data and a long update time in the background.

[0045] It should be noted that the application update method provided in the embodiment of the present application can be executed by an application update device, or a control module in the application update device for executing the application update method. In the embodiment of the present application, the application update device provided in the embodiment of the present application is described by taking the application update device executing the application update method as an example.

[0046] Reference Figure 2 , showing a step flow chart of an application updating method according to an embodiment of the present application.

[0047] In the embodiment of the present application, the application updating method is described from the second electronic device side. The application updating method in the embodiment of the present application includes the following steps:

[0048] Step 201: receiving second update prompt information sent by a second server.

[0049] The second update prompt information includes: the first application identifier, the download link of the second version to be updated and the second version information to be updated. The download link of the second version to be updated and the second version information in the second update prompt information are the same as those in the first update prompt information.

[0050] After the second server receives the first update prompt information sent by the first electronic device, it determines the first application that has undergone a version update based on the first update prompt information, and then searches for a second electronic device that has the first application installed and whose version is lower than the second version in the first update prompt information from among the managed applications, and the second server sends a second update prompt information to the second electronic device.

[0051] Step 202: When the update data corresponding to the second version information is not downloaded locally, download the version update data from the first server according to the second update prompt information while connected to the wireless local area network.

[0052] After receiving the second update prompt information, the second electronic device first determines whether the version update data of the second version to be updated is stored locally. If yes, the version update data is not downloaded repeatedly; if no, step 202 is executed.

[0053] Downloading version update data in the background while connected to a wireless LAN can save data traffic.

[0054] Step 203: When the first application program update instruction is detected, the remote resource download is switched to the local resource loading, and the version update data of the first application program is loaded locally.

[0055] The version update data is downloaded in advance in the background. When the first application is started, the downloaded version update data can be directly loaded for version update. There is no need to waste time downloading data again, which can improve the version update efficiency. The version update progress of the first application is not restricted by network bandwidth.

[0056] The application update method provided by the embodiment of the present application is that after the second electronic device receives the second update prompt information of the first application sent by the second server, if the update data corresponding to the second version information has not been downloaded locally, the second electronic device downloads the version update data from the first server according to the second update prompt information while connected to the wireless local area network. When the first application update instruction is detected, the remote resource download is switched to the local resource loading, and the version update data of the first application is loaded locally. On the one hand, downloading the version update data while connected to the wireless local area network can save the traffic consumed by the download; on the other hand, when the first application is updated, the downloaded version update data can be directly loaded for the version update, without wasting time on data downloading, which can improve the efficiency of the version update, and the progress of the first application version update is not restricted by the network bandwidth.

[0057] In an optional embodiment, before receiving the second update prompt information sent by the second server, the method may further include the following steps:

[0058] Step 1: receiving a configuration acquisition request sent by the second server;

[0059] The second server periodically sends configuration acquisition requests to each electronic device it manages. The electronic device responds to the configuration acquisition request and sends configuration information to the second server. The second server determines each application installed in the electronic device and the current version of each application based on the configuration information.

[0060] The electronic devices managed by the second server include: a first electronic device, a second electronic device, and other electronic devices.

[0061] Step 2: Send configuration information to the second server in response to the configuration acquisition request.

[0062] The configuration information includes: identification information and version information of each installed application.

[0063] After receiving the configuration information sent by the electronic device, the second server may select the second electronic device from the electronic devices it manages according to the configuration information and the first update prompt information sent by the first electronic device, and send the second update prompt information to the second electronic device.

[0064] This optional manner of the second server monitoring the configuration of the electronic device facilitates the second server to have a timely and comprehensive understanding of the configuration of each electronic device it manages.

[0065] In an optional embodiment, after downloading the version update data from the first server according to the second update prompt information in the state of being connected to the wireless local area network, the following steps may also be included:

[0066] Step 1: Monitor the storage duration of version update data locally;

[0067] Step 2: When the storage time exceeds the preset time and the version update data has not been loaded, the version update data is deleted.

[0068] The preset duration can be set by those skilled in the art according to actual needs, and there is no specific limitation on this in the embodiments of the present application. For example, it can be set to 5 days, 7 days or 15 days, etc.

[0069] If the first application is updated within the preset time, there are two possibilities: first, the user has not used the first application within the preset time; second, the user has used the first application within the preset time but has no need for version update. Therefore, in view of the above situation, there is no substantive meaning in storing the version update data locally, so it is deleted. After deleting the version update data, the local storage space occupied by it can be released.

[0070] In an optional embodiment, during the process of loading the version update data from the local computer, prompt information is output.

[0071] Among them, the prompt information is used to remind the user that the current application update does not consume any traffic.

[0072] This method of outputting prompt information makes it easier for users to understand the traffic consumption of this application update.

[0073] It should be noted that the application update method provided in the embodiment of the present application can be executed by an application update device, or a control module in the application update device for executing the application update method. In the embodiment of the present application, the application update device provided in the embodiment of the present application is described by taking the application update device executing the application update method as an example.

[0074] Figure 3 Interaction diagram of the application update system.

[0075] like Figure 3 As shown, the application update system includes: a first electronic device, a second electronic device, a first server and a second server, the first server is an application developer server, and the second server is an update server that manages each electronic device. Figure 3 From the perspective of the interaction between the first electronic device, the second electronic device, the first server and the second server, the application program update method provided in the embodiment of the present application is described: Figure 3 The step numbers are merely indicated for example, without adding the specific content of each step. For the specific content and related instructions of each step, please refer to the subsequent description.

[0076] The present application embodiment takes the first application as a game application as an example for explanation, and the application update interaction process includes the following steps:

[0077] Step 301: The second server sends a configuration acquisition request to the electronic device.

[0078] The second server periodically sends configuration acquisition requests to each electronic device it manages, and the electronic device responds to the configuration acquisition request and sends configuration information to the second server. The configuration information includes: identification information and version information of each application installed in the electronic device.

[0079] Step 302: The update service of the first electronic device detects an update instruction.

[0080] The network bottom layer of the network module of the first electronic device is provided with an update service supporting version optimization update, and the update service executes a corresponding application program update process.

[0081] When the first electronic device starts the first application, an update prompt is output. At this time, the system detects that the first application version needs to be updated. After the user inputs the first application update instruction, the update service detects the update instruction.

[0082] Step 303: The update service of the first electronic device sends a first update request to the first server.

[0083] After the developer of the first application program publishes the update to the first server, since each electronic device has not yet performed the version update, the second server has not yet obtained the first update prompt information sent by the electronic device. Therefore, when the first electronic device needs to send a first update request to the first server to obtain the version update data of the first application program.

[0084] Step 304: The first server returns version update information of the first application to the update service of the first electronic device.

[0085] Step 305: The update service of the first electronic device downloads the version update data from the first server according to the version update information, and performs a version update on the first application.

[0086] The version update information includes: a download link of the second version to be updated and information of the second version to be updated.

[0087] The second version download link to be updated stores update data corresponding to the second version information.

[0088] Step 306: The update server of the first electronic device sends the first update prompt information to the second server.

[0089] The first update prompt information includes version update information, and the version update information includes: a download link of the second version to be updated and information of the second version to be updated.

[0090] Step 307: The second server sends second update prompt information to the update service of the second electronic device.

[0091] The network bottom layer of the network module of the second electronic device is provided with an update service supporting version optimization and update, and the update service executes a corresponding application program update process.

[0092] After receiving the first update prompt information, the second server searches for electronic devices that have the first application installed among the electronic devices it manages, and then further searches for second electronic devices that have version update requirements among the found electronic devices. Finally, the second update prompt information is sent to each second electronic device, prompting each second electronic device to download the version update data of the first application in the background, so that it can be loaded locally when the user of the second electronic device triggers a version update of the first application.

[0093] The network bottom layer of the network module of the second electronic device is provided with an update service supporting version optimization and update, and the update service executes a corresponding application program update process.

[0094] After the update service of the second electronic device receives the second update prompt information, it parses the second update prompt information and determines whether version update data corresponding to the second version information of the first application is stored locally based on the analysis result; if not, it downloads the version update data from the first server based on the second update prompt information while connected to the wireless LAN.

[0095] When the first electronic device opens the first application, an update prompt is output. At this time, the system detects that the first application version needs to be updated. After the user inputs the first application update instruction, the update service monitors the update instruction and determines that an update request is detected.

[0096] Step 308: The update service of the second electronic device detects the update instruction.

[0097] When the second electronic device starts the first application, an update prompt is output. At this time, the system detects that the first application version needs to be updated. After the user inputs the first application update instruction, the update service monitors the update instruction.

[0098] Step 309: The update service of the second electronic device updates the version of the first application.

[0099] When detecting the first application update instruction, the update service of the second electronic device switches the remote resource download to the local resource loading, loads the version update data of the first application locally, and updates the version of the first application.

[0100] The application update method provided in the embodiment of the present application is that after the first application downloads the version update data from the first server, i.e., the first application developer server, the first application sends a first update prompt message to the second server for prompting that there is a version update for the first application. The second server sends the version update data for downloading the first application to the second electronic device based on the first update prompt message. The second electronic device can pre-download the version update data of the first application to the local computer. When the first application is updated, the version update data can be directly loaded from the local computer. Since the version update data does not need to be downloaded from the first server but is stored locally, the first application version is updated quickly and the update progress is not restricted by the network bandwidth.

[0101] Figure 4 A structural block diagram of an application updating device for implementing an embodiment of the present application.

[0102] The application program updating device 400 in the embodiment of the present application, wherein the application program updating device 400 includes:

[0103] A first sending module 401 is configured to send a first update request to a first server when a first application version update of a first application is detected, wherein the first update request carries a first application identifier and first version information of the installed first application;

[0104] A first receiving module 402 is configured to receive version update information of the first application returned by the first server, wherein the version update information includes: a download link of a second version to be updated and information of the second version to be updated;

[0105] A first downloading module 403, configured to download version update data from the first server according to the version update information, and perform version update on the first application;

[0106] The second sending module 404 is used to send first update prompt information to the second server, so that the second server sends second update prompt information for downloading update data of the first application to the second electronic device according to the first update prompt information, wherein the first update prompt information includes the version update information.

[0107] Optionally, the second sending module includes:

[0108] A first submodule is used to detect the data volume of the version update data;

[0109] The second submodule is used to send the first update prompt information to the second server when the data amount is greater than a preset data amount.

[0110] The application updating device provided in the embodiment of the present application, after the first application downloads the version update data from the first server, i.e., the first application developer server, the first application sends a first update prompt message to the second server for prompting that there is a version update for the first application. The second server sends a second update prompt message to the second electronic device for downloading the version update data of the first application based on the first update prompt message. The second electronic device can pre-download the version update data of the first application to the local computer. When the first application is updated, the version update data can be directly loaded from the local computer. Since the version update data does not need to be downloaded from the first server but is stored locally, the version update speed of the first application is fast and the update progress is not restricted by the network bandwidth.

[0111] The application updating device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The first electronic device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0112] The application program update device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0113] The application program updating device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented in the method embodiment are not described here.

[0114] Figure 5 A structural block diagram of an application updating device for implementing an embodiment of the present application.

[0115] The application program updating device 500 of the embodiment of the present application is applied to a second electronic device, wherein the application program updating device 500 includes:

[0116] The second receiving module 501 is used to receive second update prompt information sent by the second server, wherein the second update prompt information includes: a first application identifier, a download link of a second version to be updated, and information of the second version to be updated;

[0117] A second downloading module 502 is configured to download the version update data from the first server according to the second update prompt information when the update data corresponding to the second version information is not downloaded locally and the wireless local area network is connected;

[0118] The loading module 503 is used to switch the remote resource download to the local resource loading when detecting the first application update instruction, and load the version update data of the first application from the local.

[0119] Optionally, the device further comprises:

[0120] A third receiving module, configured to receive a configuration acquisition request sent by the second server before receiving the second update prompt information sent by the second server;

[0121] The third sending module is used to send configuration information to the second server in response to the configuration acquisition request, wherein the configuration information includes: identification information and version information of each installed application.

[0122] Optionally, the device further comprises:

[0123] A monitoring module, configured to monitor the local storage time of the version update data after the second downloading module downloads the version update data from the first server according to the second update prompt information in a state of being connected to the wireless local area network;

[0124] The deleting module is used to delete the version update data when the storage time exceeds a preset time and the version update data has not been loaded.

[0125] Optionally, the device further comprises:

[0126] The output module is used to output prompt information during the process in which the loading module loads the version update data from the local, wherein the prompt information is used to prompt the user that the current application update does not consume any traffic.

[0127] The application updating device provided in the embodiment of the present application is that after the second electronic device receives the second update prompt information of the first application sent by the second server, if the update data corresponding to the second version information has not been downloaded locally, the second electronic device downloads the version update data from the first server according to the second update prompt information while connected to the wireless local area network. When the first application update instruction is detected, the remote resource download is switched to the local resource loading, and the version update data of the first application is loaded locally. On the one hand, downloading the version update data while connected to the wireless local area network can save the traffic consumed by the download; on the other hand, when the first application is updated, the downloaded version update data can be directly loaded for the version update, without wasting time on data downloading, which can improve the efficiency of the version update, and the progress of the first application version update is not restricted by the network bandwidth.

[0128] The application updating device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The second electronic device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0129] The application program update device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0130] The application program updating device provided in the embodiment of the present application can achieve Figure 2 To avoid repetition, the various processes implemented in the method embodiment are not described here. Figure 6 As shown, the embodiment of the present application also provides an electronic device 600, including a processor 601, a memory 602, a program or instruction stored in the memory 602 and executable on the processor 601, and the program or instruction is executed by the processor 601 to implement the above Figure 1 or Figure 2The various processes of the corresponding application update method implementation examples can achieve the same technical effects, and will not be described again here to avoid repetition.

[0131] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0132] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0133] The electronic device 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.

[0134] Those skilled in the art will appreciate that the electronic device 700 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 710 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0135] Wherein, when the electronic device 700 serves as the first electronic device, the network module 702 is used to send a first update request to the first server when a version update of the first application is detected, wherein the first update request carries a first application identifier and first version information of the installed first application; and receive version update information of the first application returned by the first server, wherein the version update information includes: a download link of a second version to be updated and the second version information to be updated;

[0136] The processor 710 is configured to download version update data from the first server according to the version update information, and perform version update on the first application;

[0137] The network module 702 is used to send a first update prompt information to a second server, so that the second server sends a second update prompt information to a second electronic device to download the update data of the first application according to the first update prompt information, wherein the first update prompt information includes the version update information.

[0138] Optionally, when sending the first update prompt information to the second server, the processor 710 is further used to detect the data volume of the version update data; when the data volume is greater than a preset data volume, the network module 702 is called to send the first update prompt information to the second server.

[0139] When the electronic device 700 is used as the second electronic device, the network module 702 is used to receive the second update prompt information sent by the second server, wherein the second update prompt information includes: the first application identifier, the download link of the second version to be updated, and the second version information to be updated; if the update data corresponding to the second version information is not downloaded locally, download the version update data from the first server according to the second update prompt information when connected to the wireless local area network;

[0140] The processor 710 is configured to switch the remote resource download to the local resource loading when detecting the first application update instruction, and load the version update data of the first application from the local.

[0141] Optionally, the processor 710 is further configured to receive a configuration acquisition request sent by the second server before receiving the second update prompt information of the first application sent by the second server;

[0142] The network module 702 is further configured to send configuration information to the second server in response to the configuration acquisition request, wherein the configuration information includes: identification information and version information of each installed application program.

[0143] Optionally, the processor 710 is also used to monitor the local storage time of the version update data after the network module 702 downloads the version update data from the first server according to the second update prompt information when connected to the wireless local area network; and delete the version update data if the storage time exceeds the preset time and the version update data is not loaded.

[0144] Optionally, the display unit 706 is used to output prompt information when the processor 710 loads the version update data locally, wherein the prompt information is used to prompt the user that the current application update does not consume any traffic.

[0145] In the electronic device provided by the embodiment of the present application, after the first application downloads the version update data from the first server, i.e., the first application developer server, the first update prompt information is sent to the second server to prompt that there is a version update for the first application. The second server sends the second update prompt information for downloading the version update data of the first application to the second electronic device based on the first update prompt information. The second electronic device can pre-download the version update data of the first application to the local computer. When the first application is updated, the version update data can be directly loaded from the local computer. Since the version update data does not need to be downloaded from the first server but is stored locally, the version update speed of the first application is fast and the update progress is not restricted by the network bandwidth.

[0146] It should be understood that in the embodiment of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 4071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. Other input devices 7072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 709 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 710 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 710.

[0147] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of any one of the above-mentioned application update method embodiments is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0148] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0149] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of any of the above-mentioned application update method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0150] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0151] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0152] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0153] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for updating an application, characterized in that: The method comprises: When detecting that a first application version of the first electronic device is updated, sending a first update request to the first server, wherein the first update request carries a first application identifier and first version information of the installed first application; Receiving version update information of the first application returned by the first server, wherein the version update information includes: a download link of a second version to be updated and information of the second version to be updated; Downloading version update data from the first server according to the version update information, and performing version update on the first application; Sending first update prompt information to a second server, so that the second server sends second update prompt information for downloading update data of the first application to a second electronic device according to the first update prompt information, wherein the first update prompt information includes the version update information.

2. The method according to claim 1, characterized in that The step of sending the first update prompt information to the second server includes: Detecting the data volume of the version update data; When the data amount is greater than a preset data amount, the first update prompt information is sent to the second server.

3. An application updating method, applied to a second electronic device, characterized in that: The method comprises: Receive second update prompt information sent by a second server, wherein the second update prompt information includes: a first application identifier, a download link of a second version to be updated, and second version information to be updated; the second update prompt information is used to download update data of the first application, and the second update prompt information is sent by the second server based on the first update prompt information; the first update prompt information includes version update information; the version information is received after the first electronic device sends a first update request to the first server; the version information is also used for the first electronic device to download version update data from the first server based on the version update information, and perform a version update on the first application; wherein the first update request carries a first application identifier and the first version information of the first application that has been installed; the version update information includes: a download link of a second version to be updated, and second version information to be updated; If the update data corresponding to the second version information is not downloaded locally, downloading the version update data from the first server according to the second update prompt information while connected to the wireless local area network; When a first application update instruction is detected, the remote resource download is switched to local resource loading, and the version update data of the first application is loaded locally.

4. The method according to claim 3, characterized in that Before the step of receiving the second update prompt information sent by the second server, the method further includes: Receiving a configuration acquisition request sent by the second server; In response to the configuration acquisition request, configuration information is sent to the second server, wherein the configuration information includes: identification information and version information of each installed application.

5. The method according to claim 3, characterized in that: After the step of downloading the version update data from the first server according to the second update prompt information in the state of being connected to the wireless local area network, the method further includes: Monitoring the storage duration of the version update data locally; When the storage time exceeds a preset time and the version update data is not loaded, the version update data is deleted.

6. An application updating device, characterized in that: The device comprises: A first sending module, configured to send a first update request to a first server when a version update of a first application of a first electronic device is detected, wherein the first update request carries a first application identifier and first version information of the installed first application; A first receiving module is configured to receive version update information of the first application returned by the first server, wherein the version update information includes: a download link of a second version to be updated and information of the second version to be updated; A first downloading module, configured to download version update data from the first server according to the version update information, and perform version update on the first application; The second sending module is used to send the first update prompt information to the second server, so that the second server sends the second update prompt information for downloading the update data of the first application to the second electronic device according to the first update prompt information, wherein the first update prompt information includes the version update information.

7. The device according to claim 6, characterized in that The second sending module includes: A first submodule is used to detect the data volume of the version update data; The second submodule is used to send the first update prompt information to the second server when the data amount is greater than a preset data amount.

8. An application updating device, applied to a second electronic device, characterized in that: The device comprises: A second receiving module is used to receive second update prompt information sent by a second server, wherein the second update prompt information includes: a first application identifier, a download link of a second version to be updated, and second version information to be updated; the second update prompt information is used to download update data of the first application, and the second update prompt information is sent by the second server according to the first update prompt information; the first update prompt information includes version update information; the version information is received after the first electronic device sends a first update request to the first server; the version information is also used for the first electronic device to download version update data from the first server according to the version update information, and perform version update on the first application; wherein the first update request carries the first application identifier and the first version information of the first application that has been installed; the version update information includes: a download link of the second version to be updated, and second version information to be updated; A second downloading module, configured to download the version update data from the first server according to the second update prompt information when the update data corresponding to the second version information is not downloaded locally and the wireless local area network is connected; The loading module is used to switch the remote resource download to the local resource loading when detecting the first application update instruction, and load the version update data of the first application from the local.

9. The device according to claim 8, characterized in that The device also includes: A third receiving module, configured to receive a configuration acquisition request sent by the second server before receiving the second update prompt information sent by the second server; The third sending module is used to send configuration information to the second server in response to the configuration acquisition request, wherein the configuration information includes: identification information and version information of each installed application.

10. The device according to claim 8, characterized in that The device also includes: A monitoring module, configured to monitor the local storage time of the version update data after the second downloading module downloads the version update data from the first server according to the second update prompt information in a state of being connected to the wireless local area network; The deleting module is used to delete the version update data when the storage time exceeds a preset time and the version update data has not been loaded.

Citation Information

Patent Citations

  • Information processing method and first electronic device terminal

    CN103810010A

  • Method and terminal for software upgrading

    CN104903857A

  • Backup system and method

    CN105554137A

  • OTA upgrading control method and apparatus

    CN106469077A

  • Hot deployment device and method

    CN106502751A