Upgrading method, electronic equipment and storage medium

Through the version information comparison and package update mechanism between electronic devices and network devices, the problem of large data traffic and slow download speed of terminal devices when obtaining installation packages from the server at the same time is solved, and fast and reliable application upgrades and server load reduction are achieved.

CN120428985APending Publication Date: 2025-08-05ZTE TERMINAL CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410154810.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-02
Publication Date
2025-08-05

AI Technical Summary

Technical Problem

When the terminal device obtains the installation package from the server at the same time, it leads to large data traffic and slow download speed, which affects the user experience.

Method used

The electronic device sends a version information acquisition request to the network device by obtaining the version information of the local installation package, and directly or updates the installation package of the network device when determining that the local version is higher than the network device version, thereby reducing data transmission from the server.

Benefits of technology

It realizes a fast and reliable application upgrade process, reduces the server's data transmission pressure and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120428985A_ABST
    Figure CN120428985A_ABST
Patent Text Reader

Abstract

The invention provides an upgrading method, electronic equipment and a storage medium, and can solve the technical problems of low downloading speed and poor user experience when a terminal obtains an installation package in the related technology. The method comprises the following steps: acquiring first version information of a first installation package of a target application stored in the first electronic equipment; sending a version information acquisition request to the target network device, the version information acquisition request being used for requesting the target network device to send second version information of a second installation package of the target application, the second installation package being an installation package of the target application stored on the target network device; when the second version information sent by the target network device is received and it is determined that the first version information is higher than the second version information, the first installation package is sent to the target network device; or under the condition that the second version information sent by the target network equipment is not received, sending the first installation package to the target network equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technologies, and particularly to an upgrade method, an electronic device, and a storage medium. Background Art

[0002] Currently, for an application installed in a terminal, the terminal can obtain an installation package of an updated version related to the application from a server to update the application in the terminal.

[0003] However, in the above method, when a large number of terminals simultaneously access the server to obtain the installation package, there are problems such as large data traffic, large impact on the server, and slow download speed, which will affect the user experience. Summary of the Invention

[0004] Embodiments of the present disclosure provide an upgrade method, an electronic device, and a storage medium, which can at least solve the technical problems of slow download speed and poor user experience when a terminal obtains an installation package in related technologies.

[0005] On the one hand, an upgrade method is provided, which is applied to a first electronic device and includes: obtaining first version information of a first installation package of a target application stored in the first electronic device; sending a version information acquisition request to the target network device, where the version information acquisition request is used to request the target network device to send second version information of a second installation package of the target application, and the second installation package is an installation package of the target application stored on the target network device; in the case of receiving the second version information sent by the target network device and determining that the first version information is higher than the second version information, sending the first installation package to the target network device; or in the case of not receiving the second version information sent by the target network device, sending the first installation package to the target network device.

[0006] On the other hand, another upgrade method is provided, which is applied to a target network device and includes: receiving a version information acquisition request sent by a first electronic device, where the version information acquisition request is used to request second version information of a second installation package of a target application; in the case of confirming that there is second version information of the second installation package of the target application, sending the second version information to the first electronic device, and the second installation package is an installation package of the target application stored on the target network device; receiving the first installation package sent by the first electronic device; and updating the second installation package to the first installation package.

[0007] In another aspect, an upgrade device is provided, which is applied to a first electronic device and includes an acquisition module and a sending module. The acquisition module is configured to acquire the first version information of the first installation package of the target application stored in the first electronic device. The sending module is configured to send a version information acquisition request to the target network device, and the version information acquisition request is used to request the second version information of the second installation package of the target application, where the second installation package is the installation package of the target application stored on the target network device. The sending module is further configured to, when receiving the second version information sent by the target network device and determining that the first version information is higher than the second version information, send the first installation package to the target network device; or when not receiving the second version information sent by the target network device, send the first installation package to the target network device.

[0008] In another aspect, another upgrade device is provided, which is applied to a target network device and includes a receiving module, a sending module, and an update module. The receiving module is configured to receive the version information acquisition request sent by the first electronic device, and the version information acquisition request is used to request the second version information of the second installation package of the target application. The sending module is configured to, when confirming the existence of the second version information of the second installation package of the target application, send the second version information to the first electronic device, where the second installation package is the installation package of the target application stored on the target network device. The receiving module is further configured to receive the first installation package sent by the first electronic device. The update module is configured to update the second installation package to the first installation package.

[0009] In another aspect, an electronic device is provided, which includes a memory and a processor. The memory and the processor are coupled. The memory is used to store a computer program. When the processor executes the computer program, the upgrade method described in any of the above embodiments is implemented.

[0010] In another aspect, a computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the upgrade method described in any of the above embodiments is implemented.

[0011] In another aspect, a computer program product is provided, which includes computer program instructions. When the computer program instructions are executed by a processor, the upgrade method described in any of the above embodiments is implemented.

[0012] In an embodiment of the present disclosure, a first electronic device obtains first version information of a first installation package of a target application stored in the first electronic device; the first electronic device sends a version information acquisition request to a target network device; when it is determined that the first version information is higher than the second version information, it indicates that the first electronic device may have obtained a higher-level installation package (i.e., the first installation package) from a server or other network devices. At this time, the first electronic device may send the first installation package to the target network device, or when the second version information sent by the target network device is not received, it indicates that there is no second installation package of the target application in the target network device. At this time, the first electronic device directly sends the first installation package to the target network device. Thus, based on the first electronic device sending a higher-level installation package to the target network device and the target network device sending the higher-level installation package to other electronic devices (such as a second electronic device) connected to the target network device, other electronic devices can be upgraded based on the installation package, and further, the upgrade process of the application in the electronic device can be completed quickly and reliably, improving the user experience. In addition, based on this process, the electronic device can obtain the installation package not only from the server, thereby reducing the data transmission pressure on the server. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] To more clearly illustrate the technical solutions in the present disclosure, the following briefly introduces the drawings required to be used in some embodiments of the present disclosure. Obviously, the drawings in the following description are only the drawings of some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings.

