Data migration method and device

By passively receiving and restoring to similar functional applications using predetermined interfaces between different electronic devices, the data migration problem under permission restrictions is solved, and the convenient migration of private data of electronic device manufacturers is realized.

CN113901032BActive Publication Date: 2025-08-19SAMSUNG GUANGZHOU MOBILE R&D CENT +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111239441.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-25
Publication Date
2025-08-19
Estimated Expiration
2041-10-25

AI Technical Summary

Technical Problem

Due to permission restrictions, existing data migration applications cannot conveniently migrate private data developed by electronic device manufacturers, such as memos and browser bookmarks, among different electronic devices.

Method used

The user data actively sent by the second application is passively received through the predetermined interface, and restored to the third application with the same or similar functions on the target electronic device, and data migration is realized using the sharing interface of the Android system.

Benefits of technology

It realizes the convenient migration of private data developed by electronic device manufacturers, such as memos and browser bookmarks, and solves the problem of permission restrictions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113901032B_ABST
    Figure CN113901032B_ABST
Patent Text Reader

Abstract

Provided are a data migration method and apparatus. The data migration method is used to migrate data from a first electronic device to a second electronic device and is run on the first electronic device, wherein the first electronic device has at least a first application and a second application. The data migration method comprises: the first application receiving user data from the second application via a predetermined interface; the first application sending the received user data to the second electronic device, so as to restore the user data to a third application on the second electronic device; wherein the second application and the third application have the same or similar functions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure generally relates to the field of electronic technology, and more particularly, to a data migration method and apparatus. Background Art

[0002] When users migrate data between different electronic devices, they typically use data migration applications such as the device migration assistant. However, due to permission restrictions, existing data migration applications cannot migrate some user data, such as private data in applications developed by electronic device manufacturers. This data is often important to users but cannot be easily migrated between different electronic devices. Summary of the Invention

[0003] An exemplary embodiment of the present disclosure is to provide a data migration method and apparatus, which can effectively implement data migration between different electronic devices.

[0004] According to a first aspect of an embodiment of the present disclosure, a data migration method is provided, wherein the data migration method is used to migrate data from a first electronic device to a second electronic device and runs on the first electronic device, the first electronic device having at least a first application and a second application, the data migration method comprising: the first application receiving user data from the second application through a predetermined interface; the first application sending the received user data to the second electronic device to restore the user data to a third application on the second electronic device; wherein the second application and the third application have the same or similar functions.

[0005] Optionally, the second application and the third application have different names and / or are provided by different providers.

[0006] Optionally, the software system platform of the first electronic device is different from the software system platform of the second electronic device.

[0007] Optionally, the first application does not have permission to read user data of the second application, wherein the step of the first application receiving user data from the second application through a predetermined interface includes: the first application passively receives the user data actively sent by the second application through the predetermined interface.

[0008] Optionally, the step in which the first application passively receives the user data actively sent by the second application through the predetermined interface includes: the first application provides a user interface interface for selecting at least one application including the second application for which the first application does not have user data reading permission; in response to a selection operation on the second application, presenting a prompt to instruct the user to operate on the second application to actively send user data to the first application through the predetermined interface, and / or triggering the launch of the user interface of the second application to enable the user to operate the second application to actively send user data to the first application through the predetermined interface.

[0009] Optionally, the second application and the third application are: a memo-type application and / or a browser-type application; and / or the data type of the user data includes at least one of the following items: text, voice, and picture.

[0010] According to a second aspect of an embodiment of the present disclosure, a data migration method is provided, wherein the data migration method is used by a second electronic device to receive migration data from a first electronic device and run on the second electronic device, the first electronic device having at least a first application and a second application, the data migration method comprising: receiving user data of the second application from the first application of the first electronic device; determining a third application having the same or similar functions as the second application; and restoring the user data to the third application.

[0011] Optionally, the second application and the third application have different names and / or are provided by different providers.

[0012] Optionally, the software system platform of the first electronic device is different from the software system platform of the second electronic device.

[0013] Optionally, the step of restoring the user data to the third application includes: saving each type of user data in the user data to a corresponding storage location of the third application according to attribute information of each type of user data, so that the display position of each type of user data in the user interface of the second application and the third application is corresponding.

[0014] Optionally, the second application and the third application are: a memo-type application and / or a browser-type application; and / or the data type of the user data includes at least one of the following items: text, voice, and picture.

