Data migration method and system and electronic equipment
By operating in the non-touch screen area of the old phone and entering the data migration mode, the problem of data migration difficulties caused by touch screen damage is solved, and data migration is achieved without relying on the touch function, improving security and efficiency.
Patent Information
- Application Number
- CN202410288562.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-13
- Publication Date
- 2025-09-16
AI Technical Summary
When the touch screen of the old phone is damaged, it is difficult for the user to migrate data through touch screen operations, resulting in the inability to migrate data to the new phone.
Data migration is achieved by operating in an area other than the touch screen, such as long pressing the power button, entering the data migration mode, and responding to the data migration request of the new phone.
Without relying on the touch function and screen display function, data can be migrated from an old phone with a damaged screen to a new phone, expanding the application scenarios and improving the security and efficiency of data migration.
Smart Images

Figure CN120653180A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a data migration method, system and electronic device. Background Art
[0002] With the development of terminal technology, mobile phones and other electronic devices are updated at an increasingly faster rate. Mobile phones usually store a large amount of users' personal data. When users change their phones, they usually migrate this data to the new phone.
[0003] When migrating data, it is usually necessary to operate on the touch screen of the old phone. However, if the touch screen of the old phone is damaged, it is difficult for the user to operate on the touch screen of the old phone, resulting in failure of data migration. Summary of the Invention
[0004] In view of this, the present application provides a data migration method, system and electronic device for migrating data on an electronic device to another electronic device without relying on the touch function of the electronic device.
[0005] To achieve the above objectives, in a first aspect, an embodiment of the present application provides a data migration method, applied to a first electronic device, the method comprising:
[0006] receiving a first operation, wherein the first operation is applied to an area other than the touch screen on the first electronic device;
[0007] In response to the first operation, entering a data migration mode;
[0008] In response to the data migration request sent by the second electronic device, the first data is sent to the second electronic device.
[0009] The data migration method provided in an embodiment of the present application is that a first electronic device enters a data migration mode in response to a first operation acting on an area other than the touch screen on the first electronic device, and sends first data (i.e., data to be migrated) to the second electronic device in response to a data migration request sent by the second electronic device. Since the first operation is not performed on the touch screen of the first electronic device, the first electronic device can migrate data to other electronic devices without relying on the touch function and screen display function. Therefore, when the screen of the electronic device is damaged, the user can still migrate the data on the electronic device to other electronic devices.
[0010] In a possible implementation of the first aspect, the first operation is any one of the following operations: a power-on operation, a restart operation, or long pressing a target key.
[0011] Through the above method, the electronic device can enter the data migration mode in scenarios that do not rely on the touch function, such as power on, restart, and long pressing the target key, thereby expanding the application scenarios of this solution.
[0012] In a possible implementation of the first aspect, the method further includes: before responding to the data migration request sent by the second electronic device, if a touch event is detected, exiting the data migration mode.
[0013] If a touch event is detected before receiving the data migration request, it means that the screen of the first electronic device is usable and the user is operating the first electronic device through the touch screen. In this case, the data migration mode can be exited to reduce the consumption of computing resources of the first electronic device.
[0014] In a possible implementation manner of the first aspect, the responding to the first operation further includes: if no data migration request is received within a target time period, exiting the data migration mode.
[0015] If no data migration request is received within the target time, it means that the user does not need to migrate data at this time. Therefore, the user can exit the data migration mode and no longer receive data migration requests. In this way, subsequent data migration attempts by illegal devices will become invalid, thereby improving the security of data migration.
[0016] In a possible implementation of the first aspect, before sending the first data to the second electronic device, the method further includes:
[0017] Sending a screen unlock password verification message to the second electronic device;
[0018] receiving a screen unlock password sent by the second electronic device;
[0019] The sending the first data to the second electronic device includes:
[0020] When the screen unlock password is verified successfully, the first data is sent to the second electronic device.
[0021] In the above manner, the first electronic device will migrate data to the second electronic device only when the user enters the correct screen unlock password of the first electronic device on the second electronic device, thereby improving the security of data migration.
[0022] In a possible implementation of the first aspect, the screen unlock password verification message is used to indicate a screen unlocking method of the first electronic device.
[0023] Through the above method, the second electronic device can sense the screen unlocking method being used by the first electronic device, so that the second electronic device can directly display the screen unlocking method being used by the first electronic device, thereby avoiding displaying the screen unlocking method not used by the first electronic device, thereby improving the user experience.
[0024] In a possible implementation of the first aspect, before sending the first data to the second electronic device, the method further includes:
[0025] Sending an account verification request to the server, where the account verification request is used to instruct the server to request the second electronic device to verify the password of the target account;
[0026] Receiving a first message sent by a server, where the first message can indicate that the target account has passed verification;
[0027] The sending the first data to the second electronic device includes:
[0028] When the first message is received, the first data is sent to the second electronic device.
[0029] Through the above method, the first electronic device will migrate data to the second electronic device only when the server verifies the password of the target account successfully, which can improve the security of data migration.
[0030] In a possible implementation of the first aspect, before sending the first data to the second electronic device, the method further includes:
[0031] sending a first migratable data list to the second electronic device;
[0032] receiving a second migratable data list sent by the second electronic device, wherein the data set corresponding to the first migratable data list includes the data set corresponding to the second migratable data list;
[0033] The sending the first data to the second electronic device includes:
[0034] The first data is sent to the second electronic device according to the second migratable data list.
[0035] Through the above method, users can select the data that needs to be migrated instead of migrating all data, which can improve the user experience.
[0036] In a possible implementation of the first aspect, when the distance between the first electronic device and the second electronic device is less than or equal to the target distance, the first data is sent to the second electronic device. That is, when the distance between the first electronic device and the second electronic device is far, the first electronic device does not migrate data to the second electronic device, thereby avoiding remote attacks.
[0037] In a possible implementation of the first aspect, before sending the first data to the second electronic device, the method further includes:
[0038] A secure transmission channel is established between the first electronic device and the second electronic device.
[0039] Through the above manner, the data migrated from the first electronic device to the second electronic device can be transmitted through a secure transmission channel, thereby improving the security of the data during the data migration process.
[0040] In a possible implementation of the first aspect, before sending the first data to the second electronic device, the method further includes:
[0041] A high-speed transmission channel is established between the first electronic device and the second electronic device.
[0042] Through the above manner, the data migrated from the first electronic device to the second electronic device can be transmitted through a high-speed transmission channel, thereby improving data migration efficiency and enhancing user experience.
[0043] In a second aspect, an embodiment of the present application provides a data migration device, applied to a first electronic device, the device comprising:
[0044] An input module: configured to receive a first operation, wherein the first operation is performed on an area other than the touch screen on the first electronic device;
[0045] A processing module: configured to enter a data migration mode in response to the first operation;
[0046] Communication module: used for sending first data to the second electronic device in response to a data migration request sent by the second electronic device.
[0047] In a possible implementation of the second aspect, the first operation is any one of the following operations: a power-on operation, a restart operation, or long pressing a target key.
[0048] In a possible implementation manner of the second aspect, the processing module is further configured to: before responding to the data migration request sent by the second electronic device, if a touch event is detected, exit the data migration mode.
[0049] In a possible implementation of the second aspect, the processing module is further configured to: exit the data migration mode if no data migration request is received within a target duration.
[0050] In a possible implementation of the second aspect, before sending the first data to the second electronic device, the communication module is further configured to: send a screen unlock password verification message to the second electronic device;
[0051] The communication module is further configured to: receive a screen unlock password sent by the second electronic device;
[0052] The communication module is specifically configured to send the first data to the second electronic device when the screen unlock password is verified successfully.
[0053] In a possible implementation of the second aspect, the screen unlock password verification message is used to indicate a screen unlocking method of the first electronic device.
[0054] In a possible implementation of the second aspect, before sending the first data to the second electronic device, the communication module is further configured to: send an account verification request to a server, where the account verification request is used to instruct the server to request the second electronic device to verify a password of a target account;
[0055] The communication module is further configured to: receive a first message sent by a server, where the first message can indicate that the target account has passed verification;
[0056] The sending the first data to the second electronic device includes:
[0057] When the first message is received, the first data is sent to the second electronic device.
[0058] In a possible implementation manner of the second aspect, before sending the first data to the second electronic device, the communication module is further configured to: send a first migratable data list to the second electronic device;
[0059] The communication module is further configured to: receive a second migratable data list sent by the second electronic device, wherein the data set corresponding to the first migratable data list includes the data set corresponding to the second migratable data list;
[0060] The communication module is specifically configured to send the first data to the second electronic device according to the second migratable data list.
[0061] In a possible implementation of the second aspect, when the distance between the first electronic device and the second electronic device is less than or equal to a target distance, the first data is sent to the second electronic device.
[0062] In a possible implementation manner of the second aspect, the communication module is further configured to: before sending the first data to the second electronic device, establish a secure transmission channel between the first electronic device and the second electronic device.
[0063] In a possible implementation manner of the second aspect, the communication module is further configured to: before sending the first data to the second electronic device, establish a high-speed transmission channel between the first electronic device and the second electronic device.
[0064] In a third aspect, an embodiment of the present application provides a data migration method, applied to a second electronic device, the method comprising:
[0065] In response to the second operation, sending a data migration request to the first electronic device;
[0066] Receive first data sent by the first electronic device, wherein the first data is sent by the first electronic device to the second electronic device in response to a first operation when the data migration request is received, and the first operation acts on an area other than the touch screen on the first electronic device.
[0067] In a possible implementation of the third aspect, after sending the data migration request to the first electronic device and before receiving the first data sent by the first electronic device, the method further includes:
[0068] Receiving a screen unlock password verification message sent by the first electronic device;
[0069] Displaying the corresponding unlocking interface according to the screen unlock password verification message;
[0070] In response to a third operation input on the unlocking interface, a screen unlocking password is sent to the first electronic device.
[0071] In a possible implementation of the third aspect, after sending the data migration request to the first electronic device and before receiving the first data sent by the first electronic device, the method further includes:
[0072] receiving an account verification request sent by the server, wherein the account verification request is used to instruct the second electronic device to verify the password of the target account;
[0073] According to the account verification request, display the corresponding verification interface;
[0074] In response to a fourth operation input on the verification interface, the password of the target account is sent to the server.
[0075] In a possible implementation of the third aspect, after sending the data migration request to the first electronic device and before receiving the first data sent by the first electronic device, the method further includes:
[0076] receiving and displaying a first migratable data list sent by the first electronic device;
[0077] In response to the fifth operation, a second migratable data list is sent to the first electronic device, and the data set corresponding to the first migratable data list includes the data set corresponding to the second migratable data list.
[0078] In a fourth aspect, an embodiment of the present application provides a data migration device, applied to a second electronic device, the device comprising:
[0079] Input module: used for receiving the second operation;
[0080] Communication module: used to send a data migration request to the first electronic device in response to a second operation; receive first data sent by the first electronic device, wherein the first data is sent by the first electronic device to the second electronic device in response to the first operation when the data migration request is received, and the first operation acts on an area on the first electronic device other than the touch screen.
[0081] In a possible implementation of the fourth aspect, after sending the data migration request to the first electronic device and before receiving the first data sent by the first electronic device, the communication module is further configured to:
[0082] Receiving a screen unlock password verification message sent by the first electronic device;
[0083] The device also includes a display module: configured to display a corresponding unlocking interface according to the screen unlocking password verification message;
[0084] The communication module is further configured to send a screen unlock password to the first electronic device in response to a third operation input on the unlock interface.
[0085] In a possible implementation of the fourth aspect, after sending the data migration request to the first electronic device and before receiving the first data sent by the first electronic device, the communication module is further configured to:
[0086] receiving an account verification request sent by the server, wherein the account verification request is used to instruct the second electronic device to verify the password of the target account;
[0087] The display module is further configured to: display a corresponding verification interface according to the account verification request;
[0088] The communication module is further configured to: in response to a fourth operation input on the verification interface, send the password of the target account to the server.
[0089] In a possible implementation of the fourth aspect, after sending the data migration request to the first electronic device and before receiving the first data sent by the first electronic device, the communication module is further configured to: receive a first list of migratable data sent by the first electronic device;
[0090] The display module is further configured to: display a first migratable data list sent by the first electronic device;
[0091] The communication module is further configured to: in response to a fifth operation, send a second migratable data list to the first electronic device, where the data set corresponding to the first migratable data list includes the data set corresponding to the second migratable data list.
[0092] In a fifth aspect, an embodiment of the present application provides a data migration system, comprising: a first electronic device and a second electronic device, wherein the first electronic device is used to implement the method as described in any one of the first aspects above, and the second electronic device is used to implement the method as described in any one of the third aspects above.
[0093] In a sixth aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, the memory being used to store a computer program; the processor being used to execute the method described in any one of the embodiments of the first or third aspect above when calling the computer program.
[0094] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any one of the embodiments of the first or third aspect above.
[0095] In an eighth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the method described in any one of the embodiments of the first or third aspect above.
[0096] In a ninth aspect, an embodiment of the present application provides a chip system, comprising a processor coupled to a memory, the processor executing a computer program stored in the memory to implement the method described in any of the embodiments of the first or third aspects above. The chip system may be a single chip or a chip module composed of multiple chips.
[0097] It can be understood that the beneficial effects of the second to ninth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0098] Figure 1 A schematic diagram of a data migration system provided in an embodiment of the present application;
[0099] Figure 2 A flowchart of a data migration method provided in an embodiment of the present application;
[0100] Figure 3 A flowchart of another data migration method provided in an embodiment of the present application;
[0101] Figure 4 A schematic diagram of the unlocking interface during the data migration process provided in an embodiment of the present application;
[0102] Figure 5 and Figure 6 A schematic diagram of a display interface for full migration data items provided in an embodiment of the present application;
[0103] Figure 7 A schematic diagram of an interface for a first data receiving process provided in an embodiment of the present application;
[0104] Figure 8 A schematic diagram of a successful data migration interface provided in an embodiment of the present application;
[0105] Figure 9 A schematic diagram of the structure of a data migration device provided in an embodiment of the present application;
[0106] Figure 10 A schematic diagram of the structure of another data migration device provided in an embodiment of the present application;
[0107] Figure 11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0108] The following describes the embodiments of the present application in conjunction with the accompanying drawings in the embodiments of the present application. The terms used in the implementation methods of the embodiments of the present application are only used to explain the specific embodiments of the present application and are not intended to limit the present application. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0109] Mobile phones and other electronic devices usually store a large amount of users' personal data. When users change their phones, they usually migrate this data to the new phone through the data migration software on the old phone.
[0110] When migrating data, users typically need to touch the touchscreen of their old phone to launch and operate the data migration software on the old phone. This requires the old phone's screen to be functioning properly, displaying screen content, and operating touchscreens normally. However, screen failure is a typical mobile phone malfunction. A phone's touchscreen may be damaged by drops, impacts, and other factors. When the old phone's touchscreen is damaged, it is difficult for users to launch and operate the data migration software using the old phone's touchscreen, resulting in data migration failure. In this case, users must first repair the old phone's touchscreen before data migration can proceed, which is obviously unacceptable to users.
[0111] To this end, the present application provides a data migration method for migrating data on an electronic device to another electronic device without relying on the touch function of the electronic device.
[0112] The data migration method provided in the embodiment of the present application can be applied to a data migration system, such as Figure 1 As shown, the data migration system may include an electronic device 1 and an electronic device 2 , wherein the screen of the electronic device 1 fails and data is migrated from the electronic device 1 to the electronic device 2 .
[0113] Electronic device 1 and electronic device 2 may include but are not limited to personal computers (PCs), smart phones, netbooks, tablet computers, PDAs, smart screens, etc. For the sake of convenience, the embodiments of this application will be described exemplarily using the example that electronic device 1 and electronic device 2 are both mobile phones.
[0114] The electronic device 1 may have a data migration function, and the data migration function of the electronic device 1 may be a built-in function thereof. For example, the data migration function may be integrated into a mobile phone manager or an operating system of the electronic device 1 .
[0115] Electronic device 2 may also have a data migration function. The data migration function of electronic device 2 may be a built-in function, integrated into the mobile phone manager or operating system of electronic device 2 (when integrated into the operating system, a relevant entry needs to be provided for the user to use). In some embodiments, the user may also download and install an application containing the data migration function through electronic device 2 to implement the data migration function of electronic device 2. The embodiments of this application are subsequently described by taking the case where both electronic device 1 and electronic device 2 have built-in data migration functions as an example.
[0116] Figure 2 A flow chart of a data migration method provided in an embodiment of the present application is shown as follows: Figure 2 As shown, the data migration method provided in the embodiment of the present application may include the following steps:
[0117] S101 : The electronic device 1 enters a data migration mode in response to a first operation.
[0118] The first operation can be performed on an area other than the touch screen of the electronic device 1. For example, the first operation can be a power-on or forced restart operation after long pressing the power button, an automatic power-on operation after charging, or an operation such as long pressing the volume button. The embodiments of this application will be described later using the first operation being a power-on operation after long pressing the power button as an example.
[0119] In response to the first operation, electronic device 1 can enable the data migration function and enter data migration mode. In data migration mode, electronic device 1 can automatically start monitoring to listen for data migration requests from other devices. Electronic device 1 can determine whether the received message is a data migration request based on the format of the received message or an identifier carried in the message.
[0120] The monitoring process in the data migration mode and the subsequent data migration process can be performed in the background of the electronic device 1. In this way, each time the user long presses the power button to turn on the device, the user will not feel the operation of the data migration function, thereby improving the user experience.
[0121] S102 : Electronic device 2 sends a data migration request to electronic device 1 in response to the second operation.
[0122] The second operation may be an operation of starting a data migration function on the electronic device 2 , or the like.
[0123] The electronic device 2 may send a data migration request to the electronic device 1 via a universal serial bus (USB), bluetooth low energy (BLE), near field communication (NFC), or the like.
[0124] In some embodiments, after the data migration function is turned on, the electronic device 2 can display necessary guidance and help information to help the user understand the data migration process. In addition, the electronic device 2 can also display an operation interface for entering the subsequent data migration process.
[0125] S103 : Electronic device 1 sends first data to electronic device 2 in response to the data migration request sent by electronic device 2 .
[0126] After receiving the data migration request sent by electronic device 2, electronic device 1 can add part or all of the data of electronic device 1 as the data to be migrated to the data migration task, and then process each data item to be migrated in the data migration task one by one until all data items to be migrated are processed. For each data item to be migrated, electronic device 1 can first read the corresponding data content (i.e., first data) from the storage device, then convert the first data into a data format agreed upon with electronic device 2 (such as JSON, XML, ASN.1, etc.), and send it to electronic device 2.
[0127] S104 : Electronic device 2 receives first data sent by electronic device 1 .
[0128] After receiving the first data, the electronic device 2 may parse the first data according to the data format agreed upon with the electronic device 1 and write the first data into the storage device.
[0129] Through the data migration method provided in this embodiment, electronic device 1 can migrate data to electronic device 2 without relying on touch function and screen display function, so that when the screen of electronic device 1 is damaged, the user can still migrate the data on electronic device 1 to other electronic devices.
[0130] Figure 3 A flow chart of another data migration method provided in an embodiment of the present application is shown as follows: Figure 3 As shown, the data migration method provided in the embodiment of the present application may include the following steps:
[0131] S1001. Electronic device 1 enters a data migration mode in response to a first operation.
[0132] S1002 : Electronic device 2 sends a data migration request to electronic device 1 in response to the second operation.
[0133] Step S1001 and step S1002 can refer to the above Figure 2 The description of step S101 and step S102 corresponding to the illustrated embodiment will not be repeated here.
[0134] S1003 , the electronic device 1 detects whether a data migration request is received within the target time period, and if so, executes step S1004 , otherwise, executes step S1017 .
[0135] Specifically, electronic device 1 can detect whether it receives a data migration request sent from other electronic devices within the target time length after entering the data migration mode (or after starting monitoring). If the data migration request is received within the target time length, step S1003 can be continued. If no data migration request is received within the target time length, it means that the current user does not need to perform data migration, so it can exit the data migration mode and no longer receive data migration requests sent by other electronic devices. In this way, subsequent data migration attempts by illegal devices will become invalid, thereby improving the security of data migration.
[0136] The target duration can be set to 10 seconds to 60 seconds, or to other values, which is not specifically limited in this application.
[0137] In some embodiments, the electronic device 1 may not perform the verification in step S1003 , that is, after entering the data migration mode, the electronic device 1 may not exit the data migration mode, so as to monitor data migration requests at any time.
[0138] In some embodiments, before the electronic device 1 receives the data migration request, if a touch event is detected, it means that the screen of the electronic device 1 can be used. In this case, the data migration mode can be exited to reduce the consumption of computing resources of the electronic device 1.
[0139] S1004 , electronic device 1 receives the data migration request and detects whether the distance between electronic device 2 and electronic device 1 is less than or equal to the target distance. If so, step S1005 is executed; otherwise, step S1017 is executed.
[0140] After receiving the data migration request from electronic device 2, electronic device 1 can first determine whether there is a wired connection between electronic device 2 and electronic device 1. If there is a wired connection, it can be assumed that the distance between electronic device 1 and electronic device 2 is less than or equal to the target distance (i.e., electronic device 2 is near electronic device 1). If there is a wireless connection, wireless communication technologies such as BLE and NFC can be used to detect the distance between electronic device 2. If the distance between electronic device 1 and electronic device 2 is less than or equal to the target distance, it means that electronic device 2 is near electronic device 1, and step S1005 can be continued. If the distance between electronic device 2 and electronic device 2 is greater than the target distance, it means that electronic device 2 is far away from electronic device 1, and the data migration request received by electronic device 1 may be from a remote attack. In this case, data migration mode can be exited to avoid remote attacks.
[0141] The target distance can be adjusted according to the specific distance measurement method. For example, when using BLE distance measurement, the target distance can be 1 meter, 1.5 meters, etc., and when using NFC distance measurement, the target distance can be 10 centimeters, etc. In some embodiments, when electronic device 1 uses NFC distance measurement, if electronic device 1 can receive the NFC signal sent by electronic device 2, it can be determined that electronic device 2 is near electronic device 1.
[0142] In some embodiments, when it is detected that the distance between electronic device 1 and electronic device 2 is greater than the target distance, electronic device 1 may repeat the distance measurement multiple times (such as 3-5 times). If the results of the multiple distance measurements are all greater than the target distance, the data migration mode may be exited, and a message of migration failure may be sent to electronic device 2. The message may carry the reason for the failure (i.e., the distance between electronic device 2 and electronic device 1 is too far). After receiving the message of migration failure, electronic device 2 may display the migration failure and prompt the user the reason for the migration failure. If the result of a certain distance measurement is less than or equal to the target distance, electronic device 1 may continue to execute step S1005.
[0143] S1005 , electronic device 1 detects whether data migration to electronic device 2 is allowed, and if so, executes step S1006 , otherwise, executes step S1017 .
[0144] Specifically, electronic device 1 can ensure that data is migrated to an authorized electronic device by verifying the brand, model, operating system, serial number, and other identity information of electronic device 2.
[0145] In some embodiments, electronic device 2 may include its identity information in the data migration request it sends, for identity verification by electronic device 1. In other embodiments, electronic device 1 may send an identity verification request to electronic device 2, and upon receiving the identity verification request, electronic device 2 may return the corresponding identity information to electronic device 1 for identity verification by electronic device 1.
[0146] If it is detected that data migration to electronic device 2 is not allowed, electronic device 1 can exit data migration mode and send a migration failure message to electronic device 2. The message can carry the reason for the failure (such as the model or operating system of electronic device 2 does not meet the requirements, etc.).
[0147] S1006. Electronic device 1 establishes a secure transmission channel with electronic device 2. If the establishment is successful, execute step S1007; otherwise, execute step S1017.
[0148] If the electronic device 1 and the electronic device 2 are connected by wire, the physical connection line between the electronic device 1 and the electronic device 2 can be used as a secure transmission channel to ensure the security of data during the data migration process.
[0149] If wireless communication is used between electronic device 1 and electronic device 2, a secure transmission channel may be established first, and then the secure transmission channel may be used for data migration.
[0150] In some embodiments, electronic device 1 may first detect whether a device certificate exists. If so, electronic device 1 may send the device certificate to electronic device 2. After receiving the device certificate, electronic device 2 may first verify whether the device certificate is valid. If so, electronic device 2 may generate a session key, encrypt it using the public key of the device certificate, and send it to electronic device 1. Subsequent communication between electronic devices 1 and 2 may use the session key for encryption.
[0151] In some embodiments, electronic device 1 can generate a temporary Diffie-Hellman (DH) / Elliptic Curve Diffie-Hellman (ECDH) key pair A and send the DH / ECDH public key and public key parameters to electronic device 2. After receiving the public key and public key parameters sent by electronic device 1, electronic device 2 can generate a temporary DH / ECDH key pair B and send the DH / ECDH public key and public key parameters to electronic device 1. The two parties then use the DH / ECDH algorithm to negotiate a shared key and use the shared key to encrypt subsequently transmitted data.
[0152] In some embodiments, the electronic device 1 may also use its own device certificate to sign the DH / ECDH public key to prove the source of the DH / ECDH public key and enhance security.
[0153] If the secure transmission channel fails to be established, electronic device 1 may exit the data migration mode and send a migration failure message to electronic device 2, where the message may carry the failure reason (ie, the secure transmission channel fails to be established).
[0154] S1007 , electronic device 1 sends a screen unlock password verification message to electronic device 2 .
[0155] To further improve the security of data migration, electronic device 1 can send a screen unlock password verification message to electronic device 2 to verify whether the data migration operation is initiated on electronic device 2 by the owner of electronic device 1.
[0156] In some embodiments, the screen unlock password verification message may carry information for indicating the screen unlock method of electronic device 1, so that after receiving the screen unlock password verification message, electronic device 2 can directly display the screen unlock method currently being used by electronic device 1, thereby avoiding displaying the screen unlock method not used by electronic device 1 and improving user experience.
[0157] Screen unlocking methods can include fingerprint unlocking, face recognition, pattern unlocking, digital unlocking, mixed unlocking of numbers and characters, etc.
[0158] S1008. Electronic device 2 receives the screen unlock password verification message sent by electronic device 1, and displays a corresponding unlocking interface according to the screen unlock password verification message.
[0159] In some embodiments, after receiving the screen unlock password verification message sent by the electronic device 1, the electronic device 2 may display an unlock interface corresponding to the default screen unlock method on the screen. Figure 4 As shown, the unlocking interface can be a digital unlocking interface. In some embodiments, the unlocking interface can also be a fingerprint unlocking interface, a face recognition unlocking interface, a graphic unlocking interface, a mixed digital and character unlocking interface, etc. The embodiments of this application do not make specific limitations on this.
[0160] In other embodiments, after receiving the screen unlock password verification message sent by the electronic device 1, the electronic device 2 may also display unlocking interfaces corresponding to multiple screen unlocking methods on the screen.
[0161] In other embodiments, after receiving the screen unlock password verification message sent by electronic device 1, electronic device 2 can also display on the screen the unlock interface corresponding to the screen unlock method currently being used by electronic device 1 based on the information indicating the screen unlock method of electronic device 1 carried in the screen unlock password verification message.
[0162] S1009 : Electronic device 2 sends a screen unlock password to electronic device 1 in response to a third operation input on the unlocking interface.
[0163] The third operation may be an operation in which the user enters the screen unlock password of electronic device 1 on the unlock interface of electronic device 2. In response to the third operation, electronic device 2 may send the screen unlock password entered by the user to electronic device 1 via BLE, NFC, a secure transmission channel, or the like.
[0164] S1010. Electronic device 1 receives and verifies the screen unlock password sent by electronic device 2. If the verification is successful, execute step S1011; otherwise, execute step S1017.
[0165] In some embodiments, if the screen unlock password sent by electronic device 2 is verified successfully, electronic device 1 may send the verification result to electronic device 2 and execute step S1011.
[0166] In some embodiments, if the screen unlock password sent by electronic device 2 is not verified, electronic device 1 can exit the data migration mode and send a verification result to electronic device 2.
[0167] In some instances, if the screen unlock password sent by electronic device 2 fails to be verified, electronic device 1 may also send the verification result to electronic device 2 without exiting data migration mode. In this way, electronic device 2 can prompt the user to re-enter the screen unlock password of electronic device 1 based on the verification result (i.e., verification failed) for re-verification. If the number of consecutive verification failures is greater than or equal to the target number (such as 3 times, 5 times, etc.), electronic device 1 may exit data migration mode and send a migration failure message to electronic device 2, which may include the reason for the failure (i.e., the screen unlock password failed to be verified); if the verification passes within the target number of times, step S1011 is continued.
[0168] It is understandable that in other embodiments, the electronic device 1 may also verify whether the data migration operation is initiated on the electronic device 2 by the owner of the electronic device 1 by verifying the target account password.
[0169] Specifically, electronic device 1 can first detect whether it is logged into the target account (such as the device manufacturer's cloud account, etc.). If logged in, it can send a verification request for the target account to the server, which can carry a challenge value randomly generated by electronic device 1. After receiving the verification request sent by electronic device 1, the server can store the challenge value and forward the verification request for the target account to electronic device 2 (the forwarded verification request does not need to carry the challenge value).
[0170] After receiving the verification request of the target account sent by the server, the electronic device 2 can display the corresponding verification interface according to the request for the user to enter the password corresponding to the target account. After the user enters the password on the verification interface, the electronic device 2 can respond to the user's operation on the verification interface (i.e., the fourth operation) and send the password entered by the user to the server.
[0171] After receiving the password sent by electronic device 2, the server can verify the password sent by electronic device 2 based on the stored password of the target account. If the verification fails, the server can send a verification failure message to electronic device 2. After receiving the verification failure message, electronic device 2 can prompt the user that the verification failed and prompt the user to re-enter the password of the target account for re-verification. If the server fails to verify for multiple consecutive times (such as 3 times, 5 times, etc.) or the server verification passes, the server can send a verification result to electronic device 1, and the verification result can carry the challenge value stored by the server.
[0172] After receiving the verification result from the server, electronic device 1 can first compare the challenge value carried in the verification result with the challenge value it sent to the server to see if they are the same, in order to prevent replay attacks. If they are different, the server's verification result is invalid, and electronic device 1 can continue to wait for the server's verification result. If they are the same, the server's verification result is valid, and electronic device 1 can further check whether the verification result is passed. If the verification result is passed, electronic device 1 can proceed to the subsequent steps. If the verification result is failed, electronic device 1 can exit data migration mode and send the verification result to electronic device 2.
[0173] In other embodiments, when electronic device 1 has neither a lock screen set nor a cloud account of the device manufacturer logged in, electronic device 1 can also verify whether the data migration operation is initiated by the owner of electronic device 1 on electronic device 2 by detecting whether electronic device 2 is located near electronic device 1.
[0174] For example, if electronic device 1 detects a physical connection with electronic device 2, or electronic device 1 can receive the NFC signal sent by electronic device 2, it can be said that electronic device 2 is located at the near end of electronic device 1. In this case, it can be considered that the data migration operation is initiated by the owner of electronic device 1 on electronic device 2 (since electronic device 1 does not have a lock screen, if the attacker can attack at such a close distance, he can also directly operate electronic device 1 and steal the data inside), and electronic device 1 can continue to execute subsequent steps.
[0175] S1011. Electronic device 1 establishes a high-speed transmission channel with electronic device 2. If the establishment is successful, execute step S1012; otherwise, execute step S1017.
[0176] Since the data that the user wants to migrate from electronic device 1 to electronic device 2 may include a large amount of data such as photos, videos, data files, etc., in some embodiments, a high-speed transmission channel can be established between electronic device 1 and electronic device 2 for migrating data transmission to improve data migration efficiency and enhance user experience.
[0177] In some embodiments, electronic device 1 can establish a high-speed transmission channel through Wi-Fi Direct technology. Specifically, electronic device 1 can first turn on the Wi-Fi Direct function, and then send its own Wi-Fi name to electronic device 2 through BLE, NFC, or a secure transmission channel. After receiving the Wi-Fi name sent by electronic device 1, electronic device 2 can use the Wi-Fi corresponding to the Wi-Fi name as a trusted peer Wi-Fi and establish a Wi-Fi Direct channel with electronic device 1 as a high-speed transmission channel between electronic devices 1 and 2.
[0178] In other embodiments, the electronic device 1 may also establish a high-speed transmission channel through a near link, a USB wired connection, etc., which is not specifically limited in this application.
[0179] If the high-speed transmission channel fails to be established, electronic device 1 may exit the data migration mode and send a migration failure message to electronic device 2. The message may carry the failure reason (ie, the high-speed transmission channel fails to be established).
[0180] S1012: Electronic device 1 sends a first list of migratable data to electronic device 2.
[0181] The first migratable data list may be a list of all data on the electronic device 1. The data indicated in the first migratable data list may include pictures, videos, text messages, contacts, memos, applications (apps), etc. The first migratable data list may be in a format such as JSON, XML, or ASN.1.
[0182] S1013 , electronic device 2 receives and displays the first migratable data list sent by electronic device 1 .
[0183] After receiving the first list of data that can be migrated, the electronic device 2 can parse the first list of data that can be migrated to obtain the full migration data items, and then can display the full migration data items for the user to select the data that needs to be migrated. Figure 5 As shown, the full migration data items may include contacts, messages, call logs, schedules, memos, photos, applications, etc. Users can select part of the data to migrate, or select all to migrate the full data.
[0184] S1014 : Electronic device 2 sends a second migratable data list to electronic device 1 in response to the fifth operation.
[0185] After the user selects the data to be migrated according to the first list of migrated data displayed by electronic device 2, electronic device 2 can generate a second list of migrated data according to the user's selection and send the second list of migrated data to electronic device 1. For example, if the user selects the full amount of migration data items displayed by electronic device 2 as follows: Figure 6 As shown, the data indicated in the second migratable data list may include contacts, messages, schedules, memos, and photos.
[0186] The second migratable data list can be in the format of JSON, XML, ASN.1, etc.
[0187] S1015 : After receiving the second list of migratable data sent by electronic device 2 , electronic device 1 sends the first data to electronic device 2 according to the second list of migratable data.
[0188] After receiving the second list of migratable data sent by electronic device 2, electronic device 1 can parse the second list of migratable data to obtain data items to be migrated, then add all the data items to be migrated to the data migration task, and then process each data item to be migrated in the data migration task one by one until all the data items to be migrated are processed. For each data item to be migrated, electronic device 1 can first read the corresponding data content (i.e., first data) from the storage device, then convert the first data into a data format agreed upon with electronic device 2 (such as JSON, XML, ASN.1, etc.), and send it to electronic device 2 via a high-speed transmission channel.
[0189] S1016 , electronic device 2 receives first data sent by electronic device 1 .
[0190] After receiving the first data, the electronic device 2 may parse the first data according to the data format agreed upon with the electronic device 1 and write the first data into the storage device.
[0191] In some embodiments, the electronic device 2 can display a second list of migratable data during the process of receiving the first data, and after each item of data in the second list of migratable data is received, it can display in the displayed second list of migratable data that the data has been migrated. In addition, the electronic device 2 can also display information such as the size of the received data, the data migration speed, and the remaining migration time.
[0192] For example, Figure 7 As shown, the data indicated in the second migratable data list may include contacts, messages, schedules, memos and photos, among which the data corresponding to contacts and messages have been migrated, the data corresponding to schedules are being migrated, and the data corresponding to memos and photos have not yet been migrated.
[0193] In some embodiments, after receiving the first data, the electronic device 2 may Figure 8 As shown, the data migration results are displayed to prompt the user that the migration has been completed.
[0194] S1017 : The electronic device 1 exits the data migration mode.
[0195] In some embodiments, after sending all data items to be migrated, electronic device 1 can exit data migration mode and send a migration completion message to electronic device 2. After receiving the message, electronic device 2 can display the message to prompt the user that the migration is complete.
[0196] In other embodiments, if electronic device 1 fails to send the data item to be migrated, it can exit the data migration mode and send a migration failure message to electronic device 2. After receiving the message, electronic device 2 can display the message to prompt the user that the migration failed.
[0197] Those skilled in the art will understand that the above embodiments are exemplary and are not intended to limit the present application. Where possible, the execution order of one or more of the above steps may be adjusted, or may be selectively combined to obtain one or more other embodiments. For example, in some embodiments, the execution order between steps S1004 to S1007 and step S1011 may be arbitrarily changed; in some embodiments, steps S1003 to S1014 may not be executed, and in some embodiments, some of the steps in steps S1003 to S1014 may be executed. Those skilled in the art may select and combine any of the above steps as needed, and any combination that does not deviate from the essence of the present application shall fall within the scope of protection of the present application.
[0198] The data migration method provided in an embodiment of the present application is that a first electronic device enters a data migration mode in response to a first operation acting on an area other than the touch screen on the first electronic device, and upon receiving a data migration request sent by a second electronic device, the first electronic device sends first data (i.e., data to be migrated) to the second electronic device. Since the first operation is not performed on the touch screen of the first electronic device, the first electronic device can migrate data to other electronic devices without relying on the touch function and screen display function. Therefore, when the screen of the electronic device is damaged, the user can still migrate the data on the electronic device to other electronic devices.
[0199] Based on the same concept, as an implementation of the method executed by the first electronic device in the above-mentioned embodiment, an embodiment of the present application provides a data migration device, which is applied to the first electronic device. The device embodiment corresponds to the method embodiment executed by the aforementioned electronic device 1. For ease of reading, this device embodiment no longer repeats the details of the method embodiment executed by the aforementioned electronic device 1 one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the method embodiment executed by the aforementioned electronic device 1.
[0200] Figure 9 A schematic diagram of the structure of a data migration device provided in an embodiment of the present application is shown in FIG. Figure 9 As shown, the apparatus provided in this embodiment may include: an input module 210 , a processing module 220 and a communication module 230 .
[0201] The input module 210 is configured to receive a first operation, wherein the first operation is applied to an area other than the touch screen on the first electronic device;
[0202] The processing module 220 is configured to enter a data migration mode in response to the first operation;
[0203] The communication module 230 is configured to send the first data to the second electronic device in response to a data migration request sent by the second electronic device.
[0204] As an optional implementation, the first operation is any one of the following operations: a power-on operation, a restart operation, or long pressing a target key.
[0205] As an optional implementation manner, the processing module 220 is further configured to: before responding to the data migration request sent by the second electronic device, if a touch event is detected, exit the data migration mode.
[0206] As an optional implementation, the processing module 220 is further configured to: exit the data migration mode if no data migration request is received within a target time period.
[0207] As an optional implementation, before sending the first data to the second electronic device, the communication module 230 is further configured to: send a screen unlock password verification message to the second electronic device;
[0208] The communication module 230 is further configured to: receive a screen unlock password sent by the second electronic device;
[0209] The communication module 230 is specifically configured to send the first data to the second electronic device when the screen unlock password is verified successfully.
[0210] As an optional implementation, the screen unlock password verification message is used to indicate a screen unlocking method of the first electronic device.
[0211] As an optional implementation manner, before sending the first data to the second electronic device, the communication module 230 is further configured to:
[0212] Sending an account verification request to the server, where the account verification request is used to instruct the server to request the second electronic device to verify the password of the target account;
[0213] The communication module 230 is further configured to: receive a first message sent by the server, where the first message can indicate that the target account has been verified;
[0214] The communication module 230 is specifically configured to send the first data to the second electronic device upon receiving the first message.
[0215] As an optional implementation, before sending the first data to the second electronic device, the communication module 230 is further configured to: send a first migratable data list to the second electronic device;
[0216] The communication module 230 is further configured to: receive a second migratable data list sent by the second electronic device, wherein the data set corresponding to the first migratable data list includes the data set corresponding to the second migratable data list;
[0217] The communication module 230 is specifically configured to send the first data to the second electronic device according to the second migratable data list.
[0218] As an optional implementation manner, the communication module 230 is specifically configured to: send the first data to the second electronic device when the distance between the first electronic device and the second electronic device is less than or equal to a target distance.
[0219] As an optional implementation manner, the communication module 230 is further configured to: establish a secure transmission channel between the first electronic device and the second electronic device before sending the first data to the second electronic device.
[0220] As an optional implementation manner, the communication module 230 is further configured to: establish a high-speed transmission channel between the first electronic device and the second electronic device before sending the first data to the second electronic device.
[0221] The device provided in this embodiment can execute the method executed by the electronic device 1 in the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.
[0222] Based on the same concept, as an implementation of the method executed by the electronic device 2 in the above-mentioned embodiment, the embodiment of the present application provides another data migration device, which is applied to a second electronic device. The device embodiment corresponds to the method embodiment executed by the aforementioned electronic device 2. For ease of reading, this device embodiment no longer repeats the details of the method embodiment executed by the aforementioned electronic device 2 one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the method embodiment executed by the aforementioned electronic device 2.
[0223] Figure 10 A structural diagram of another data migration device provided in an embodiment of the present application is shown in FIG. Figure 10 As shown, the device provided by this embodiment may include: an input module 310 and a communication module 320.
[0224] The input module 310 is used to receive a second operation;
[0225] Communication module 320: used to send a data migration request to the first electronic device in response to a second operation; receive first data sent by the first electronic device, wherein the first data is sent by the first electronic device to the second electronic device in response to the first operation when the data migration request is received, and the first operation acts on an area other than the touch screen on the first electronic device.
[0226] As an optional implementation manner, after sending the data migration request to the first electronic device and before receiving the first data sent by the first electronic device, the communication module 320 is further configured to:
[0227] Receiving a screen unlock password verification message sent by the first electronic device;
[0228] The device further includes a display module 330: configured to display a corresponding unlocking interface according to the screen unlocking password verification message;
[0229] The communication module 320 is further configured to send a screen unlock password to the first electronic device in response to a third operation input on the unlock interface.
[0230] As an optional implementation manner, after sending the data migration request to the first electronic device and before receiving the first data sent by the first electronic device, the communication module 320 is further configured to:
[0231] receiving an account verification request sent by the server, wherein the account verification request is used to instruct the second electronic device to verify the password of the target account;
[0232] The display module 330 is further configured to: display a corresponding verification interface according to the account verification request;
[0233] The communication module 320 is further configured to send the password of the target account to the server in response to a fourth operation input on the verification interface.
[0234] As an optional implementation, after sending the data migration request to the first electronic device and before receiving the first data sent by the first electronic device, the communication module 320 is further configured to: receive a first list of migratable data sent by the first electronic device;
[0235] The display module 330 is further configured to: display the first migratable data list sent by the first electronic device;
[0236] The communication module 320 is further configured to: in response to a fifth operation, send a second migratable data list to the first electronic device, where the data set corresponding to the first migratable data list includes the data set corresponding to the second migratable data list.
[0237] The device provided in this embodiment can execute the method executed by the electronic device 2 in the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.
[0238] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0239] Based on the same concept, the present application also provides an electronic device, see Figure 11 , Figure 11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0240] The electronic device may include a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (USB) interface 430, a charging management module 440, a power management module 441, a battery 442, an antenna 1, an antenna 2, a mobile communication module 450, a wireless communication module 460, an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, an earphone interface 470D, a sensor module 480, a button 490, a motor 491, an indicator 492, a camera 493, a display screen 494, and a subscriber identification module (SIM) card interface 495, etc. The sensor module 480 may include a solid pressure sensor 480A, a gyroscope sensor 480B, an air pressure sensor 480C, a magnetic sensor 480D, an acceleration sensor 480E, a distance sensor 480F, a proximity light sensor 480G, a fingerprint sensor 480H, a temperature sensor 480J, a touch sensor 480K, an ambient light sensor 480L, a bone conduction sensor 480M, etc.
[0241] It is understood that the structures illustrated in the embodiments of the present application do not constitute specific limitations on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0242] The processor 410 may include one or more processing units. For example, the processor 410 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.
[0243] The controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals based on instruction operation codes and timing signals to complete the control of instruction fetching and execution.
[0244] Processor 410 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 410 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 410. If processor 410 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 410 latency, and thus improves system efficiency.
[0245] In some embodiments, the processor 410 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a USB interface.
[0246] The I2C interface is a bidirectional synchronous serial bus consisting of a serial data line (SDA) and a serial clock line (SCL). The I2S interface can be used for audio communication. The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. The UART interface is a universal serial data bus used for asynchronous communication; this bus can be bidirectional and converts the data to be transmitted between serial and parallel communication. The MIPI interface can be used to connect the processor 410 to peripheral devices such as the display 494 and the camera 493; MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). The GPIO interface can be configured through software and can be configured as either a control signal or a data signal. The USB interface 430 is an interface that complies with USB standards and can be a Mini USB interface, a MicroUSB interface, or a USB Type-C interface. The USB interface 430 can be used to connect a charger to charge the electronic device or to transfer data between the electronic device and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as AR devices.
[0247] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only for illustrative purposes and does not constitute a structural limitation on the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0248] The charging management module 440 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 440 can receive charging input from the wired charger via the USB interface 430. In some wireless charging embodiments, the charging management module 440 can receive wireless charging input via the electronic device's wireless charging coil. While charging the battery 442, the charging management module 440 can also power the electronic device via the power management module 441.
[0249] The power management module 441 is used to connect the battery 442, the charging management module 440, and the processor 410. The power management module 441 receives input from the battery 442 and / or the charging management module 440 and provides power to the processor 410, the internal memory 421, the external memory, the display 494, the camera 493, and the wireless communication module 460. The power management module 441 can also be used to start the electronic device and monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 441 can also be set in the processor 410. In other embodiments, the power management module 441 and the charging management module 440 can also be set in the same device.
[0250] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 450, wireless communication module 460, modem processor and baseband processor.
[0251] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0252] The mobile communication module 450 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to electronic devices. The mobile communication module 450 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 450 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 450 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 450 can be set in the processor 410. In some embodiments, at least some of the functional modules of the mobile communication module 450 can be set in the same device as at least some of the modules of the processor 410.
[0253] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 470A, the receiver 470B, etc.) or displays an image or video through the display screen 494. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 410 and be provided in the same device as the mobile communication module 450 or other functional modules.
[0254] The wireless communication module 460 can provide wireless communication solutions for electronic devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), NFC, infrared technology (IR), etc. The wireless communication module 460 can be one or more devices that integrate at least one communication processing module. The wireless communication module 460 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 410. The wireless communication module 460 can also receive the signal to be sent from the processor 410, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0255] In some embodiments, antenna 1 of the electronic device is coupled to mobile communication module 450, and antenna 2 is coupled to wireless communication module 460, so that the electronic device can communicate with a network and other devices via wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time division-synchronous code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include global positioning system (GPS), global navigation satellite system (GNSS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS).
[0256] The electronic device implements display functionality through a GPU, display screen 494, and an application processor. The GPU is a microprocessor for image processing that connects the display screen 494 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 410 may include one or more GPUs that execute program instructions to generate or modify display information.
[0257] Display screen 494 is used to display images, videos, etc. Display screen 494 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini LED, a Micro LED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device may include one or N display screens 494, where N is a positive integer greater than one.
[0258] The electronic device can realize the shooting function through the ISP, camera 493, video codec, GPU, display 494 and application processor.
[0259] The ISP processes data fed back by camera 493. Camera 493 is used to capture still images or videos. The digital signal processor processes digital signals, and can process not only digital image signals but also other digital signals. The video codec compresses or decompresses digital video.
[0260] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU enables intelligent cognitive applications in electronic devices, such as image recognition, face recognition, speech recognition, and text comprehension.
[0261] The internal memory 421 can be used to store computer executable program codes, which include instructions. The processor 410 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 421. The internal memory 421 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, and at least one application required for a function (such as a sound playback function, an image playback function, etc.). The data storage area can store data created during the use of the electronic device (such as audio data, a phone book, etc.). In addition, the internal memory 421 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0262] External memory interface 420 can be used to connect to an external memory device, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with processor 410 via external memory interface 420 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0263] The electronic device can implement audio functions such as music playback and recording through the audio module 470, the speaker 470A, the receiver 470B, the microphone 470C, the headphone jack 470D, and the application processor.
[0264] The audio module 470 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 470 can also be used to encode and decode audio signals. In some embodiments, the audio module 470 can be set in the processor 410, or some functional modules of the audio module 470 can be set in the processor 410. The speaker 470A, also known as the "speaker", is used to convert audio electrical signals into sound signals. The receiver 470B, also known as the "earpiece", is used to convert audio electrical signals into sound signals. The microphone 470C, also known as the "microphone" or "microphone", is used to convert sound signals into electrical signals. The headphone jack 470D is used to connect a wired headset. The headphone jack 470D can be a USB interface 430, or it can be a 3.5mm open mobile terminal platform (OMTP) standard interface, or a standard interface of the Cellular Telecommunications Industry Association of the USA (CTIA).
[0265] Buttons 490 include a power button, a volume button, etc. Buttons 490 can be mechanical buttons. They can also be touch buttons. The electronic device can receive button inputs and generate key signal inputs related to the user settings and function controls of the electronic device. Motor 491 can generate vibration prompts. Motor 491 can be used for incoming call vibration prompts, or for touch vibration feedback. Indicator 492 can be an indicator light, which can be used to indicate the charging status, power changes, messages, missed calls, notifications, etc. SIM card interface 495 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device by inserting into or removing from the SIM card interface 495. The electronic device can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. SIM card interface 495 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
[0266] The electronic device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effects are similar, which will not be repeated here.
[0267] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method described in the above method embodiment is implemented.
[0268] An embodiment of the present application further provides a computer program product. When the computer program product is run on an electronic device, the electronic device implements the method described in the above method embodiment when executing the computer program product.
[0269] The present application also provides a chip system, including a processor coupled to a memory, wherein the processor executes a computer program stored in the memory to implement the method described in the above method embodiment. The chip system can be a single chip or a chip module composed of multiple chips.
[0270] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this specification are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted via the computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, hard disk, or tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
[0271] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium can include various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
[0272] The naming or numbering of steps in this application does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The execution order of the named or numbered process steps can be changed according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved.
[0273] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0274] In the embodiments provided in this application, it should be understood that the disclosed devices / equipment and methods can be implemented in other ways. For example, the device / equipment embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0275] It should be understood that in the description of this application and the appended claims, the terms "comprises," "includes," "has," and any variations thereof are intended to cover non-exclusive inclusions and mean "including but not limited to," unless otherwise specifically emphasized. For example, a process, method, system, product, or apparatus that includes a series of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not explicitly listed or inherent to the process, method, product, or apparatus.
[0276] In the description of this application, unless otherwise specified, "plurality" means two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or plural.
[0277] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0278] In addition, in the description of this application specification and the appended claims, the terms "first," "second," etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or precedence, nor should they be understood to indicate or imply relative importance or implicitly specify the number of technical features indicated. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein; and features specified as "first" or "second" may explicitly or implicitly include at least one of such features.
[0279] In the embodiments of this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this specification should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.
[0280] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with the embodiment is included in one or more embodiments of the specification. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in yet other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized.
[0281] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this specification, rather than to limit them. Although this specification has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this specification.
Claims
1. A data migration method, applied to a first electronic device, characterized in that: include: receiving a first operation, wherein the first operation is applied to an area other than the touch screen on the first electronic device; In response to the first operation, entering a data migration mode; In response to the data migration request sent by the second electronic device, the first data is sent to the second electronic device.
2. The method according to claim 1, characterized in that The first operation is any one of the following operations: a power-on operation, a restart operation, or long pressing a target key.
3. The method according to claim 1 or 2, characterized in that The method further includes: before responding to the data migration request sent by the second electronic device, if a touch event is detected, exiting the data migration mode.
4. The method according to any one of claims 1 to 3, characterized in that The responding to the first operation also includes: if no data migration request is received within a target time period, exiting the data migration mode.
5. The method according to any one of claims 1 to 4, characterized in that Before sending the first data to the second electronic device, the method further includes: Sending a screen unlock password verification message to the second electronic device; receiving a screen unlock password sent by the second electronic device; The sending the first data to the second electronic device includes: When the screen unlock password is verified successfully, the first data is sent to the second electronic device.
6. The method according to claim 5, characterized in that The screen unlock password verification message is used to indicate the screen unlocking method of the first electronic device.
7. The method according to any one of claims 1 to 4, characterized in that Before sending the first data to the second electronic device, the method further includes: Sending an account verification request to the server, where the account verification request is used to instruct the server to request the second electronic device to verify the password of the target account; Receiving a first message sent by a server, where the first message can indicate that the target account has passed verification; The sending the first data to the second electronic device includes: When the first message is received, the first data is sent to the second electronic device.
8. The method according to any one of claims 1 to 7, characterized in that Before sending the first data to the second electronic device, the method further includes: sending a first migratable data list to the second electronic device; receiving a second migratable data list sent by the second electronic device, wherein the data set corresponding to the first migratable data list includes the data set corresponding to the second migratable data list; The sending the first data to the second electronic device includes: The first data is sent to the second electronic device according to the second migratable data list.
9. The method according to any one of claims 1 to 8, characterized in that When the distance between the first electronic device and the second electronic device is less than or equal to a target distance, the first data is sent to the second electronic device.
10. The method according to any one of claims 1 to 9, characterized in that Before sending the first data to the second electronic device, the method further includes: A secure transmission channel is established between the first electronic device and the second electronic device.
11. The method according to any one of claims 1 to 10, characterized in that Before sending the first data to the second electronic device, the method further includes: A high-speed transmission channel is established between the first electronic device and the second electronic device.
12. A data migration method, applied to a second electronic device, characterized in that: include: In response to the second operation, sending a data migration request to the first electronic device; Receive first data sent by the first electronic device, wherein the first data is sent by the first electronic device to the second electronic device in response to a first operation when the data migration request is received, and the first operation acts on an area other than the touch screen on the first electronic device.
13. The method according to claim 12, characterized in that After sending the data migration request to the first electronic device and before receiving the first data sent by the first electronic device, the method further includes: Receiving a screen unlock password verification message sent by the first electronic device; Displaying the corresponding unlocking interface according to the screen unlock password verification message; In response to a third operation input on the unlocking interface, a screen unlocking password is sent to the first electronic device.
14. The method according to claim 12, characterized in that After sending the data migration request to the first electronic device and before receiving the first data sent by the first electronic device, the method further includes: receiving an account verification request sent by the server, wherein the account verification request is used to instruct the second electronic device to verify the password of the target account; According to the account verification request, display the corresponding verification interface; In response to a fourth operation input on the verification interface, the password of the target account is sent to the server.
15. The method according to any one of claims 12 to 14, characterized in that: After sending the data migration request to the first electronic device and before receiving the first data sent by the first electronic device, the method further includes: receiving and displaying a first migratable data list sent by the first electronic device; In response to the fifth operation, a second migratable data list is sent to the first electronic device, and the data set corresponding to the first migratable data list includes the data set corresponding to the second migratable data list.
16. A data migration system, characterized in that: include: A first electronic device and a second electronic device, wherein the first electronic device is configured to implement the method according to any one of claims 1 to 11, and the second electronic device is configured to implement the method according to any one of claims 12 to 15.
17. An electronic device, characterized in that: include: A memory and a processor, the memory being used to store a computer program; the processor being used to execute the method according to any one of claims 1 to 15 when calling the computer program.
18. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 15 is implemented.
19. A computer program product, characterized in that When the computer program product is run on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 15.
20. A chip system, characterized in that: The chip system includes a processor coupled to a memory, and the processor executes a computer program stored in the memory to implement the method according to any one of claims 1 to 15.