Data transmission method and electronic device

By directly transmitting application identifiers and device identifiers between devices, and utilizing a distributed database and packet management module, the problem of requiring third-party servers and user operations in existing technologies is solved, achieving efficient data synchronization between devices.

CN114390485BActive Publication Date: 2026-02-03HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111047918.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-10-21
Filing Date
2021-09-08
Publication Date
2026-02-03
Estimated Expiration
2041-09-08

AI Technical Summary

Technical Problem

Existing data transmission methods require the use of third-party servers or user operation of old devices, resulting in slow synchronization speeds, long processing times, high data consumption, and inability to synchronize when hardware is damaged.

Method used

By establishing connections between devices, application identifiers and device identifiers can be sent and received directly, enabling data transmission without the need for third-party servers or user intervention. Data transmission and installation are performed using a distributed database storage and package management module.

Benefits of technology

It enables seamless data transmission between devices, improves synchronization efficiency, reduces traffic consumption, and avoids synchronization failures caused by hardware damage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114390485B_ABST
    Figure CN114390485B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a data transmission method and an electronic device, the method is applied to a first device, wherein the first device establishes a connection with at least one second device, and the method comprises the following steps: receiving first information sent by the second device, wherein the first information comprises an application program identifier of the second device; sending a first request to the second device based on the first information, wherein the first request is used to request the second device to send an application program package corresponding to the application program identifier to the first device; and receiving the application program package corresponding to the application program identifier sent by the second device.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of intelligent terminals, in particular to a data transmission method and an electronic device. BACKGROUND

[0002] With the rapid development of technology, the types of intelligent terminals are increasing. For example, according to the classification of device types, the intelligent terminals can include mobile phones, tablets, computers, vehicle-mounted devices, smart homes, fitness devices, televisions, large screens, etc. According to different application scenarios, different intelligent terminals can be applied to office, home, sports, travel, education, etc. Different intelligent terminals can store data respectively, and therefore, in order to provide a good user experience, data transmission is needed between different intelligent terminals to complete information synchronization.

[0003] For example, when a user replaces a new device or adds a new device, the user needs to transmit data (such as application packages, pictures, or files, etc.) in the old device to the new device to realize information synchronization between the new device and the old device.

[0004] The existing data transmission method one is to use a third-party server (such as a cloud, etc.). The old device backs up and transmits data to the cloud by logging in to the cloud account, and then the new device downloads and installs application programs and recovers data by logging in to the same cloud account to complete information synchronization between the new device and the old device. The disadvantage of the existing data transmission method one is that data transmission between the new device and the old device needs to use a third-party server, and logging in to the same server account is needed to complete information synchronization. Moreover, cloud backup has problems such as slow speed, long time consumption, and large amount of traffic consumption. If the new device and the old device log in to different third-party servers, or log in to different server accounts, or do not log in to the third server, the new device and the old device cannot complete data transmission, and thus information synchronization cannot be realized.

[0005] The existing data transmission method two is to establish a one-to-one connection between the new device and the old device. The user operates the old device to select data to be transmitted in the old device, so that the old device transmits the selected data to the new device, and the new device installs application programs and recovers data to complete information synchronization between the new device and the old device. The disadvantage of the existing data transmission method two is that the new device and the old device can only complete one-to-one data transmission, and the user needs to operate the old device to select data to be transmitted and transmit the data to the new device. If some hardware (such as a key or a screen) of the old device is damaged, the user cannot operate the old device, so data cannot be transmitted to the new device, and thus information synchronization cannot be realized. SUMMARY

[0006] The application provides a data transmission method and an electronic device, the electronic device can realize data transmission with at least one second device, and does not need to use a third-party server (such as a cloud server) or operate the second device to provide a good user experience.

[0007] In a first aspect, the application provides a data transmission method applied to a first device, wherein the first device establishes a connection with at least one second device, and the method comprises the following steps.

[0008] sending a first request to the second device, so that the second device sends first information based on the first request, wherein the first information comprises an application program identifier and a device identifier of the second device;

[0009] receiving the first information sent by the second device;

[0010] based on the first information, sending a second request to the second device corresponding to the device identifier, so that the second device sends an application program package corresponding to the application program identifier to the first device based on the second request, to complete the data transmission between the first device and the second device.

[0011] In one possible implementation, the first request comprises device type information of the first device, the second device comprises compatibility information between an application program and a device type, and the first information is determined based on the device type of the first device and the compatibility information.

[0012] In one possible implementation, the first device comprises device type information, the first information further comprises compatibility information between an application program and a device type, and after receiving the first information sent by the second device, the method further comprises the following steps.

[0013] based on the compatibility information and the device type information, judging the application program of the second device in the first information, determining and displaying second information.

[0014] In one possible implementation, the first information further comprises a version of an application program, and after receiving the first information sent by the second device, the method further comprises the following steps.

[0015] based on the version, judging the same application program of the second device in the first information, determining and displaying third information.

[0016] In one possible implementation, before sending the second request to the second device corresponding to the device identifier, the method further comprises the following steps.

[0017] In response to a user selection operation, a selected target application program is determined in the second information.

[0018] In one possible implementation, before the second request is sent to the second device corresponding to the device identifier, the method further includes:

[0019] In response to a user selection operation, a selected target application program is determined in the third information.

[0020] In one possible implementation, the first information is updated by the second device based on a change in the application program package.

[0021] In a second aspect, the present application provides an apparatus, wherein the apparatus is connected with at least one second device, and the apparatus comprises:

[0022] A first request sending module, configured to send a first request to the second device, so that the second device sends first information based on the first request, wherein the first information comprises an application program identifier and a device identifier of the second device;

[0023] A receiving module, configured to receive the first information sent by the second device;

[0024] A second request sending module, configured to send a second request to a second device corresponding to the device identifier based on the first information, so that the second device sends an application program package corresponding to the application program identifier to the apparatus based on the second request, to complete data transmission between the apparatus and the second device.

[0025] In one possible implementation, the first request comprises device type information of the apparatus, the second device comprises compatibility information between an application program and a device type, and the first information is determined based on the device type of the apparatus and the compatibility information.