[0015] According to a third aspect of an embodiment of the present disclosure, a data migration method is provided, wherein the data migration method is used to migrate data from a first electronic device to a second electronic device, the first electronic device having at least a first application and a second application, and the second electronic device having at least a third application and a fourth application, the data migration method comprising: the first application of the first electronic device receiving user data from the second application through a predetermined interface; the first application of the first electronic device sending the received user data to the fourth application of the second electronic device; the fourth application of the second electronic device determining a third application in the second electronic device that has the same or similar function as the second application; and the fourth application of the second electronic device restoring the user data to the third application.

[0016] Optionally, the first application of the first electronic device and the fourth application of the second electronic device are the same.

[0017] Optionally, the second application and the third application have different names and / or are provided by different providers.

[0018] Optionally, the software system platform of the first electronic device is different from the software system platform of the second electronic device.

[0019] Optionally, the first application does not have permission to read user data of the second application, wherein the step of the first application of the first electronic device receiving user data from the second application through a predetermined interface includes: the first application of the first electronic device passively receives the user data actively sent by the second application through the predetermined interface.

[0020] Optionally, the step of the first application of the first electronic device passively receiving the user data actively sent by the second application through the predetermined interface includes: the first application of the first electronic device provides a user interface interface for selecting at least one application including the second application in the first electronic device for which the first application does not have user data reading permission; in response to the selection operation of the second application, presenting a prompt to instruct the user to operate on the second application to actively send user data to the first application through the predetermined interface, and / or triggering the launch of the user interface of the second application to enable the user to operate the second application to actively send user data to the first application through the predetermined interface.

[0021] Optionally, the step of the fourth application of the second electronic device restoring the user data to the third application includes: the fourth application of the second electronic device saves each type of user data to the corresponding storage location of the third application based on the attribute information of each type of user data, so that the display position of each type of user data in the user interface of the second application and the third application is corresponding.

[0022] Optionally, the second application and the third application are: a memo-type application and / or a browser-type application; and / or the data type of the user data includes at least one of the following items: text, voice, and picture.

[0023] According to a fourth aspect of an embodiment of the present disclosure, a data migration device is provided, wherein the data migration device is used to migrate data from a first electronic device to a second electronic device and runs on the first electronic device, the first electronic device having at least a first application and a second application, the data migration device comprising: a user data receiving unit, configured so that the first application receives user data from the second application through a predetermined interface; a user data sending unit, configured so that the first application sends the received user data to the second electronic device, so as to restore the user data to a third application on the second electronic device; wherein the second application and the third application have the same or similar functions.

[0024] Optionally, the second application and the third application have different names and / or are provided by different providers.

[0025] Optionally, the software system platform of the first electronic device is different from the software system platform of the second electronic device.

[0026] Optionally, the user data receiving unit is configured so that the first application passively receives the user data actively sent by the second application through the predetermined interface.

[0027] Optionally, the user data receiving unit is configured to: provide a user interface interface for the first application to select at least one application including the second application for which the first application does not have user data reading permission; and in response to a selection operation on the second application, present a prompt to instruct the user to operate on the second application to actively send user data to the first application through the predetermined interface, and / or trigger the launch of the user interface of the second application to enable the user to operate the second application to actively send user data to the first application through the predetermined interface.

[0028] Optionally, the second application and the third application are: a memo-type application and / or a browser-type application; and / or the data type of the user data includes at least one of the following items: text, voice, and picture.

[0029] According to a fifth aspect of an embodiment of the present disclosure, a data migration device is provided, wherein the data migration device is used for a second electronic device to receive migration data from a first electronic device and run on the second electronic device, the first electronic device has at least a first application and a second application, and the data migration device includes: a user data receiving unit, configured to receive user data of the second application from the first application of the first electronic device; an application determination unit, configured to determine a third application having the same or similar function as the second application; and a user data recovery unit, configured to restore the user data to the third application.

[0030] Optionally, the second application and the third application have different names and / or are provided by different providers.

[0031] Optionally, the software system platform of the first electronic device is different from the software system platform of the second electronic device.

[0032] Optionally, the user data recovery unit is configured to save each type of user data to a corresponding storage location of the third application based on attribute information of each type of user data, so that the display position of each type of user data in the user interface of the second application and the third application corresponds.

[0033] Optionally, the second application and the third application are: a memo-type application and / or a browser-type application; and / or the data type of the user data includes at least one of the following items: text, voice, and picture.

[0034] According to a sixth aspect of an embodiment of the present disclosure, a computer-readable storage medium storing a computer program is provided, wherein when the computer program is executed by a processor, the data migration method as described above is implemented.

[0035] According to a seventh aspect of an embodiment of the present disclosure, an electronic device is provided, wherein the electronic device includes: a processor; and a memory storing a computer program, wherein when the computer program is executed by the processor, the data migration method as described above is implemented.

