APP air updating method and device, electronic equipment and storage medium

Through the mobile terminal actively scans surrounding devices, obtains the APP list of target devices and compares version numbers, and uses near-field communication to obtain installation packages for coverage and updates, solving the problems of large traffic consumption and low efficiency caused by existing app updates relying on the network, and achieving efficient App air updates.

CN120508306APending Publication Date: 2025-08-19BEIJING BAIDUPAY SCI & TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510587881.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-08
Publication Date
2025-08-19

AI Technical Summary

Technical Problem

The existing mobile app update mechanism relies on network downloads, resulting in large traffic consumption and low update efficiency in poor network conditions, which is prone to update failures.

Method used

The mobile terminal actively scans the surrounding devices, obtains the list of target device APPs, compares the version numbers, filters the APPs to be updated, and obtains the target installation package through near-field communication for overwriting and updating.

Benefits of technology

It reduces network traffic consumption, improves App update efficiency and success rate, avoids the impact of network speed, and realizes efficient App air updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120508306A_ABST
    Figure CN120508306A_ABST
Patent Text Reader

Abstract

The invention provides an APP air updating method and device, electronic equipment and a storage medium, and the method comprises the steps: a mobile terminal scans surrounding connectable target equipment, obtains a target equipment APP list of the target equipment, compares the version number of each APP installed in the mobile terminal with the version number of each APP in the target equipment APP list, screens a to-be-updated APP needing to be updated, and sends the to-be-updated APP to the mobile terminal; and forming a corresponding to-be-updated APP list, sending the to-be-updated APP list to the target device, obtaining a target installation package of the to-be-updated APP returned by the target device, and performing coverage updating on the to-be-updated APP by using the target installation package. Through the above process, the air update of the APP is realized, the mobile terminal can directly obtain the update installation package from the surrounding equipment through the near field communication technology, the installation package does not need to be downloaded through the application market depending on the network and then installed, the flow consumption of a user is reduced, the slow update of the APP caused by the influence of the network speed is avoided, and the update efficiency of the APP is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of software management technology, and in particular to a method, device, electronic device and storage medium for updating an APP remotely. Background Art

[0002] Currently, mobile apps undergo frequent iterative updates. Existing mobile app update mechanisms typically require users to download the latest app installation packages one by one from an app store or fixed website to update the corresponding app. This method is highly network-dependent and consumes a large amount of network data when wireless networks are unavailable, resulting in significant data costs for users. Furthermore, this reliance on network data significantly limits app update speeds in poor network conditions, resulting in low app update efficiency and a high risk of app update failures due to poor network conditions. Summary of the Invention

[0003] In view of this, an embodiment of the present invention provides an APP remote update method, device, electronic device and storage medium to improve the APP update efficiency.

[0004] According to one aspect of the present invention, a method for updating an APP remotely is provided, which is applied to a mobile terminal. The method includes:

[0005] Scan surrounding devices, determine a connectable target device based on device information returned by each of the surrounding devices, and establish a connection with the target device;

[0006] Send an APP list acquisition request to the target device, and obtain a target device APP list returned by the target device, wherein the target device APP list includes APP information of each APP installed in the target device, and the APP information includes APP identification and version number;

[0007] Compare the version numbers of the installed APP list of the local device and the APP list of the target device to determine the APPs to be updated;

[0008] Sending an update request to the target device based on each of the APPs to be updated, wherein the update request includes a list of APPs to be updated;

[0009] The target installation packages of the APPs to be updated returned by the target device are obtained, and the APPs to be updated are updated by using the target installation packages.

[0010] In a possible embodiment, scanning surrounding devices and determining a connectable target device based on device information returned by each of the surrounding devices includes:

[0011] Obtain device information broadcast by surrounding devices, including whether the sharing function is enabled and the APP version information of each APP installed in the surrounding devices;

[0012] In a case where the sharing function is enabled on the surrounding device and the APP version information is higher than the version of the corresponding APP in the mobile terminal, the surrounding device is determined to be a connectable target device.

[0013] In a possible embodiment, the method further includes:

[0014] The mobile terminal device information is broadcasted so that each of the surrounding devices determines whether to send device information to the mobile terminal according to a sharing range among the surrounding devices, where the sharing range includes full sharing or contact device sharing.