[0026] In one possible implementation, the apparatus comprises device type information, the first information further comprises compatibility information between an application program and a device type, and the apparatus further comprises:

[0027] A second information determining module, configured to determine and display second information by judging the application program of the second device in the first information based on the compatibility information and the device type information.

[0028] In one possible implementation, the first information further comprises a version of an application program, and the apparatus further comprises:

[0029] The third information determining module is configured to determine and display third information based on the version and the same application program of the second devices in the first information.

[0030] In one possible implementation, the apparatus further includes:

[0031] The first selecting module is configured to determine a target application program in the second information in response to a user selection operation.

[0032] In one possible implementation, the apparatus further includes:

[0033] The second selecting module is configured to determine a target application program in the third information in response to a user selection operation.

[0034] In one possible implementation, the first information is updated by the second device based on a change in the application program package.

[0035] In a third aspect, the present application provides an electronic device, which is connected with at least one second device, and the electronic device includes:

[0036] a display screen, one or more processors, a memory, a plurality of application programs, and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the electronic device, cause the electronic device to perform the following steps:

[0037] sending a first request to the second device, so that the second device sends first information based on the first request, wherein the first information includes an application program identifier and a device identifier of the second device;

[0038] receiving the first information sent by the second device;

[0039] based on the first information, sending a second request to the second device corresponding to the device identifier, so that the second device sends an application program package corresponding to the application program identifier to the electronic device based on the second request, to complete data transmission between the electronic device and the second device.

[0040] In one possible implementation, the first request includes device type information of the electronic device, the second device includes compatibility information between an application program and a device type, and the first information is determined based on the device type of the electronic device and the compatibility information.

[0041] In one possible implementation, the electronic device comprises device type information, and the first information further comprises compatibility information between the application and the device type. When the instructions are executed by the electronic device, after the electronic device performs the step of receiving the first information sent by the second device, the electronic device further performs the steps of:

[0042] judging the application of the second device in the first information based on the compatibility information and the device type information, determining and displaying second information.

[0043] In one possible implementation, the first information further comprises a version of the application. When the instructions are executed by the electronic device, after the electronic device performs the step of receiving the first information sent by the second device, the electronic device further performs the steps of:

[0044] judging the same application of the second device in the first information based on the version, determining and displaying third information.

[0045] In one possible implementation, when the instructions are executed by the electronic device, before the electronic device performs the step of sending the second request to the second device corresponding to the device identifier, the electronic device further performs the step of:

[0046] determining the selected target application in the second information in response to a user selection operation.

[0047] In one possible implementation, when the instructions are executed by the electronic device, before the electronic device performs the step of sending the second request to the second device corresponding to the device identifier, the electronic device further performs the step of:

[0048] determining the selected target application in the third information in response to a user selection operation.

[0049] In one possible implementation, the first information is updated by the second device based on a change of the application package.

[0050] In a fourth aspect, the present application provides a computer readable storage medium, which stores a computer program, and when the computer program is run on a computer, the computer program causes the computer to execute the method of the first aspect.

[0051] In a fifth aspect, the present application provides a computer program, which, when executed by a computer, is used to execute the method of the first aspect.

[0052] In a possible implementation, the program in the fifth aspect can be stored in whole or in part on a storage medium packaged together with the processor, or in whole or in part on a storage medium not packaged together with the processor. BRIEF DESCRIPTION OF DRAWINGS

[0053] Figure 1 A schematic diagram of a prior art data transmission method 1;

[0054] Figure 2 A schematic diagram of a prior art data transmission method 2;

[0055] Figure 3 A flowchart of an embodiment of the data transmission method of the present application;

[0056] Figure 4 A flowchart of another embodiment of the data transmission method of the present application;

[0057] Figure 5 A schematic diagram of the structure of a distributed database in an embodiment of the data transmission method of the present application;

[0058] Figure 6 A schematic diagram of the structure of a networking system composed of a first device and a second device in an embodiment of the data transmission method of the present application;

[0059] Figure 7 A schematic diagram of the structure of a networking system composed of a first device and a plurality of second devices in an embodiment of the data transmission method of the present application;

[0060] Figure 8 A flowchart of another embodiment of the data transmission method of the present application;

[0061] Figure 9 A flowchart of still another embodiment of the data transmission method of the present application;

[0062] FIG. 10(a) is a schematic diagram of an embodiment of the application program of a second device displayed in a first device in the data transmission method of the present application;

[0063] FIG. 10(b) is a schematic diagram of another embodiment of the application program of a second device displayed in a first device in the data transmission method of the present application;

[0064] FIG. 10(c) is a schematic diagram of still another embodiment of the application program of a second device displayed in a first device in the data transmission method of the present application;

[0065] FIG. 10(d) is a schematic diagram of still another embodiment of the application program of a second device displayed in a first device in the data transmission method of the present application;

[0066] Figure 10(e) is a schematic diagram of an embodiment of the data transmission method of this application, showing the application in the migration device A in the first device;

[0067] Figure 10(f) is a schematic diagram of an embodiment of the data transmission method of this application, showing the application programs in the first device for migrating devices A, B and C;

[0068] Figure 11 This is a schematic diagram of the structure of one embodiment of the data transmission device of this application;

[0069] Figure 12 This is a schematic diagram of another embodiment of the data transmission device of this application;

[0070] Figure 13 This is a schematic diagram of another embodiment of the data transmission device of this application;

[0071] Figure 14 This is a schematic diagram of the structure of an embodiment of the electronic device of this application. Detailed Implementation

[0072] The terminology used in the implementation section of this application is for the purpose of explaining specific embodiments of this application only, and is not intended to limit this application.

[0073] like Figure 1 As shown, one existing data transmission method relies on a third-party server (such as a cloud service). The old device logs into its cloud account, backs up its data, and transmits it to the cloud. Then, the new device logs into the same cloud account, downloads the data, installs applications, and restores the data to synchronize information between the new and old devices. The drawback of this method is that data transmission between the new and old devices requires a third-party server and the same server account for synchronization. Furthermore, cloud backups are slow, time-consuming, and consume significant bandwidth. If the new and old devices log into different third-party servers, different server accounts, or do not log into a third-party server, data transmission between them is impossible, thus preventing information synchronization.

