Patch reuse method, system and electronic device

By multiplexing patch packages in a multi-device environment, using the sharing of common and different parts between devices in the local area network, the problem of low patch download and installation efficiency is solved, and more efficient patch transmission and installation is achieved.

CN114356316BActive Publication Date: 2024-11-15HUAWEI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202011064590.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-30
Publication Date
2024-11-15
Estimated Expiration
2040-09-30

AI Technical Summary

Technical Problem

In a multi-device environment, patches are downloaded and installed from the patch server multiple times, resulting in waste of network resources and increased device memory consumption.

Method used

By multiplexing patches between multiple devices within the same local area network, a patch server is used to generate multiplex patch packages, including common parts and different parts, reducing duplicate downloads and transmissions, and improving transmission efficiency and installation speed.

Benefits of technology

It effectively reduces the size of the multiplexed patch package, improves transmission efficiency, reduces network resource usage and device memory consumption, and improves the efficiency and security of patch installation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114356316B_ABST
    Figure CN114356316B_ABST
Patent Text Reader

Abstract

The present application discloses a patch reuse method, which is applied to a system including multiple devices and a patch server, wherein the patch server is used to provide patches for the multiple devices, the multiple devices are located in the same local area network, and the multiple devices include at least a first electronic device and a second electronic device, and the method includes: the first electronic device sends a first patch query request including reused patch matching information to the patch server, the reused patch matching information includes first patch matching information of the first electronic device, and second patch matching information of the second electronic device. The patch server sends a reused patch package including patch files required by each device to the first electronic device according to the reused patch matching information. This allows the first electronic device to uniformly obtain the patch files required by each device from the patch server, which can avoid each device downloading the patch package from the patch server separately, thereby improving the efficiency of patch installation. The present application also discloses a patch reuse system and electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a patch multiplexing method, system and electronic device. Background Art

[0002] Software patches (hereinafter referred to as patches) are small programs that are released to fix vulnerabilities in some software that are exposed during use. For example, when software developers are developing software, due to lack of consideration or imperfect software program functions, some problems may be exposed after the software is released. To solve these problems, software developers usually modify the original program or add new functions to form patches, and release the patches for users to download on their devices for patch updates or software upgrades.

[0003] Currently, devices can search and download the patches they need from the patch server and complete the patch installation. When the number of devices that need to download patches is large, multiple devices download patches from the patch server separately. The patch server sends patches to multiple devices separately, resulting in multiple downloads of patches from the patch server and low efficiency of patch installation on multiple devices. Summary of the invention

[0004] The present application provides a patch reuse method, system and electronic device, which can avoid the problem of patches being downloaded multiple times from a patch server, and can realize rapid installation of patches on multiple devices, thereby improving patch installation efficiency.

[0005] To solve the above technical problems, in the first aspect, an embodiment of the present application provides a patch multiplexing method, which is applied to a system including multiple devices and a patch server, wherein the patch server is used to provide patches for the multiple devices, the multiple devices are located in the same local area network, and the multiple devices include at least a first electronic device and a second electronic device, and the method includes: the first electronic device sends a first patch query request to the patch server, the first patch query request includes multiplexed patch matching information, the multiplexed patch matching information includes first patch matching information of the first electronic device, and second patch matching information of the second electronic device, each patch matching information is used to match a corresponding patch file; the patch server generates a multiplexed patch package according to the first patch query request, and sends the multiplexed patch package to the first electronic device, the multiplexed patch package includes a first patch file corresponding to the first patch matching information and a second patch file corresponding to the second patch matching information; the first electronic device receives the multiplexed patch package, and extracts a first patch file for installation on the first electronic device and a second patch file for installation on the second electronic device; the second electronic device obtains the second patch file from the first electronic device.

[0006] That is, when there are multiple devices in the same local area network that need to download patches, the first electronic device can be used as a multiplexed patch download device in the local area network to obtain the patch files required by the first electronic device and the second electronic device in the local area network from the patch server, and then the first electronic device sends the obtained patch files to the corresponding devices. This can avoid the devices in the same local area network that need to download patches to download patch packages from the patch server separately, and can improve the efficiency of patch download and installation.

[0007] In a possible implementation of the first aspect above, the patch server generates a multiplexed patch package based on the first patch query request, including: the patch server determines the first patch file corresponding to the first patch matching information, and determines the second patch file corresponding to the second patch matching information; the patch server uses the same part of the first patch file and the second patch file as the common part, uses the different part of the first patch file and the second patch file as the differential part, and uses the common part and the differential part as the multiplexed patch package.

[0008] When generating a multiplexed patch package, the patch server re-differentially groups the reusable patch packages that each device needs to download, fully utilizes the common parts in multiple patch packages as the common parts, and uses the non-common parts as the differential parts to obtain a multiplexed patch package including the common parts and the differential parts. The size of the multiplexed patch package can be effectively reduced to improve the transmission efficiency of the multiplexed patch package, reduce the occupation of network resources, and also reduce the consumption of the memory of the first electronic device by the multiplexed patch package.

[0009] In a possible implementation of the first aspect, after the first electronic device receives the multiplexed patch package, the process further includes: the first electronic device decompresses the multiplexed patch package to obtain a common patch and a differential patch; the first electronic device performs patch restoration and synthesis processing on the common patch and the differential patch to obtain a first patch file and a second patch file, respectively. That is, the patch files required by each device can be easily obtained.

[0010] In a possible implementation of the first aspect above, after the patch server generates a reused patch package according to the first patch query request, it also includes: the patch server sends a patch push message to the first electronic device to push the reused patch package; after the first electronic device receives the patch push message, if it detects that the user confirms the operation of downloading the reused patch package, the first electronic device sends a first patch acquisition request to the patch server; after receiving the first patch acquisition request, the patch server sends the reused patch package to the first electronic device.

[0011] In a possible implementation of the first aspect, the first electronic device and the second electronic device are network trusted devices belonging to the same local area network, which can effectively improve the security of patch reuse between the first electronic device and the second electronic device.

[0012] In a possible implementation of the first aspect above, the first electronic device sends a first patch query request to a patch server, including: the second electronic device sends a second patch query request to the first electronic device, the second patch query request includes second patch matching information of the second electronic device; after the first electronic device receives the second patch query request, it sends the first patch query request to the patch server; or the first electronic device sends the first patch query request to the patch server according to a preset patch query cycle; or the first electronic device sends the first patch query request to the patch server after receiving a patch query instruction from the user.

[0013] In a possible implementation of the first aspect above, each piece of patch matching information includes device category information, device software version information, and patch type information of the acquired patch.

[0014] In a possible implementation of the first aspect above, the aforementioned multiple devices also include a third electronic device, and the method also includes: the third electronic device obtains a network identifier of the local area network; if the local area network in which the third electronic device is located is determined to be a trusted network based on the network identifier, the third electronic device obtains second patch matching information of a second electronic device of the same device type as the third electronic device in the local area network; if the third electronic device determines that the second patch matching information is the same as the third patch matching information of the third electronic device, the third electronic device obtains the second patch file from the second electronic device.

[0015] The second electronic device can provide a trusted patch source for other devices in the local area network. When there is a new trusted device in the local area network, the new device can search in the local area network whether there is a patch that the new device needs to download. If so, the new device can directly obtain the patch to be downloaded from the second electronic device in the local area network without downloading it from the patch server.

[0016] In a possible implementation of the first aspect above, the third electronic device determines that the local area network is a trusted network, including: if the trusted network identifier in the third electronic device includes the network identifier of the local area network obtained by the third electronic device, the third electronic device determines that the local area network is a trusted network.

[0017] In a possible implementation of the first aspect, the method further includes: if the third electronic device determines that the second electronic device has installed the second patch file, the third electronic device obtains the second patch file from the second electronic device. That is, if the second electronic device has installed the second patch file, it means that the second electronic device has performed installation verification on the second patch file, which can effectively improve the success rate of the third electronic device installing the second patch file.

[0018] In a possible implementation of the first aspect above, the aforementioned multiple devices also include a third electronic device, and the method also includes: the third electronic device obtains a network identifier of the local area network; if it is determined that the local area network in which the third electronic device is located is an untrusted network based on the network identifier, the third electronic device sends a third patch query request to the first electronic device, and the third patch query request includes third patch matching information of the third electronic device; if the first electronic device determines that the reused patch package contains the patch file corresponding to the third electronic device based on the third patch matching request, the first electronic device sends the reused patch package to the third electronic device; the third electronic device receives the reused patch package and extracts the patch file for installation on the third electronic device.

[0019] In a possible implementation of the first aspect above, the aforementioned multiple devices also include a third electronic device, and the method also includes: the third electronic device obtains a network identifier of the local area network; if the local area network in which the third electronic device is located is determined to be an untrusted network based on the network identifier, the third electronic device sends a multiplexed patch matching information acquisition request to the first electronic device to obtain the multiplexed patch matching information; if the third electronic device determines based on the multiplexed patch matching information that the multiplexed patch matching information contains the third patch matching information corresponding to the third electronic device, the third electronic device sends a multiplexed patch acquisition request to the first electronic device; the first electronic device sends a multiplexed patch package to the third electronic device based on the multiplexed patch acquisition request; the third electronic device receives the multiplexed patch package and extracts a patch file for installation on the third electronic device.

[0020] The first electronic device can provide a trusted patch source for other devices in the local area network. When there is a newly added untrusted network device in the local area network, the newly added device can search in the local area network whether there is a patch that the newly added device needs to download. If so, the newly added device can directly obtain the original multiplexed patch package from the first electronic device in the local area network, which is conducive to the rapid patch repair of the untrusted device in the local area network.

[0021] In a second aspect, an embodiment of the present application provides a patch multiplexing method, which is applied to a first electronic device, the method comprising: sending a first patch query request to a patch server, the first patch query request including multiplexed patch matching information, the multiplexed patch matching information including first patch matching information of the first electronic device, and second patch matching information of a second electronic device belonging to the same local area network as the first electronic device, each patch matching information being used to match a corresponding patch file; receiving a multiplexed patch package generated according to the first patch query request from the patch server, the multiplexed patch package including a first patch file corresponding to the first patch matching information and a second patch file corresponding to the second patch matching information; extracting a first patch file for installation on the first electronic device and a second patch file for installation on the second electronic device from the multiplexed patch package, and sending the second patch file to the second electronic device.