[0015] In a possible embodiment, obtaining the target installation packages of the APPs to be updated returned by the target device, and using the target installation packages to overwrite and update the APPs to be updated includes:

[0016] Obtain the target installation package of each APP to be updated returned by the target device;

[0017] Verifying the integrity of each target installation package using a hash algorithm, and verifying the signature of the target installation package, wherein the signature is used to identify the source of the target installation package;

[0018] When each of the target installation packages is complete and the signature conforms to the preset signature, each of the APPs to be updated is overwritten and updated using each of the target installation packages.

[0019] According to another aspect of the present invention, there is provided an APP remote update device, which is applied to a mobile terminal and includes:

[0020] A scanning module, configured to scan surrounding devices, determine a connectable target device based on device information returned by each of the surrounding devices, and establish a connection with the target device;

[0021] An acquisition module is configured to send an APP list acquisition request to the target device and acquire a target device APP list returned by the target device, wherein the target device APP list includes APP information of each APP installed in the target device, and the APP information includes an APP identifier and a version number;

[0022] A comparison module is used to compare the version numbers of the installed APP list of the local device with the APP list of the target device to determine the APPs to be updated;

[0023] A sending module, configured to send an update request to the target device based on each of the APPs to be updated, wherein the update request includes a list of APPs to be updated;

[0024] The update module is used to obtain the target installation package of each of the to-be-updated APPs returned by the target device, and use each of the target installation packages to overwrite and update each of the to-be-updated APPs.

[0025] In a possible embodiment, scanning surrounding devices and determining a connectable target device based on device information returned by each of the surrounding devices includes:

[0026] Obtain device information broadcast by surrounding devices, including whether the sharing function is enabled and the APP version information of each APP installed in the surrounding devices;

[0027] In a case where the sharing function is enabled on the surrounding device and the APP version information is higher than the version of the corresponding APP in the mobile terminal, the surrounding device is determined to be a connectable target device.

[0028] In a possible embodiment, the scanning module is used to broadcast the mobile terminal device information so that each of the surrounding devices determines whether to send device information to the mobile terminal according to the sharing range among the surrounding devices, and the sharing range includes full sharing or contact device sharing.

[0029] In a possible embodiment, obtaining the target installation packages of the APPs to be updated returned by the target device, and using the target installation packages to overwrite and update the APPs to be updated includes:

[0030] Obtain the target installation package of each APP to be updated returned by the target device;

[0031] Verifying the integrity of each target installation package using a hash algorithm, and verifying the signature of the target installation package, wherein the signature is used to identify the source of the target installation package;

[0032] When each of the target installation packages is complete and the signature conforms to the preset signature, each of the APPs to be updated is overwritten and updated using each of the target installation packages.

[0033] According to another aspect of the present invention, there is provided an electronic device, comprising:

[0034] processor; and

[0035] Memory for storing programs,

[0036] Among them, the program includes instructions, which, when executed by the processor, enable the processor to execute any of the above-mentioned APP air update methods.

[0037] According to another aspect of the present invention, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute any of the above-mentioned APP over-the-air update methods.

[0038] One or more technical solutions provided in the embodiments of the present invention, the mobile terminal actively scans the surrounding connectable target devices, and obtains the target device APP list in the target device, compares the version numbers of each APP installed on the mobile terminal itself with the version numbers of each APP in the target device APP list, filters out the APPs to be updated in the mobile terminal, forms a corresponding APP list to be updated and sends it to the target device, obtains the target installation package of the APP to be updated returned by the target device, and uses the target installation package to overwrite and update the APP to be updated in the mobile terminal. The above process realizes the over-the-air update of the APP, and the mobile terminal can directly obtain the updated installation package from the surrounding devices through near-field communication technology, without relying on the network to download the installation package through the application market and then install it, reducing user traffic consumption, avoiding slow APP updates and update failures due to the influence of network speed, and improving the APP update efficiency and success rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Further details, features and advantages of the present invention are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:

[0040] Figure 1 A schematic diagram of a flow chart of a method for updating an APP remotely provided in an embodiment of the present invention;

[0041] Figure 2 A schematic diagram of another flow chart of the method for updating an APP remotely provided in an embodiment of the present invention;

[0042] Figure 3 A schematic diagram of the structure of an APP remote update device provided by an embodiment of the present invention;