[0014] Figure 1 Schematic diagram of the network architecture of an upgrade system provided in some embodiments of the present disclosure;

[0015] Figure 2 Schematic diagram of the internal structure of an electronic device provided in some embodiments of the present disclosure;

[0016] Figure 3 Schematic diagram of the internal structure of a network device provided in some embodiments of the present disclosure;

[0017] Figure 4 Schematic diagram of the flowchart of an upgrade method provided in some embodiments of the present disclosure;

[0018] Figure 5 Schematic diagram of the flowchart of another upgrade method provided in some embodiments of the present disclosure;

[0019] Figure 6 Schematic diagram of the flowchart of another upgrade method provided in some embodiments of the present disclosure;

[0020] Figure 7Schematic flowchart of another upgrade method provided by some embodiments of the present disclosure;

[0021] Figure 8 Schematic flowchart of another upgrade method provided by some embodiments of the present disclosure;

[0022] Figure 9 Schematic flowchart of another upgrade method provided by some embodiments of the present disclosure;

[0023] Figure 10 Schematic diagram of installation package transmission of an upgrade method provided by some embodiments of the present disclosure;

[0024] Figure 11 Schematic structural diagram of an upgrade device provided by some embodiments of the present disclosure;

[0025] Figure 12 Schematic structural diagram of another upgrade device provided by some embodiments of the present disclosure;

[0026] Figure 13 Schematic structural diagram of another upgrade device provided by some embodiments of the present disclosure. Detailed implementation manners

[0027] Next, the technical solutions in the present disclosure will be clearly and completely described in conjunction with the accompanying drawings in the present disclosure. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present disclosure without creative efforts shall fall within the protection scope of the present disclosure.

[0028] It should be noted that in the present disclosure, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the present disclosure should not be construed as more preferred or more advantageous than other embodiments or design solutions. Exactly, using words such as "exemplary" or "for example" aims to present relevant concepts in a specific manner.

[0029] Hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features.

[0030] In the description of the present disclosure, unless otherwise specified, "at least one" means one or more, and "multiple" means two or more than two.

[0031] Based on what is described in the background art, in the related art, when a large number of terminals simultaneously obtain a higher-level installation package related to the application from the server, there are problems of large data traffic and slow download speed, which will affect the user experience. In an exemplary implementation, there may be at least one router between the terminal and the server. The at least one router can obtain and store the installation package from the server, and then the terminal can obtain the installation package from the at least one router. Based on this, the embodiments of the present disclosure provide an upgrade method, an electronic device, and a computer-readable storage medium. The first electronic device can first determine whether the first version information is higher than the second version information; when the first version information is higher than the second version information, it means that the version of the installation package of the target application (i.e., the first installation package) stored in the first electronic device is higher than the version of the installation package of the target application (i.e., the second installation package) stored in the target network device. The first electronic device may have obtained a higher-level installation package (i.e., the first installation package) from the server or other network devices. At this time, the first electronic device can send the first installation package to the target network device so that the target network device can update the second installation package to the first installation package, so that a higher-level installation package can be stored in the target network device, which can ensure that the target network device can store and provide a higher-level installation package, providing a basis for upgrading the second electronic device and the like. It can quickly and reliably assist the user to complete the application upgrade process. In addition, based on this process, the electronic device can not only obtain the installation package from the server, thereby reducing the data transmission pressure on the server.

[0032] The upgrade method, electronic device, and computer storage medium provided by the embodiments of the present disclosure can be applied to an upgrade system. As Figure 1 described, the upgrade system may include electronic device 101, electronic device 102, electronic device 103, network device 104, network device 105, and server 106. Usually, in practical applications, the connections between the above devices can be wireless connections or wired connections. For the convenience of intuitively representing the connection relationships between the devices, Figure 1 solid lines are used in the figure for illustration.

[0033] Among them, the electronic device 101 is used to send a first version information acquisition request to the server 106. The first version information acquisition request may include the identifier of the target application, and the first version information acquisition request is used to request to obtain the version of the installation package of the target application stored in the server 106.

[0034] The electronic device 102 is used to receive the first installation package (i.e., the installation package of the target application stored in the electronic device 101) sent by the network device 104, and upgrade the target application based on the first installation package.

[0035] The network device 104 is configured to receive the first installation package sent by the electronic device 101 and update the second installation package (i.e., the installation package of the target application stored in the network device 104) to the first installation package.

[0036] The server 106 is configured to send the third version information to the electronic device 101, and the third version information is the version information of the third installation package (i.e., the installation package of the target application stored in the server 106).

[0037] It can be understood that Figure 1 the 1 server, 2 network devices, and 3 electronic devices shown in

[0038] are only examples in the embodiments of the present disclosure, and the present disclosure does not specifically limit the number of each device included in the above upgrade system.

[0039] In some embodiments, the above electronic devices (which may include the electronic device 101, the electronic device 102, and the electronic device 103) may be mobile phones, tablet computers, desktops, laptops, handheld computers, notebook computers, ultra-mobile personal computers (UMPCs), netbooks, as well as cellular phones, personal digital assistants (PDAs), augmented reality (AR), virtual reality (VR) devices. The present disclosure does not impose special restrictions on the specific form of the electronic device. It can perform human-computer interaction with the user through one or more of a keyboard, touchpad, touch screen, remote control, voice interaction, or handwriting device.

[0040] Exemplarily, the above server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (content delivery network, CDN), as well as big data and artificial intelligence platforms.

[0041] In one implementation, asFigure 2 As shown, the above electronic device may include a database module 201, a detection module 202, a download module 203, an upload module 204, and a verification module 205.

[0042] Among them, the database module 201 is used to store the identifier of the above server to send data to the server; the database module is also used to store trigger events; the database module is also used to manage the installation packages stored on the electronic device.