[0022] That is, when there are multiple devices in the same local area network that need to download patches, the first electronic device can be used as a multiplexed patch download device in the local area network to uniformly obtain the patch files required by the first electronic device and the second electronic device in the local area network from the patch server. This can avoid the devices in the same local area network that need to download patches downloading patch packages from the patch server separately, which can improve the efficiency of patch download and installation.

[0023] In a possible implementation of the second aspect above, after the first electronic device receives the multiplexed patch package, it also includes: the first electronic device decompresses the multiplexed patch package to obtain a common patch and a differential patch; the first electronic device performs patch restoration and synthesis processing based on the common patch and the differential patch to obtain a first patch file and a second patch file respectively.

[0024] In a possible implementation of the second aspect, the first electronic device and the second electronic device are network trusted devices that belong to the same local area network.

[0025] In a possible implementation of the second aspect, the first electronic device sending a first patch query request to a patch server includes: the second electronic device sending a second patch query request to the first electronic device, the second patch query request including the second patch matching information of the second electronic device; after receiving the second patch query request, the first electronic device sends the first patch query request to the patch server; or the first electronic device sends the first patch query request to the patch server according to a preset patch query cycle; or the first electronic device sends the first patch query request to the patch server after receiving a patch query instruction from the user. In a possible implementation of the second aspect, each patch matching information includes device type information, device software version information, and patch type information for obtaining patches.

[0026] In a possible implementation of the second aspect, the method further includes: receiving a third patch query request sent by a third electronic device, the third patch query request including third patch matching information of the third electronic device; if the first electronic device determines that the reused patch package contains a patch file corresponding to the third electronic device according to the third patch matching request, the first electronic device sends the reused patch package to the third electronic device; the third electronic device receives the reused patch package and extracts the patch file for installation in the third electronic device. The third patch query request is for the third electronic device to obtain a network identifier of a local area network, and if the local area network where the third electronic device is located is determined to be an untrusted network according to the network identifier, the patch query request is determined.

[0027] In a third aspect, an embodiment of the present application provides a patch multiplexing method, which is applied to a second electronic device, and the method includes: sending a first patch query request for querying patches to a first electronic device belonging to the same local area network, the first patch query request including second patch matching information of the second electronic device; receiving and installing a second patch file sent by the first electronic device, the second patch file being a patch file corresponding to the second patch matching information of the second electronic device.

[0028] That is, when multiple devices in the same local area network need to download patches, the second electronic device can obtain the second patch file to be downloaded from the first electronic device, which can avoid the second electronic device from downloading the patch package from the patch server, and improve the efficiency of patch download and installation.

[0029] In a possible implementation of the third aspect, the method further includes: receiving a patch acquisition request sent by a third electronic device in a local area network, and sending a second patch file to the third electronic device. The patch acquisition request is for the third electronic device to obtain a network identifier of the local area network, and if the local area network in which the third electronic device is located is determined to be a trusted network according to the network identifier, the third electronic device obtains second patch matching information of a second electronic device in the local area network that is the same device type as the third electronic device; if the third electronic device determines that the second patch matching information is the same as the third patch matching information of the third electronic device, the third electronic device obtains the second patch file in the second electronic device.

[0030] In a fourth aspect, an embodiment of the present application provides a patch multiplexing method, which is applied to a patch server, and the patch server is used to provide patches for electronic devices. The method includes: receiving a first patch query request sent by a first electronic device, the first patch query request includes multiplexed patch matching information, the multiplexed patch matching information includes first patch matching information of the first electronic device, and second patch matching information of a second electronic device that belongs to the same local area network as the first electronic device; generating a multiplexed patch package according to the first patch query request, and sending the multiplexed patch package to the first electronic device, so that the first electronic device obtains a first patch file and a second patch file according to the multiplexed patch package.

[0031] That is, when there are multiple devices in the same local area network that need to download patches, the first electronic device can be used as a multiplexed patch download device in the local area network to uniformly obtain the patch files required by the first electronic device and the second electronic device in the local area network from the patch server. This can avoid the devices in the same local area network that need to download patches downloading patch packages from the patch server separately, which can improve the efficiency of patch download and installation.

[0032] In a possible implementation of the fourth aspect above, the patch server generates a multiplexed patch package based on the first patch query request, including: the patch server determines the first patch file corresponding to the first patch matching information, and determines the second patch file corresponding to the second patch matching information; the patch server uses the same parts of the first patch file and the second patch file as the common part, uses the different parts of the first patch file and the second patch file as the differential part, and uses the common part and the differential part as the multiplexed patch package.

[0033] In a possible implementation of the fourth aspect, after the patch server generates the multiplexed patch package according to the first patch query request, the method further includes: the patch server sends a patch push message for pushing the multiplexed patch package to the first electronic device; after receiving the first patch acquisition request sent by the first electronic device, the patch server sends the multiplexed patch package to the first electronic device. The first patch acquisition request is a request generated by the first electronic device after receiving the patch push message if it detects that the user confirms the operation of downloading the multiplexed patch package.

[0034] In a fifth aspect, an embodiment of the present application provides a patch multiplexing system, comprising multiple devices and a patch server, the patch server being used to provide patches for the multiple devices, the multiple devices being located in the same local area network, and the multiple devices including at least a first electronic device and a second electronic device, characterized in that the first electronic device is used to send a first patch query request to the patch server, the first patch query request including multiplexed patch matching information, the multiplexed patch matching information including first patch matching information of the first electronic device, and second patch matching information of the second electronic device, each patch matching information being used to match a corresponding patch file; the patch server is used to generate a multiplexed patch package according to the first patch query request, and send the multiplexed patch package to the first electronic device, the multiplexed patch package including a first patch file corresponding to the first patch matching information and a second patch file corresponding to the second patch matching information; the first electronic device is used to receive the multiplexed patch package, and extract a first patch file for installation on the first electronic device and a second patch file for installation on the second electronic device; the second electronic device is used to obtain the second patch file from the first electronic device.

[0035] The patch reuse system provided in the present application includes a first electronic device, a second electronic device and a patch server provided for executing the above-mentioned first aspect and / or any possible implementation method of the first aspect, and thus can also achieve the beneficial effects (or advantages) of the patch reuse method provided in the first aspect.

[0036] In a sixth aspect, an embodiment of the present application provides an electronic device, comprising: a memory for storing a computer program, the computer program comprising program instructions; and a control component for executing the program instructions so that the electronic device performs the aforementioned patch reuse method.

[0037] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program includes program instructions, and the program instructions are executed by a computer to enable an electronic device to perform the aforementioned patch reuse method. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solution of the present application, the drawings used in the description of the implementation methods are briefly introduced below.

[0039] Figure 1 An application scenario of downloading and installing patches on multiple devices in the prior art is shown;

[0040] Figure 2 According to some implementations of the present application, an application scenario of downloading and installing patches on multiple devices is shown;

[0041] Figure 3is a schematic diagram showing the structure of a mobile phone 11 according to some embodiments of the present application;

[0042] Figure 4 According to some implementation methods of the present application, an application scenario of the patch reuse method provided by the present application and a schematic diagram of the process of downloading and installing patches on multiple devices are shown;

[0043] Figure 5 is a schematic diagram showing a process of a patch server obtaining a reused patch package according to some implementation modes of the present application;

[0044] Figure 6 According to some implementations of the present application, a flowchart of a method for processing a reused patch package after the mobile phone 11 obtains the reused patch package is shown;

[0045] Figure 7 According to some implementations of the present application, a flowchart of another method for processing a reused patch package after the mobile phone 11 obtains the reused patch package is shown;

[0046] Figure 8A-8D is a schematic diagram showing display interfaces of some mobile phones 11 according to some implementation modes of the present application;

[0047] Fig.9A According to some implementations of the present application, another application scenario of the patch reuse method provided by the present application is shown;

[0048] Fig. 9B According to some embodiments of the present application, a schematic diagram of a process of downloading and installing patches by a mobile phone 20 newly added to a home local area network 200 is shown;

[0049] Fig. 9C According to some implementations of the present application, a schematic diagram of a specific process of a mobile phone 20 downloading a patch is shown;

[0050] Figure 10A-10C is a schematic diagram showing display interfaces of some mobile phones 20 according to some implementation modes of the present application;

[0051] Fig.11 is a schematic diagram showing the structure of an electronic device according to some embodiments of the present application;

[0052] Fig.12 A schematic diagram of the structure of a system on chip (SoC) is shown according to some embodiments of the present application. DETAILED DESCRIPTION

[0053] The technical solution of the present application will be further clearly and completely described below in conjunction with the accompanying drawings.

[0054] See also Figure 1 The present application provides a system for patch downloading and installation, which includes a server-side device and a device-side device.

[0055] The server side includes a patch server 100, and the patch server 100 may be a patch cloud server, so the server side may also be referred to as a cloud server side, or cloud side for short.

[0056] Different software usually requires different patches to fix different software problems; and for the same software in different types of devices to fix the same or similar software problems, different patches are also required because different types of devices have different requirements for patch files and types of patches. Patches are usually stored and transmitted in the form of patch packages, so patches are usually also called patch packages. Therefore, the server side includes several patch packages such as patch package 1, patch package 2, patch package 3, patch package 4, patch package 5, etc. stored by the patch server 100.

[0057] The device side includes multiple client electronic devices, so the device side can also be called the client side, or the end side for short.

[0058] The device side includes an access point (AP) router 10, a mobile phone 11, a personal computer (PC) 12, a tablet computer 13, a large screen device 14 (such as a smart screen, a TV, etc.) and a mobile phone 17. Among them, the mobile phone 11, the PC 12, the tablet computer 13, the large screen device 14 and the mobile phone 17 respectively establish a wireless local area network (WLAN) (such as a wireless fidelity (Wi-Fi) network) communication connection with the AP router 10.

[0059] The device side also includes a bracelet 101, a watch 102 and an earphone 103. The bracelet 101, the watch 102 and the earphone 103 respectively establish communication connections with the mobile phone 11 through Bluetooth (BT) or a mobile hotspot.