[0043] Figure 4 A block diagram of an exemplary electronic device capable of implementing the embodiments of the present invention is shown. DETAILED DESCRIPTION

[0044] Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are for illustrative purposes only and are not intended to limit the scope of protection of the present invention.

[0045] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.

[0046] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc. mentioned in the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0047] It should be noted that the modifications of "one" and "multiple" mentioned in the present invention are illustrative rather than restrictive. Those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0048] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0049] In order to improve the efficiency of APP updates, embodiments of the present invention provide an APP wireless update method, device, electronic device, and storage medium. The APP update method provided by the embodiments of the present invention can be applied to a mobile terminal, which can be a mobile phone, a head-mounted device, etc. The following describes the solution of the present invention with reference to the accompanying drawings:

[0050] Figure 1 A flowchart of a method for updating an APP remotely provided in an embodiment of the present invention may include the following steps:

[0051] S101, scanning surrounding devices, determining a connectable target device based on device information returned by each of the surrounding devices, and establishing a connection with the target device;

[0052] S102: Send an APP list acquisition request to the target device, and obtain a target device APP list returned by the target device, wherein the target device APP list includes APP information of each APP installed in the target device, and the APP information includes an APP identifier and a version number;

[0053] S103, comparing the version numbers of the installed APP list of the local device and the APP list of the target device to determine the APPs to be updated;

[0054] S104: Send an update request to the target device based on each of the apps to be updated, where the update request includes a list of apps to be updated;

[0055] S105: Obtain the target installation packages of the APPs to be updated returned by the target device, and use the target installation packages to overwrite and update the APPs to be updated.

[0056] By applying the embodiment of the present invention, the mobile terminal actively scans the surrounding connectable target devices, and obtains the target device APP list in the target device, compares the version numbers of the APPs installed by the mobile terminal itself with the version numbers of the APPs in the target device APP list, filters out the APPs to be updated in the mobile terminal, forms a corresponding APP list to be updated and sends it to the target device, obtains the target installation package of the APP to be updated returned by the target device, and uses the target installation package to overwrite and update the APP to be updated in the mobile terminal. The above process realizes the over-the-air update of the APP, and the mobile terminal can directly obtain the updated installation package from the surrounding devices through near-field communication technology, without relying on the network to download the installation package through the application market and then install it, thereby reducing user traffic consumption, avoiding slow APP updates due to the influence of network speed, and improving APP update efficiency.

[0057] The above S101-S105 are exemplarily described below:

[0058] In a possible embodiment, the mobile terminal may include a discovery module, which can establish a communication connection with surrounding mobile terminals using near-field communication technology. The above-mentioned near-field communication technology may be Bluetooth or Wi-Fi Direct, etc., wherein Wi-Fi Direct is a wireless communication technology that allows devices to communicate directly point-to-point without an intermediate router or access point. In S101, the user can start the discovery module by performing corresponding operations in the display interface of the mobile terminal, and search for surrounding devices through the discovery module. Exemplarily, the user can start the discovery module by clicking on a preset area in a preset page in the display interface. As a possible implementation method, a time interval can be set in advance, and the discovery module can be started according to the preset time interval to search for surrounding devices according to the preset time interval and determine whether the APP needs to be updated. The above-mentioned time interval can be set by the user to better meet user needs.

[0059] The mobile terminal may discover a connectable target device by scanning surrounding devices. As a possible implementation, the following steps may be performed to scan surrounding devices to determine a connectable target device:

[0060] S11. Obtain device information broadcast by surrounding devices, wherein the device information includes whether the sharing function is enabled and APP version information of each APP installed in the surrounding devices;

[0061] S12: When the sharing function is enabled on the surrounding device and the APP version information is higher than the version of the corresponding APP in the mobile terminal, determine that the surrounding device is a connectable target device.

[0062] As a possible implementation, the sharing function in the device can be turned off by default, and the user can independently set his device to turn on the sharing function. When the device turns on the sharing function, it can broadcast its device information to the surrounding area. The device information may include information such as device identification, whether the sharing function is turned on, and APP version. When the mobile terminal is searching for surrounding connectable devices, if it detects the device information broadcast by the surrounding devices, it can determine whether the surrounding devices support the sharing function and whether the devices have the latest APP version based on the device information. Exemplarily, after receiving the device information broadcast by the surrounding devices, it can be determined whether the version of the APP in the surrounding devices is higher than the version of the corresponding APP in the mobile terminal based on the APP version contained in the device information. If the version of the APP in the surrounding devices is higher than the APP version in the mobile terminal, it can be determined that the surrounding devices have the latest APP version. If the sharing function of the surrounding devices is turned on and have the latest APP version, it can be determined that the surrounding devices are connectable target devices.