[0036] According to the data migration method and apparatus of the exemplary embodiments of the present disclosure, data migration between different electronic devices can be effectively implemented.

[0037] Additional aspects and / or advantages of the present general inventive concept will be set forth in part in the following description and in part will be apparent from the description, or may be learned through practice of the present general inventive concept. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The above and other objects and features of the exemplary embodiments of the present disclosure will become more apparent from the following description taken in conjunction with the accompanying drawings which exemplarily illustrate the embodiments, in which:

[0039] Figure 1 A flowchart showing a data migration method according to a first exemplary embodiment of the present disclosure;

[0040] Figure 2-Figure 5 An example is shown in which a first application receives user data from a second application through a predetermined interface according to an exemplary embodiment of the present disclosure;

[0041] Figure 6 A flowchart illustrating a data migration method according to a second exemplary embodiment of the present disclosure;

[0042] Figure 7 A flowchart illustrating a data migration method according to a third exemplary embodiment of the present disclosure;

[0043] Figure 8 A structural block diagram of a data migration apparatus according to an exemplary embodiment of the present disclosure is shown;

[0044] Figure 9 A structural block diagram of a data migration apparatus according to another exemplary embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0045] Reference will now be made in detail to the embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like parts throughout. The embodiments are described below with reference to the drawings in order to explain the present disclosure.

[0046] Figure 1 A flow chart of a data migration method according to a first exemplary embodiment of the present disclosure is shown. The data migration method is used to migrate data from a first electronic device to a second electronic device and is executed on the first electronic device, which has at least a first application and a second application.

[0047] Reference Figure 1 In step S101, the first application receives user data from the second application through a predetermined interface. That is, the first application receives user data of the second application that the user needs to migrate from the second application through the predetermined interface.

[0048] In step S102, the first application sends the received user data to the second electronic device, so that the user data is restored to the third application on the second electronic device, so that the user data can be displayed in the third application on the second electronic device.

[0049] The second application and the third application have the same or similar functions. As an example, the second application and the third application may be different, for example, the second application and the third application may have different names and / or different providers.

[0050] As an example, the first application may be an application for data migration. For example, the first application may be a device switching assistant app. As an example, the first application may send the received user data to a fourth application on the second electronic device, and the fourth application may restore the user data to the third application. For example, the first application and the fourth application may be the same, for example, they may be the same device switching assistant app.

[0051] As an example, the first electronic device and the second electronic device may be electronic devices such as mobile communication terminals (e.g., smartphones), smart wearable devices (e.g., smart watches), tablet computers, and laptop computers. It should be understood that the first electronic device and the second electronic device may be electronic devices of the same type or different types. For example, the first electronic device and the second electronic device may both be mobile communication terminals; or one may be a mobile communication terminal and the other a tablet computer.

[0052] As an example, the first electronic device can communicate with the second electronic device via short-range wireless transmission. For example, the short-range wireless transmission can be a Wi-Fi direct connection, Bluetooth Low Energy (BLE), or routing. It should be understood that other suitable short-range wireless transmission methods can also be used, and this disclosure is not limited to this.

[0053] As an example, the software system platform of the first electronic device may be different from the software system platform of the second electronic device. For example, the software system platform of the first electronic device may be a software system platform provided by the provider (i.e., manufacturer) of the first electronic device, and the software system platform of the second electronic device may be a software system platform provided by the provider of the second electronic device, and the provider of the first electronic device (e.g., Samsung) is different from the provider of the second electronic device (e.g., Huawei).

[0054] As an example, the second application may be an application developed by the provider of the first electronic device, and the third application may be an application developed by the provider of the second electronic device. As an example, the second application and the third application may include, but are not limited to, a memo-type application and / or a browser-type application. For example, the user data of a memo-type application may include individual memos. For example, the user data of a browser-type application may include browser bookmarks.

[0055] As an example, the data type of the user data may include but is not limited to at least one of the following items: text, voice, and picture.

[0056] As an example, the first application does not have permission to read the user data of the second application. For example, when the second application is an application developed by the provider of the first electronic device, the user data of the second application is private and protected by a permission mechanism (e.g., the Android permission mechanism). As a third-party application, the first application cannot read the user data of the second application.

[0057] As an example, step S101 may include: the first application passively receiving the user data actively sent by the second application through the predetermined interface. Specifically, as an example, the first application may provide a user interface for selecting at least one application, including the second application, for which the first application does not have user data read permission; and in response to the user's selection of the second application, presenting a prompt to instruct the user to operate on the second application to actively send the second application's user data from the second application to the first application through the predetermined interface, and / or triggering the launch of the second application's user interface so that the user can operate the second application through this user interface to actively send the user data to the first application through the predetermined interface.