[0060] The device side may also include device 201, device 202, device 203, device 204, device 205, and device 206, where device 201 may be an Internet of Things (IoT) device, device 202 may be a mobile phone / tablet / television (television, TV) or other device with an Android system including Hongmeng middleware, and device 203 may be a PC or other device with a Hongmeng middleware. or Device 204 may be a device with a LiteOS system, such as a smart home appliance / camera / doorbell / curtain including the Hongmeng HiLink software development kit (SDK), and device 205 may be a smart home appliance / camera / doorbell / curtain including the Hongmeng HiLink SDK. The device 206 may be a smart home appliance / camera / doorbell / curtain etc. having Hongmeng HiLink SDK. Devices 201, 202, 203, 204, 205 and 206 establish wireless LAN communication connections with the AP router 10 respectively.

[0061] The above-mentioned devices included in the device side can be considered as devices in the home local area network 200 corresponding to the home scene. The home local area network 200 provides a wireless local area network for each device by the AP router 10, and each device in the home local area network 200 can communicate in close proximity based on the wireless local area network. In addition, each device on the aforementioned device side can also establish a communication connection with the AP router 10 in the form of an Ethernet data cable, or establish a communication connection with the AP router 10 in other ways.

[0062] In addition, the device side may also include a mobile phone 15, which is not connected to the AP router 10 and is a device outside the home local area network 200. The mobile phone 15 may be a device connected to the Internet through the mobile data network (or cellular network) of the mobile phone 15, or the mobile phone 15 may be a device connected to other AP routers different from the AP router 10.

[0063] for Figure 1 In the system shown, in the prior art, when the device side includes multiple devices, the process of repairing software problems of multiple devices (or also called patch update) is that each device searches for a patch package (also called patch search package, or simply search package) from the patch server 100, downloads the patch package, and the patch server 100 sends the patch package corresponding to each device to the corresponding device. Each device installs the received patch package to complete the patch installation.

[0064] For example, mobile phone 11, device 202, and mobile phone 15 need to download the same patch package 2 from patch server 100 respectively, and there is a problem that patch package 2 is downloaded multiple times from patch server 100. In addition, tablet computer 13 needs to download patch package 1 from patch server 100, mobile phone 17 needs to download patch package 3 from patch server 100, wristband 101 needs to download patch package 5 from patch server 100, and large-screen device 14 needs to download patch package 4 from patch server 100, etc.

[0065] A patch package usually includes a patch file for repairing software problems and patch signature information for securely processing the patch file. For different patch packages, the patch files in each patch package are often partially the same. For example, some patch files in patch package 1, patch package 3, and patch package 2 are the same, and the patch signature information of patch package 1, patch package 3, and patch package 2 can be the same. Each device downloads patch package 1, patch package 2, and patch package 3 respectively, and there is a problem that the same patch file parts and patch signature information are downloaded repeatedly, which will cause a waste of network resources.

[0066] That is, in the prior art, the mobile phone 11, tablet computer 13, large-screen device 14, mobile phone 17, bracelet 101, device 202 and mobile phone 15 on the device side need to download the required patch packages from the patch server 100 respectively, and there is a problem that the patch packages are downloaded from the patch server 100 multiple times, and there is a problem of low efficiency in downloading and installing patches by the mobile phone 11, tablet computer 13, large-screen device 14, mobile phone 17, bracelet 101, device 202 and mobile phone 15.

[0067] This application provides a patch reuse method that can be applied to Figure 1 The system shown is a scenario of multi-device software repair, and the multi-device software repair scenario is a scenario of multi-device joint upgrade patches.

[0068] like Figure 2 As shown, in one implementation of the patch reuse method provided by the present application, when there are multiple devices on the device side, the mobile phone 11 can serve as a multiplexed patch download device among the multiple devices and send a patch query request to the patch server 100. The patch query request includes multiplexed patch matching information (or also referred to as a multiplexed patch profile), which is information generated by the mobile phone 11 based on the patch matching information of all devices that need to be queried for patches on the device side.

[0069] Each device includes software that needs to be patch queried, which can be system software or application software. Taking the software as application software (for example, video call application software), when the application software needs to query a patch, the application software performs a patch query operation and generates patch matching information. The patch matching information is used by the patch server 100 to match the patch package corresponding to the application software of the device.

[0070] Different application software has different patch files in the patch packages, so the patch matching information can include the version information of the application software in the device. In addition, different types of devices have different requirements for patch files, types and other patch information in the patch packages, so the patch matching information can include the product type (or product type) of the device and the patch type that the device needs to obtain.

[0071] Among them, the product type of mobile phone 11 can be, for example, the model of mobile phone 11 (such as mate10, P40, etc.), and the format of product type can be productxx. The version information of application software can be a version number, and the format of version number can be Versionxx. Patch type can be used to indicate the ability of mobile phone 11 to install patches patchtype, and the format of patch type can be apkpatch or nativepatch, etc. Among them, apkpatch patch type mainly refers to patches used to update application software, and nativepatch mainly refers to patches used to update system configuration software. Patch matching information can be productxx+Versionxx; apkpatch.

[0072] In addition, the product type of the mobile phone 11 may also be other product identification information for identifying the mobile phone 11, and the version information of the application software may also be other software identification information for identifying the application software, which may be selected as needed.

[0073] Different devices have different patch matching information when downloading patches for the same software problem or similar software problems.

[0074] For example, the devices that query patches on the device side include mobile phone 11, tablet computer 13, large-screen device 14, mobile phone 17, bracelet 101, device 202 and mobile phone 15. Then mobile phone 11 obtains the reused patch matching information based on the patch matching information of mobile phone 11, tablet computer 13, large-screen device 14, mobile phone 17, bracelet 101, device 202 and mobile phone 15 and sends it to the patch server 100.

[0075] Among them, for the same software problem or similar software problems, the patch matching information when downloading software on the above different devices is as follows:

[0076] The patch matching information of mobile phone 11 is: productA+Version00;apkpatch.

[0077] The patch matching information of the tablet computer 13 is: productB+Version00;apkpatch.

[0078] The patch matching information of mobile phone 17 is: productA+Version01;apkpatch.

[0079] The patch matching information of the large-screen device 14 is: productC+Version01;apkpatch.

[0080] The patch matching information of bracelet 101 is: productD+Version00;apkpatch.

[0081] The patch matching information of device 202 is: productA+Version00;apkpatch.

[0082] The patch matching information of mobile phone 15 is: productA+Version00;apkpatch.

[0083] Then the mobile phone 11 can take the union of the aforementioned patch matching information to determine the reused patch matching information as: productA+Version00; productA+Version01; productB+Version00; productC+Version01; productD+Version00; apkpatch.

[0084] After receiving the patch query request, the patch server 100 can determine whether there is a patch package that matches the multiplexed patch matching information according to the multiplexed patch matching information included in the patch query request. If so, the patch server 100 packages all matching patch packages as a multiplexed patch package, which includes the patch files of the patch packages that the mobile phone 11, the tablet computer 13, the large-screen device 14, the mobile phone 17, the wristband 101, the device 202, and the mobile phone 15 need to download, as well as the patch signature information for securely processing the patch files.

[0085] The patch server 100 sends a patch push message for pushing the multiplexed patch package to the mobile phone 11 . The patch push message includes patch description information such as the names of the patch packages included in the multiplexed patch package.

[0086] After receiving the patch push message, if the mobile phone 11 detects that the user confirms the operation of downloading the reused patch package, the mobile phone 11 sends a patch acquisition request for downloading the reused patch package to the patch server 100. According to the patch acquisition request, the patch server 100 takes the patch packages required by the mobile phone 11, the tablet computer 13, the large-screen device 14, the mobile phone 17, the wristband 101, the device 202 and the mobile phone 15 (i.e., the patch packages corresponding to the reused patch matching information) as the reused patch packages, and sends the reused patch packages to the mobile phone 11 on the device side.

[0087] Mobile phone 11 receives the multiplexed patch package sent by patch server 100, and obtains patch files corresponding to the patch packages required by mobile phone 11, tablet computer 13, large-screen device 14, mobile phone 17, bracelet 101, device 202 and mobile phone 15 according to the multiplexed patch package, for example, patch file 5 corresponding to patch package 5 that needs to be downloaded by bracelet 101, patch file 2 corresponding to patch package 2 that needs to be downloaded by mobile phone 11, device 202 and mobile phone 15, patch file 1 corresponding to patch package 1 that needs to be downloaded by tablet computer 13, patch file 3 corresponding to patch package 3 that needs to be downloaded by mobile phone 17, and patch file 4 corresponding to patch package 4 that needs to be downloaded by large-screen device 14.

[0088] Then, the mobile phone 11 installs the patch file 2, and the mobile phone 11 sends the patch file 2 required by the mobile phone 15 and the device 202 to the mobile phone 15 and the device 202 respectively, sends the patch file 1 required by the tablet computer 13 to the tablet computer 13, sends the patch file 3 required by the mobile phone 17 to the mobile phone 17, sends the patch file 5 required by the wristband 101 to the wristband 101, and sends the patch file 4 required by the large-screen device 14 to the large-screen device 14. After receiving the corresponding patch files, the tablet computer 13, the large-screen device 14, the mobile phone 15, the wristband 101, the device 202, and the mobile phone 15 install the patch files to implement patch installation.

[0089] The process of the patch server 100 generating a multiplexed patch package and the process of the mobile phone 11 obtaining the patch files corresponding to each device according to the multiplexed patch package will be described in detail later.

[0090] In the present application, the mobile phone 11, tablet computer 13, large screen device 14, mobile phone 17, bracelet 101, device 202 and other devices in the home local area network 100 perform short-range communication. After the mobile phone 11 receives the multiplexed patch package and obtains the patch file required by the device according to the multiplexed patch package, the patch file included in the multiplexed patch package obtained by the mobile phone 11 can be broadcast to other devices in the home local area network 100, so that the patch file included in the multiplexed patch package is visible in the home local area network 100, that is, other devices in the home local area network 100 can discover, download and install the patch file included in the multiplexed patch package.

[0091] For the mobile phone 15, the mobile phone 15 can establish a communication connection with the mobile phone 11 through the mobile hotspot or Bluetooth shared by the mobile phone 11. In addition, the mobile phone 15 can also establish a communication connection with the AP router 10, that is, the mobile phone 15 can perform close-range communication with various devices in the home area network 100 that establish a communication connection with the AP router 10.