[0074] like Figure 2As shown, the existing data transmission method two involves establishing a one-to-one connection between the new and old devices. The user operates the old device to select the data to be transmitted, causing the old device to transfer the selected data to the new device. The new device then installs the application and restores the data, thus completing the information synchronization between the new and old devices. The drawback of this existing data transmission method two is that it can only complete one-to-one data transmission between the new and old devices. Furthermore, the user needs to operate the old device to select the data to be transmitted to the new device. If some hardware on the old device (such as buttons or the screen) is damaged, the user will be unable to operate the old device, preventing data transmission to the new device and thus hindering information synchronization.

[0075] Therefore, this application proposes a data transmission method and an electronic device, which can transmit data (such as application packages, files or pictures) with at least one second device without relying on a third-party server (such as the cloud) or requiring the user to operate the second device, thus providing a good user experience.

[0076] Figure 3 A flowchart of one embodiment of the data transmission method of this application is shown below. Figure 3 As shown, the above data transmission method is applied to a first device, wherein the first device establishes a connection with at least one second device, and the method includes:

[0077] S101. Send a first request to the second device, causing the second device to send first information based on the first request, wherein the first information includes the application identifier and device identifier of the second device.

[0078] The first device and the second device may include mobile terminals (phones), smart screens, tablets, computers, smart home devices, fitness equipment, televisions, large screens, drones, intelligent connected vehicles (ICVs), smart cars, or in-vehicle equipment, etc. The first device and the second device may be the same device or different devices, and multiple second devices may be the same device or different devices. For example, the first device may be a mobile phone, and the second devices may be mobile phones, tablets, televisions, large screens, etc.

[0079] The first device can establish connections with multiple second devices, and the connection methods can include wireless connections such as Wi-Fi, Bluetooth, local area network, broadcast, and antenna, or wired connections. In step S101, the first device can send the first request to multiple second devices, and the first request can include a message from the first device requesting data transmission with the second devices, so as to realize one-to-one or one-to-many data transmission between the first device and multiple second devices.

[0080] It is worth mentioning that, in this embodiment, the method can complete the data transmission between the first device and the second device without relying on a third-party server (such as the cloud).

[0081] S102, Receive the first information sent by the second device.

[0082] In step S102, the first device can receive the first information sent by multiple second devices. The application identifier can be used to identify the name of the application of the second device, and the device identifier can be used to identify the device name or ID of the second device. For example, the second devices may include device A, device B, and device C. Device A may include application A1, application A2, and application A3. Device B may include application B1 and application B2. Device C may include application C1 and application C2. The first information sent by device A includes the application identifiers of application A1, application A2, and application A3 of device A and the device identifier of device A. The first information sent by device B may include the application identifiers of application B1 and application B2 of device B and the device identifier of device B. The first information sent by device C may include the application identifiers of application C1 and application C2 of device C and the device identifier of device C.

[0083] It is worth mentioning that the first device can transmit data with multiple second devices via wireless or Bluetooth, and the first device can store the application identifier and device identifier of all the second devices to enable selective data transmission.

[0084] S103. Based on the first information, a second request is sent to the second device corresponding to the device identifier, so that the second device sends the application package corresponding to the application identifier to the first device based on the second request, so as to complete the data transmission between the first device and the second device.

[0085] In step S103, the first device may send second requests to multiple second devices, causing each of the second devices to send corresponding application packages to the first device, thereby enabling the first device to complete data transmission with each of the second devices. The second request may include a message from the first device requesting the second devices to send application packages to the first device. For example, based on the device identifier of device A, the first device sends a second request to device A, causing device A to send application packages for applications A1, A2, and A3 to the first device; based on the device identifier of device B, the first device sends a second request to device B, causing device B to send application packages for applications B1 and B2 to the first device; based on the device identifier of device C, the first device sends a second request to device C, causing device C to send application packages for applications C1 and C2 to the first device, thereby enabling data transmission between the first device and devices A, B, and C.

[0086] In this embodiment, as Figure 4 As shown, the first device and multiple second devices form a network system via wireless, Bluetooth, or other means. The method may include:

[0087] S901. Receive first information sent by the second device, wherein the first information includes the application identifier of the second device;

[0088] S902. Based on the first information, send a first request to the second device, wherein the first request is used to request the second device to send an application package corresponding to the application identifier to the first device;

[0089] S903: Receive the application package corresponding to the application identifier sent by the second device.

[0090] Preferably, both the first device and each second device in the network system store a distributed database. This distributed database stores first information about each device in the network system, which may include application identifiers or device identifiers. For example, after receiving first information sent by one or more second devices, the first device stores the received first information in the distributed database. It is understood that there is a mapping relationship between the device identifier and the application identifier of the second device, such as device identifier + application identifier. For instance, the device identifier can be used to identify the name or ID of the second device, and the application identifier can be used to identify the application name or ID of the second device corresponding to that device identifier.

[0091] like Figure 5 As shown, the distributed database of the first device stores multiple pieces of first information about the second devices (such as application identifiers and device identifiers). For example, the distributed database stores multiple pieces of first information corresponding to device A, multiple pieces of first information corresponding to device B, and multiple pieces of first information corresponding to device C. The multiple pieces of first information corresponding to device A may include device identifier a + application identifier a1, device identifier a + application identifier a2; the multiple pieces of first information corresponding to device B may include device identifier b + application identifier b1, device identifier b + application identifier b2; and the multiple pieces of first information corresponding to device C may include device identifier c + application identifier c1, device identifier c + application identifier c2. It can be understood that application identifier a1, application identifier b1, and application identifier c1 can identify the name or ID of the same application, and application identifier a2, application identifier b2, and application identifier c2 can identify the name or ID of the same application, thus representing the same application (which may have different versions) on different devices.

[0092] like Figure 6 As shown, a new device (such as the first device) and an old device (such as the second device) can establish a connection to form a network system to complete data transmission between the new and old devices. Both the new and old devices contain a distributed database. The distributed database of the new device stores one or more application identifiers of the old device, and the distributed database of the old device stores one or more application identifiers of the new device. Furthermore, both the new and old devices include a packet management module and an application program. The packet management module is used to receive and send first information and application packets, store the received first information in the distributed database, and complete application installation and data recovery.