[0063] In one possible embodiment, users can independently define the scope of use of the sharing function, that is, the device can provide a multi-level permission setting function to adapt to the diverse needs of users. For example, users can set the scope of use of the sharing function according to different usage scenarios, such as allowing contact devices to share or fully open sharing. For example, in the scenario of using a PDA (Personal Digital Assistant) device to scan express delivery, since the devices closest to the user are all PDA devices at the same site, the user can open full sharing.

[0064] Accordingly, the mobile terminal may broadcast the mobile terminal device information, so that each of the surrounding devices determines whether to send device information to the mobile terminal based on the sharing range of the surrounding devices, where the sharing range includes full sharing or contact device sharing. For example, the surrounding devices may pre-store the contact device identifier and, upon receiving the mobile terminal device information broadcast by the mobile terminal, search for the mobile terminal device information in the contact device identifier. If the mobile terminal device information is found, the device information of the surrounding device is returned; if not, the connection is rejected.

[0065] In one possible embodiment, after receiving the mobile terminal device information broadcast by the mobile terminal, the surrounding device can display the mobile terminal device information on the surrounding device's display interface, allowing the surrounding device user to determine whether to agree to share based on the mobile terminal device information. If the surrounding device user agrees to share, the surrounding device returns its device information to establish a connection with the mobile terminal. If the surrounding device user refuses to share, the surrounding device does not need to return its device information.

[0066] As a possible implementation method, when the near-field communication technology used is Wi-Fi Direct, the mobile terminal can search for devices with the Wi-Fi Direct function turned on in the surrounding devices to determine the target device that can be connected. Specifically, the mobile terminal can send a probe request frame to the surrounding devices. The probe request frame contains a specific service set identifier (SSID), indicating that this is a search request for a Wi-Fi Direct device. After receiving the probe request, the surrounding Wi-Fi Direct devices can decide whether to respond based on their own status and settings. If they are willing to participate in the connection, they send a probe response frame as a reply. The mobile terminal can determine the target device that can be connected based on the response frame. Specifically, the response frame may include device information of the surrounding devices, and the mobile terminal can determine whether the surrounding devices are connectable based on the device information.

[0067] After the mobile terminal finds a connectable target device, it can establish a point-to-point connection with the target device to transmit data with the target device. As a possible implementation method, the mobile terminal can send a Bluetooth pairing request to the target device. The Bluetooth pairing request may include a device identifier of the mobile terminal, which may be a user-defined device name or Bluetooth device address, etc. The target device can display the pairing request in a pop-up window on the display interface to enable the target device user to determine whether to accept the Bluetooth pairing based on the Bluetooth device request. If the target device user accepts the Bluetooth pairing request, a Bluetooth connection can be established between the mobile terminal and the target device, and data can be transmitted through the Bluetooth connection.

[0068] After the mobile terminal establishes a connection with the target device, it can send an APP list acquisition request to the target device. After the target device receives the APP list acquisition request, it can obtain the APP information of each APP installed in the target device and return it to the mobile terminal. The APP information may include APP identification, version number, and signature, etc. Among them, the APP identification can be the APP name or APP registration number, etc. The APP version number is used to identify the version of the APP to determine whether the APP needs to be updated. The App signature is a technical mechanism for verifying the identity and integrity of the application. Specifically, the APP developer can use the private key to sign the application and generate a certificate file containing a digital signature. As a possible way, the target device can extract the APP information of each APP installed therein and send the APP information to the mobile terminal in the form of a list.

[0069] After receiving the target device's app list, the mobile terminal can compare it with the local installed app list. As a possible implementation, the installed app list and the target device's app list can be identified for identical app identifiers, and the corresponding version numbers can be determined. If the version number corresponding to the identical app identifier in the target device's app list is higher than the version number corresponding to the same app identifier in the installed app list, the app represented by the app identifier can be determined to be the app to be updated. Otherwise, the app represented by the app identifier does not need to participate in the update.