[0092] In the patch multiplexing method provided by the present application, when there are multiple devices on the device side that need to download patches, the mobile phone 11 can serve as a multiplexing patch downloading device among all devices that establish a communication connection with the AP router 10 and all devices that establish a communication connection with the mobile phone 11, and uniformly obtain the patch files required by each device from the patch server 100, and then send the obtained patch files to the corresponding devices. This can avoid the devices on the device side that need to download patches downloading patch packages from the patch server 100 separately, and can improve the efficiency of patch downloading and installation.

[0093] See also Figure 3 , Figure 3 A schematic structural diagram of a mobile phone 11 in the present application is shown as an example.

[0094] The mobile phone 11 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) connector 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0095] It is understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the mobile phone 11. In other embodiments of the present application, the mobile phone 11 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0096] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0097] The processor can generate operation control signals based on instruction opcodes and timing signals to complete the control of instruction fetching and execution.

[0098] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0099] The wireless communication function of the mobile phone 11 can be realized through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0100] The mobile communication module 150 can provide wireless communication solutions including 2G / 3G / 4G / 5G etc. applied on the mobile phone 11 .

[0101] The wireless communication module 160 can provide wireless communication solutions for application on the mobile phone 11, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.

[0102] In some embodiments, the antenna 1 of the mobile phone 11 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the mobile phone 11 can communicate with the network and other devices through wireless communication technology.

[0103] For example, the mobile phone 11 can establish a communication connection with the AP router 10 through the wireless communication module 160 .

[0104] The mobile phone 11 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0105] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the mobile phone 11 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0106] The mobile phone 11 can display the patch push message received by the mobile phone 11 and patch description information and other information through the display screen 194.

[0107] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the mobile phone 11 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the mobile phone 11 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor. For example, the mobile phone 11 sends a patch query request and a patch acquisition request to the patch server 100 to obtain an operation of a multiplexed patch package, and the mobile phone 11 installs a patch file, and sends the patch files required by other devices to other devices.

[0108] This application does not provide a detailed description of the structure of other devices on the device side, which may be various currently common structures.

[0109] In another implementation of the present application, the patch reuse method provided by the present application can be applied to Figure 4The system shown. The server side of the system includes a patch server 100, and the patch server 100 stores several patch packages. The device side of the system is the device side corresponding to the aforementioned home local area network 200, and the device side includes an AP router 10, and mobile phones 11, 16, 17, 18, tablet computers 13, and 19 that respectively establish communication connections with the AP router 10. If mobile phones 11, 16, 17, 18, tablet computers 13, and 19 need to query patches, then mobile phones 11, 16, 17, 18, tablet computers 13, and 19 can be used as devices that can reuse patches in the system, and mobile phone 11 is used as a multiplexing patch downloading device.

[0110] The following will describe in detail the process of querying, downloading and installing patches for mobile phone 11, mobile phone 16, mobile phone 17, mobile phone 18, tablet computer 13 and tablet computer 19.

[0111] See also Figure 4 The process of querying, downloading and installing patches by mobile phone 11, mobile phone 16, mobile phone 17, mobile phone 18, tablet computer 13 and tablet computer 19 includes the following steps:

[0112] S101, the mobile phone 11, mobile phone 16, mobile phone 17, mobile phone 18, tablet computer 13 and tablet computer 19 on the device side respectively have software that needs to be patched. Mobile phone 11, as a multiplexed patch downloading device, sends a patch query request to the patch server 100. The patch query request includes the multiplexed patch matching information corresponding to mobile phone 11, mobile phone 16, mobile phone 17, mobile phone 18, tablet computer 13 and tablet computer 19.

[0113] The process of mobile phone 11 determining the reused patch matching information includes that after receiving the user's patch query instruction, mobile phone 11 sends patch matching information acquisition requests to mobile phone 16, mobile phone 17, mobile phone 18, tablet computer 13 and tablet computer 19 respectively, so as to obtain the patch matching information of mobile phone 16, mobile phone 17, mobile phone 18, tablet computer 13 and tablet computer 19 respectively.

[0114] After receiving the patch matching information acquisition request sent by the mobile phone 11 , the mobile phone 16 , the mobile phone 17 , the mobile phone 18 , the tablet computer 13 and the tablet computer 19 send their respective patch matching information to the mobile phone 11 .

[0115] After mobile phone 11 obtains the patch matching information of mobile phone 16, mobile phone 17, mobile phone 18, tablet computer 13 and tablet computer 19, it determines the reused patch matching information according to the patch matching information of mobile phone 16, mobile phone 17, mobile phone 18, tablet computer 13 and tablet computer 19 and the patch matching information of mobile phone 11.

[0116] The patch matching information of each device includes the product type, version number and patch type of the device, wherein the product type may be, for example, productxx, the version number may be, for example, versionxx, and the patch type may be, for example, patchtype. The patch type may be used to characterize the device's ability to reuse patches.

[0117] Usually, the version number versionxx can make the patch matching information unique. When determining the patch package according to the patch matching information, the patches are distinguished by the version number, so that the patch package determined according to the patch matching information can be uniquely determined.

[0118] In addition, in some scenarios, versionxx may also include productxx information to ensure that the patch matching information after the combination of product type and version number is unique, so that the patch package determined according to the patch matching information is unique.

[0119] like Figure 4 As shown, the patch matching information of mobile phone 11 and mobile phone 16 is productA+Version00;apkpatch. The patch matching information of mobile phone 17 and mobile phone 18 is: productA+Version01;apkpatch. The patch matching information of tablet computer 13 and tablet computer 19 is: productB+Version00;apkpatch.

[0120] The mobile phone 11 takes the union of the patch matching information of each device as the reused patch matching information, and can determine that the reused patch matching information is: productA+Version00; productA+Version01; productB+Version00; apkpatch.

[0121] After determining the multiplexed patch matching information, the mobile phone 11 sends a patch query request including the multiplexed patch matching information to the patch server 100 .

[0122] S102: After receiving the patch query request, the patch server 100 on the server side generates a multiplexed patch package according to the multiplexed patch matching information in the patch query request.

[0123] The patch server 100 generates a multiplexed patch package according to the multiplexed patch matching information in the patch query request, including: the patch server 100 restores the patch matching information according to the multiplexed patch matching information in the patch query request, and the obtained patch matching information includes "productA+Version00; apkpatch", "productA+Version01; apkpatch" and "productB+Version00; apkpatch".

[0124] Then the patch server 100 selects a patch package that matches each patch matching information from the plurality of patch packages configured on the patch server 100. Figure 4 As shown, the patch packages configured by the patch server 100 include patch package 1 and patch package 2 of the patch type nativepatch, and patch package 1, patch package 2, and patch package 3 of the patch type apkpatch. Then the patch server 100 determines that the patch package that matches the patch matching information "productA+Version00; apkpatch" is patch package 2 of the patch type apkpatch, the patch package that matches the patch matching information "productA+Version01; apkpatch" is patch package 3 of the patch type apkpatch, and the patch package that matches the patch matching information "productB+Version00; apkpatch" is patch package 1 of the patch type apkpatch.

[0125] like Figure 5 As shown, the patch server 100 stores patch package 1, patch package 2 and patch package 3 of patch type apkpatch, respectively including corresponding patch file 1, patch file 2 and patch file 3, and patch signature information for signing and protecting each patch file, and the patch signature information of each patch package is the same.

[0126] If there are the same parts in the patch files of patch package 1, patch package 2 and patch package 3, the patch server 100 performs differential grouping according to patch package 1, patch package 2 and patch package 3 to generate a multiplexed patch package. The patch server 100 obtains the communal (or reusable) patch files of the three patch packages of patch package 1, patch package 2 and patch package 3 as the common part (also called the common package), and packages the non-communicable parts as the differential part (also called the differential package). The common part and the differential part are combined into a complete multiplexed file, and the multiplexed file is then signed and protected to obtain the multiplexed patch package.

[0127] like Figure 5As shown, the communal part of the patch files of patch package 1, patch package 2 and patch package 3 is patch file 1 of patch package 1, then patch file 1 of patch package 1 can be used as the communal part. The non-communal part of patch file 2 of patch package 2 is used as differential file 2, and the non-communal part of patch file 3 of patch package 3 is used as differential file 3, and differential file 2 and differential file 3 are packaged as the differential part. The patch file of the reused patch package includes patch file 1 of patch package 1, and the differential files of the non-communal parts of patch packages 2 and 3. The reused patch package also includes patch signature information, and the signature information of the reused patch package is also the same as the patch signature information of the aforementioned patch packages 1, patch packages 2 and patch packages 3.

[0128] The patch reuse method provided by this implementation is that the patch server 100 re-differences the reusable patch packages that need to be downloaded by the device side, fully utilizes the common parts in multiple patch packages as the common parts, and uses the non-common parts as the difference parts to obtain a reusable patch package including the common parts and the difference parts. The size of the reusable patch package can be effectively reduced to improve the transmission efficiency of the reusable patch package, reduce the occupation of network resources, and also reduce the memory consumption of the mobile phone 11 by the reusable patch package.

[0129] In this implementation, the multiplexed patch package may be transmitted in the form of an OAT data packet, and of course, may also be transmitted in data packets of other formats.

[0130] S103 , the patch server 100 on the server side sends the multiplexed patch package to the mobile phone 11 .

[0131] The patch server 100 sends the multiplexed patch package to the mobile phone 11 , including: after the patch server 100 generates the multiplexed patch package, directly sending the multiplexed patch package to the mobile phone 11 .

[0132] Or after the patch server 100 generates a multiplexed patch package, the patch server 100 sends a patch push message to the mobile phone 11 to push the multiplexed patch package. The patch push message contains the patch description information of the multiplexed patch package (or can also be called a patch introduction or patch update log information). For example, the patch description information may include a brief description of the names of patch packages 1, 2, and 3, the functions implemented, and other contents. After the mobile phone 11 receives the patch push message, if the mobile phone 11 detects that the user has determined to download the multiplexed patch package, the mobile phone 11 sends a patch acquisition request to the patch server 100 to obtain the multiplexed patch package. After receiving the patch acquisition request, the patch server 100 sends the multiplexed patch package to the mobile phone 11.