[0093] For example, the package management module of the old device reads the application identifier from the application's fields and sends the application identifier to the package management module of the new device. The package management module of the new device receives the application identifier from the old device and stores it in the distributed database of the new device. The package management module of the new device can also send a first request to the old device based on the application identifier of the old device, so that the package management module of the old device can send the corresponding application package to the new device based on the first request. After receiving the application package, the package management module of the new device completes the installation of the application and data recovery, etc.

[0094] like Figure 7As shown, a first device and multiple second devices can establish a network system to complete data transmission between the devices. The first device and the multiple second devices, such as device A, device B, and device C, can each include a distributed database, an application program, and a packet management module. Therefore, the distributed database of the first device can store the application identifiers and device identifiers of the multiple second devices.

[0095] Further, step S902 may include:

[0096] S911, Display multiple application identifiers and device identifiers of the second device;

[0097] S912, In response to the user selection operation, select the first target device identifier and the first target application identifier from a plurality of application identifiers and device identifiers of the second device;

[0098] S913. Send a first request to the second device corresponding to the first target device identifier, the first request being used to request the second device corresponding to the first target device identifier to send an application package corresponding to the first target application identifier to the first device.

[0099] In other words, multiple application identifiers and device identifiers of the second devices can be displayed on the touch screen of the first device. The user can operate on the touch screen of the first device to select the first target device identifier and the first target application identifier to be cloned. The first device then requests the second device corresponding to the first target device identifier to download the application package corresponding to the first target application identifier.

[0100] In one possible implementation, the second device backs up the application package before sending it to the first device. That is, the second device can back up and store the application package to prevent data loss.

[0101] It should be noted that the first device may include a package management system for managing the application packages, such as installing applications or performing data recovery, etc., without limitation.

[0102] It is worth mentioning that the method further includes installing an application and recovering data based on the application package. In other words, the first device can install an application and recover data based on the application package, thereby achieving information synchronization.

[0103] It is understood that in this method, the user does not need to operate the second device. Furthermore, the user may also not need to operate the first device, and the first device may not need to prompt the user during the data transmission process between the first device and the second device, thus achieving silent transmission between the first device and the second device.

[0104] In one possible implementation, as shown in Figure 10(a), before step S103, the method further includes displaying the first information, responding to the user's selection operation, and determining the target application of the target device to be transmitted in the first information. The first information can be displayed in the first device in the form of a list, text, or sequence. The target application of the target device may include the application of the second device selected by the user in the first information. For example, the user can select application A1 and application A3 of device A and application C1 of device C in the first information, that is, the target applications of the target device are application A1 and application A3 of device A and application C1 of device C. The first device sends a second request to device A and device C respectively, so that device A sends the application packages of application A1 and application A3 to the first device, and device C sends the application package of application C1 to the first device, so that the first device installs application A1, application A3, and application C1 respectively according to the application packages of application A1, application A3, and application C1, and restores the corresponding data to complete information synchronization.

[0105] Those skilled in the art should understand that the first device and the second device can also transmit data such as files or pictures, which should all fall within the protection scope of this application.

[0106] In one possible implementation, the first request includes device type information of the first device, the second device includes compatibility information between the application and the device type, and the first information sent by the second device is determined based on the device type of the first device and the compatibility information.

[0107] In this embodiment, the first device stores device type information, which may include the device type of a mobile terminal (phone), smart screen, tablet, computer, smart home device, fitness equipment, television, large screen, drone, intelligent connected vehicle (ICV), smart car, or in-vehicle equipment. The second device stores compatibility information between applications and device types, which may include the device types that the applications in the second device are compatible with. The first information may include the application identifier and device identifier of the second device that are compatible with the first device. In other words, the second device determines whether its applications are compatible with the first device based on the compatibility information and the device type information of the first device, thereby determining the first information.

[0108] For example, as shown in Figure 10(b), based on the compatibility information and the device type information of the first device, device A determines that applications A1 and A2 of device A are compatible with the first device; device B determines that application B2 of device B is compatible with the first device; and device C determines that application C1 of device C is compatible with the first device. Then, the first information includes the application identifiers of applications A1 and A2 of device A and the device identifier of device A; the application identifier of application B2 of device B and the device identifier of device B; and the application identifier of application C1 of device C and the device identifier of device B. In step S103, device A sends the application packages of applications A1 and A2 to the first device; device B sends the application package of application B2 to the first device; and device C sends the application package of application C1 to the first device, so that the first device can install applications A1, A2, B2, and C1 and perform corresponding data recovery.

[0109] It is understood that the compatibility information may include a preset field added to the application data package during the application development phase of the application, the preset field being used to indicate the types of devices that the application is compatible with.

[0110] In other words, step S901 may include:

[0111] S921. Send the device type of the first device to the second device;

[0112] S922, Receive first information sent by the second device, wherein the first information includes an application identifier compatible with the device type of the first device.

[0113] In other words, the second device stores compatibility information between the application and the device type. Before the second device sends the first information to the first device, the first device first sends its device type to the second device. Based on the device type and compatibility information, the second device sends the application identifier of the application that is compatible with the first device to the first device, in order to avoid the first device downloading an incompatible application and wasting resources.

[0114] One possible implementation is as follows: Figure 8 As shown, the first device includes device type information, and the first information also includes compatibility information between the application and the device type. After receiving the first information sent by the second device, the method further includes:

[0115] S201. Based on the compatibility information and the device type information, determine the application of the second device in the first information, and then determine and display the second information.

[0116] In this embodiment, the first device stores device type information. The second device stores compatibility information between applications and device types, which may include device types that the applications in the second device are compatible with. In step S201, the first device determines whether the applications in the second device are compatible with the first device based on the compatibility information in the first information and the device type information of the first device, thereby determining the second information.

[0117] For example, based on the compatibility information and the device type information of the first device, the first device determines that application A3 of device A, application B1 of device B, and application C2 of device C are compatible with the first device. In step S103, device A sends the application package of application A3 to the first device, device B sends the application package of application B1 to the first device, and device C sends the application package of application C2 to the first device, so that the first device can install application A3, application B1, and application C2 and perform corresponding data recovery.