[0058] As an example, the prompt presented may be used to instruct the user to perform a sharing operation on the user data to be migrated on the user interface of the second application, and set the target application to be shared to the first application, so as to actively send the user data of the second application to be migrated to the first application through the predetermined interface (i.e., the sharing interface). Figure 4 and Figure 5 shown.

[0059] As an example, after triggering the user interface of the second application, the user can be instructed to perform a sharing operation on the user data that needs to be migrated on the user interface of the second application, and the target application to be shared is set to the first application, so that the user data of the second application that needs to be migrated can be actively sent to the first application through the predetermined interface (i.e., the sharing interface).

[0060] In fact, the existing data migration method does not consider how to achieve data migration when the application to be migrated (i.e., the second application mentioned above) does not have read permission. For example, the data of an APP developed by an electronic device manufacturer is private and protected by a permission mechanism. The application used for data migration as a third-party APP cannot read these private data, such as memos and browser bookmarks. Therefore, due to permission restrictions, the existing data migration method cannot read the private data of APPs developed by other electronic device manufacturers. When migrating data between electronic devices of different brands (i.e., different manufacturers), these private data have to be abandoned. According to an exemplary embodiment of the present disclosure, user data actively sent by the second application can be passively received by means of a predetermined interface (e.g., the sharing interface of the Android system) and sent to another electronic device to be restored to the third application corresponding to the second application in the other electronic device.

[0061] Figure 2-Figure 5 An example is shown in which a first application receives user data from a second application through a predetermined interface according to an exemplary embodiment of the present disclosure.