[0133] S104, after the mobile phone 11 receives the multiplexed patch package, Figure 6 As shown (see also Figure 4), the mobile phone 11 performs an authentication check (or security check) on the reused patch package according to the patch signature information of the reused patch package. After the verification is passed, if it is determined that the reused patch package is a patch that has been re-differentially packaged, the mobile phone 11 decompresses the reused patch package to obtain patch file 1 as the common part, and differential file 2 and differential file 3 as the differential part. Then the mobile phone 11 performs patch synthesis according to patch file 1, differential file 2 and differential file 3 to restore patch file 1 corresponding to patch package 1, patch file 2 corresponding to patch package 2 and patch file 3 corresponding to patch package 3 respectively.

[0134] Continue to see Figure 6 After the mobile phone 11 obtains the patch file 2 corresponding to the patch package 2, it installs the patch file 2 to complete the patch installation.

[0135] In addition, the mobile phone 11 sends the patch file 2 corresponding to the patch package 2 to the mobile phone 16. After receiving the patch file 2, the mobile phone 16 installs the patch file 2 to complete the patch installation.

[0136] In this implementation, mobile phone 11 sends patch file 2 to mobile phone 16, which can be that mobile phone 11 directly sends patch file 2 to mobile phone 16 according to the patch matching information of mobile phone 16. Mobile phone 11 can also send a patch broadcast message to all online devices in the home local area network 200 to broadcast patch file 2. The patch broadcast message can include the patch name, patch function and other patch description information of the aforementioned patch package 2 (or patch file 2). When mobile phone 16 receives the patch broadcast message, if it confirms to download patch file 2, mobile phone 16 sends a patch acquisition request to mobile phone 11. After receiving the patch acquisition request, mobile phone 11 sends patch file 2 to mobile phone 16.

[0137] Mobile phone 11 sends patch file 3 corresponding to patch package 3 to mobile phone 17 and mobile phone 18 respectively. After receiving patch file 3, mobile phone 17 and mobile phone 18 respectively install patch file 3 to complete patch installation.

[0138] The mobile phone 11 sends the patch file 1 corresponding to the patch package 1 to the tablet computer 13 and the tablet computer 19 respectively. After receiving the patch file 1, the tablet computer 13 and the tablet computer 19 respectively install the patch file 1 to complete the patch installation.

[0139] In this implementation, the process of mobile phone 11 sending the corresponding patch file to mobile phone 17, mobile phone 18, tablet computer 13 and tablet computer 19 is similar to the aforementioned process of mobile phone 11 sending patch file 2 to mobile phone 16, and will not be repeated here.

[0140] The patch reuse method provided by this implementation mode can, when there are multiple devices on the device side that belong to the same home local area network 200 and need to download and install patches, one of the devices can be used as a reused patch download device to uniformly obtain the patch files required by each device from the patch server 100 on the server side, and then send the patch files to the corresponding devices, so that each device completes the patch installation. This avoids the problem of multiple devices downloading patches from the server side separately, and can effectively improve the efficiency of patch installation.

[0141] In addition, after obtaining the reused patch package, the mobile phone 11, which serves as a reused patch downloading device, authenticates and verifies the reused patch package and restores each patch file, can directly send the obtained authenticated and decompressed patch file to each device, so that each device can directly install the patch according to the patch file without the need to authenticate and decompress the patch package, which can also effectively improve the patch installation efficiency.

[0142] For step S101 in this implementation, mobile phone 16, mobile phone 17, mobile phone 18, tablet computer 13 and tablet computer 19 are online devices in home local area network 200, and online devices in home local area network 200 can be considered as devices that need to be patch queried. After receiving the patch query instruction of the user, mobile phone 11 sends patch matching information acquisition requests to mobile phone 16, mobile phone 17, mobile phone 18, tablet computer 13 and tablet computer 19 respectively, so as to respectively obtain the patch matching information of mobile phone 16, mobile phone 17, mobile phone 18, tablet computer 13 and tablet computer 19. If there are other online devices in home local area network 200, mobile phone 11 also sends patch matching information acquisition requests to the devices.

[0143] In another implementation of the present application, for step S101 in this implementation, the online devices in the home area network 200 may also send patch query requests to the mobile phone 11 according to their respective patch query cycles to send patch matching information. After receiving the patch query requests sent by other devices, the mobile phone 11 sends the aforementioned patch query request to the patch server 100. Or after receiving the patch query instruction of the user, the mobile phone 11 may directly generate a patch acquisition request including multiplexed patch matching information based on the received patch matching information of other devices and its own matching information. In addition, the mobile phone 11 may also send a patch query request to the patch server 100 according to a preset patch query cycle. In the present application, the patch query cycle may be 1 hour, or any time such as a day or a week, which may be set as needed.

[0144] In another implementation of the present application, if the patch query cycle of the online devices in the home area network 200 (such as the mobile phone 16, mobile phone 17, mobile phone 18, tablet computer 13 and tablet computer 19) is longer than the usual patch update cycle (i.e., the cycle of patch release by the patch server 100), the online devices in the home area network 200 can send a patch query request to the mobile phone 11 and also initiate an online patch query request to the patch server 100 to obtain patch information from the home area network 200 and the patch server 100 respectively. When the version of the patch obtained from the mobile phone 11 is higher than the version of the patch obtained from the patch server 100, the online device obtains the patch from the mobile phone 11.

[0145] Regarding step S102 in this implementation, after the patch server 100 receives the patch query request, when generating a multiplexed patch package according to the multiplexed patch matching information in the patch query request, if there is no common part in patch package 1, patch package 2 and patch package 3, the patch server 100 can directly generate the following multiplexed patch package according to patch file 1, patch file 2 and patch file 3: Figure 7 The multiplexed patch package shown includes patch file 1, patch file 2 and patch file 3, as well as patch signature information. Correspondingly, for step S104, after the mobile phone 11 receives the multiplexed patch package, the process of restoring the patch according to the multiplexed patch package by the mobile phone 11 can be that the mobile phone 11 performs authentication verification on the multiplexed patch package. After the authentication verification passes, if it is determined that the multiplexed patch package is a patch that has not been re-differentially packaged, then the patch file 1, patch file 2 and patch file 3 are directly obtained according to the multiplexed patch package.

[0146] It should be noted that in the present implementation, the process by which the patch server 100 generates reused patch packages corresponding to the mobile phone 11, mobile phone 16, mobile phone 17, mobile phone 18, tablet computer 13 and tablet computer 19, and the process by which the mobile phone 11 obtains patches corresponding to the mobile phone 11, mobile phone 16, mobile phone 17, mobile phone 18, tablet computer 13 and tablet computer 19 according to the reused patch packages are the same as the process by which the patch server 100 generates reused patch packages corresponding to the mobile phone 11, mobile phone 15, device 202, bracelet 101 and large-screen device 14, and the process by which the mobile phone 11 obtains patches corresponding to the mobile phone 11, mobile phone 15, device 202, bracelet 101 and large-screen device 14 according to the reused patch packages.

[0147] In one implementation of the present application, after the mobile phone 11 is connected to the home local area network 200, the following may be displayed: Fig. 8AIn the display interface shown in the figure, the setting control of the mobile phone 11 includes a "reuse patch download" control 11A. If the mobile phone 11 detects that the user turns on the "reuse patch download" control 11A, the mobile phone 11 can obtain the reuse patch package according to the preset patch query cycle as described above, or obtain the reuse patch package after receiving the user's patch query instruction. Of course, after the mobile phone 11 is connected to the home local area network 200, it is also possible not to display the display as shown in the figure. Fig. 8A When the user opens the setting control as needed, the mobile phone 11 displays the following Fig. 8A The display interface shown.

[0148] In addition, if the mobile phone 11 detects that the user has opened the "reuse patch download" control 11A, the mobile phone 11 may further display Figure 8B The display interface shown includes a "reuse patch device selection" control 11B for the user to select a device that can reuse the patch. The user can select a device that can reuse the patch by clicking the name of each device or the box before the name.

[0149] Of course, the mobile phone 11 can also automatically determine the device that can reuse the patch according to the device type in the home local area network 200 for user confirmation. Figure 8C As shown, after the mobile phone 11 determines the devices that can reuse the patch, the "Reuse patch device determination" control 11C is displayed. If the user clicks "Confirm", the mobile phone 11 determines that the devices that can reuse the patch include the mobile phone 11, the mobile phone 16, the mobile phone 17, the mobile phone 18, the tablet computer 13 and the tablet computer 19, and the mobile phone 11 sends a patch acquisition request to the patch server 100. In addition, the user can also click the name of each device, or the box before the name to select the device to reuse the patch.

[0150] After receiving the multiplexed patch package sent by the patch server 100, the mobile phone 11 can display the following information: Fig.8D The display interface shown includes a prompt message 11D "Reuse patch" and a "Confirm patch installation and broadcast patch to related devices" control 11E. If the mobile phone 11 detects the user's triggering operation on the "Confirm patch installation and broadcast patch to related devices" control 11E, the mobile phone 11 obtains the aforementioned patch file 1, patch file 2 and patch file 3 according to the reuse patch package. The mobile phone installs patch file 2, and broadcasts patch files 1, patch files 2 and patch files 3 to mobile phones 16, mobile phones 17, mobile phones 18, tablet computers 13 and tablet computers 19 in the home local area network 200. Of course, the mobile phone 11 can also broadcast patch files 1, patch files 2 and patch files 3 to other devices in the home local area network 200.

[0151] See also Fig.9A In another implementation of the present application, the mobile phone 20 is connected to the AP router 10 as a newly added device and establishes a communication connection with the AP router 10, that is, the home area network 200 includes the mobile phone 20 as a newly added device. If the mobile phone 20 needs to query, download and install patches, the mobile phone 20 can first query and search in the home area network 200 whether there are patches that the mobile phone 20 needs to download. If the mobile phone 20 searches for the patches that need to be downloaded from the home area network 200, the mobile phone 20 downloads the patches that need to be downloaded from the home area network 200 for installation. If the mobile phone 20 does not search for the patches that need to be downloaded from the home area network 200, the mobile phone 20 queries the patch server 100 whether there are patches that need to be downloaded.

[0152] See also Fig. 9B The process of mobile phone 20 querying, downloading and installing patches may include the following steps:

[0153] S201, after the mobile phone 20 is connected to the AP router 10, that is, connected to the home local area network 200, it receives a patch query instruction from the user and plans to initiate a patch search package to query and search for patches.

[0154] The mobile phone 20 receives the patch query instruction when the mobile phone 20 displays a display interface including a "search update" control after the mobile phone 20 is connected to the home local area network 200. If the mobile phone 10 detects a user triggering operation on the "search update" control, the mobile phone 20 receives the patch query instruction.