[0070] Through the above steps, one or more apps to be updated can be screened out, and then a list of apps to be updated can be constructed based on the app information of each app to be updated. The app information can include the identifier of the app to be updated, the current version, and the target version. The target version can be the version number corresponding to the app identifier in the target device's app list. The mobile terminal can send the list of apps to be updated to the target device through the connection established with the target device.

[0071] After the target device receives the list of APPs to be updated, it can obtain the update permission of the APPs to be updated contained in the list of APPs to be updated from the user. As a possible implementation method, the target device can display the list of APPs to be updated and the mobile terminal identification on the display interface of the target device in the form of a pop-up prompt to determine whether the target device user allows the update. Exemplarily, the above-mentioned list of APPs to be updated and the mobile terminal identification can be displayed on the display interface of the target device, and the "Agree" and "Reject" button areas can be displayed. If the target device user clicks the "Agree" button area, it can be determined that the target device user agrees to the air update. If the target device user clicks the "Reject" button area, it can be determined that the target device user rejects the air update.

[0072] As a possible implementation method, the target device user can also be provided with a sharing range selection. For example, the list of apps to be updated and the mobile terminal identifier can be displayed in the target device display interface, and at the same time, the "Share All", "Share Partially" or "Reject" button area can be displayed in the target device display interface. If the target device user clicks "Share Partially", it can be determined that the target device user only opens the air update function for some apps. If the target device user clicks the "Share All" button area, it can be determined that the target device user agrees to the air update of each app to be updated in the list of apps to be updated. If the target device user clicks the "Reject" button area, it can be determined that the target device user rejects the air update. As a possible implementation method, after the user selects "Share Partially", a selection box can be added to the identifier of each app to be updated in the list of apps to be updated. The target device user can determine the apps to be updated that are allowed to be updated by checking the selection box.

[0073] After the target device user allows sharing, the mobile terminal can download the installation package of the app to be updated from the target device. Specifically, the target device can send the installation package of the app to be updated to the mobile terminal via the connection established between the mobile terminal and the target device. As a possible implementation, there may be multiple apps to be updated. Accordingly, the target device can transmit the installation packages of each app to be updated in parallel to further improve the efficiency of app updates.

[0074] In a possible embodiment, when the target device transmits the APP installation package to be updated to the mobile terminal, the APP installation package to be updated may be segmented first. Exemplarily, the segmented package size may be preset, and the installation package may be segmented starting from the starting position of the APP installation package to be updated according to the segmented package size to obtain each segmented package. And in the segmentation process, after obtaining the segmented package, an end mark may be set at the end of the segmented package, and the integrity of the segmented package may be subsequently verified based on the end mark. The above-mentioned end mark may also include a segmented package sequence tag, which is used to indicate the position of the segmented package in the installation package, and the segmented packages may be subsequently merged based on the sequence tag.

[0075] Correspondingly, after the transmission of a segmented packet is completed, the integrity of the segmented packet can be verified. For example, whether the received segmented packet contains an end mark can be checked in the mobile terminal. If it does, it can be determined that the segmented packet has been transmitted. If it does not, the segmented packet can be retransmitted.

[0076] By using these technical measures, the installation package is transmitted in segments, avoiding transmission failures that could occur if too much data is transmitted at once, and improving the success rate of installation package transmission. Furthermore, by performing integrity checks on the segmented packages, the integrity of the transmission is ensured, preventing data loss that could occur during segmented transmission in unstable connection environments.

[0077] In one possible embodiment, after the target device completes the transmission of the APP installation package to be updated, it can send a transmission completion message to the mobile terminal. Upon receiving the transmission completion message, the mobile terminal can determine that the installation package transmission is complete. In other possible embodiments, the mobile terminal can obtain the size of the APP installation package to be updated from the target device and determine whether the installation package transmission is complete based on the size of the APP installation package to be updated.

[0078] In a possible embodiment, after the mobile terminal obtains the target installation package of each APP to be updated returned by the target device, it can use a hash algorithm to verify the integrity of each target installation package and verify the signature of the target installation package. When each target installation package is complete and the signature meets the preset signature, each APP to be updated is overwritten and updated using each target installation package.

[0079] As a possible implementation, after the installation package is transmitted, the mobile terminal can verify the integrity of the installation package to ensure that it has not been tampered with or lost during transmission. This verification process can be implemented using a hash algorithm (such as SHA-256), a digital signature method, and a checksum method, which is not specifically limited in the present invention.