[0043] The detection module 202 is used to detect whether a trigger event occurs, and when the trigger event occurs, determine whether the first version information is lower than the third version information. The trigger event may include any one of the following: the current moment is the polling moment (the moment when the electronic device determines whether there is a new version information of the target application's installation package from the server), the first electronic device is connected to the network, and the first electronic device detects a screen-off event.

[0044] The download module 203 is used to receive the second installation package sent by the target network device. The second installation package is the installation package of the target application stored in the target network device.

[0045] The upload module 204 is used to send the first installation package to the target network device when the first version information is higher than the second version information. The first version information is the version of the first installation package, the second version information is the version information of the second installation package, the first installation package is the installation package of the target application stored in the database module 201, and the second installation package is the installation package of the target application stored in the target network device.

[0046] The verification module 205 is used to determine whether the verification information of the second installation package is the same as the verification information of the first detected installation package. The version information of the first detected installation package and the second installation package is the same, and the first detected installation package is the installation package of the target application stored on the server.

[0047] In another implementation, as Figure 3 shown, the above network device may include an upload and reception module 301, a download and sending module 302, and an installation package management module 303.

[0048] Among them, the upload and reception module 301 is used to receive the first installation package.

[0049] The download and sending module 302 is used to send the second installation package.

[0050] The installation package management module 303 is used to manage the installation packages stored in the network device. (In an exemplary embodiment, the installation package management module can actively obtain the high-version installation packages from the server, or obtain the high-version installation packages from the electronic device, and can also perform deletion and sending operations on the installation packages stored on the target network device).

[0051] The following introduces the upgrade method provided by the embodiments of the present disclosure from the perspective of the interaction of each device included in the above upgrade system. In an exemplary embodiment, as Figure 4 shown, the upgrade method may include, but is not limited to, operations S101 - S103.

[0052] S101. The first electronic device obtains the first version information of the first installation package of the target application stored in the first electronic device.

[0053] It should be understood that multiple applications can be installed and run in the first electronic device, and the multiple applications can implement their respective provided functions or services. The above target application is any one of the multiple applications.

[0054] It can be understood that the target application can be software (such as an operating system, an application program, or a tool, etc.) or firmware, and the target application can be upgraded.

[0055] In some embodiments, the above storage method can be local storage, remote storage, or other distributed storage.

[0056] S102. The first electronic device sends a version information acquisition request to the target network device.

[0057] Among them, the version information acquisition request is used to request the target network device to send the second version information of the second installation package of the target application, and the second installation package is the installation package of the target application stored on the target network device.

[0058] Combined with Figure 1 the upgrade system shown in, it should be understood that a network device (such as the target network device) can be connected to at least two electronic devices (including the first electronic device and the second electronic device), and an electronic device (such as the first electronic device) can also be connected to at least two network devices (including the target network device and other network devices in the network). The first electronic device can obtain the installation packages of relevant applications from the network devices connected to the first electronic device, or obtain the installation packages from the server.

[0059] It can be understood that when the version of the first version is higher than that of the second version, it indicates that the version of the installation package of the target application (i.e., the first application installation package) stored in the first electronic device is higher than the version of the installation package of the target application (i.e., the second application installation package) stored in the target network device. The first electronic device may have obtained a higher-level installation package (i.e., the first application installation package) from the server or other network devices. At this time, the first electronic device can send a version update instruction to the target network device, that is, instruct the target network device to update the second application installation package to the first application installation package, so that the target network device can store a higher-level installation package, which can ensure that the target network device can store and provide a higher-level installation package, providing a basis for upgrading for the second electronic device and the like.

[0060] S103. When receiving the second version information sent by the target network device and determining that the first version information is higher than the second version information, the first electronic device sends the first installation package to the target network device, or when not receiving the second version information sent by the target network device, the first electronic device sends the first installation package to the target network device.

[0061] It should be understood that when determining that the first version information is higher than the second version information, it indicates that the first electronic device may have obtained a higher-level installation package (i.e., the first installation package) from the server or other network devices. At this time, the first electronic device can send the first installation package to the target network device, so that the target network device updates the second installation package to the first application installation package, so that the target network device can store a higher-level installation package, which can ensure that the target network device can store and provide a higher-level installation package, providing a basis for upgrading for the second electronic device and the like.

[0062] It can be understood that when not receiving the second version information sent by the target network device, it indicates that there is no second installation package of the target application in the target network device. At this time, the first electronic device directly sends the first installation package to the target network device.

[0063] The above upgrade method can run in a network device. When running in a network device, the upgrade method provided by the embodiments of the present disclosure may include S104 - S107.

[0064] S104. The target network device receives a version information acquisition request sent by the first electronic device.

[0065] S105. When confirming the second version information of the second installation package of the target application, the target network device sends the second version information to the first electronic device.

[0066] It should be understood that in the case where the second version information of the second installation package of the target application is confirmed to exist, it indicates that the second version information exists in the target network device, that is, the target network device can send the second version information to the first electronic device.

[0067] It can be understood that in the case where it is confirmed that the second version information does not exist in the target network device, it indicates that the second installation package of the target application does not exist in the target network device. At this time, the target network device does not send the second version information to the first electronic device.

[0068] S106. The target network device receives the first installation package sent by the first electronic device.

[0069] S107. The target network device updates the second installation package to the first installation package or determines the first installation package as the second installation package in the case where the second installation package does not exist in the target network device.

[0070] It should be understood that the target network device updating the second installation package to the first installation package specifically means replacing the second installation package stored in the target network device with the first installation package. Since the target network device stores a higher-level installation package at this time, the target network device can send the higher-level installation package to other electronic devices (such as the second electronic device) connected to the target network device, so that the other electronic devices can upgrade the target application based on the higher-level installation package.

[0071] In some embodiments, the target network device can send the first installation package to at least one second electronic device, so that the second electronic device upgrades the target application based on the first installation package. The second electronic device is an electronic device connected to the target network device. It should be noted that in an exemplary implementation manner, the target network device can record the applications and version information currently installed on each electronic device during the interaction with at least one first electronic device or second electronic device, and after combining the above upgrade operations, select the electronic device corresponding to the installed target application to send the first installation package.

[0072] In some embodiments, the target network device can send installation package upgrade information to the electronic device when the electronic device accesses the target network device, prompting the electronic device that the second installation package on the target network device has been updated, so that the electronic device determines whether the first version information is lower than the second version information.

[0073] In some embodiments, the target network device is interconnected with multiple network devices. The target network device can send the first installation package to the multiple network devices, so that the multiple network devices update the installation package of the target application stored on the multiple network devices based on the first installation package.

[0074] In an embodiment of the present disclosure, a first electronic device obtains first version information of a first installation package of a target application stored in the first electronic device; the first electronic device sends a version information acquisition request to a target network device; when it is determined that the first version information is higher than the second version information, it indicates that the first electronic device may have obtained a higher-level installation package (i.e., the first installation package) from a server or other network devices. At this time, the first electronic device may send the first installation package to the target network device, or when the second version information sent by the target network device is not received, it indicates that the second installation package of the target application does not exist in the target network device. At this time, the first electronic device directly sends the first installation package to the target network device. Thus, based on the first electronic device sending a higher-level installation package to the target network device and the target network device sending the higher-level installation package to other electronic devices (such as a second electronic device) connected to the target network device, other electronic devices can be upgraded based on the installation package, and furthermore, the upgrade process of the application in the electronic device can be completed quickly and reliably, improving the user experience. In addition, based on this process, the electronic device can obtain installation packages not only from the server, thereby reducing the data transmission pressure on the server.

[0075] Further, the target network device receives the version information acquisition request sent by the first electronic device; when it is confirmed that there is second version information of a second installation package of the target application, it indicates that the second version information exists in the target network device, that is, the target network device can send the second version information to the first electronic device. Thus, for a network device (such as the target network device), the target network device can obtain a higher-level application installation package from an electronic device to complete the upgrade of the installation package stored in itself. At the same time, after the target network device upgrades the installation package stored in itself, it can provide the higher-level application installation package for other electronic devices to meet the upgrade process of the other electronic devices, ensuring the effectiveness of the upgrade. In addition, based on this process, the network device can obtain installation packages not only from the server, thereby also reducing the data transmission pressure on the server.

[0076] In some embodiments, the first electronic device may determine whether the first version information is lower than the third version information in response to a trigger event; when the first version information is lower than the third version information, the first electronic device obtains a third application installation package from the server; the first electronic device upgrades the target application based on the third application installation package.

[0077] Wherein, the third version information is the version information of the third application installation package, and the third application installation package is the installation package of the target application stored in the server.

[0078] It should be understood that since the first version information is the version information of the first application installation package, the first application installation package is the installation package of the target application stored in the first electronic device, the third version information is the version information of the third application installation package, and the third application installation package is the installation package of the target application stored in the server. Therefore, when the first version information is lower than the third version information, it indicates that the version information of the installation package of the target application stored in the first electronic device is lower than the version information of the installation package of the target application stored in the server. That is, the first electronic device needs to obtain the installation package of the target application at a higher level. At this time, the first electronic device can obtain the third application installation package from the server.

[0079] In one implementation, the trigger event may include any one of the following: the current time is the polling time (the time when the electronic device determines whether there is a new version information of the application installation package of the target application from the server), the first electronic device is connected to the network, and the first electronic device detects a screen-off event.

[0080] It should be understood that when the trigger event is that the current time is the polling time, the polling time means that there may be a high-level application installation package of the target application on the first electronic device at this time. At this time, the first electronic device determines whether the first version information is lower than the third version information, so that the first electronic device can obtain the high-level application installation package in time when there is a high-level application installation package, so as to ensure that the target application can be upgraded in time.

[0081] When the trigger event is that the first electronic device is connected to the network, that is, after changing from the offline state to the online state, the version information of the target application on the first electronic device may be lower, and there may be a high-version information installation package that can be obtained. At this time, the first electronic device determines whether the first version information is lower than the third version information to ensure the management of the version information of the target application.

[0082] When the trigger event is that the first electronic device detects a screen-off event, the screen-off event indicates that there is an abnormality when the target application is running, which may be caused by the relatively low current version information. At this time, the first electronic device determines whether the first version information is lower than the third version information to assist in troubleshooting the abnormal situation of the application running.

[0083] In an exemplary implementation, the first electronic device sends an installation package acquisition request to the server. The installation package acquisition request may include the identifier of the target application; the server receives the installation package acquisition request; the server sends an installation package acquisition response to the first electronic device, and the installation package acquisition response includes the third application installation package; the first electronic device receives the installation package acquisition response. In this way, the first electronic device obtains the third application installation package.

[0084] In an embodiment of the present disclosure, in response to a trigger event, the first electronic device determines whether the first version information is lower than the third version information. Since the first version information is the version information of the first application installation package, the first application installation package is the installation package of the target application stored in the first electronic device, and the third version information is the version information of the third application installation package, and the third application installation package is the installation package of the target application stored in the server. Therefore, when the first version information is lower than the third version information, it indicates that the version information of the installation package of the target application stored in the first electronic device is lower than the version information of the installation package of the target application stored in the server. That is, the first electronic device needs to obtain the installation package of the target application at a higher level. At this time, the first electronic device obtains the third application installation package from the server, and the first electronic device upgrades the target application based on the third application installation package. Furthermore, when the first electronic device is connected to the above-mentioned target network device and the above-mentioned first version information is higher than the above-mentioned second version information, the first electronic device may send a version information update instruction to the above-mentioned target network device to update the above-mentioned second application installation package to the first application installation package. In this way, the first electronic device can obtain the installation package of the application at a higher level and send the installation package of the application at a higher level to the target network device, so that the target network device can send the installation package at a higher level to the second electronic device for the second electronic device to upgrade. Since the second electronic device does not need to obtain the installation package of the application at a higher level from the server again, the upgrade of the second electronic device is ensured to be fast and effective.

[0085] In some embodiments, the first electronic device determines whether the first version information is lower than the third version information specifically as follows: In response to a trigger event, the first electronic device sends a version information acquisition request to the server; the server receives the version information acquisition request sent by the first electronic device; the server sends a version information acquisition response to the first electronic device; the first electronic device receives the version information acquisition response sent by the server; the first electronic device obtains the identifier of the first version information, and determines whether the first version information is lower than the third version information based on the identifier of the first version information and the identifier of the third version information.

[0086] Among them, the version information acquisition request includes the identifier of the target application, and the version information acquisition request is used to request to obtain the version information of the installation package of the target application stored in the server. The version information acquisition response includes the identifier of the third version information.

[0087] In an implementation manner of the embodiment of the present disclosure, the server may determine the identifier of the third version information based on the identifier of the target application, and send the version information acquisition response to the first electronic device based on the identifier of the third version information.

[0088] In an embodiment of the present disclosure, in response to a trigger event, a first electronic device sends a version information acquisition request to a server. The first electronic device receives a version information acquisition response sent by the server. The first electronic device acquires an identifier of the first version information, and determines whether the first version information is lower than the third version information based on the identifier of the first version information and the identifier of the third version information. Thus, based on the identifier of the third version information and the identifier of the first version information obtained from the server, the first electronic device can accurately and reliably determine whether the first version information is lower than the third version information. Furthermore, the first electronic device can determine whether to execute acquiring the third application installation package from the server.

[0089] Combined with Figure 4 , as Figure 5 shown, the upgrade method provided by the embodiment of the present disclosure further includes S108 - S110.

[0090] S108. When receiving the second version information sent by a target network device and determining that the second version information is higher than the first version information, the first electronic device sends a first upgrade request to the target network device.

[0091] Among them, the first upgrade request is used to request the target network device to send the second installation package.

[0092] It should be understood that when receiving the second version information sent by the target network device and determining that the second version information is higher than the first version information, it indicates that the version of the second installation package is higher than the version of the first installation package, that is, the target application on the first electronic device can be upgraded based on the second installation package. At this time, the target network device sends a first upgrade indication to the first electronic device.

[0093] In an implementation manner of the embodiment of the present disclosure, the first electronic device sends the first version information to the target network device; the target network device receives the first version information, and determines whether the second version information is higher than the first version information based on the first version information and the second version information; when the second version is higher than the first version, the target network device sends the second installation package to the first electronic device, and the first electronic device receives the second installation package and upgrades the target application based on the second installation package.

[0094] In an implementation manner, the first electronic device sends the first version information to the target network device at the moment of connecting to the target network device.

[0095] In another implementation manner of the embodiments of the present disclosure, the first electronic device sends a second version information acquisition request to the target network device. The second version information acquisition request includes an identifier of the target application. The first version information acquisition request is used to request to obtain the version information of the installation package of the target application stored in the target network device. The target network device sends a second version information acquisition response to the first electronic device. The second version information acquisition response includes an identifier of the second version. The first electronic device receives the second version information acquisition response, and when the second version information is higher than the first version information, sends version judgment information to the target network device. The version judgment information is used to indicate that the second version information is higher than the first version information. The target network device receives the version judgment information and sends the first upgrade instruction to the first electronic device.

[0096] S109. The first electronic device receives a second installation package sent by the target network device.

[0097] S110. The first electronic device updates the first installation package to the second installation package and upgrades the target application based on the second installation package.

[0098] When upgrading the method on the target network device of Yunxingyu, the above method includes S111 - S112.

[0099] S111. The target network device receives a first upgrade request sent by the first electronic device.

[0100] S112. When receiving the first upgrade request, the target network device sends a second installation package to the first electronic device, so that the first electronic device upgrades the target application based on the second installation package.

[0101] In the embodiments of the present disclosure, when receiving the second version information sent by the target network device and determining that the second version information is higher than the first version information, it indicates that the version of the second installation package is higher than the version of the first installation package, that is, the target application on the first electronic device can be upgraded based on the second installation package. At this time, the target network device sends a first upgrade instruction to the first electronic device. The first electronic device receives the second installation package sent by the target network device. The first electronic device updates the first installation package to the second installation package and upgrades the target application based on the second installation package. In this way, the first electronic device can obtain a higher-level second application installation package from the target network device and complete the upgrade of the target application on the first electronic device based on the second application installation package, ensuring the effectiveness and reliability of the upgrade of the first electronic device.

[0102] On the other hand, the target network device receives the first upgrade request sent by the first electronic device. When receiving this first upgrade request, the target network device sends a second installation package to the first electronic device, so that the first electronic device upgrades the target application based on the second installation package. In this way, when the version of the first installation package is relatively low, the target network device can send a higher-level second installation package to the first electronic device, enabling the first electronic device to upgrade the target application based on the second installation package. The first electronic device does not need to perform data transmission with the server to complete the upgrade, ensuring the fast and effective upgrade on the first electronic device.

[0103] Combined Figure 5 , such as Figure 6 shown, the above upgrade of the target application based on the second installation package may include S1101 - S1103.

[0104] S1101. The first electronic device analyzes and processes the second installation package to obtain the verification information of the second installation package.

[0105] S1102. The first electronic device obtains the verification information related to the second version information from the server.

[0106] Among them, the verification information related to the second version is the verification information of the legitimate installation package of the target application with the second version information.

[0107] In an exemplary embodiment, the first electronic device sends a first verification information acquisition request to the server. The first verification information acquisition request includes the identifier of the target application and the second version information. The server receives the first verification information acquisition request sent by the first electronic device. The server sends a first verification information acquisition response to the first electronic device. The first verification information acquisition response includes the verification information related to the second version information. The first electronic device receives the first verification information acquisition response to obtain the verification information related to the second version information.

[0108] S1103. When it is determined that the verification information of the second installation package is the same as the verification information related to the second version information, upgrade the target application based on the second installation package.

[0109] It should be understood that the verification information related to the second version information can be used to judge the data security and data integrity of the installation package corresponding to the second version information.

[0110] It can be understood that when it is determined that the verification information of the second installation package is the same as the verification information related to the second version information, it indicates that the data in the installation package is safe and complete. At this time, the first electronic device upgrades the target application based on the second installation package.

[0111] It can be understood that when it is determined that the verification information of the second installation package is different from the verification information related to the second version information, it indicates that the data of the installation package has been modified, there may be security risks, or there are abnormalities such as missing data in the installation package, and it may not be used properly. At this time, the first electronic device may delete the second installation package.

[0112] In an embodiment of the present disclosure, the first electronic device analyzes and processes the second installation package to obtain the verification information of the second installation package. The first electronic device obtains the verification information related to the second version information from the server. When it is determined that the verification information of the second installation package is the same as the verification information related to the second version information, it indicates that the data in the installation package is safe and complete. At this time, the first electronic device upgrades the target application based on the second installation package. In this way, it can be ensured that when the first electronic device upgrades the target application based on the second installation package, the second installation package is normal, ensuring the reliability and security of the upgrade of the first electronic device.

[0113] Combined with Figure 4 , such as Figure 7 shown, the above-mentioned target network device updating the second application installation package to the first application installation package may include S1071 - S1073.

[0114] S1071. The target network device analyzes and processes the first installation package to obtain the verification information of the first installation package.

[0115] S1072. The target network device obtains the verification information related to the first version information from the server.

[0116] Among them, the verification information related to the first version information is the verification information of the legitimate installation package of the target application with the first version information.

[0117] Among them, the version identifier of the second detection installation package is the same as the version identifier of the first installation package.

[0118] In an exemplary embodiment, the target network device sends a second verification information acquisition request to the server. The second verification information acquisition request includes the identifier of the target application and the version identifier of the first installation package; the server receives the second verification information acquisition request; the server sends a second verification information acquisition response to the target network device. The second verification information acquisition response includes the verification information of the second detection installation package; the target network device receives the second verification information acquisition response to obtain the verification information of the second detection installation package.

[0119] S1073. When it is determined that the verification information of the first installation package is the same as the verification information related to the first version information, the target network device updates the second installation package to the first installation package.

[0120] It should be understood that when it is determined that the verification information of the first installation package is the same as the verification information related to the first version information, it indicates that there is no abnormality in the first installation package. At this time, the target network device updates the second installation package to the first installation package.

[0121] In one implementation, when it is determined that the verification information of the first installation package is different from the verification information related to the first version information, the target network device deletes the first installation package.

[0122] In one implementation of the embodiments of the present disclosure, the verification information of the first installation package related to the first version information and the verification information of the second installation package related to the second version information can be any of the following: md5 (message digest algorithm 5), hash value, installation package signature, etc.

[0123] In the embodiments of the present disclosure, the target network device analyzes the first installation package to obtain the verification information of the first installation package. The target network device obtains the verification information of the second detection installation package from the server. Since the verification information of the first installation package can represent the information of the first installation package, and the verification information of the second detection installation package can represent the information of the second detection installation package, when the verification information of the first installation package is the same as the verification information of the second detection installation package, it indicates that there is no abnormality in the first installation package. At this time, the target network device updates the second installation package to the first installation package. In this way, it can be ensured that the first installation package updated on the target network device is not abnormal. Furthermore, when the target network device sends the first installation package to the electronic device that needs to update the target application, the electronic device that needs to update the target application can safely and reliably update the target application based on the first installation package.

[0124] In one implementation of the embodiments of the present disclosure, when multiple electronic devices are connected to the target network device, the multiple electronic devices include a first electronic device and a second electronic device. The version information acquisition requests sent by the multiple electronic devices received by the target network device also include the upload requirement parameters of the multiple electronic devices respectively. The upload requirement parameters of the multiple electronic devices are respectively used to represent the installation package upload requirement levels of the multiple electronic devices. Combining Figure 4 , as Figure 8 shown, the above-mentioned target network device sending the second version information to the first electronic device may include:

[0125] S1051 - S1052.

[0126] S1051. The target network device determines a target electronic device based on the respective upload requirement parameters of multiple electronic devices.

[0127] Among them, the target electronic device is the electronic device with the highest upload requirement among the multiple electronic devices.

[0128] S1052. The target network device sends the second version information to the target electronic device.

[0129] In the embodiments of the present disclosure, the target network device determines a target electronic device based on the respective upload requirement parameters of multiple electronic devices. Since the target electronic device is the electronic device with the highest upload requirement among the multiple electronic devices, the target network device sends the second version information to the target electronic device. In this way, it can be ensured that the target network device can first communicate with the electronic device with the highest upload requirement, thereby ensuring the reliability and effectiveness of the target network device to upgrade its own installation package.

[0130] In an implementation manner of the embodiments of the present disclosure, the upload requirement parameter may include one or more of the following: the number of installation packages to be uploaded and the installation package upload speed. The electronic device with the highest upload requirement is the electronic device with the largest number of installation packages to be uploaded and / or the fastest upload speed among the multiple electronic devices. In other implementation manners, the upload requirement parameter may also include parameters such as the network speed, device type, and resource usage situation of the terminal, so as to select a suitable electronic device based on the above parameters according to a preset rule.

[0131] In an implementation manner, the number of installation packages to be uploaded by an electronic device is the number of updated applications on the electronic device during the period from the last time the electronic device uploaded an installation package to the target network device to this time when uploading an installation package to the target network device.

[0132] The installation package upload speed is represented by the duration corresponding to the last time the electronic device uploaded an installation package to the target network device.

[0133] Combined Figure 4 , such as Figure 9 shown, the upgrade method provided in the embodiments of the present disclosure may further include S113 - S114.

[0134] S113. The target network device records the existence duration and / or the number of times sent of the second installation package on the target network device.

[0135] S114. When the existence duration is greater than the duration threshold and the number of times sent is less than the number threshold, the target network device deletes the second installation package.

[0136] It should be understood that when the existence duration is greater than the duration threshold and the number of transmissions is less than the number threshold, it indicates that the second installation package has existed on the target network device for a long time and has been transmitted fewer times. At this time, the target network device can delete the second installation package to release the storage resources of the target network device.

[0137] In the embodiments of the present disclosure, the target network device records the existence duration and / or the number of transmissions of the second installation package on the target network device. When the existence duration is greater than the duration threshold and the number of transmissions is less than the number threshold, it indicates that the second installation package has existed on the target network device for a long time and has been transmitted fewer times. At this time, the target network device deletes the second installation package to free the storage resources of the target network device.

[0138] In an implementation manner of the embodiments of the present disclosure, the first electronic device sends the first version information to the target network device. The target network device determines whether the first version information is higher than the second version information. If the first version information is higher than the second version information, the target network device sends an installation package acquisition request to the first electronic device. The first electronic device receives the installation package acquisition request and sends the first installation package to the target network device. The target network device receives the first installation package and updates the second installation package.

[0139] As Figure 10 shown, after an electronic device in the embodiments of the present disclosure obtains the application installation package of the new version of the target application, the transmission process of the application installation package of the new version of the target application can be as follows: The electronic device 401 sends the application installation package to the network device 402. The network device 402 sends the application installation package to the electronic devices 403 and 404 under the network device. The electronic device 403 sends the application installation package to the network device 405. The network device 405 sends the application installation package to the electronic devices 406 and 407 connected under the network device 405. The electronic device 406 sends the application installation package to the network device 408. The network device 408 sends the application installation package to the electronic devices 409 and 410 connected under the network device 408.

[0140] In an embodiment of the present disclosure, when an electronic device obtains a new version of an application installation package of a target application, it sends the package to a network device, which then sends it to other electronic devices, and these other electronic devices send it to other network devices. In this way, based on the electronic device that obtains the new version of the application installation package of the target application, the new version of the application installation package is transmitted outward, realizing the process that each electronic device that obtains the new version of the application installation package can provide the application installation package update for the network device. Furthermore, the network device can send the new version of the application installation package to the electronic devices that have not obtained the new version of the application installation package, enabling the number of transmissions of the new version of the application installation package to increase exponentially.

[0141] It can be understood that in order to implement the above functions, the upgrade device includes the corresponding hardware structure and / or software module for executing each function. Those skilled in the art should easily realize that, in combination with the algorithm steps of each example described in the embodiments of the present disclosure, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the way of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.

[0142] The embodiments of the present disclosure can divide the functional modules of the upgrade device according to the above method embodiments. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one functional module. The above integrated module can be implemented in the form of hardware or software. It should be noted that the division of modules in the embodiments of the present disclosure is illustrative, only a logical function division, and there may be other division methods in actual implementation. The following takes the example of dividing each functional module corresponding to each function for illustration.

[0143] Figure 11 is a schematic structural diagram of an upgrade device provided by an embodiment of the present disclosure. The upgrade device 50 can execute the upgrade method provided by the above method embodiment. As Figure 11 shown, the upgrade device 50 includes: an acquisition module 501 and a sending module 502.

[0144] The acquisition module 501 is configured to acquire the first version information of the first installation package of the target application stored in the first electronic device.

[0145] A sending module 502, configured to send a version information acquisition request to the target network device, where the version information acquisition request is used to request the target network device to send the second version information of the second installation package of the target application, and the second installation package is the installation package of the target application stored on the target network device.

[0146] The sending module 502 is further configured to, when receiving the second version information sent by the target network device and determining that the first version information is higher than the second version information, send the first installation package to the target network device, or send the first installation package to the target network device when the second version information sent by the target network device is not received.

[0147] Figure 12 FIG. is a schematic structural diagram of another upgrade device provided by an embodiment of the present disclosure. The upgrade device 60 may execute the upgrade method provided by the above method embodiment. As Figure 12 shown, the upgrade device 60 includes: a receiving module 601, a sending module 602, and an updating module 603.

[0148] The receiving module 601 is configured to receive a version information acquisition request sent by a first electronic device, where the version information acquisition request is used to request the second version information of the second installation package of the target application.

[0149] The sending module 602 is configured to, when confirming that there is the second version information of the second installation package of the target application, send the second version information to the first electronic device, and the second installation package is the installation package of the target application stored on the target network device.

[0150] The receiving module 601 is further configured to receive the first installation package sent by the first electronic device.

[0151] The updating module 603 is configured to update the second installation package to the first installation package.

[0152] In the case where the functions of the above integrated modules are implemented in the form of hardware, another possible structure of the upgrade device involved in the above embodiment is provided by an embodiment of the present disclosure. As Figure 13 shown, the upgrade device 70 includes: a processor 702, a bus 704. Optionally, the upgrade device may further include a memory 701; optionally, the upgrade device may further include a communication interface 703.

[0153] The processor 702 can be a device that implements or executes various exemplary logical blocks, modules, and circuits described in connection with the embodiments of the present disclosure. The processor 702 can be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array, or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It can implement or execute various exemplary logical blocks, modules, and circuits described in connection with the embodiments of the present disclosure. The processor 702 can 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.

[0154] The communication interface 703 is used to connect to other devices through a communication network. The communication network can be an Ethernet, a radio access network, a wireless local area network (WLAN), etc.

[0155] The memory 701 can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a disk storage medium, or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0156] As a possible implementation, the memory 701 can exist independently of the processor 702. The memory 701 can be connected to the processor 702 through a bus 704 for storing instructions or program code. When the processor 702 calls and executes the instructions or program code stored in the memory 701, any upgrade method provided by the embodiments of the present disclosure can be implemented.