[0155] S202, the mobile phone 20 obtains the network identification of the currently connected home area network 200, and performs a trusted network check to determine whether the home area network 200 is a trusted network of the mobile phone 20. If yes, S203 is executed, and if not, S207 is executed.

[0156] The establishment of a trusted network can be established with the AP router 10 as an identifier. After the mobile phone 20 first joins the home area network 200 provided by the AP router 10, the mobile phone 20 identifies the current home area network 200 as trusted, and the network trust information (such as the trusted network identifier) ​​is saved on the AP router 10 and the mobile phone 20. When the mobile phone 20 accesses the home area network 200 provided by the AP router 10 again, the mobile phone 20 obtains the trusted network identifier from the AP router 10 and matches it with the trusted network identifier saved by itself. If the trusted network identifiers are consistent, the mobile phone 20 considers the accessed home area network 200 to be a trusted network. If the network identifiers are inconsistent, the mobile phone 20 considers the accessed home area network 200 to be an untrusted network.

[0157] The home area network 200 is a trusted network of the mobile phone 20 , and the mobile phone 20 can also be considered as a network trusted device in the home area network 200 .

[0158] After the trusted network verification is passed, the efficiency of mobile phone 20 obtaining patches in the trusted network is better than the efficiency of obtaining patches from patch server 100 through WLAN network, and the efficiency of mobile phone 20 obtaining patches from patch server 100 through WLAN network is better than the efficiency of mobile phone 20 obtaining patches from patch server 100 through mobile data network.

[0159] S203, the mobile phone 20 obtains the device type of each device in the home area network 200, and determines whether there is a device in the home area network 200 that belongs to the same device type as the mobile phone 20. If there is a device in the home area network 200 that belongs to the same device type as the mobile phone 20, for example, the devices that are the same device type as the mobile phone 20 are mobile phones 11, 16, 17, and 18, step S204 is executed. If there is no device in the home area network 200 that belongs to the same device type as the mobile phone 20, step S209 is executed.

[0160] The mobile phone 20 obtains the device type of each device in the home area network 200 by sending device type acquisition information to each device in the home area network 200. After receiving the device type acquisition request sent by the mobile phone 20, each device sends its own device type to the mobile phone 20. Then the mobile phone 20 matches its own device type with the acquired device types of each device to determine the devices in the home area network 200 that belong to the same device type as the mobile phone 20. For example, if the device type of the mobile phone 20 is prodcutA, the devices of the same device type as the mobile phone 20 include the mobile phone 11, the mobile phone 16, the mobile phone 17 and the mobile phone 18.

[0161] S204, mobile phone 20 obtains the version number of the patch of product type prodcutA in mobile phones 11, 16, 17 and 18 of the same device type, and performs version matching with the version number in the patch matching information of mobile phone 20 to determine whether there is a patch that mobile phone 20 needs to download in the device of the same device type. If a patch with the same version number is matched, mobile phone 20 executes S205. If a patch with the same version number is not matched, mobile phone 20 executes S209.

[0162] The patch matching information of mobile phone 20 can be, for example, productA+Version00;apkpatch. Then mobile phone 20 determines that among mobile phones 11, 16, 17 and 18 of the same device type as mobile phone 20, mobile phone 11 and mobile phone 16 have patch file 2 whose version number corresponds to the software version for which mobile phone 16 needs to obtain a patch.

[0163] S205, the mobile phone 20 determines whether the same type of device with the same version number patch has installed the corresponding patch file 2. If so, the mobile phone 20 executes S206, if not, the mobile phone 20 executes S207.

[0164] S206 , the mobile phone 20 obtains the patch file 2 from a device of the same type that has installed the patch file 2 , and installs the patch file 2 .

[0165] For example, if mobile phone 16 has installed patch file 2, it means that patch file 2 can be successfully installed by mobile phone 16, and mobile phone 20 sends a patch acquisition request to mobile phone 16 to obtain patch file 2. If mobile phone 11 has installed patch file 2, mobile phone 20 sends a patch acquisition request to mobile phone 11 to obtain patch file 2. If both mobile phone 11 and mobile phone 16 have installed patch file 2, mobile phone 20 can send a patch acquisition request to mobile phone 11 or mobile phone 16 as needed to obtain patch file 2, which can be selected as needed.

[0166] For the mobile phone 16 in the home local area network 200, the mobile phone 16 can determine whether the mobile phone 16 is in the trusted network. If it is in the trusted network, the mobile phone 16 will display the patch file 2 of the patch package 2 corresponding to the mobile phone 16 on the home local area network 200 in a file-visible manner. The patch file 2 is displayed to the packet searching device during the device packet searching process.

[0167] After mobile phone 20 initiates a package search, it first searches for devices with the same device attributes in the same network, and can search for patch file 2 exposed by mobile phone 16. It is found that the productxx and versionxx attributes of the patch in mobile phone 16 are the same as those of mobile phone 20. Then mobile phone 20 directly synchronizes patch file 2 of patch package 2 in mobile phone 16 and installs it. Mobile phone 16 can directly obtain patch file 2 for patch installation without the need to perform authentication verification and decompression of the patch, which can effectively improve the efficiency of patch installation.

[0168] See also Fig. 9C In one implementation of the present application, the process of the mobile phone 20 obtaining the patch file 2 on the mobile phone 16 includes the following steps:

[0169] S2061, when the mobile phone 20 searches for patches in the mobile phone 16, the upper layer application (ie, software) in the mobile phone 20 that needs to perform patch update initiates an action of searching for a packet type of patch to the patch engine.

[0170] S2062, the patch engine in the mobile phone 20 generates a patch acquisition request according to the action of the search packet type being patch, and the patch acquisition request includes patch matching information of the upper layer application that the mobile phone 20 needs to update with a patch. The mobile phone 20 sends the patch acquisition request to the patch engine in the mobile phone 16 via the home local area network 200 based on short-distance communication.

[0171] S2063, after receiving the patch acquisition request, the patch engine in mobile phone 20 determines that the patch file corresponding to the patch matching information in mobile phone 16 is patch file 2 according to the patch matching information, and mobile phone 16 sends patch file 2 in mobile phone 16 to the patch engine in mobile phone 20 based on short-range communication.

[0172] The patch reuse method provided by the implementation method can reuse patches for devices in the same trusted network through patch matching information of other devices in the network. For example, before a device in the home local area network 200 initiates a query to search for patches, it will first synchronize patches of the same device type and version number in the home local area network 200 to avoid repeated searches.

[0173] In this implementation, when a device in the multi-device home local area network 200 is not online, for example, when the mobile phone 20 is not online when the device in the home local area network 200 is performing a patch update, the mobile phone 20 will miss the patch reuse process, and after the mobile phone 20 is back online, it needs to search for packages again to download and install. In this implementation, after the mobile phone 20 is connected to the trusted multi-device home local area network 200, the patch can be quickly synchronized to avoid downloading the patch from the patch server 100 again. The patch reuse method provided by this implementation makes full use of the fact that new devices in the local area network can quickly upgrade the patches in the network through the characteristics of some devices being online for a long time, and can achieve fast patch installation.

[0174] S207, the mobile phone 20 checks whether the reusable patch package in the mobile phone 11 contains the patch that the mobile phone 20 needs to download. If it does, the mobile phone 20 executes S208, and if it does not, the mobile phone 20 executes S209.

[0175] Mobile phone 20 determines whether the reused patch package in mobile phone 11 contains the patch that mobile phone 20 needs to download. Mobile phone 20 can obtain the reused patch matching information to determine the patch matching information of each reusable patch in the reused patch matching information, and match it with the patch matching information in mobile phone 20. If the same patch matching information exists, it is considered that the reused patch package in mobile phone 11 contains the patch that mobile phone 20 needs to download. If the same patch matching information does not exist, it is considered that the reused patch package in mobile phone 11 does not contain the patch that mobile phone 20 needs to download.

[0176] S208, mobile phone 20 sends a patch acquisition request to mobile phone 11, obtains the multiplexed patch package from mobile phone 11, and obtains patch file 2 according to the multiplexed patch package according to the process shown in the aforementioned step S104, and installs patch file 2.

[0177] Mobile phone 20 sends a patch acquisition request to mobile phone 11 as follows: Mobile phone 20 initiates a search for productA+Version00+apkpatch. Based on productA+Version00+apkpatch, mobile phone 20 converts the search for apkpatch into the search for update.zip. The patch query request can be productA+Version00+update.zip. The type of patch corresponding to apkpatch is apk data packet, and the type of patch corresponding to update.zip is OAT data packet. Mobile phone 20 can then obtain a multiplexed patch package with a data packet type of OAT.

[0178] After the mobile phone 20 obtains the multiplexed patch package, it needs to undergo authentication verification and decompression to obtain the patch file 2 corresponding to the patch package 2 required by the mobile phone 20 , and then the mobile phone 20 installs the patch file 2 .

[0179] For mobile phone 11 in the home local area network 200, mobile phone 11 can determine whether mobile phone 11 is in a trusted network. If it is in the trusted network, mobile phone 11 will display patch file 1, patch file 2, and patch file 3 obtained in mobile phone 11 according to the reused patch package on the home local area network 200 in a file-visible manner. The patch file 1, patch file 2, and patch file 3 are displayed to the packet searching device during the packet searching process of other devices in the home local area network 200.

[0180] After the newly added device in the home local area network 200 initiates a packet search, it will first search for devices with the same device attributes in the same network. If the patch file exposed by the mobile phone 11 can be found, the newly added device can directly synchronize the patch file that needs to be downloaded in the mobile phone 11 and install it to improve the efficiency of patch installation.

[0181] S209 , if the patch that the mobile phone 20 needs to download does not exist in the home area network 200 , the mobile phone 20 can query and download the patch from the patch server 100 .

[0182] The process of the mobile phone 20 querying and downloading patches from the patch server 100 includes: the mobile phone 20 sends a patch query request to the patch server 100. The patch query request includes patch matching information, and the patch matching information includes the product type of the mobile phone 20, the version number of the software that needs to be queried for patches in the mobile phone 20, and the patch type that needs to be obtained. The patch matching information can be productxx+Versionxx;apkpatch.