[0118] The second information can be displayed on the first device in the form of a list, text, or sequence. The first device can display the names of the second device and its applications to meet the user's selection needs. For example, the first device can display the names of device A and its application A3, device B and its application B1, and device C and its application C2.

[0119] In other words, step S902 may include:

[0120] S931. Based on the compatibility information, determine whether the application of the second device is compatible with the device type of the first device;

[0121] S932. If the application of the second device is compatible with the device type of the first device, a first request is sent to the second device, wherein the first request is used to request the second device to send an application package corresponding to the application identifier that is compatible with the device type of the first device to the first device.

[0122] In other words, the first information received by the first device also includes compatibility information between the second device's application and device type, used to determine whether the second device's application is compatible with the first device. If the second device's application is incompatible with the first device, the first device does not need to send a first request to the second device, avoiding downloading an incompatible application and wasting resources.

[0123] In one possible implementation, before sending the second request to the second device corresponding to the device identifier, the method further includes:

[0124] S202, In response to the user's selection operation, determine the selected target application in the second information.

[0125] For example, as shown in Figure 10(c), when a user selects application A3 on device A and application C2 on device C, the first device determines in the second information that the selected target application corresponds to application A3 on device A and application C2 on device C. In step S103, based on the selected target application determined in the second information, the first device sends a second request to the corresponding second device, so that the second device sends the application package of the corresponding target application to the first device, so that the first device can install the target application and perform data recovery. For example, in step S103, the first device sends a second request to device A and device C, so that device A sends the application package of application A3 to the first device, and device C sends the application package of application C2 to the first device, so that the first device can install application A3 and application C2 and recover the corresponding data.

[0126] It is understood that the user's selection operation may include clicking the icon or name of the corresponding application of the second device on the screen of the first device, or other operation methods such as voice, gesture, etc., which are not limited here.

[0127] One possible implementation is as follows: Figure 9 As shown, the first information also includes the application version, and after receiving the first information sent by the second device, the method further includes:

[0128] S301. Based on the version, determine the same application of multiple second devices in the first information, and determine and display the third information.

[0129] For example, devices A, B, and C all include the same application m and the same application n, and the versions of the same application m and the same application n of devices A, B, and C are different, with the version of application m on device C and application n on device A being the highest. The first information may include the versions of the same application m and the same application n of devices A, B, and C, respectively. In step S301, the first device determines that the version of application m on device C is the highest and the version of application n on device A is the highest, and then determines the third information, wherein the third information includes the application identifier of application m on device C and the device identifier of device C, and the application identifier of application n on device A and the device identifier of device A. The first device may display information such as the names of application m on device C and application n on device A to meet the user's selection needs. In step S103, the first device sends a second request to both device A and device C, so that device A sends the application package of application n to the first device, and device C sends the application package of application m to the first device, so that the first device can install the highest version of application m and application n and restore data.

[0130] In other words, step S902 may include:

[0131] S941. Compare the same application version of multiple second devices to determine the second target device identifier and the second target application identifier corresponding to the application version, wherein the application version of the second device corresponding to the second target device identifier is the highest.

[0132] S942. Send a first request to the second device corresponding to the second target device identifier, the first request being used to request the second device corresponding to the second target device identifier to send an application package corresponding to the second target application identifier to the first device.

[0133] In other words, the first information may also include application versions and device identifiers of multiple second devices. For example, if device A, device B, and device C all include the same application m, and device C has the highest version of application m, then device C is the second target device, application m is the second target application, and therefore, the first device can download the application package of application m from device C and complete the installation of the application package and data recovery, etc.

[0134] In one possible implementation, before sending the second request to the second device corresponding to the device identifier, the method further includes:

[0135] S302. In response to the user's selection operation, determine the selected target application from the third information.

[0136] For example, as shown in Figure 10(d), when a user selects application m on device C, the first device determines from the third information that the selected target application corresponds to application m on device C. In step S103, based on the selected target application determined from the third information, the first device sends a second request to the corresponding second device, so that the second device sends the application package of the corresponding target application to the first device, so that the first device can install the target application and perform data recovery. For example, in step S103, the first device sends a second request to device C, so that device C sends the application package of application m to the first device, so that the first device can install the highest version of application m and recover the corresponding data.

[0137] For example, Figure 10(e) is a schematic diagram of an embodiment of the data transmission method of this application, showing the application in the first device being migrated from device A. In this embodiment, applications A1, A2, and A3 in device A are selectively migrated to the first device; that is, the application packages of applications A1, A2, and A3 in device A are transmitted to the first device, enabling the first device to complete program cloning. Figure 10(f) is a schematic diagram of an embodiment of the data transmission method of this application, showing the application in the first device being migrated from device A, device B, and device C. In this embodiment, applications A1, A2, and A3 in device A, applications B1 and B2 in device B, and applications C1 and C2 in device C are selectively migrated to the first device, enabling the first device to complete program cloning.

[0138] In one possible implementation, the first device includes device type information, which further includes compatibility information between the application and the device type, and the version of the application. After receiving the first information sent by the second device, the method further includes:

[0139] S201. Based on the compatibility information and device type information in the first information, determine the application of the second device in the first information, and determine the same application of multiple second devices in the first information based on the version, and determine the fourth information.

[0140] In other words, the fourth information may include a target application of the second device that is compatible with the first device, wherein the target application has the highest version relative to the same application in other second devices, so that the first device can install the highest compatible version of the target application and restore the corresponding data.

[0141] In one possible implementation, the first information is updated by the second device based on changes in the application package.

[0142] Specifically, when an application is installed or uninstalled on the second device, the corresponding application identifier is added or deleted from the first information to achieve information synchronization between the first device and the second device.

[0143] Optionally, when a second device disconnects from the first device, such as due to a network failure or offline status of the second device, all application identifiers and device identifiers of the corresponding second device are deleted from the first information. Conversely, when a second device reconnects to the first device, the application identifier and device identifier of the corresponding second device are added to the first information.

[0144] In other words, if a disconnection is detected between the first device and the second device, the application identifier or device identifier of the second device is deleted. For example, the distributed database of the first device stores the device identifier and application identifier of device A, the device identifier and application identifier of device B, and the device identifier and application identifier of device C. If a disconnection is detected between device A and the first device, the device identifier of device A and all application identifiers of device A are deleted from the distributed database of the first device.