[0157] In another possible implementation, the memory 701 can also be integrated with the processor 702.

[0158] The bus 704 can be an extended industry standard architecture (EISA) bus, etc. The bus 704 can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 13 only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus.

[0159] Some embodiments of the present disclosure provide a computer-readable storage medium (e.g., a non-transitory computer-readable storage medium) storing computer program instructions, which, when running on a computer, cause the computer to execute the upgrade method described in any one of the above embodiments.

[0160] Exemplarily, the above computer-readable storage medium may include, but is not limited to: magnetic storage devices (e.g., hard disks, floppy disks, or magnetic tapes, etc.), optical discs (e.g., Compact Disc (CD), Digital Versatile Disk (DVD), etc.), smart cards, and flash memory devices (e.g., Erasable Programmable Read-Only Memory (EPROM), cards, sticks, or key drives, etc.). The various computer-readable storage media described in the present disclosure may represent one or more devices and / or other machine-readable storage media for storing information. The term "machine-readable storage medium" may include, but is not limited to, wireless channels and various other media capable of storing, containing, and / or carrying instructions and / or data.

[0161] The embodiments of the present disclosure provide a computer program product containing instructions, which, when running on a computer, cause the computer to execute the upgrade method described in any one of the above embodiments.

[0162] As described above, the above are only the specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present disclosure should be covered by the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.