[0183] After receiving the patch query request, the patch server 100 authenticates the mobile phone 20 according to the product type of the mobile phone 20 in the patch query request. If the patch server 100 determines that the patch server 100 has a patch package corresponding to the mobile phone 20 according to the product type of the mobile phone 20, the patch server 100 authenticates the mobile phone 20. Then the patch server 100 determines that the patch corresponding to the software of this version includes patch package 2 according to the version number, and the patch server 100 sends a patch push message for pushing patch package 2 to the mobile phone 20. The patch push message includes a brief description of the name of patch package 2, the functions implemented by patch package 2, and other contents.

[0184] After receiving the patch push message, if the mobile phone 20 detects that the user confirms the operation of downloading the patch package 2, the mobile phone 20 sends a patch acquisition request to the patch server 100 to download the patch package 2. The patch server 100 sends the patch package 2 to the mobile phone 20 according to the patch acquisition request. The patch package 2 includes the patch file 2 and the patch signature information for security processing of the patch file 2, and the patch signature information is a package related to the patch security.

[0185] Of course, in another implementation of the present application, if the mobile phone 20 fails to search for the corresponding patch in the home local area network 200, the mobile phone 20 may no longer perform the patch query operation, or the mobile phone 20 may execute the aforementioned step S201 after a preset time interval (for example, 0.5h, 1h, etc.).

[0186] For the aforementioned steps S207 and S208, the mobile phone 20 determines whether the multiplexed patch package in the mobile phone 11 contains the patch that the mobile phone 20 needs to download. In another implementation of the present application, the mobile phone 11 may also determine whether the multiplexed patch package contains the patch that the mobile phone 20 needs to download. The determination process may be that the mobile phone 20 sends a patch query request to the mobile phone 11, and the patch query request includes the patch matching information of the mobile phone 20. If the mobile phone 11 determines that the multiplexed patch matching information contains the patch matching information of the mobile phone 20 according to the patch matching request sent by the mobile phone 20, it can be considered that the multiplexed patch package contains the patch corresponding to the mobile phone 20, and the mobile phone 11 sends the multiplexed patch package to the mobile phone 20. The mobile phone 20 receives the multiplexed patch package, obtains and installs the patch file corresponding to the mobile phone 20 according to the multiplexed patch package.

[0187] In another implementation of the present application, the mobile phone 20 is connected to the AP router 10 as a newly added device. If the mobile phone 20 needs to query, download and install patches, the mobile phone 20 can query and search in the home local area network 200 whether there are patches that the mobile phone 20 needs to download, and at the same time query from the patch server 100 whether there are patches that the mobile phone 20 needs to download. If the mobile phone 20 determines that the patch that the mobile phone 20 needs to download exists in both the home local area network 200 and the patch server 100, the mobile phone 20 can select a newer patch (i.e., the patch is released later, or the patch function is more complete, or the patch version is higher) for download and installation. For example, if the patch in the home local area network 200 is newer, the mobile phone 20 downloads the patch from the home local area network 200. If the patch on the patch server 100 is newer, the mobile phone 20 downloads the patch from the patch server 100.

[0188] The patch reuse method provided by the present implementation mode can provide a trusted patch source for the devices in the home area network 200 in the home area network 200. When there is a new device in the home area network 200, the new device can search in the home area network 200 whether there is a patch that the new device needs to download. If so, the new device can directly obtain the patch to be downloaded from the system without downloading it from the patch server 100. In addition, devices outside the trusted network can reuse patches of devices in the trusted network to achieve patch installation. For example, if the mobile phone 20 is not added to the trusted network home area network 200, the trusted patch source package (i.e., patch file) in the home area network 200 cannot be opened to it, but the original reused patch package can be distributed to the new device through a trusted channel, which is conducive to the rapid repair of patches of untrusted devices in the home area network 200.

[0189] In this implementation, the "Search Update" control displayed by the mobile phone 20 can be as follows: Fig. 10A If the mobile phone 20 detects that the user clicks the "Software Update" control of a certain application software under the "Settings" control, it can display Fig. 10A The interface shown.

[0190] In this implementation, if the mobile phone 20 detects that the user clicks the "Search Update" control 20A, the mobile phone 20 performs a patch search to search whether there is a patch to be installed.

[0191] If the mobile phone 20 searches for the patch file 2 to be installed from the network home local area network 200 (such as the mobile phone 11, the mobile phone 16, and the mobile phone 17), the mobile phone 20 may display Fig. 10BThe display interface shown includes information 20B such as the name of the searched patch file 2, prompt information 20C "Network Update", and source device information 20D of the patch file 2, that is, it shows that the devices that can obtain the new version of the patch include mobile phone 11, mobile phone 16 and mobile phone 17.

[0192] Mobile phone 20 can determine the device for obtaining the patch based on the user's click operation on the boxes after the names of mobile phone 11, mobile phone 16, and mobile phone 17. For example, mobile phone 20 detects that the user clicks the box after the name of mobile phone 11, and when performing the patch obtaining operation, mobile phone 20 obtains patch file 2 from mobile phone 11.

[0193] In addition, the mobile phone 20 may also display a “confirm update” control 20E. If the mobile phone 20 detects that the user clicks the “confirm update” control 20E, the mobile phone 20 obtains and installs the patch file 2 from the mobile phone 11 .

[0194] In another implementation of the present application, after the mobile phone 20 performs a patch search, it can also display the following information: Fig. 10C The interface shown. That is, the source device information 20D may include the devices mobile phone 11, mobile phone 16 and mobile phone 17 in the network home area network 200 that can obtain patches, and the patch server 100 that can obtain patches. If the mobile phone 20 detects that the user clicks the box after the name of the patch server 100, the mobile phone 20 obtains the patch package 2 from the patch server 100 when performing the patch acquisition operation.

[0195] For the aforementioned step S203, the mobile phone 20 obtains the device type of each device in the home area network 200, and determines that the home area network 200 and the mobile phone 20 are devices of the same device type. If the devices of the same device type as the mobile phone 20 in the home area network 200 include the mobile phone 11, the mobile phone 16 and the mobile phone 17. For the aforementioned step S204, the mobile phone 20 obtains the version information of the patch of the same device type with the product type of prodcutA to perform version matching, which can be that the mobile phone 20 obtains the version information of the patch of the product type of prodcutA of the mobile phone 11, the mobile phone 16 and the mobile phone 17 respectively, and performs version matching. For the aforementioned step S205, the mobile phone 20 determines whether the same type of device with the same version number patch has installed the corresponding patch, which can be that the mobile phone 20 determines whether the successfully matched device has installed the patch with the identity information of prodcutA+Version00 and the patch type of apkpatch, that is, whether the patch package 2 has been installed. If yes, the mobile phone 20 executes step S206, and step S206 may be that the mobile phone 20 obtains the patch file 2 of the patch package 2 from the device that has installed the patch. If there are multiple devices that have installed the patch, the mobile phone 20 may obtain the patch file 2 of the patch package 2 from any device that has installed the patch package 2.

[0196] In another implementation of the patch reuse method provided by the present application, the AP router 10 can be used as a reuse patch download device. When the device in the home local area network 200 needs to download a patch, it sends a patch download request to the AP router 10. After receiving the patch download request, the AP router 10 generates the aforementioned patch acquisition request and sends it to the patch server 100 to obtain the reuse patch package. The patch required by each device is obtained according to the reuse patch package and sent to each device.

[0197] Of course, in the present application, the multiplexed patch downloading device may also be other devices within the home local area network 200, which may be configured as needed.

[0198] In another implementation method of the present application, the mobile phone 11 can also generate patch reuse information based on the patch matching information of all online devices on the device side, or generate patch reuse information based on the patch matching information of devices of the same device type on the device side, or generate patch reuse information based on the patch matching information of other devices that meet preset conditions.

[0199] The aforementioned system provided by the present application can be considered as a full-scenario smart life system corresponding to the home scene, and the AP router 10 provides network services for each device in the system. The mobile phone 11 serves as the main entrance of the entire system, and wearable devices such as PC 12, tablet computer 13, large-screen device 14, bracelet 101, watch 102, headset 103, etc. serve as auxiliary entrances. The configuration of other IoT devices such as home appliances can cover multiple scenes. When the devices in the system need to download patches for patch updates, the mobile phone 11 can obtain the patches that each device in the system needs to download from the patch server 100, and other devices can obtain the required patches from the mobile phone 11, without the need for other devices to obtain the patches they need from the patch server 100. This avoids the problem of multiple downloads of patches from the patch server 100 by devices on the device side, and at the same time can improve the efficiency of patch installation in the system.

[0200] In the present application, the aforementioned short-range communication may refer to communication methods such as Wi-Fi, Bluetooth, mobile hotspot, etc., or may refer to other communication methods.

[0201] See also Fig.11 , Fig.11Shown is a schematic diagram of the structure of an electronic device 900 provided according to one embodiment of the present application. The electronic device 900 may include one or more processors 901 coupled to a controller hub 904. For at least one embodiment, the controller hub 904 communicates with the processor 901 via a multi-drop bus such as a front-end bus (FSB), a point-to-point interface such as a QuickPath Interconnect (QPI), or a similar connection. The processor 901 executes instructions that control general types of data processing operations. In one embodiment, the controller hub 904 includes, but is not limited to, a graphics memory controller hub (GMCH) (not shown in the figure) and an input / output hub (IOH) (which may be on a separate chip) (not shown in the figure), wherein the GMCH includes a memory and a graphics controller and is coupled to the IOH.

[0202] The electronic device 900 may also include a coprocessor 906 and a memory 902 coupled to the controller hub 904. Alternatively, one or both of the memory 902 and the GMCH may be integrated within the processor 901 (as described in the present application), with the memory 902 and the coprocessor 906 being directly coupled to the processor 901 and the controller hub 904, with the controller hub 904 being in a single chip with the IOH.

[0203] Memory 902 may be, for example, dynamic random access memory (DRAM), phase change memory (PCM), or a combination of both.

[0204] In one embodiment, coprocessor 906 is a special purpose processor, such as, for example, a high throughput MIC processor, a network or communication processor, a compression engine, a graphics processor, a GPGPU, or an embedded processor, etc. The optional nature of coprocessor 906 is indicated by dashed lines in FIG. Fig.11 middle.