[0145] It is understood that some or all of the steps or operations in the above embodiments are merely examples, and other operations or variations thereof can be performed in the embodiments of this application. Furthermore, the steps may be performed in different orders as presented in the above embodiments, and it is not necessary to perform all the operations in the above embodiments.

[0146] Figure 11 This is a schematic diagram of the structure of one embodiment of the data transmission device of this application, as shown below. Figure 11 As shown, the data transmission device 100 establishes a connection with at least one second device. The device 100 may include: a first request sending module 10, a receiving module 20, and a second request sending module 30. It should be understood that the device 100 may correspond to... Figure 14 The electronic device shown is 900.

[0147] The first request sending module 10 is used to send a first request to the second device, so that the second device sends first information based on the first request, wherein the first information includes the application identifier and device identifier of the second device.

[0148] The receiving module 20 is used to receive first information sent by the second device;

[0149] The second request sending module 30 is used to send a second request to the second device corresponding to the device identifier based on the first information, so that the second device sends an application package corresponding to the application identifier to the device 100 based on the second request, so as to complete the data transmission between the device and the second device.

[0150] In one possible implementation, the first request includes device type information of the device, the second device includes compatibility information between the application and the device type, and the first information is determined based on the device type of the device and the compatibility information.

[0151] One possible implementation is as follows: Figure 12 As shown, the device 100 includes device type information, the first information further includes compatibility information between the application and the device type, and the device 100 further includes:

[0152] The second information determination module 41 is used to determine the application of the second device in the first information based on the compatibility information and the device type information, and to determine and display the second information.

[0153] One possible implementation is as follows: Figure 13 As shown, the first information also includes the application version, and the device 100 further includes:

[0154] The third information determination module 51 is used to determine the same application of multiple second devices in the first information based on the version, and to determine and display the third information.

[0155] In one possible implementation, the device 100 further includes:

[0156] The first selection module 42 is used to respond to the user's selection operation and determine the selected target application in the second information.

[0157] In one possible implementation, the device 100 further includes:

[0158] The second selection module 52 is used to respond to the user's selection operation and determine the selected target application from the third information.

[0159] In one possible implementation, the first information is updated by the second device based on changes in the application package.

[0160] In one possible implementation, the second device backs up the application package before sending the application package corresponding to the application identifier to the device 100.

[0161] Figure 11 to Figure 13 The data transmission apparatus provided in the illustrated embodiment can be used to execute this application. Figure 3 or Figure 4 The implementation principle and technical effects of the method embodiment shown can be further referred to the relevant description in the method embodiment.

[0162] It should be understood that the data transmission device 100 can correspond to Figure 14 The electronic device 900 shown. The functions of the second information determination module 41, the first selection module 42, the third information determination module 51, and the second selection module 52 can be determined by… Figure 14 The processor 910 in the illustrated electronic device 900 implements the functions of the first request sending module 10, the receiving module 20, and the second request sending module 30, which can be implemented by... Figure 14 The transceiver 920 in the illustrated electronic device 900 is implemented.

[0163] Figure 11 to Figure 13 The data transmission device 100 provided in the illustrated embodiment can be used to execute this application. Figure 3 to Figure 5 The implementation principle and technical effects of the method embodiment shown can be further referred to the relevant description in the method embodiment.

[0164] The above should be understood Figure 11 to Figure 13 The division of modules in the data transmission device shown is merely a logical functional division. In actual implementation, they can be fully or partially integrated into a single physical entity, or they can be physically separated. These modules can be implemented entirely in software via processing element calls; they can be fully implemented in hardware; or some modules can be implemented in software via processing element calls, while others are implemented in hardware. For example, the detection module can be a separate processing element or integrated into a chip in the electronic device. The implementation of other modules is similar. Furthermore, these modules can be fully or partially integrated together, or implemented independently. During implementation, each step of the above method or each of the above modules can be completed through integrated logic circuits in the hardware of the processor element or through software instructions.

[0165] For example, these modules can be one or more integrated circuits configured to implement the above methods, such as one or more Application Specific Integrated Circuits (ASICs), one or more Digital Signal Processors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs). Alternatively, these modules can be integrated together as a System-On-a-Chip (SOC).

[0166] Figure 14 This is a schematic diagram of the structure of an embodiment of the electronic device of this application, as shown below. Figure 14 As shown, the above-mentioned electronic device may include: a display screen; one or more processors; a memory; multiple applications; and one or more computer programs.

[0167] The aforementioned display screen may include the display screen of an in-vehicle computer (Mobile Data Center); the aforementioned electronic device may be a mobile terminal (phone), a smart screen, a drone, an intelligent connected vehicle (ICV), a smart car, or an in-vehicle device, etc.

[0168] One or more of the aforementioned computer programs are stored in the aforementioned memory, and the one or more computer programs include instructions that, when executed by the aforementioned device, cause the aforementioned device to perform the following steps:

[0169] Send a first request to the second device, causing the second device to send first information based on the first request, wherein the first information includes the application identifier and device identifier of the second device;

[0170] Receive the first information sent by the second device;

[0171] Based on the first information, a second request is sent to the second device corresponding to the device identifier, so that the second device sends an application package corresponding to the application identifier to the electronic device to complete the data transmission between the electronic device and the second device.

[0172] In one possible implementation, the first request includes device type information of the electronic device, the second device includes compatibility information between the application and the device type, and the first information is determined based on the device type of the electronic device and the compatibility information.

[0173] In one possible implementation, the electronic device includes device type information, the first information further including compatibility information between the application and the device type. When the instruction is executed by the electronic device, after the electronic device performs the step of receiving the first information sent by the second device, the electronic device further performs the following steps:

[0174] Based on the compatibility information and the device type information, the application of the second device in the first information is determined, and the second information is then displayed.

[0175] In one possible implementation, the first information also includes the application version. When the instruction is executed by the electronic device, after the electronic device performs the step of receiving the first information sent by the second device, the electronic device further performs the following steps:

[0176] Based on the version, the same application of multiple second devices in the first information is judged to determine and display the third information.