Claims

1. An upgrade method, characterized in that: Applied to a first electronic device, the method includes: Obtaining first version information of a first installation package of a target application stored in the first electronic device; Sending a version information acquisition request to the target network device, wherein the version information acquisition request is used to request the target network device to send second version information of a second installation package of the target application, where the second installation package is an installation package of the target application stored on the target network device; Upon receiving the second version information sent by the target network device and determining that the first version information is higher than the second version information, the first installation package is sent to the target network device; or upon not receiving the second version information sent by the target network device, the first installation package is sent to the target network device.

2. The upgrade method according to claim 1, characterized in that: The method further comprises: Upon receiving the second version information sent by the target network device and determining that the second version information is higher than the first version information, sending a first upgrade request to the target network device, where the first upgrade request is used to request the target network device to send the second installation package; receiving a second installation package sent by the target network device; The first installation package is updated to the second installation package, and the target application is upgraded based on the second installation package.

3. The upgrade method according to claim 2, characterized in that: The upgrading the target application based on the second installation package includes: Parsing the second installation package to obtain verification information of the second installation package; Obtaining verification information related to the second version information from a server, where the verification information related to the second version is verification information of a genuine installation package of the target application having the second version information; When it is determined that the verification information of the second installation package is identical to the verification information related to the second version information, the target application is upgraded based on the second installation package.