[0062] Figure 2 The first application is provided to select a second application (for example, the second application is Figure 2 In response to a user's selection operation of the second application (for example, clicking an APP backup control (such as Backup memo) for backing up the second application), a user interface interface of at least one application (for example, a browser APP in addition to the second application) is triggered to start the user interface of the second application (for example, Figure 3 For example, when a user clicks on the APP backup control Backup memo for backing up the second application, an Intent is sent to start the corresponding second application to display the user interface of the second application (as shown in the example). Figure 3 As shown), the user can select the user data to be migrated in the user interface of the second application. For example, when receiving the user's selection operation on the user data (for example, in Figure 3 When you select the memo named Text in the user interface shown in the figure, the following Figure 4 The user interface shown; when Figure 4 When a sharing operation (for example, clicking the share control Share) is received in the user interface shown in FIG. Figure 5 The user interface shown; when Figure 5When an operation of selecting a first application (eg, Smart Switch APP) as a target application to be shared is received in the user interface shown, the selected piece of user data is shared to the first application through the sharing interface.

[0063] As an example, the first application can register an intent-filter in AndroidManifest.xml to receive intents with action android.intent.action.SEND and data types text / plain and image / *. This will allow the first application to appear as a target application on the system interface that pops up when the second application is sharing. For example, the code can be as follows:

[0064]

[0065] As an example, when the first application receives user data from the second application through a predetermined interface, it can determine which APP the user data comes from based on Android's Activity.getReferrer() interface, and mark the APP from which the user data comes for later use when restoring it on the second electronic device.

[0066] Figure 6 A flowchart of a data migration method according to a second exemplary embodiment of the present disclosure is shown. The data migration method is used for a second electronic device to receive migration data from a first electronic device and the data migration method is run on the second electronic device, and the first electronic device has at least a first application and a second application. As an example, the second electronic device has at least a third application and a fourth application, and the data migration method can be executed by the fourth application. As an example, the fourth application and the first application can be the same. As an example, the fourth application can be an application for data migration. For example, the fourth application can be a device switching assistant APP.

[0067] Reference Figure 6 In step S201, user data of a second application is received from a first application of a first electronic device.

[0068] In step S202, a third application having the same or similar function as the second application is determined in the second electronic device. As an example, the second application and the third application may be different, for example, the second application and the third application may have different names and / or different providers.

[0069] In step S203, the user data is restored to the third application, so that the user data can be displayed in the third application of the second electronic device.

[0070] As an example, the first electronic device and the second electronic device may be electronic devices such as mobile communication terminals (e.g., smartphones), smart wearable devices (e.g., smart watches), tablet computers, and laptop computers. It should be understood that the first electronic device and the second electronic device may be electronic devices of the same type or different types. For example, the first electronic device and the second electronic device may both be mobile communication terminals; or one may be a mobile communication terminal and the other a tablet computer.

[0071] As an example, the second electronic device can communicate with the first electronic device via short-range wireless transmission. For example, the short-range wireless transmission can be a Wi-Fi direct connection, low-power Bluetooth BLE, or routing, etc. It should be understood that other suitable short-range wireless transmission methods can also be used, and this disclosure is not limited to this.

[0072] As an example, the software system platform of the second electronic device may be different from the software system platform of the first electronic device. For example, the software system platform of the first electronic device may be a software system platform provided by the provider (i.e., manufacturer) of the first electronic device, and the software system platform of the second electronic device may be a software system platform provided by the provider of the second electronic device, and the provider of the first electronic device (e.g., Samsung) is different from the provider of the second electronic device (e.g., Huawei).

[0073] As an example, the second application may be an application developed by the provider of the first electronic device, and the third application may be an application developed by the provider of the second electronic device. As an example, the second application and the third application may include, but are not limited to, a memo-type application and / or a browser-type application. For example, the user data of a memo-type application may include individual memos. For example, the user data of a browser-type application may include browser bookmarks.

[0074] As an example, the data type of the user data may include but is not limited to at least one of the following items: text, voice, and picture.

[0075] As an example, step S203 may include: based on the attribute information of each type of user data among the user data, saving the each type of user data to the corresponding storage location of the third application, so that the display location of the each type of user data in the user interface of the second application and the third application corresponds, that is, the display location of each type of user data in the user interface of the third application corresponds to its display location in the user interface of the second application. For example, the user data may include multiple types of user data, for example, the multiple types of user data may include but are not limited to at least one of the following items: title content data, text content data, time information data, location information data, user information data, voice data, and picture data. For example, the attribute information may include but is not limited to at least one of the following items: type, storage location information, and display location information. For example, different types of user data have different storage locations and corresponding display locations.

[0076] According to an embodiment of the present disclosure, each type of user data can be displayed at the position where it should be displayed in the user interface of the third application, for example, title content data is displayed at the title, body content data is displayed at the body, time information data is displayed at the time information prompt (for example, used to prompt the generation time of the user data (for example, the memo)), location information data is displayed at the location information prompt (for example, used to prompt the generation location of the user data), and user information data is displayed at the user information prompt (for example, used to prompt the user related to the user data).

[0077] As an example, step S203 may include: determining the display position of the user data in the third application based on the display position of the user data in the second application according to the data display position correspondence between the third application and the second application; and storing the user data in the database of the third application according to the display position of the user data in the third application, so that when the corresponding user interface of the third application is started, the user data is read from the database and displayed at the corresponding display position.

[0078] As an example, the correspondence between the third application and the second application can be pre-set, mainly based on the similarity of the APP functions. Then, the package names of the two corresponding APPs can be used to establish a matching relationship in the first application and the fourth application. Taking the memo APP as an example, after the fourth application on the second electronic device receives the data, it sends an Intent to the Samsung Notes APP (specifying the package name of the Samsung Notes APP) based on the marked data source (for example, the package name of the Huawei Memo APP), and attaches the received data in the Intent.

[0079] As an example, the data display location correspondence between the third application and the second application can also be pre-set. Taking the Memo APP as an example, the title, content (text), voice, and picture of the Huawei Memo APP and the Samsung Notes APP can all be pre-matched one by one. After receiving the Intent, the Samsung Notes APP, as the third application, extracts the user data in the Intent and inserts it into the database of the Samsung Notes APP. For example, a user data of the Huawei Memo APP is {"Title":"Test Title", "Content":"Test Content"}, "Test Title" is the title, and "Test Content" is the content. The Samsung Notes APP listens to the data update event of the database, reads the latest data from the database, and updates it to the user interface.

[0080] Figure 7 A flow chart of a data migration method according to a third exemplary embodiment of the present disclosure is shown. The data migration method is used to migrate data from a first electronic device to a second electronic device, where the first electronic device has at least a first application and a second application, and the second electronic device has at least a third application and a fourth application.

[0081] Reference Figure 7 In step S301, a first application of a first electronic device receives user data from a second application through a predetermined interface.

[0082] In step S302, the first application of the first electronic device sends the received user data to the fourth application of the second electronic device.

[0083] In step S303 , the fourth application of the second electronic device determines a third application in the second electronic device that has the same or similar function as the second application.

[0084] In step S304, the fourth application of the second electronic device restores the user data to the third application.

[0085] As an example, the first application of the first electronic device and the fourth application of the second electronic device may be the same.

[0086] As an example, the second application and the third application may have different names and / or the second application and the third application may be provided by different providers.

[0087] As an example, the software system platform of the first electronic device may be different from the software system platform of the second electronic device.

[0088] As an example, the first application does not have the user data reading permission of the second application, wherein step S301 may include: the first application of the first electronic device passively receives the user data actively sent by the second application through the predetermined interface.

[0089] As an example, a first application of a first electronic device may provide a user interface interface for selecting at least one application including a second application in the first electronic device for which the first application does not have permission to read user data; in response to a selection operation on the second application, a prompt is presented to instruct the user to operate on the second application to actively send user data to the first application through the predetermined interface, and / or, the user interface for launching the second application is triggered to enable the user to operate the second application to actively send user data to the first application through the predetermined interface.

[0090] As an example, step S304 may include: the fourth application of the second electronic device saves each type of user data to the corresponding storage location of the third application based on the attribute information of each type of user data, so that the display position of each type of user data in the user interface of the second application and the third application corresponds.

[0091] As an example, the second application and the third application may be a memo-type application and / or a browser-type application.

[0092] As an example, the data type of the user data may include at least one of the following items: text, voice, and picture.

[0093] Figure 8 A structural block diagram of a data migration apparatus according to an exemplary embodiment of the present disclosure is shown. The data migration apparatus is used to migrate data from a first electronic device to a second electronic device and is run on the first electronic device, where the first electronic device has at least a first application and a second application.

[0094] Reference Figure 8 The data migration apparatus according to an exemplary embodiment of the present disclosure includes: a user data receiving unit 101 and a user data sending unit 102 .

[0095] Specifically, the user data receiving unit 101 is configured to enable the first application to receive user data from the second application through a predetermined interface.

[0096] The user data sending unit 102 is configured to enable the first application to send the received user data to the second electronic device, so as to restore the user data to a third application on the second electronic device.

[0097] The second application and the third application have the same or similar functions.

[0098] As an example, the second application and the third application may have different names and / or the second application and the third application may be provided by different providers.

[0099] As an example, the software system platform of the first electronic device may be different from the software system platform of the second electronic device.

[0100] As an example, the user data receiving unit 101 may be configured so that the first application passively receives the user data actively sent by the second application through the predetermined interface.

[0101] As an example, the user data receiving unit 101 can be configured as follows: the first application provides a user interface for selecting at least one application including the second application for which the first application does not have user data reading permission; and in response to a selection operation on the second application, presents a prompt to instruct the user to operate on the second application to actively send user data to the first application through the predetermined interface, and / or triggers the launch of the user interface of the second application to enable the user to operate the second application to actively send user data to the first application through the predetermined interface.

[0102] As an example, the second application and the third application may be a memo-type application and / or a browser-type application.

[0103] As an example, the data type of the user data may include at least one of the following items: text, voice, and picture.

[0104] Figure 9 A structural block diagram of a data migration device according to another exemplary embodiment of the present disclosure is shown. The data migration device is used for a second electronic device to receive migration data from a first electronic device and run on the second electronic device, where the first electronic device has at least a first application and a second application.

[0105] like Figure 9 As shown, the data migration apparatus according to another exemplary embodiment of the present disclosure includes: a user data receiving unit 201 , an application determining unit 202 , and a user data restoring unit 203 .

[0106] Specifically, the user data receiving unit 201 is configured to receive user data of the second application from the first application of the first electronic device.

[0107] The application determining unit 202 is configured to determine a third application having the same or similar function as the second application.

[0108] The user data restoring unit 203 is configured to restore the user data to the third application.

[0109] As an example, the second application and the third application may have different names and / or the second application and the third application may be provided by different providers.

[0110] As an example, the software system platform of the first electronic device may be different from the software system platform of the second electronic device.

[0111] As an example, the user data recovery unit 203 can be configured to save each type of user data to the corresponding storage location of the third application based on the attribute information of each type of user data, so that the display position of each type of user data in the user interface of the second application and the third application is corresponding.

[0112] As an example, the second application and the third application may be a memo-type application and / or a browser-type application.

[0113] As an example, the data type of the user data may include at least one of the following items: text, voice, and picture.

[0114] It should be understood that the specific processing performed by the data migration apparatus according to the exemplary embodiment of the present disclosure has been referred to. Figures 1 to 7 The details are described in detail and will not be repeated here.

[0115] In addition, it should be understood that the various units in the data migration apparatus according to the exemplary embodiments of the present disclosure may be implemented as hardware components and / or software components. Those skilled in the art may implement the various units, for example, using a field programmable gate array (FPGA) or an application specific integrated circuit (ASIC), depending on the processing performed by the defined various units.

[0116] According to an exemplary embodiment of the present disclosure, a computer-readable storage medium stores a computer program that, when executed by a processor, causes the processor to perform the data migration method described in the first exemplary embodiment and / or the second exemplary embodiment. The computer-readable storage medium can be any data storage device that can store data read by a computer system. Examples of computer-readable storage media may include: read-only memory, random access memory, read-only optical disc, magnetic tape, floppy disk, optical data storage device, and carrier wave (such as data transmission via the Internet via a wired or wireless transmission path).

[0117] According to an exemplary embodiment of the present disclosure, an electronic device includes: a processor (not shown) and a memory (not shown), wherein the memory stores a computer program, and when the computer program is executed by the processor, the data migration method as described in the first exemplary embodiment and / or the second exemplary embodiment is implemented.

[0118] While some exemplary embodiments of the present disclosure have been shown and described, it will be appreciated by those skilled in the art that changes may be made to these embodiments without departing from the principles and spirit of the disclosure, the scope of which is defined by the claims and their equivalents.

Claims

1. A data migration method, wherein: The data migration method is used to migrate data from a first electronic device to a second electronic device and is run on the first electronic device, wherein the first electronic device has at least a first application and a second application. The data migration method includes: The first application receives user data from the second application through a predetermined interface; The first application sends the received user data to the second electronic device, so as to restore the user data to a third application on the second electronic device; The second application and the third application have the same or similar functions, and the second application and the third application are developed by different providers; The first application does not have permission to read user data of the second application, and the step of the first application receiving user data from the second application through a predetermined interface includes: The first application provides a user interface for selecting at least one application including the second application for which the first application does not have user data read permission; In response to a selection operation on the second application, presenting a prompt to instruct the user to operate on the second application to actively send the user data to the first application through the predetermined interface, and / or triggering the launch of the user interface of the second application and instructing the user to perform a sharing operation on the user data to be migrated on the user interface of the second application, and setting the target application to be shared to be the first application, so as to actively send the user data to be migrated from the second application to the first application through the predetermined interface; Among them, the prompt presented is used to instruct the user to perform a sharing operation on the user data that needs to be migrated on the user interface of the second application, and set the target application to be shared to the first application, so as to actively send the user data that needs to be migrated of the second application to the first application through the predetermined interface.

2. The data migration method according to claim 1, wherein: The software system platform of the first electronic device is different from the software system platform of the second electronic device.

3. The data migration method according to claim 1, wherein: The second application and the third application are: a memo-type application and / or a browser-type application; And / or, the data type of the user data includes at least one of the following items: text, voice, and picture.

4. A data migration method, wherein: The data migration method is used for a second electronic device to receive migration data from a first electronic device and run the data on the second electronic device, wherein the first electronic device has at least a first application and a second application. The data migration method includes: receiving user data of the second application from the first application of the first electronic device, wherein the user data of the second application is data sent by the first electronic device to the second electronic device by executing the data migration method according to any one of claims 1 to 3; determining a third application having the same or similar functionality as the second application, wherein the second application and the third application are developed by different providers; Restoring the user data to the third application; The step of restoring the user data to the third application includes: saving each type of user data in the user data to a corresponding storage location of the third application according to attribute information of each type of user data, so that each type of user data is displayed in a corresponding position in the user interface of the second application and the third application; The step of saving each type of user data in the user data to a corresponding storage location of the third application according to attribute information of each type of user data includes: According to the data display position correspondence between the third application and the second application, based on the display position of each type of user data in the second application, determine the display position of the user data in the third application; and according to the display position of the user data in the third application, store the user data in the database of the third application, so that when the corresponding user interface of the third application is started, the user data is read from the database and displayed at the corresponding display position.

5. The data migration method according to claim 4, wherein: The software system platform of the first electronic device is different from the software system platform of the second electronic device.

6. The data migration method according to claim 4, wherein: The second application and the third application are: a memo-type application and / or a browser-type application; And / or, the data type of the user data includes at least one of the following items: text, voice, and picture.

7. A data migration method, wherein: The data migration method is used to migrate data from a first electronic device to a second electronic device, wherein the first electronic device has at least a first application and a second application, and the second electronic device has at least a third application and a fourth application. The data migration method includes: The first application of the first electronic device receives user data from the second application through a predetermined interface; The first application of the first electronic device sends the received user data to the fourth application of the second electronic device; The fourth application of the second electronic device determines a third application in the second electronic device that has the same or similar function as the second application, wherein the second application and the third application are developed by different providers; The fourth application of the second electronic device restores the user data to the third application; wherein the first application does not have permission to read user data of the second application, and wherein the step of the first application of the first electronic device receiving user data from the second application through a predetermined interface includes: the first application of the first electronic device providing a user interface for selecting at least one application including the second application in the first electronic device for which the first application does not have permission to read user data; in response to a selection operation of the second application, presenting a prompt to instruct the user to operate on the second application to actively send user data to the first application through the predetermined interface, and / or triggering the launch of the user interface of the second application and instructing the user to perform a sharing operation on the user data to be migrated on the user interface of the second application, and setting the target application to be shared to the first application, so that the user data to be migrated of the second application is actively sent to the first application through the predetermined interface; wherein the presented prompt is used to instruct the user to perform a sharing operation on the user data to be migrated on the user interface of the second application, and setting the target application to be shared to the first application, so that the user data to be migrated of the second application is actively sent to the first application through the predetermined interface; The step of the fourth application of the second electronic device restoring the user data to the third application includes: the fourth application of the second electronic device saving each type of user data in the user data to a corresponding storage location of the third application according to attribute information of each type of user data, so that the display position of each type of user data in the user interface of the second application and the third application is corresponding; The step of saving each type of user data in the user data to a corresponding storage location of the third application according to attribute information of each type of user data includes: According to the data display position correspondence between the third application and the second application, based on the display position of each type of user data in the second application, determine the display position of the user data in the third application; and according to the display position of the user data in the third application, store the user data in the database of the third application, so that when the corresponding user interface of the third application is started, the user data is read from the database and displayed at the corresponding display position.

8. The data migration method according to claim 7, wherein: The first application of the first electronic device and the fourth application of the second electronic device are the same.

9. The data migration method according to claim 7, wherein: The software system platform of the first electronic device is different from the software system platform of the second electronic device.

10. The data migration method according to claim 7, wherein: The second application and the third application are: a memo-type application and / or a browser-type application; And / or, the data type of the user data includes at least one of the following items: text, voice, and picture.

11. A data migration device, wherein: The data migration device is used to migrate data from a first electronic device to a second electronic device and is run on the first electronic device, wherein the first electronic device has at least a first application and a second application. The data migration device includes: A user data receiving unit, configured for the first application to receive user data from the second application via a predetermined interface; a user data sending unit configured to enable the first application to send the received user data to the second electronic device, so as to restore the user data to a third application on the second electronic device; The second application and the third application have the same or similar functions, and the second application and the third application are developed by different providers; The user data receiving unit is configured as follows: In a case where the first application does not have the user data reading permission of the second application, the first application provides a user interface for selecting at least one application including the second application for which the first application does not have the user data reading permission; In response to a selection operation on the second application, presenting a prompt to instruct the user to operate on the second application to actively send the user data to the first application through the predetermined interface, and / or triggering the launch of the user interface of the second application and instructing the user to perform a sharing operation on the user data to be migrated on the user interface of the second application, and setting the target application to be shared to be the first application, so as to actively send the user data to be migrated from the second application to the first application through the predetermined interface; Among them, the prompt presented is used to instruct the user to perform a sharing operation on the user data that needs to be migrated on the user interface of the second application, and set the target application to be shared to the first application, so as to actively send the user data that needs to be migrated of the second application to the first application through the predetermined interface.

12. A data migration device, wherein: The data migration device is used for a second electronic device to receive migration data from a first electronic device and run the data on the second electronic device, wherein the first electronic device has at least a first application and a second application, and the data migration device includes: a user data receiving unit configured to receive user data of the second application from the first application of the first electronic device, wherein the user data of the second application is data sent by the data migration apparatus according to claim 11 to the second electronic device; an application determining unit configured to determine a third application having the same or similar functions as the second application, wherein the second application and the third application are developed by different providers; a user data restoring unit, configured to restore the user data to the third application; The user data recovery unit is configured to: save each type of user data in the user data to a corresponding storage location of the third application according to attribute information of each type of user data, so that the display location of each type of user data in the user interface of the second application and the third application is corresponding; In which, the user data recovery unit is configured to: determine the display position of each type of user data in the third application based on the data display position correspondence between the third application and the second application, and based on the display position of each type of user data in the second application; and store the user data in the database of the third application according to the display position of the user data in the third application, so that when the corresponding user interface of the third application is started, the user data is read from the database and displayed at the corresponding display position.

13. A computer-readable storage medium storing a computer program, wherein: When the computer program is executed by a processor, the data migration method according to any one of claims 1 to 3 and / or the data migration method according to any one of claims 4 to 6 is implemented.

14. An electronic device, wherein: The electronic device comprises: processor; A memory storing a computer program, which, when executed by a processor, implements the data migration method according to any one of claims 1 to 3 and / or the data migration method according to any one of claims 4 to 6.

Citation Information

Patent Citations

  • Method for multiple terminal devices to share file resources mutually

    CN106412055A

  • Method, apparatus, terminal, server and storage medium for migrating application session

    CN109086123A

  • File management method, cloud file management system and terminal

    CN111475467A