[0177] In one possible implementation, when the instruction is executed by the electronic device, before the electronic device performs the step of sending the second request to the second device corresponding to the device identifier, the electronic device further performs the following steps:

[0178] In response to the user's selection action, the selected target application is determined in the second information.

[0179] In one possible implementation, when the instruction is executed by the electronic device, before the electronic device performs the step of sending the second request to the second device corresponding to the device identifier, the electronic device further performs the following steps:

[0180] In response to the user's selection action, the selected target application is determined from the third information.

[0181] In one possible implementation, the first information is updated by the second device based on changes in the application package.

[0182] In one possible implementation, the second device backs up the application package before sending the application package corresponding to the application identifier to the electronic device.

[0183] In one possible implementation, when the instruction is executed by the electronic device, the electronic device also performs:

[0184] Receive first information sent by the second device, wherein the first information includes the application identifier of the second device;

[0185] Based on the first information, a first request is sent to the second device, wherein the first request is used to request the second device to send an application package corresponding to the application identifier to the electronic device;

[0186] Receive the application package corresponding to the application identifier sent by the second device.

[0187] In one possible implementation, the first information further includes compatibility information between the application and the device type. When the instruction is executed by the electronic device, the electronic device performs the action of sending a first request to the second device based on the first information, including:

[0188] Based on the compatibility information, it is determined whether the application of the second device is compatible with the device type of the electronic device;

[0189] If the application of the second device is compatible with the device type of the electronic device, a first request is sent to the second device, wherein the first request is used to request the second device to send an application package corresponding to the application identifier that is compatible with the device type of the electronic device to the electronic device.

[0190] In one possible implementation, the second device includes compatibility information between the application and the device type. When the instruction is executed by the electronic device, the electronic device performs the action of receiving the first information sent by the second device, including:

[0191] Send the device type of the electronic device to the second device;

[0192] Receive first information sent by the second device, wherein the first information includes an application identifier compatible with the device type of the electronic device.

[0193] In one possible implementation, the first information includes multiple application identifiers and device identifiers of the second device. When the instruction is executed by the electronic device, the electronic device performs the action of sending a first request to the second device based on the first information, including:

[0194] Displays multiple application identifiers and device identifiers of the second device;

[0195] In response to the user's selection operation, the first target device identifier and the first target application identifier are selected from multiple application identifiers and device identifiers of the second device;

[0196] A first request is sent to a second device corresponding to the first target device identifier. The first request is used to request the second device corresponding to the first target device identifier to send an application package corresponding to the first target application identifier to the electronic device.

[0197] In one possible implementation, the first information further includes multiple application versions and device identifiers of the second devices. When the instruction is executed by the electronic device, the electronic device performs the action of sending a first request to the second device based on the first information, including:

[0198] By comparing the same application version of multiple second devices, a second target device identifier and a second target application identifier corresponding to the application version are determined, wherein the application version of the second device corresponding to the second target device identifier is the highest.

[0199] A first request is sent to a second device corresponding to the second target device identifier. The first request is used to request the second device corresponding to the second target device identifier to send an application package corresponding to the second target application identifier to the electronic device.

[0200] In one possible implementation, when the instruction is executed by the electronic device, the electronic device also performs:

[0201] If the electronic device is detected to be disconnected from the second device, the application identifier of the second device is deleted.

[0202] Figure 14 The electronic device shown can be a terminal device or a circuit device built into the aforementioned terminal device. This device can be used to execute this application. Figure 3 or Figure 4 The functions / steps in the method provided in the illustrated embodiment.

[0203] like Figure 14 As shown, the electronic device 900 includes a processor 910 and a transceiver 920. Optionally, the electronic device 900 may also include a memory 930. The processor 910, transceiver 920, and memory 930 can communicate with each other via internal connection paths to transmit control and / or data signals. The memory 930 is used to store computer programs, and the processor 910 is used to retrieve and run the computer programs from the memory 930.

[0204] The aforementioned memory 930 may be a read-only memory (ROM), other types of static storage devices capable of storing static information and instructions, random access memory (RAM), or other types of dynamic storage devices capable of storing information and instructions. It may also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media, or other magnetic storage devices. Alternatively, it may be any other medium capable of carrying or storing desired program code in the form of instructions or data structures that can be accessed by a computer.

[0205] Optionally, the electronic device 900 may also include an antenna 940 for transmitting the wireless signal output by the transceiver 920.

[0206] The processor 910 and memory 930 can be combined into a single processing device, but more commonly they are independent components. The processor 910 executes the program code stored in the memory 930 to achieve the aforementioned functions. In specific implementations, the memory 930 can be integrated into the processor 910, or it can be independent of the processor 910.

[0207] In addition, to further enhance the functionality of the electronic device 900, it may also include one or more of the following: an input unit 960, a display unit 970, an audio circuit 980, a camera 990, and a sensor 901. The audio circuit may also include a speaker 982, a microphone 984, etc. The display unit 970 may include a display screen.

[0208] Optionally, the aforementioned electronic device 900 may also include a power supply 950 for providing power to various devices or circuits in the terminal device.

[0209] It should be understood that Figure 14 The electronic device 900 shown is capable of implementing this application. Figure 3 or Figure 4 The illustrated embodiments provide various processes of the method. The operation and / or function of each module in the electronic device 900 are respectively for implementing the corresponding processes in the above method embodiments. See this application for details. Figure 3 or Figure 4 The detailed descriptions in the method embodiments shown are omitted here to avoid repetition.

[0210] It should be understood that Figure 14 The processor 910 in the illustrated electronic device 900 can be a system-on-a-chip (SoC). The processor 910 may include a central processing unit (CPU) and may further include other types of processors, such as a graphics processing unit (GPU).

[0211] In summary, the various processors or processing units inside the processor 910 can work together to implement the previous method flow, and the corresponding software programs of each processor or processing unit can be stored in the memory 930.

[0212] This application also provides an electronic device, the device including a storage medium and a central processing unit (CPU). The storage medium may be a non-volatile storage medium storing a computer-executable program. The CPU is connected to the non-volatile storage medium and executes the computer-executable program to implement this application. Figure 3 or Figure 4 The method provided in the illustrated embodiment.