4. The upgrade method according to claim 1, characterized in that: The version information acquisition request also includes the upload requirement parameters of the first electronic device, so that the target network device determines the target electronic device based on the upload requirement parameters of multiple electronic devices. The upload requirement parameters of the first electronic device are used to characterize the installation package upload requirement level of the first electronic device.

5. The upgrade method according to claim 4, characterized in that: The upload requirement parameters include one or more of the following: the number of installation packages to be uploaded and the upload speed.

6. An upgrade method, characterized in that: Applied to a target network device, the method includes: receiving a version information acquisition request sent by the first electronic device, wherein the version information acquisition request is used to request second version information of a second installation package of a target application; If it is confirmed that there is second version information of a second installation package of the target application, sending the second version information to the first electronic device, where the second installation package is an installation package of the target application stored on the target network device; receiving a first installation package sent by the first electronic device; The second installation package is updated to the first installation package, or the first installation package is determined to be the second installation package when the second installation package does not exist in the target network device.

7. The upgrade method according to claim 6, characterized in that: The method further comprises: The first installation package is sent to at least one second electronic device, so that the second electronic device upgrades the target application based on the first installation package, where the second electronic device is an electronic device connected to the target network device.

8. The upgrade method according to claim 6, characterized in that: The method further comprises: receiving a first upgrade request sent by the first electronic device, where the first upgrade request is used to request the target network device to send the second installation package; In case of receiving the first upgrade request, the second installation package is sent to the first electronic device, so that the first electronic device upgrades the target application based on the second installation package.