[0080] In actual applications, the installation package in the target device may come from a variety of sources, such as an app store or the official website. When the app developer sends the app installation package to different platforms, they usually set different signatures for the installation package to distinguish the platform to which the installation package belongs. Therefore, as a possible implementation method, after the installation package is transmitted, the mobile terminal can also verify the signature of the installation package to confirm that the source of the installation package is legitimate and trustworthy, and prevent the receipt of forged or malicious installation packages, thereby improving the security of the app's over-the-air updates.

[0081] After the installation package is verified, the mobile terminal can use the installation package to overwrite the corresponding APP to be updated. After the update is completed, the update can be recorded and the mobile terminal user can be notified of the APP update status through push notifications, pop-up windows, etc.

[0082] In one possible embodiment, the mobile terminal may include a data transmission module, a security verification module, and a user interaction module. The data transmission module is used to establish a point-to-point connection and transmit the app package file. The security verification module is used to perform integrity verification and signature verification on the received installation package. The user interaction module supports user control of the sharing function and approval or rejection of transmission requests.

[0083] like Figure 2 As shown, Figure 2 Another flowchart of the method for updating an APP remotely provided in an embodiment of the present invention may include the following steps:

[0084] S201: The mobile terminal discovers a target device.

[0085] S202: Determine whether the target device has the latest version of the APP. If the target device has the latest version of the APP, execute S203; if the target device does not have the latest version of the APP, execute S215.

[0086] S203: Obtain an APP list of the target device, where the APP list includes identifiers of each APP installed in the target device and corresponding information such as version numbers and signatures.

[0087] S204: Compare the APP version lists and select the APPs that need to be updated. Specifically, the APP list installed in the mobile terminal can be compared with the APP list of the target device to determine the APPs with different version numbers corresponding to the same APP identifier in the two lists. The APPs with different version numbers are identified as the APPs whose version number identifier in the target device is later than the version number identifier in the mobile terminal as the APPs that need to be updated.

[0088] S205: Determine whether there is an APP that needs to be updated. If so, execute S06; if not, execute S215.

[0089] S206: Send an update request to the target device.

[0090] S207: The target device requests the user to agree to share through a pop-up window.

[0091] Exemplarily, the target device may display the mobile terminal information included in the update request in a display interface in a pop-up window, so that the user can determine whether to agree to share.

[0092] S208: Determine whether the user agrees to share. If yes, execute S208; if not, execute S215.

[0093] S209: Establish a connection between the mobile terminal and the target device.

[0094] S210: The target device starts transmitting a data packet to the mobile terminal and verifies the integrity of the data packet after the transmission is completed.

[0095] S211. Determine whether the data packet verification passes. If so, execute S212; if not, execute S215.

[0096] S212: Perform signature verification on the data packet and determine whether the signature verification passes. If so, execute S213; if not, execute S215.

[0097] S213: Using the data packet to overwrite and install the APP in the mobile terminal.

[0098] S214: Notify the user that the update is complete.

[0099] S215, end the process.

[0100] By applying the embodiment of the present invention, a dynamic discovery mechanism is used to scan nearby mobile devices and determine whether they have installed a higher version of the App. Through this mechanism, users do not need to rely on cloud downloads, but can use the existing resources of surrounding devices to quickly complete the update. Through the point-to-point transmission method between close-range devices, users can directly obtain the latest App version from surrounding devices, reducing the use of network bandwidth, avoiding the download of redundant data, and reducing traffic costs and App update costs. Furthermore, by traversing the App lists of the local device and surrounding devices, the version numbers are automatically compared and the Apps that need to be updated are screened out, thereby completing the version update of multiple Apps at one time and improving the user experience. For scenarios where multiple Apps need to be updated at the same time, the present invention compares and matches the App version numbers of the local device and surrounding devices, intelligently screens the available latest version sources, reduces manual intervention steps, and achieves an efficient and fast update process.

[0101] Furthermore, due to the potential security risks associated with direct device-to-device transmission, this invention incorporates strict permission control, integrity verification, and signature verification mechanisms to ensure a secure and reliable update process. User-configurable switches allow for flexible control over the scope of functionality, for example, limiting app sharing to only devices belonging to contacts, preventing untrusted devices from participating in updates.