[0213] In the above embodiments, the processor may include, for example, a CPU, DSP, microcontroller, or digital signal processor, and may also include a GPU, embedded neural network processing unit (NPU), and image signal processor (ISP). The processor may also include necessary hardware accelerators or logic processing hardware circuits, such as an ASIC, or one or more integrated circuits for controlling the execution of the program in this application. Furthermore, the processor may have the function of operating one or more software programs, which may be stored in a storage medium.

[0214] This application also provides a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to execute this application. Figure 3 or Figure 4 The method provided in the illustrated embodiment.

[0215] This application also provides a computer program product, which includes a computer program that, when run on a computer, causes the computer to execute this application. Figure 3 or Figure 4 The method provided in the illustrated embodiment.

[0216] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, A and B simultaneously, or B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single or multiple.

[0217] Those skilled in the art will recognize that the units and algorithm steps described in the embodiments disclosed herein can be implemented using electronic hardware, computer software, or a combination of electronic hardware and software. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0218] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0219] In the several embodiments provided in this application, any function, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0220] The above description is merely a specific embodiment of this application. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the protection scope of this application. The protection scope of this application should be determined by the protection scope of the claims.

Claims

1. A data transmission method, applied to a first device, wherein, The first device establishes a connection with at least one second device, characterized in that the method includes: Receive first information sent by the second device, wherein the first information includes the application identifier and device identifier of the second device; Based on the first information, a first request is sent to the second device, wherein the first request is used to request the second device to send an application package corresponding to the application identifier to the first device; Receive the application package corresponding to the application identifier sent by the second device.

2. The method according to claim 1, characterized in that, The first information also includes compatibility information between the application and the device type. The step of sending a first request to the second device based on the first information includes: Based on the compatibility information, it is determined whether the application of the second device is compatible with the device type of the first device; If the application of the second device is compatible with the device type of the first device, a first request is sent to the second device, wherein the first request is used to request the second device to send the application package corresponding to the application identifier that is compatible with the device type of the first device to the first device.

3. The method according to claim 1, characterized in that, The second device includes compatibility information between the application and the device type, and receiving the first information sent by the second device includes: Send the device type of the first device to the second device; Receive first information sent by the second device, wherein the first information includes an application identifier compatible with the device type of the first device.

4. The method according to claim 1, characterized in that, The first information includes multiple application identifiers and device identifiers of the second device. The step of sending a first request to the second device based on the first information includes: Displays multiple application identifiers and device identifiers of the second device; In response to the user's selection operation, the first target device identifier and the first target application identifier are selected from multiple application identifiers and device identifiers of the second device; A first request is sent to the second device corresponding to the first target device identifier. The first request is used to request the second device corresponding to the first target device identifier to send the application package corresponding to the first target application identifier to the first device.

5. The method according to claim 1, characterized in that, The first information also includes multiple application versions and device identifiers of the second devices. The step of sending a first request to the second devices based on the first information includes: By comparing the same application version of multiple second devices, a second target device identifier and a second target application identifier corresponding to the application version are determined, wherein the application version of the second device corresponding to the second target device identifier is the highest. Send a first request to the second device corresponding to the second target device identifier. The first request is used to request the second device corresponding to the second target device identifier to send the application package corresponding to the second target application identifier to the first device.

6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: If the first device is detected to be disconnected from the second device, the application identifier of the second device is deleted.

7. An electronic device, wherein the electronic device is connected to at least one second device, characterized in that, The electronic device includes: A display screen; one or more processors; memory; multiple applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the electronic device, cause the electronic device to perform the following steps: Receive first information sent by the second device, wherein the first information includes the application identifier and device identifier of the second device; Based on the first information, a first request is sent to the second device, wherein the first request is used to request the second device to send an application package corresponding to the application identifier to the electronic device; Receive the application package corresponding to the application identifier sent by the second device.

8. The electronic device according to claim 7, characterized in that, The first information also includes compatibility information between the application and the device type. When the instruction is executed by the electronic device, the electronic device performs the action of sending a first request to the second device based on the first information, including: Based on the compatibility information, it is determined whether the application of the second device is compatible with the device type of the electronic device; If the application of the second device is compatible with the device type of the electronic device, a first request is sent to the second device, wherein the first request is used to request the second device to send an application package corresponding to the application identifier that is compatible with the device type of the electronic device to the electronic device.

9. The electronic device according to claim 7, characterized in that, The second device includes compatibility information between the application and the device type. When the instruction is executed by the electronic device, it causes the electronic device to perform the receiving of the first information sent by the second device, including: Send the device type of the electronic device to the second device; Receive first information sent by the second device, wherein the first information includes an application identifier compatible with the device type of the electronic device.

10. The electronic device according to claim 7, characterized in that, The first information includes multiple application identifiers and device identifiers of the second device. When the instruction is executed by the electronic device, the electronic device performs the action of sending a first request to the second device based on the first information, including: Displays multiple application identifiers and device identifiers of the second device; In response to the user's selection operation, the first target device identifier and the first target application identifier are selected from multiple application identifiers and device identifiers of the second device; A first request is sent to a second device corresponding to the first target device identifier. The first request is used to request the second device corresponding to the first target device identifier to send an application package corresponding to the first target application identifier to the electronic device.

11. The electronic device according to claim 7, characterized in that, The first information also includes multiple application versions and device identifiers of the second devices. When the instruction is executed by the electronic device, the electronic device performs the action of sending a first request to the second device based on the first information, including: By comparing the same application version of multiple second devices, a second target device identifier and a second target application identifier corresponding to the application version are determined, wherein the application version of the second device corresponding to the second target device identifier is the highest. A first request is sent to a second device corresponding to the second target device identifier. The first request is used to request the second device corresponding to the second target device identifier to send an application package corresponding to the second target application identifier to the electronic device.

12. The electronic device according to any one of claims 7 to 11, characterized in that, When the instruction is executed by the electronic device, the electronic device also performs the following: If the electronic device is detected to be disconnected from the second device, the application identifier of the second device is deleted.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when run on a computer, causes the computer to perform the method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Data migration method and terminal

    CN106572163A

  • Method and system for providing an application to an electronic device for enhancing user security

    US20140156784A1