[0205] In one embodiment, the electronic device 900 may further include a network interface (NIC) 903. The network interface 903 may include a transceiver for providing a radio interface for the electronic device 900, thereby communicating with any other suitable device (such as a front-end module, an antenna, etc.). In various embodiments, the network interface 903 may be integrated with other components of the electronic device 900. The network interface 903 may implement the functions of the communication unit in the above-mentioned embodiments.

[0206] The electronic device 900 may further include an input / output (I / O) device 905. The input / output (I / O) device 905 may include: a user interface designed to enable a user to interact with the electronic device 900; a peripheral component interface designed to enable peripheral components to also interact with the electronic device 900; and / or a sensor designed to determine environmental conditions and / or location information related to the electronic device 900.

[0207] It is worth noting that Fig.11 This is for illustrative purposes only. Fig.11 It is shown that the electronic device 900 includes multiple devices such as a processor 901, a controller hub 904, a memory 902, etc. However, in actual applications, the devices using the methods of the present application may only include a part of the devices of the electronic device 900, for example, it may only include the processor 901 and the NIC 903. Fig.11 The properties of optional devices are shown with dotted lines.

[0208] One or more tangible, non-transitory computer-readable media for storing data and / or instructions may be included in the memory of the electronic device 900. The computer-readable storage medium stores instructions, and more specifically, stores temporary and permanent copies of the instructions.

[0209] In the present application, the electronic device 900 may be a terminal device such as the aforementioned mobile phone, tablet computer, personal digital assistant (PDA) or desktop computer. The instructions stored in the memory of the electronic device may include: instructions that, when executed by at least one unit in the processor, cause the electronic device to implement the patch reuse method mentioned above.

[0210] See also Fig.12 , Fig.12 FIG. 1 is a schematic diagram of the structure of a SoC (System on Chip) 1000 provided according to an embodiment of the present application. Fig.12 In the figure, similar components have the same reference numerals. In addition, the dashed box is an optional feature of a more advanced SoC 1000. The SoC 1000 can be used in any electronic device according to the present application, and can implement corresponding functions according to different devices and different instructions stored therein.

[0211] exist Fig.12 In the embodiment, SoC 1000 includes: an interconnect unit 1002, which is coupled to a processor 1001; a system agent unit 1006; a bus controller unit 1005; an integrated memory controller unit 1003; a group or one or more coprocessors 1007, which may include integrated graphics logic, an image processor, an audio processor, and a video processor; an SRAM (static random access memory) unit 1008; and a DMA (direct memory access) unit 1004. In one embodiment, the coprocessor 1007 includes a special-purpose processor, such as, for example, a network or communication processor, a compression engine, a GPGPU, a high-throughput MIC processor, or an embedded processor.

[0212] The SRAM unit 1008 may include one or more computer-readable media for storing data and / or instructions. The computer-readable storage medium may store instructions, specifically, temporary and permanent copies of the instructions. The instructions may include instructions that, when executed by at least one unit in the processor, cause the electronic device to implement the patch reuse method as mentioned above.

[0213] Each embodiment of the mechanism disclosed in this application can be implemented in software, hardware, firmware, or a combination of these implementation methods. The embodiments of this application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, memory (or storage system, including volatile and non-volatile memory and / or storage unit).

[0214] It should be noted that the terms “first”, “second”, etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.

[0215] It should be noted that in the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not imply that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

[0216] Although the present application has been illustrated and described by referring to certain preferred embodiments of the present application, it should be understood by those skilled in the art that the above contents are further detailed descriptions of the present application in combination with specific embodiments, and it cannot be determined that the specific implementation of the present application is limited to these descriptions. Those skilled in the art may make various changes in form and details, including making several simple deductions or substitutions, without departing from the spirit and scope of the present application.

Claims

1. A patch reuse method, applied to a system including a plurality of devices and a patch server, wherein the patch server is used to provide patches for the plurality of devices, the plurality of devices are located in the same local area network, and the plurality of devices include at least a first electronic device and a second electronic device, It is characterized in that The method comprises: The first electronic device sends a first patch query request to the patch server, the first patch query request includes multiplexed patch matching information, the multiplexed patch matching information includes first patch matching information of the first electronic device and second patch matching information of the second electronic device, each patch matching information is used to match a corresponding patch file; The patch server generates a multiplexed patch package according to the first patch query request, and sends the multiplexed patch package to the first electronic device, wherein the multiplexed patch package includes a first patch file corresponding to the first patch matching information and a second patch file corresponding to the second patch matching information; The first electronic device receives the multiplexed patch package, and extracts the first patch file for installation on the first electronic device and the second patch file for installation on the second electronic device; The second electronic device obtains the second patch file from the first electronic device.

2. The patch reuse method according to claim 1, It is characterized in that The patch server generates a multiplexed patch package according to the first patch query request, including: The patch server determines a first patch file corresponding to the first patch matching information, and determines a second patch file corresponding to the second patch matching information; The patch server uses the same parts of the first patch file and the second patch file as the common part, uses the different parts of the first patch file and the second patch file as the differential part, and uses the common part and the differential part as the multiplexed patch package.

3. The patch reuse method according to claim 2, It is characterized in that After the first electronic device receives the multiplexed patch package, the method further includes: The first electronic device decompresses the multiplexed patch package to obtain a common patch and a differential patch; The first electronic device performs patch restoration and synthesis processing according to the common patch and the differential patch to obtain the first patch file and the second patch file respectively.

4. The patch reuse method according to claim 1, It is characterized in that After the patch server generates a multiplexed patch package according to the first patch query request, the method further includes: The patch server sends a patch push message for pushing the multiplexed patch package to the first electronic device; After receiving the patch push message, if the first electronic device detects that the user confirms the operation of downloading the multiplexed patch package, the first electronic device sends a first patch acquisition request to the patch server; After receiving the first patch acquisition request, the patch server sends the multiplexed patch package to the first electronic device.

5. The patch reuse method according to claim 1, It is characterized in that The first electronic device and the second electronic device are network trusted devices belonging to the local area network.

6. The patch reuse method according to claim 1, It is characterized in that The first electronic device sending a first patch query request to the patch server includes: The second electronic device sends a second patch query request to the first electronic device, where the second patch query request includes the second patch matching information of the second electronic device; after receiving the second patch query request, the first electronic device sends the first patch query request to the patch server; or The first electronic device sends the first patch query request to the patch server according to a preset patch query period; or After receiving the patch query instruction from the user, the first electronic device sends the first patch query request to the patch server.

7. The patch reuse method according to claim 1, It is characterized in that Each patch matching information includes device type information, device software version information, and patch type information of the acquired patch.

8. The patch reuse method according to any one of claims 1 to 7, It is characterized in that The plurality of devices further include a third electronic device, and the method further includes: The third electronic device obtains the network identifier of the local area network, and if it is determined according to the network identifier that the local area network where the third electronic device is located is a trusted network, the third electronic device obtains the second patch matching information of the second electronic device of the same device type as the third electronic device in the local area network; If the third electronic device determines that the second patch matching information is the same as the third patch matching information of the third electronic device, the third electronic device obtains the second patch file from the second electronic device.

9. The patch reuse method according to claim 8, It is characterized in that The third electronic device determines that the local area network is a trusted network, comprising: if the trusted network identifier in the third electronic device includes the network identifier of the local area network acquired by the third electronic device, the third electronic device determines that the local area network is a trusted network.

10. The patch reuse method according to claim 8, It is characterized in that The method further includes: if the third electronic device determines that the second electronic device has installed the second patch file, the third electronic device obtains the second patch file from the second electronic device.

11. The patch reuse method according to any one of claims 1 to 7, It is characterized in that The plurality of devices further include a third electronic device, and the method further includes: The third electronic device obtains the network identifier of the local area network, and if it is determined according to the network identifier that the local area network in which the third electronic device is located is an untrusted network, the third electronic device sends a third patch query request to the first electronic device, wherein the third patch query request includes the third patch matching information of the third electronic device; If the first electronic device determines, according to the third patch matching request, that the multiplexed patch package includes a patch file corresponding to the third electronic device, the first electronic device sends the multiplexed patch package to the third electronic device; The third electronic device receives the multiplexed patch package and extracts a patch file for installation in the third electronic device.

12. The patch reuse method according to any one of claims 1 to 7, It is characterized in that The plurality of devices further include a third electronic device, and the method further includes: The third electronic device obtains the network identifier of the local area network, and if it is determined according to the network identifier that the local area network where the third electronic device is located is an untrusted network, the third electronic device sends the multiplexed patch matching information acquisition request to the first electronic device to obtain the multiplexed patch matching information; If the third electronic device determines, according to the multiplexed patch matching information, that the multiplexed patch matching information includes third patch matching information corresponding to the third electronic device, the third electronic device sends a multiplexed patch acquisition request to the first electronic device; The first electronic device sends the multiplexed patch package to the third electronic device according to the multiplexed patch acquisition request; The third electronic device receives the multiplexed patch package and extracts a patch file for installation in the third electronic device.

13. A patch reuse system, It is characterized in that The invention comprises a plurality of devices and a patch server, wherein the patch server is used to provide patches for the plurality of devices, the plurality of devices are located in the same local area network, and the plurality of devices at least include a first electronic device and a second electronic device, and is characterized in that: The first electronic device is used to send a first patch query request to the patch server, the first patch query request includes multiplexed patch matching information, the multiplexed patch matching information includes first patch matching information of the first electronic device and second patch matching information of the second electronic device, each patch matching information is used to match a corresponding patch file; The patch server is used to generate a multiplexed patch package according to the first patch query request, and send the multiplexed patch package to the first electronic device, wherein the multiplexed patch package includes a first patch file corresponding to the first patch matching information and a second patch file corresponding to the second patch matching information; The first electronic device is used to receive the multiplexed patch package and extract the first patch file for installation on the first electronic device and the second patch file for installation on the second electronic device; The second electronic device is used to obtain the second patch file from the first electronic device.

14. An electronic device, It is characterized in that include: A memory for storing a computer program, wherein the computer program includes program instructions; A control component, used for executing program instructions so that the electronic device executes the patch reuse method as described in any one of claims 1-12.

15. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and the program instructions are executed by a computer to enable an electronic device to execute the patch reuse method according to any one of claims 1 to 12.

Citation Information

Cited By

  • Patch reusing method and system, and electronic device

    EP4213013B1

  • Patch reusing method and system, and electronic device

    WO2022068605A1