[0102] Based on the same inventive concept, an embodiment of the present invention further provides an APP air update device, which can be applied to a mobile terminal, such as Figure 3 As shown, the apparatus 300 may include:

[0103] The scanning module 301 is used to scan surrounding devices, determine a connectable target device based on the device information returned by each of the surrounding devices, and establish a connection with the target device;

[0104] An acquisition module 302 is configured to send an APP list acquisition request to the target device and acquire a target device APP list returned by the target device, wherein the target device APP list includes APP information of each APP installed in the target device, and the APP information includes an APP identifier and a version number;

[0105] Comparison module 303, used to compare the version numbers of the installed APP list of the local device and the APP list of the target device to determine the APPs to be updated;

[0106] A sending module 304 is configured to send an update request to the target device based on each of the APPs to be updated, wherein the update request includes a list of APPs to be updated;

[0107] The updating module 305 is configured to obtain the target installation packages of the APPs to be updated returned by the target device, and use the target installation packages to update the APPs to be updated.

[0108] In a possible embodiment, scanning surrounding devices and determining a connectable target device based on device information returned by each of the surrounding devices includes:

[0109] Obtain device information broadcast by surrounding devices, including whether the sharing function is enabled and the APP version information of each APP installed in the surrounding devices;

[0110] In a case where the sharing function is enabled on the surrounding device and the APP version information is higher than the version of the corresponding APP in the mobile terminal, the surrounding device is determined to be a connectable target device.

[0111] In a possible embodiment, the scanning module is used to broadcast the mobile terminal device information so that each of the surrounding devices determines whether to send device information to the mobile terminal according to the sharing range among the surrounding devices, and the sharing range includes full sharing or contact device sharing.

[0112] In a possible embodiment, obtaining the target installation packages of the APPs to be updated returned by the target device, and using the target installation packages to overwrite and update the APPs to be updated includes:

[0113] Obtain the target installation package of each APP to be updated returned by the target device;

[0114] Verifying the integrity of each target installation package using a hash algorithm, and verifying the signature of the target installation package, wherein the signature is used to identify the source of the target installation package;

[0115] When each of the target installation packages is complete and the signature conforms to the preset signature, each of the APPs to be updated is overwritten and updated using each of the target installation packages.

[0116] Among them, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved in the present invention are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0117] An exemplary embodiment of the present invention further provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor. The memory stores a computer program executable by the at least one processor, wherein the computer program, when executed by the at least one processor, causes the electronic device to perform a method according to an embodiment of the present invention.

[0118] Exemplary embodiments of the present invention further provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform a method according to an embodiment of the present invention.

[0119] An exemplary embodiment of the present invention further provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor of a computer, the computer is configured to cause the computer to perform a method according to an embodiment of the present invention.

[0120] refer to Figure 4, a block diagram of an electronic device 400 that can serve as a server or client of the present invention will now be described, which is an example of a hardware device that can be applied to various aspects of the present invention. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0121] like Figure 4 As shown, electronic device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. Various programs and data required for the operation of electronic device 400 can also be stored in RAM 403. Computing unit 401, ROM 402, and RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to bus 404.

[0122] Multiple components within electronic device 400 are connected to I / O interface 405, including an input unit 406, an output unit 407, a storage unit 408, and a communication unit 409. Input unit 406 can be any type of device capable of inputting information into electronic device 400. Input unit 406 can receive input numeric or character information and generate key input signals related to user settings and / or function control of the electronic device. Output unit 407 can be any type of device capable of presenting information and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. Storage unit 408 may include, but is not limited to, a magnetic disk or an optical disk. Communication unit 409 allows electronic device 400 to exchange information / data with other devices via computer networks such as the Internet and / or various telecommunication networks and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0123] The computing unit 401 can be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 401 performs the various methods and processes described above. For example, in some embodiments, any of the above-mentioned APP air update methods can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 400 via the ROM 402 and / or the communication unit 409. In some embodiments, the computing unit 401 can be configured to execute any of the above-mentioned APP air update methods by any other appropriate means (for example, by means of firmware).

[0124] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. Such program code can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0125] In the context of the present invention, machine-readable medium can be a tangible medium that can contain or store a program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0126] As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., a magnetic disk, an optical disk, a memory, a programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including machine-readable media that receive machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal used to provide machine instructions and / or data to a programmable processor.