9. The upgrade method according to claim 6, characterized in that: Updating the second installation package to the first installation package includes: Parsing the first installation package to obtain verification information of the first installation package; Obtaining verification information related to the first version information from a server, where the verification information related to the first version information is verification information of a genuine installation package of the target application having the first version information; If it is determined that the verification information of the first installation package is the same as the verification information related to the first version information, the second installation package is updated to the first installation package.

10. The upgrading method according to claim 6, characterized in that: In a case where multiple electronic devices are connected to the target network device, the multiple electronic devices include the first electronic device and the second electronic device, and the version information acquisition requests sent by the multiple electronic devices and received by the target network device also include upload requirement parameters of the multiple electronic devices, respectively, and the upload requirement parameters of the multiple electronic devices are used to represent the installation package upload requirement levels of the multiple electronic devices, respectively. Sending the second version information of the second installation package of the target application to the first electronic device includes: Determining a target electronic device based on upload requirement parameters of each of the plurality of electronic devices, the target electronic device being the electronic device with the highest upload requirement among the plurality of electronic devices; The second version information is sent to the target electronic device.

11. The upgrading method according to claim 10, characterized in that: The upload requirement parameters include at least one of the following: the number of installation packages to be uploaded and the upload speed. The electronic device with the highest upload requirement is the electronic device with the largest number of installation packages to be uploaded and / or the fastest installation package upload speed among the multiple electronic devices.

12. The upgrading method according to claim 6, characterized in that: The method further comprises: Recording the existence time of the second installation package on the target network device and the number of times the second installation package is sent; If the existence duration is greater than a duration threshold and the number of times the second installation package has been sent is less than a number threshold, the second installation package is deleted.

13. An electronic device, characterized in that: include: memory and processor; Memory and processor coupling; The memory is used to store instructions executable by the processor; When the processor executes the instruction, the method according to any one of claims 1 to 5 or the method according to any one of claims 6 to 12 is performed.

14. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 5, or the method according to any one of claims 6 to 12.