[0127] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0128] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.

[0129] Computer systems may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The client and server relationship arises through computer programs running on the respective computers and having a client-server relationship to each other.

Claims

1. A method for updating an APP remotely, characterized in that: Applied to a mobile terminal, the method includes: Scan surrounding devices, determine a connectable target device based on device information returned by each of the surrounding devices, and establish a connection with the target device; Send an APP list acquisition request to the target device, and obtain a target device APP list returned by the target device, wherein the target device APP list includes APP information of each APP installed in the target device, and the APP information includes APP identification and version number; Compare the version numbers of the installed APP list of the local device and the APP list of the target device to determine the APPs to be updated; Sending an update request to the target device based on each of the APPs to be updated, wherein the update request includes a list of APPs to be updated; The target installation packages of the APPs to be updated returned by the target device are obtained, and the APPs to be updated are updated by using the target installation packages.

2. The method according to claim 1, characterized in that The scanning of surrounding devices and determining a connectable target device based on device information returned by each of the surrounding devices includes: Obtain device information broadcast by surrounding devices, including whether the sharing function is enabled and the APP version information of each APP installed in the surrounding devices; In a case where the sharing function is enabled on the surrounding device and the APP version information is higher than the version of the corresponding APP in the mobile terminal, the surrounding device is determined to be a connectable target device.

3. The method according to claim 2, characterized in that The method further comprises: The mobile terminal device information is broadcasted so that each of the surrounding devices determines whether to send device information to the mobile terminal according to a sharing range among the surrounding devices, where the sharing range includes full sharing or contact device sharing.

4. The method according to claim 1, wherein The obtaining of the target installation packages of the APPs to be updated returned by the target device, and using the target installation packages to overwrite and update the APPs to be updated, includes: Obtain the target installation package of each APP to be updated returned by the target device; Verifying the integrity of each target installation package using a hash algorithm, and verifying the signature of the target installation package, wherein the signature is used to identify the source of the target installation package; When each of the target installation packages is complete and the signature conforms to the preset signature, each of the APPs to be updated is overwritten and updated using each of the target installation packages.

5. An APP remote update device, characterized in that: Applied to a mobile terminal, the device includes: A scanning module, configured to scan surrounding devices, determine a connectable target device based on device information returned by each of the surrounding devices, and establish a connection with the target device; An acquisition module is configured to send an APP list acquisition request to the target device and acquire a target device APP list returned by the target device, wherein the target device APP list includes APP information of each APP installed in the target device, and the APP information includes an APP identifier and a version number; A comparison module is used to compare the version numbers of the installed APP list of the local device with the APP list of the target device to determine the APPs to be updated; A sending module, configured to send an update request to the target device based on each of the APPs to be updated, wherein the update request includes a list of APPs to be updated; The update module is used to obtain the target installation package of each of the to-be-updated APPs returned by the target device, and use each of the target installation packages to overwrite and update each of the to-be-updated APPs.

6. The device according to claim 5, characterized in that The scanning of surrounding devices and determining a connectable target device based on device information returned by each of the surrounding devices includes: Obtain device information broadcast by surrounding devices, including whether the sharing function is enabled and the APP version information of each APP installed in the surrounding devices; In a case where the sharing function is enabled on the surrounding device and the APP version information is higher than the version of the corresponding APP in the mobile terminal, the surrounding device is determined to be a connectable target device.

7. The device according to claim 6, characterized in that The scanning module is used to broadcast the mobile terminal device information so that each of the surrounding devices determines whether to send device information to the mobile terminal according to the sharing range among the surrounding devices, and the sharing range includes full sharing or contact device sharing.

8. The device according to claim 5, characterized in that The obtaining of the target installation packages of the APPs to be updated returned by the target device, and using the target installation packages to overwrite and update the APPs to be updated, includes: Obtain the target installation package of each APP to be updated returned by the target device; Verifying the integrity of each target installation package using a hash algorithm, and verifying the signature of the target installation package, wherein the signature is used to identify the source of the target installation package; When each of the target installation packages is complete and the signature conforms to the preset signature, each of the APPs to be updated is overwritten and updated using each of the target installation packages.

9. An electronic device comprising: processor; as well as Memory for storing programs, The program includes instructions, which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 4.

10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 4.