WO2018049933A1 - 数据迁移方法及相关产品 - Google Patents
数据迁移方法及相关产品 Download PDFInfo
- Publication number
- WO2018049933A1 WO2018049933A1 PCT/CN2017/095043 CN2017095043W WO2018049933A1 WO 2018049933 A1 WO2018049933 A1 WO 2018049933A1 CN 2017095043 W CN2017095043 W CN 2017095043W WO 2018049933 A1 WO2018049933 A1 WO 2018049933A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- terminal device
- target data
- operating system
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/22—Processing or transfer of terminal data, e.g. status or physical capabilities
- H04W8/24—Transfer of terminal data
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/485—Task life-cycle, e.g. stopping, restarting, resuming execution
- G06F9/4856—Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/06—Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
Definitions
- the present invention relates to the field of Internet technologies, and in particular, to a data migration method and related products.
- terminals such as mobile phones, tablets, etc.
- the function of moving the mobile phone when the user changes the mobile phone is provided on the market. This function can copy the entire old mobile phone data, software, etc. to the new mobile phone intact, thus providing convenience for the user to change the machine.
- the embodiment of the invention provides a data migration method and related products, which can support data migration between different operating systems.
- a first aspect of the embodiments of the present invention provides a data migration method, including:
- a second aspect of the embodiments of the present invention provides a data migration apparatus, including:
- a receiving unit configured to receive data to be migrated sent by the mobile terminal, where the mobile terminal supports the first operating system
- An acquiring unit configured to acquire a second operating system supported by the terminal device, where the first operation The system is different from the second operating system;
- An adjusting unit configured to adjust the data to be migrated to target data, where the target data supports the second operating system
- a transmission unit configured to transmit the target data to the terminal device.
- a third aspect of the embodiments of the present invention provides a server, including:
- a processor and a memory wherein the processor performs some or all of the steps of the method described in the first aspect by invoking code or instructions in the memory.
- an embodiment of the present invention provides a computer readable storage medium, wherein the computer readable storage medium is configured to store a computer program, wherein the computer program causes a computer to perform the first aspect of the embodiment of the present invention.
- an embodiment of the present invention provides a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to execute Some or all of the steps described in the first aspect of the invention.
- the computer program product can be a software installation package.
- FIG. 1 is a schematic diagram of a network architecture of a data migration system according to an embodiment of the present invention
- FIG. 2 is a schematic flowchart diagram of a first embodiment of a data migration method according to an embodiment of the present disclosure
- FIG. 3 is a schematic flowchart diagram of a second embodiment of a data migration method according to an embodiment of the present disclosure
- FIG. 4a is a schematic structural diagram of an embodiment of a data migration apparatus according to an embodiment of the present invention.
- FIG. 4b is a schematic structural diagram of an adjusting unit of the data migration apparatus described in FIG. 4a according to an embodiment of the present invention
- FIG. 4c is a schematic structural diagram of a transmission unit of the data migration apparatus described in FIG. 4a according to an embodiment of the present invention
- FIG. 4d is another embodiment of the transmission unit of the data migration device described in FIG. 4a according to an embodiment of the present invention; a schematic diagram of the structure;
- FIG. 4e is another schematic structural diagram of the data migration apparatus described in FIG. 4a according to an embodiment of the present invention.
- FIG. 5 is a schematic structural diagram of an embodiment of a server according to an embodiment of the present invention.
- the related art method only supports the migration between mobile phones under the same operating system, for example, between an Android mobile phone and an Android mobile phone, and does not support data migration between different operating systems, for example, an Android mobile phone.
- the above migration is not supported between Apple and Apple phones.
- the embodiment of the invention provides a data migration method and related products, which can support data migration between different operating systems.
- references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention.
- the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
- the data described in the embodiments of the present invention may include applications (such as social applications, video applications, photo applications, game applications, etc.), folders, files (such as text files, video files, audio files, photos, etc.), cached data, Private data, etc., the above data are only examples, not exhaustive, including but not limited to the above data.
- the operating system described in the embodiments of the present invention may include, but is not limited to, an Android operating system (originally developed by Google Inc.), a Windows operating system (developed by Microsoft Corporation), an IOS operating system (developed by Apple Inc.), and the like.
- the first operating system and the second operating system mentioned in the embodiments of the present invention may be different operating systems described above.
- the mobile terminal or the terminal device described in the embodiments of the present invention may include a smart phone (such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.), a tablet computer, a palmtop computer, a notebook computer, a mobile Internet device (MID, Mobile Internet Devices), or
- a smart phone such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.
- a tablet computer such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.
- a palmtop computer such as a Samsung Galaxy Tabs
- a notebook computer such as an iPad, Samsung Galaxy Tabs, etc.
- MID Mobile Internet Devices
- the wearable device and the like are merely examples, and are not exhaustive, including but not limited to the above-described mobile terminal or terminal device.
- the terminal device mentioned in the embodiment of the present invention may be the same as the mobile terminal, for example, the terminal device is a mobile phone, and the mobile terminal is another mobile phone; the terminal device may also be
- the data transmission channel described in the embodiments of the present invention may include, but is not limited to, hotspot, Bluetooth, infrared, Wireless Fidelity (Wi-Fi), wired, etc., specifically, the hotspot is activated at the mobile terminal, and the terminal device is connected.
- the mobile terminal can establish a data transmission channel between the two; when the mobile terminal starts Bluetooth, the terminal device connects to the mobile terminal, and a data transmission channel can be established between the two; the infrared terminal is activated at the mobile terminal, and the terminal device is connected to the mobile terminal, A data transmission channel can be established between the two; a certain Wi-Fi is connected to the mobile terminal, and the terminal device is indirectly connected to the mobile terminal, and a data transmission channel can be established between the two; the cable is performed between the mobile terminal and the terminal device by wire Connection, a data transmission channel can be established between the two.
- FIG. 1 is a network architecture of a data migration system, where the network architecture may include: a mobile terminal, a server, and a terminal device, where the server may be a server and a cloud of the mobile terminal manufacturer.
- the mobile terminal and the server can establish a communication connection through a wireless fidelity network, a mobile communication network (such as 2G, 3G, 4G, 5G, etc.) and a wired network; the terminal and the server can also pass wireless fidelity.
- Network, mobile communication networks (such as 2G, 3G, 4G, 5G, etc.), wired networks establish communication connections.
- the server may receive the data to be migrated sent by the mobile terminal, where the mobile terminal supports the first operating system and acquires the second operating system supported by the terminal device, where the first operating system is different from the second operating system and is to be migrated.
- the data is adjusted to target data, wherein the target data supports the second operating system and transmits the target data to the terminal device.
- FIG. 2 is a schematic flowchart diagram of a first embodiment of a data migration method according to an embodiment of the present invention.
- the data migration method described in this embodiment includes the following steps:
- the mobile terminal can establish a connection with the server, and the server can receive the data to be migrated sent by the mobile terminal.
- step 201 the following steps may also be included:
- the mobile terminal can establish a connection with the terminal device by using the at least one data transmission channel.
- the mobile terminal can make a wired connection with the terminal device, and at the same time, the connection between the mobile terminal and the terminal device can be established through Bluetooth.
- the mobile terminal may start a hotspot after receiving the migration instruction, and establish a connection between the mobile terminal and the terminal device.
- the adjusting the data to be migrated to the target data may include the following steps:
- an application can contain multiple different versions, mainly for different operating systems, for example, there are Android version, windows version, IOS version, of course, different versions of the same application, which will Some data is compatible between different operating systems, and another part of data is incompatible between different operating systems.
- the first operating system and the second operating system are different operating systems, the first operation Non-compatible data under the system cannot be directly migrated to The second operating system needs to convert the non-compatible data into the first target data compatible with the second operating system, and then combine the first target data and the compatible data into the target data.
- data compression may be performed on the target data, thereby reducing the memory space of the target data and improving data migration efficiency.
- the server may perform data compression on the target data, and send the target data after the data compression to the terminal device. In this way, the transmission efficiency can be improved.
- the target data may be divided into multiple data sets according to the importance of the target data, and each data set may determine a transmission priority according to the importance, for example, a certain The higher the importance of a data set, the more preferential the transmission. Conversely, if the importance of a data set is lower, the later transmission, thus ensuring that the target data can be transmitted in an orderly manner.
- the step 204 of transmitting the target data to the terminal device may include the following steps:
- the P data sets are transmitted to the terminal device through the P data transmission channels, wherein each data transmission channel corresponds to one data set.
- the target data can be divided into P data sets according to the transmission rate of the P data transmission channels, that is, the transmission rate is large, and the corresponding data set occupies a large memory, and the transmission rate is small, and the corresponding data set occupies a small memory. .
- the target data can be reasonably utilized by using multiple data transmission channels, thereby improving data transmission efficiency.
- the target data can be divided into P data sets, that is, the security of the data transmission channel, and the corresponding data set occupies a large memory, and the security of the data transmission channel is low.
- the corresponding data set occupies less memory. That is, the data transmission channel with high security transmits more target data, and the data transmission channel with low security transmits less target data.
- the sending the target data to the terminal device may include the following steps:
- the target data may be divided into multiple data sets, and the transmission priority of the multiple data sets may be determined according to the memory size of each data set, for example, the memory is large, the transmission priority is high, the memory is small, and the transmission priority is Low, as such, the transmission priority of each data set can be determined, then the multiple data sets can be transmitted to the terminal device according to the transmission priority of each data set in the plurality of data sets.
- determining a transmission priority of each data set in the multiple data sets may be implemented as follows:
- Determining a frequency of use of the plurality of data sets in the mobile terminal determining a transmission priority of each data set in the plurality of data sets according to the usage frequency.
- the server may determine the frequency of use of each data set in the multiple data sets in the mobile terminal. Further, the transmission priority of each data set in the multiple data sets may be determined according to the frequency of use. For example, the higher the frequency of use, the priority of the transmission. The higher the level.
- the target data may be migrated to the terminal device by using multiple threads or multiple processes.
- the data to be privately divided into multiple data sets, each of which can use one thread or process for transmitting the data set to the terminal device, thus improving data migration efficiency.
- the sending the target data to the terminal device may include the following steps:
- the target data is divided into a plurality of data sets, which can be implemented as follows:
- the data type may be at least one of the following: picture, video, audio, word, text, excel, etc.
- the server may obtain the data type included in the target data, obtain multiple data types, and target data according to multiple data types. Divided into multiple data sets, of course, each data type can correspond to one data set.
- the sending the target data to the terminal device may include the following steps:
- the target data may be divided into K data sets, where K is an integer greater than 1, wherein K may be counted by the system (eg, K applications, may be recorded as K data sets) or specified by the user .
- the frequency of use of each data set in the K data sets may be separately determined, and the migration order of the K data sets may be determined in descending order of use frequency, that is, the data set with higher frequency is migrated first. The data set with lower frequency is migrated later, and the data to be migrated can be transmitted to the terminal device according to the migration order.
- the data to be migrated sent by the mobile terminal, where the mobile terminal supports the first operating system; acquiring the second operating system supported by the terminal device, where the first operating system and the second operating system The operating system is different; the data to be migrated is adjusted to target data, wherein the target data supports the second operating system; and the target data is transmitted to the terminal device.
- the data migration between different operating systems can be supported.
- FIG. 3 it is a schematic flowchart of a second embodiment of a data migration method according to an embodiment of the present invention.
- the data migration method described in this embodiment includes the following steps:
- N is an integer greater than 1.
- the mobile terminal may determine N applications currently running in the mobile terminal.
- the N applications may include system applications, or general applications, such as a photo application, a shopping application, etc., usually, N Is an integer greater than 1.
- the mobile terminal can monitor each open application, so that N applications currently running in the mobile terminal can be directly determined.
- the N application must include the system application and the driver application.
- the system application is to ensure the normal operation of the operating system, and the driver application is the driver to run.
- the N applications include other conventional applications.
- a conventional application can be considered as an application that does not affect the operation of the operating system after the application is closed, and can also be understood as a third-party application.
- the preset application list may be set in advance in the mobile terminal, and the preset application list may include at least one regular application.
- the N applications can be matched with the preset application list one by one, that is, any one of the N applications is matched with the preset application list, and then another application of the N applications and the preset application are added.
- the list is matched, and so on, it can be determined which of the N applications are present in the preset application list and which are not present in the preset application list.
- N applications include: QQ, WeChat, Taobao, Baidu map
- the preset application list includes: Taobao, Baidu map, Meituan, Beauty camera, then, when the N applications are matched with the preset application list, Taobao and Baidu maps can be found in the preset application list, while QQ and WeChat do not exist in the preset application list.
- the terminal device is instructed to close the M applications, where the M is greater than 0 and smaller than the N The integer.
- the M applications may be closed, where the M is greater than 0 and less than N.
- the integer the load of the mobile terminal can be reduced, the processing efficiency of the mobile terminal can be improved, and the migration efficiency can be improved.
- the data migration efficiency can be improved due to the improvement of the kernel utilization of the terminal device and the target data to the terminal device.
- the terminal device closes the application that is running in the terminal device and belongs to the preset application list, and adjusts the data to be migrated to the target data, wherein the target data supports the second operating system, and the target data is transmitted to the terminal device.
- the terminal device closes the application that is running in the terminal device and belongs to the preset application list, and adjusts the data to be migrated to the target data, wherein the target data supports the second operating system, and the target data is transmitted to the terminal device.
- it can support between different operating systems data migration.
- data migration efficiency can be improved because some applications in the terminal device can be turned off.
- FIG. 4 is a schematic structural diagram of an embodiment of a data migration apparatus according to an embodiment of the present invention.
- the data migration apparatus described in this embodiment includes: a receiving unit 401, an obtaining unit 402, an adjusting unit 403, and a transmitting unit 404, as follows:
- the receiving unit 401 is configured to receive data to be migrated sent by the mobile terminal, where the mobile terminal supports the first operating system;
- the obtaining unit 402 is configured to acquire a second operating system supported by the terminal device, where the first operating system is different from the second operating system;
- the adjusting unit 403 is configured to adjust the data to be migrated to target data, where the target data supports the second operating system;
- the transmitting unit 404 is configured to transmit the target data to the terminal device.
- the transmission unit 404 is specifically configured to:
- Data compression is performed on the target data, and the target data after data compression is sent to the terminal device.
- the transmission unit 404 is specifically configured to:
- P is an integer greater than 1; dividing the target data into P data sets; transmitting the P data sets to the P data transmission channels through the P data transmission channels A terminal device, wherein each data transmission channel corresponds to one data set.
- the adjusting unit 403 of the data migration apparatus described in FIG. 4b and FIG. 4a may include: a first determining module 4031, a converting module 4032, and a synthesizing module 4033, as follows:
- a first determining module 4031 configured to determine non-compatible data and compatible data in the data to be migrated, where the non-compatible data does not support the second operating system, and the compatible data supports the second operating system ;
- a conversion module 4032 configured to convert the non-compatible data into first target data that supports the second operating system
- the synthesizing module 4033 is configured to synthesize the first target data and the compatible data into target data.
- the transmission unit 404 of the data migration device as described in FIG. 4c and FIG. 4a may include:
- the first dividing module 4041, the second determining module 4042, and the transmitting module 4043 are as follows:
- a first dividing module 4041 configured to divide the target data into multiple data sets
- a second determining module 4042 configured to determine a transmission priority of each data set in the multiple data sets
- the transmitting module 4043 is configured to transmit the multiple data sets to the terminal device according to a transmission priority of each data set in the multiple data sets.
- the second determining module 4042 is specifically configured to:
- the transmission unit 404 of the data migration apparatus as described in FIG. 4d and FIG. 4a may include: a second division module 4044, an allocation module 4045, and a sending module 4046, as follows:
- a second dividing module 4044 configured to divide the target data into multiple data sets
- An allocating module 4045 configured to allocate the multiple threads to the multiple data sets, where each data set in the multiple data sets corresponds to a unique one
- the sending module 4046 is configured to send the multiple data sets to the terminal device by using the multiple threads.
- the second dividing module 4044 is specifically configured to:
- FIG. 4e is a variant structure of the data migration device described in FIG. 4a, and the data migration device described in FIG. 4a may further include: a determining unit 405, a matching unit 406, and an indicating unit 407. details as follows:
- a determining unit 405, configured to determine, after the adjusting unit 403 adjusts the data to be migrated as target data, N applications currently running in the terminal device, where N is an integer greater than 1;
- the matching unit 406 is configured to match the N applications with the preset application list.
- the indicating unit 407 is configured to: when the matching unit 406 matches that the M applications include the M application, the terminal application is in the preset application list, and the terminal device is instructed to close the M applications by the transmitting
- the unit 404 transmits the target data to the terminal device, where the M is large At 0 and less than the integer of N.
- the data migration apparatus described in the embodiment of the present invention may receive data to be migrated sent by the mobile terminal, where the mobile terminal supports the first operating system, and acquires a second operating system supported by the terminal device, where the first operating system and the first operating system The second operating system is different, and the data to be migrated is adjusted to target data, wherein the target data supports the second operating system, and the target data is transmitted to the terminal device.
- data migration between different operating systems can be supported.
- the data migration device described in the device embodiment of the present invention is presented in the form of a functional unit.
- the term "unit” as used herein shall be understood to mean the broadest possible meaning, and the object for implementing the functions described for each "unit” may be, for example, an integrated circuit ASIC, a single circuit for executing one or more software or firmware.
- a processor shared, dedicated or chipset
- memory of the program combinatorial logic, and/or other suitable components that perform the functions described above.
- the receiving unit 401, the function for receiving the data to be migrated sent by the mobile terminal may be implemented by the mobile terminal shown in FIG. 5, and may be specifically executed by the processor 3000 by calling the executable program code in the memory 4000.
- the data to be migrated sent by the receiving mobile terminal is implemented.
- FIG. 5 is a schematic structural diagram of an embodiment of a server according to an embodiment of the present invention.
- the server described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, such as a CPU; and a memory 4000, the input device 1000, the output device 2000, the processor 3000, and the memory 4000 is connected via bus 5000.
- the input device 1000 may be a touch panel, a physical button, or a mouse.
- the output device 2000 described above may specifically be a display screen.
- the above memory 4000 may be a high speed RAM memory or a non-volatile memory such as a magnetic disk memory.
- the above memory 4000 is used to store a set of program codes, and the input device 1000, the output device 2000, and the processor 3000 are used to call the program code stored in the memory 4000, and perform the following operations:
- the processor 3000 is configured to:
- the foregoing processor 3000 adjusts the data to be migrated to target data, including:
- the first target data and the compatible data are combined into target data.
- the foregoing processor 3000 sends the target data to the terminal device, including:
- the foregoing processor 3000 determines a transmission priority of each data set in the multiple data sets, including:
- the foregoing processor 3000 sends the target data to the terminal device, including:
- the processor 3000 divides the target data into multiple data sets, including:
- the target data is divided into the plurality of data sets according to the plurality of data types.
- the foregoing processor 3000 is configured to transmit the target data to the terminal device, including:
- Data compression is performed on the target data, and the target data after data compression is sent to the terminal device.
- the foregoing processor 3000 is configured to transmit the target data to the terminal device, including:
- the processor 3000 is further configured to:
- N is an integer greater than 1
- the terminal device is instructed to close the M applications, and the performing the transmitting the target data to the terminal device, where M is an integer greater than 0 and less than the N.
- the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of any one of the data migration methods described in the foregoing method embodiments.
- Embodiments of the present invention also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform the operations as recited in the above method embodiments Any or all of the steps of any data migration method.
- embodiments of the present invention can be provided as a method, apparatus (device), or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
- the computer program is stored/distributed in a suitable medium, provided with other hardware or as part of the hardware, or in other distributed forms, such as over the Internet or other wired or wireless telecommunication systems.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
- the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明实施例提供了一种数据迁移方法及相关产品,其中,所述方法包括:接收移动终端发送的待迁移数据,其中,所述移动终端支持第一操作系统;获取终端设备所支持的第二操作系统,其中,所述第一操作系统与所述第二操作系统不同;将所述待迁移数据调整为目标数据,其中,所述目标数据支持所述第二操作系统;向所述终端设备传输所述目标数据。通过本发明实施例可以支持不同操作系统之间的数据迁移。
Description
本发明要求2016年9月14日递交的发明名称为“一种数据迁移方法及服务器”的申请号201610824881.8的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。
本发明涉及互联网技术领域,具体涉及一种数据迁移方法及相关产品。
随着信息技术快速发展,终端(如手机、平板电脑等等)更新换代越来越频繁。目前,市场上提供给用户换手机时,使用手机搬家的功能。该功能可以将整个旧手机资料,软件等全部原封不动的拷贝到新手机,从而,为用户换机提供方便。
发明内容
本发明实施例提供了一种数据迁移方法及相关产品,可以支持不同操作系统之间的数据迁移。
本发明实施例第一方面提供了一种数据迁移方法,包括:
接收移动终端发送的待迁移数据,其中,所述移动终端支持第一操作系统;
获取终端设备所支持的第二操作系统,其中,所述第一操作系统与所述第二操作系统不同;
将所述待迁移数据调整为目标数据,其中,所述目标数据支持所述第二操作系统;
向所述终端设备传输所述目标数据。
本发明实施例第二方面提供了一种数据迁移装置,包括:
接收单元,用于接收移动终端发送的待迁移数据,其中,所述移动终端支持第一操作系统;
获取单元,用于获取终端设备所支持的第二操作系统,其中,所述第一操
作系统与所述第二操作系统不同;
调整单元,用于将所述待迁移数据调整为目标数据,其中,所述目标数据支持所述第二操作系统;
传输单元,用于向所述终端设备传输所述目标数据。
本发明实施例第三方面提供了一种服务器,包括:
处理器和存储器;其中,所述处理器通过调用所述存储器中的代码或指令以执行第一方面所描述的方法的部分或者全部步骤。
第四方面,本发明实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质用于存储计算机程序,其中,所述计算机程序使得计算机执行如本发明实施例第一方面中所描述的部分或全部步骤。
第五方面,本发明实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本发明实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的一种数据迁移系统的网络架构示意图;
图2是本发明实施例提供的一种数据迁移方法的第一实施例流程示意图;
图3是本发明实施例提供的一种数据迁移方法的第二实施例流程示意图;
图4a是本发明实施例提供的一种数据迁移装置的实施例结构示意图;
图4b是本发明实施例提供的图4a所描述的数据迁移装置的调整单元的结构示意图;
图4c是本发明实施例提供的图4a所描述的数据迁移装置的传输单元的结构示意图;
图4d是本发明实施例提供的图4a所描述的数据迁移装置的传输单元的又
一结构示意图;
图4e是本发明实施例提供的图4a所描述的数据迁移装置又一结构示意图;
图5是本发明实施例提供的一种服务器的实施例结构示意图。
在手机搬家过程中,相关技术中的方法只支持同一操作系统下的手机之间的迁移,例如,安卓手机与安卓手机之间,而不支持不同操作系统之间的数据迁移,例如,安卓手机与苹果手机之间便不支持上述迁移。本发明实施例提供了一种数据迁移方法及相关产品,可以支持不同操作系统之间的数据迁移。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置展示该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
本发明实施例所描述的数据可以包括应用(如社交应用、视频应用、拍照应用、游戏应用等)、文件夹、文件(如文本文件、视频文件、音频文件、照片等等)、缓存数据、私密数据等,上述数据仅是举例,而非穷举,包含但不限于上述数据。
本发明实施例所描述的操作系统可以包括但不仅限于:Android操作系统(最初由google公司开发)、windows操作系统(由微软公司开发),IOS操作系统(由苹果公司开发),等等。本发明实施例中所提及的第一操作系统和第二操作系统,可为上述不同的操作系统。
本发明实施例所描述的移动终端或者终端设备可以包括智能手机(如Android手机、iOS手机、Windows Phone手机等)、平板电脑、掌上电脑、笔记本电脑、移动互联网设备(MID,Mobile Internet Devices)或穿戴式设备等,上述仅是举例,而非穷举,包含但不限于上述移动终端或者终端设备。当然,本发明实施例中所提及的终端设备可与移动终端相同,例如,终端设备为手机,移动终端为另一手机;终端设备也可与移动终端不相同,例如,终端设备为手机,移动终端为平板电脑。
本发明实施例所描述的数据传输通道可包括但不仅限于:热点、蓝牙、红外、无线保真(Wireless Fidelity,Wi-Fi)、有线等等,具体地,在移动终端启动热点,终端设备连接该移动终端,两者之间可建立数据传输信道;在移动终端启动蓝牙,终端设备连接该移动终端,两者之间可建立数据传输信道;在移动终端启动红外,终端设备连接该移动终端,两者之间可建立数据传输信道;在移动终端均连接某一Wi-Fi,终端设备间接连接该移动终端,两者之间可建立数据传输信道;在移动终端与终端设备之间通过有线进行连接,两者之间可建立数据传输信道。
请参见图1,图1为本发明实施例提供了一种数据迁移系统的网络架构,该网络构架可包括:移动终端,服务器及终端设备,其中,服务器可为移动终端生产商的服务器、云服务器等等,移动终端与服务器之间可通过无线保真网络、移动通信网络(如2G、3G、4G、5G等等)、有线网络建立通信连接;终端与服务器之间也可通过无线保真网络、移动通信网络(如2G、3G、4G、5G等等)、有线网络建立通信连接。例如,服务器可接收移动终端发送的待迁移数据,其中,移动终端支持第一操作系统,获取终端设备所支持的第二操作系统,其中,第一操作系统与第二操作系统不同,将待迁移数据调整为目标数据,其中,目标数据支持第二操作系统,向终端设备传输目标数据。
基于图1所描述的数据迁移系统的网络架构,请参阅图2,为本发明实施例提供的一种数据迁移方法的第一实施例流程示意图。本实施例中所描述的数据迁移方法,包括以下步骤:
201、接收移动终端发送的待迁移数据,其中,所述移动终端支持第一操作系统。
其中,移动终端可与服务器之间建立连接,服务器可接收移动终端发送的待迁移数据。
可选地,步骤201之前,还可以包含如下步骤:
建立移动终端与终端设备之间的连接。
其中,移动终端可通过上述至少一个数据传输通道与终端设备之间建立连接。例如,移动终端可与终端设备进行有线连接,同时,可通过蓝牙建立移动终端与终端设备之间的连接。
可选地,移动终端可在接收到迁移指令之后,启动热点,建立移动终端与终端设备之间的连接。
202、获取终端设备所支持的第二操作系统,其中,所述第一操作系统与所述第二操作系统不同。
203、将所述待迁移数据调整为目标数据,其中,所述目标数据支持所述第二操作系统。
可选地,上述将所述待迁移数据调整为目标数据,可包括如下步骤:
31)、确定所述待迁移数据中的非兼容数据和兼容数据,其中,所述非兼容数据不支持所述第二操作系统,所述兼容数据支持所述第二操作系统;
32)、将所述非兼容数据转化为支持所述第二操作系统的第一目标数据;
33)、将所述第一目标数据和所述兼容数据合成目标数据。
其中,通常情况下,对于一个应用来说,其可以包含多个不同版本,主要针对不同操作系统而言,例如,有安卓版本,windows版本,IOS版本,当然,不同版本的同一应用,其会有一部分数据在不同操作系统之间可兼容,而另一部分数据在不同操作系统之间则不兼容,如此,在第一操作系统与第二操作系统为不同的操作系统的情况下,第一操作系统下的非兼容数据不可直接迁移到
第二操作系统,而需要将非兼容数据转化为第二操作系统兼容的第一目标数据,然后,将第一目标数据和兼容数据合成目标数据。
204、向所述终端设备传输所述目标数据。
可选地,在目标数据传输给终端设备的过程中,可对目标数据进行数据压缩,从而,减小目标数据的内存空间,提高数据迁移效率。具体地,服务器可对目标数据进行数据压缩,并将数据压缩之后的目标数据发送给终端设备。如此,可提升传输效率。
可选地,在目标数据传输给终端设备的过程中,可按照目标数据的重要性,将目标数据划分为多个数据集,每一数据集可根据重要性确定一个传输优先级,例如,某一数据集的重要性越高,则越优先传输,相反地,若某一数据集的重要性越低,则越后传输,如此,可保证目标数据可进行有序传输。
可选地,步骤204向所述终端设备传输所述目标数据,可包含如下步骤:
启动服务器与终端设备之间的P个数据传输通道,P为大于1的整数;
将目标数据分为P个数据集;
通过该P个数据传输通道将该P个数据集传输至终端设备,其中,每一数据传输通道对应一个数据集。
其中,可根据P个数据传输通道的传输速率将目标数据分为P个数据集,即传输速率大,则对应的数据集的占用内存大,传输速率小,则对应的数据集的占用内存小。如此,可合理地利用多个数据传输通道传输目标数据,如此,可提升数据传输效率。当然,也可以根据每一数据传输通道的安全性,将目标数据分成P个数据集,即数据传输通道的安全性,则对应的数据集的占用内存大,数据传输通道的安全性低,则对应的数据集的占用内存小。即安全性高的数据传输通道多传输些目标数据,安全性低的数据传输通道少传输些目标数据。
可选地,上述向所述终端设备发送所述目标数据,可包括如下步骤:
41)、将所述目标数据分成多个数据集;
42)、确定所述多个数据集中的每一数据集的传输优先级;
43)、根据所述多个数据集中的每一数据集的传输优先级将所述多个数据集传输给所述终端设备。
其中,可将目标数据分成多个数据集,可根据每一数据集的内存大小确定该多个数据集的传输优先级,例如,内存大的,传输优先级高,内存小的,传输优先级低,如此,可确定每一数据集的传输优先级,那么,可根据该多个数据集中的每一数据集的传输优先级传输该多个数据集至终端设备。
可选地,上述步骤42,确定所述多个数据集中的每一数据集的传输优先级,可按照如下方式实施:
确定所述多个数据集在所述移动终端中的使用频率;根据所述使用频率确定所述多个数据集中每一数据集的传输优先级。
其中,服务器可确定多个数据集中每一数据集在移动终端中的使用频率,进而,可根据使用频率确定多个数据集中每一数据集的传输优先级,例如,使用频率越高,传输优先级越高。
可选地,可采用多线程或者多进程向终端设备迁移目标数据。例如,将待私密数据分成多个数据集,每个数据集均可采用一个线程或者进程,来用于向终端设备传输该数据集,如此,可提升数据迁移效率。
可选地,以多线程为例加以细化,上述向所述终端设备发送所述目标数据,可包括如下步骤:
44)、将所述目标数据分成多个数据集;
45)、为所述多个数据集分配所述多个线程,其中,所述多个数据集中的每一数据集对应唯一一个线程;
46)、采用所述多个线程向所述终端设备发送所述多个数据集。
其中,上述步骤44中,将所述目标数据分成多个数据集,可按照如下方式实施:
获取所述目标数据中包含的数据类型,得到多个数据类型;根据所述多个数据类型将所述目标数据分成所述多个数据集。
其中,数据类型可为以下至少一种:图片、视频、音频、word、文本、excel等等,服务器可获取目标数据中包含的数据类型,得到多个数据类型,根据多个数据类型将目标数据分成多个数据集,当然,每一数据类型可对应一个数据集。
可选地,上述向所述终端设备发送所述目标数据,可包括如下步骤:
47、将所述目标数据分成K个数据集,其中,所述K为大于1的整数;
48)、确定所述K个数据集在所述移动终端中的使用频率;
49)、根据使用频率高优先迁移原则向所述终端设备迁移所述K个数据集。
其中,步骤47中,可将该目标数据分成K个数据集,其中,K为大于1的整数,其中,K可由系统统计(如K个应用,可记作K个数据集)或者由用户指定。可分别确定该K个数据集中的每一数据集的使用频率,可按照使用频率由高到低的顺序确定该K个数据集的迁移顺序,即使用频率越高的数据集则越先迁移,使用频率越低的数据集则越后迁移,则可按照该迁移顺序将待迁移数据传输给终端设备。
通过本发明实施例接收移动终端发送的待迁移数据,其中,所述移动终端支持第一操作系统;获取终端设备所支持的第二操作系统,其中,所述第一操作系统与所述第二操作系统不同;将所述待迁移数据调整为目标数据,其中,所述目标数据支持所述第二操作系统;向所述终端设备传输所述目标数据。从而,可以支持不同操作系统之间的数据迁移。
与上述一致地,请参阅图3,为本发明实施例提供的一种数据迁移方法的第二实施例流程示意图。本实施例中所描述的数据迁移方法,包括以下步骤:
301、接收移动终端发送的待迁移数据,其中,所述移动终端支持第一操作系统。
302、获取终端设备所支持的第二操作系统,其中,所述第一操作系统与所述第二操作系统不同。
303、将所述待迁移数据调整为目标数据。
304、确定所述终端设备中当前正在运行的N个应用,所述N为大于1的整数;
其中,移动终端可确定该移动终端中当前正在运行的N个应用,当然,该N个应用可包含系统应用,或者,一般的应用,如:拍照应用,购物应用等等,通常情况下,N为大于1的整数。
可选地,移动终端可对每一开启的应用进行监听,从而,可直接确定该移动终端中当前正在运行的N个应用。
可以理解的是,N个应用中必然包含系统应用和驱动应用,系统应用是为了保证操作系统正常运行,驱动应用是驱动程序进行运行,当然,N个应用中还包括其他常规应用,在此,常规应用可认为是,关闭了该应用后,不会影响到操作系统的运作的应用,也可以理解为第三方应用。
305、将所述N个应用与预设应用列表进行匹配;
其中,预设应用列表可以预先在移动终端中进行设置,该预设应用列表中可包含至少一个常规应用。可将N个应用与预设应用列表进行一一匹配,即先将N个应用中的任一应用与预设应用列表进行匹配,然后,再将N个应用中的另一应用与预设应用列表进行匹配,以此类推,可以确定出N个应用中哪些应用存在于预设应用列表中,哪些不存在于预设应用列表中。
例如,N个应用包括:QQ、微信、淘宝、百度地图,预设应用列表包括:淘宝、百度地图、美团、美颜相机,那么,在将该N个应用与预设应用列表进行匹配时,可得到淘宝、百度地图存在于预设应用列表中,而QQ、微信不存在于预设应用列表中。
306、若匹配出所述N个应用中包含M个应用存在于所述预设应用列表时,指示所述终端设备关闭所述M个应用,其中,所述M为大于0且小于所述N的整数。
可选地,若N个应用与预设应用列表匹配之后,得到该N个应用中的M个应用存在于预设应用列表中,则可关闭该M个应用,该M为大于0且小于N的整数。如此,可降低移动终端的负荷,提高移动终端的处理效率,可提升迁移效率。
307、向所述终端设备传输所述目标数据。
其中,在关闭M个应用之后,由于提高了终端设备的内核利用率,再向终端设备目标数据时,可提高数据迁移效率。
通过本发明实施例接收移动终端发送的待迁移数据,其中,移动终端支持第一操作系统,获取终端设备所支持的第二操作系统,其中,第一操作系统与第二操作系统不同,可指示终端设备关闭掉终端设备中正在运行且属于预设应用列表的应用,并将待迁移数据调整为目标数据,其中,目标数据支持第二操作系统,向终端设备传输所述目标数据。从而,可以支持不同操作系统之间的
数据迁移。同时,由于可关闭了终端设备中的部分应用,可提升数据迁移效率。
与上述一致地,以下为实施上述数据迁移方法的装置,具体如下:
请参阅图4a,为本发明实施例提供的一种数据迁移装置的实施例结构示意图。本实施例中所描述的数据迁移装置,包括:接收单元401、获取单元402、调整单元403和传输单元404,具体如下:
接收单元401,用于接收移动终端发送的待迁移数据,其中,所述移动终端支持第一操作系统;
获取单元402,用于获取终端设备所支持的第二操作系统,其中,所述第一操作系统与所述第二操作系统不同;
调整单元403,用于将所述待迁移数据调整为目标数据,其中,所述目标数据支持所述第二操作系统;
传输单元404,用于向所述终端设备传输所述目标数据。
可选地,所述传输单元404具体用于:
对所述目标数据进行数据压缩,并将数据压缩之后的所述目标数据发送给所述终端设备。
可选地,所述传输单元404具体用于:
启动服务器与终端设备之间的P个数据传输通道,P为大于1的整数;将所述目标数据分为P个数据集;通过所述P个数据传输通道将所述P个数据集传输至终端设备,其中,每一数据传输通道对应一个数据集。
可选地,如图4b,图4a中所描述的数据迁移装置的调整单元403可包括:第一确定模块4031、转化模块4032和合成模块4033,具体如下:
第一确定模块4031,用于确定所述待迁移数据中的非兼容数据和兼容数据,其中,所述非兼容数据不支持所述第二操作系统,所述兼容数据支持所述第二操作系统;
转化模块4032,用于将所述非兼容数据转化为支持所述第二操作系统的第一目标数据;
合成模块4033,用于将所述第一目标数据和所述兼容数据合成目标数据。
可选地,如图4c,图4a中所描述的数据迁移装置的传输单元404可包括:
第一划分模块4041、第二确定模块4042和传输模块4043,具体如下:
第一划分模块4041,用于将所述目标数据分成多个数据集;
第二确定模块4042,用于确定所述多个数据集中的每一数据集的传输优先级;
传输模块4043,用于根据所述多个数据集中的每一数据集的传输优先级将所述多个数据集传输给所述终端设备。
可选地,所述第二确定模块4042具体用于:
确定所述多个数据集中每一数据集在所述移动终端中的使用频率;根据所述使用频率确定所述多个数据集中每一数据集的传输优先级。
可选地,如图4d,图4a中所描述的数据迁移装置的传输单元404可包括:第二划分模块4044、分配模块4045和发送模块4046,具体如下:
第二划分模块4044,用于将所述目标数据分成多个数据集;
分配模块4045,用于为所述多个数据集分配所述多个线程,其中,所述多个数据集中的每一数据集对应唯一一个线程;
发送模块4046,用于采用所述多个线程向所述终端设备发送所述多个数据集。
可选地,所述第二划分模块4044具体用于:
获取所述目标数据中包含的数据类型,得到多个数据类型;根据所述多个数据类型将所述目标数据分成所述多个数据集。
可选地,如图4e,图4e为图4a所描述的数据迁移装置的一种变型结构,图4a中所描述的数据迁移装置还可包括:确定单元405、匹配单元406和指示单元407,具体如下:
确定单元405,用于在所述调整单元403将所述待迁移数据调整为目标数据之后,确定所述终端设备中当前正在运行的N个应用,所述N为大于1的整数;
匹配单元406,用于将所述N个应用与预设应用列表进行匹配;
指示单元407,用于若所述匹配单元406匹配出所述N个应用中包含M个应用存在于所述预设应用列表时,指示所述终端设备关闭所述M个应用,由所述传输单元404向所述终端设备传输所述目标数据,其中,所述M为大
于0且小于所述N的整数。
通过本发明实施例所描述的数据迁移装置可接收移动终端发送的待迁移数据,其中,移动终端支持第一操作系统,获取终端设备所支持的第二操作系统,其中,第一操作系统与第二操作系统不同,将待迁移数据调整为目标数据,其中,目标数据支持第二操作系统,向终端设备传输所述目标数据。从而,可以支持不同操作系统之间的数据迁移。
可以理解的是,上述本实施例的数据迁移装置的各程序模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。
需要注意的是,本发明装置实施例所描述的数据迁移装置是以功能单元的形式呈现。这里所使用的术语“单元”应当理解为尽可能最宽的含义,用于实现各个“单元”所描述功能的对象例如可以是集成电路ASIC,单个电路,用于执行一个或多个软件或固件程序的处理器(共享的、专用的或芯片组)和存储器,组合逻辑电路,和/或提供实现上述功能的其他合适的组件。
举例来说,上述接收单元401,用于接收移动终端发送的待迁移数据的功能可以由图5所示的移动终端来实现,具体可以通过处理器3000通过调用存储器4000中的可执行程序代码,实现接收移动终端发送的待迁移数据。
请参阅图5,为本发明实施例提供的一种服务器的实施例结构示意图。本实施例中所描述的服务器,包括:至少一个输入设备1000;至少一个输出设备2000;至少一个处理器3000,例如CPU;和存储器4000,上述输入设备1000、输出设备2000、处理器3000和存储器4000通过总线5000连接。
其中,上述输入设备1000具体可为触控面板、物理按键或者鼠标。
上述输出设备2000具体可为显示屏。
上述存储器4000可以是高速RAM存储器,也可为非易失存储器(non-volatile memory),例如磁盘存储器。上述存储器4000用于存储一组程序代码,上述输入设备1000、输出设备2000和处理器3000用于调用存储器4000中存储的程序代码,执行如下操作:
上述处理器3000,用于:
接收移动终端发送的待迁移数据,其中,所述移动终端支持第一操作系统;
获取终端设备所支持的第二操作系统,其中,所述第一操作系统与所述第二操作系统不同;
将所述待迁移数据调整为目标数据,其中,所述目标数据支持所述第二操作系统;
向所述终端设备传输所述目标数据。
可选地,上述处理器3000将所述待迁移数据调整为目标数据,包括:
确定所述待迁移数据中的非兼容数据和兼容数据,其中,所述非兼容数据不支持所述第二操作系统,所述兼容数据支持所述第二操作系统;
将所述非兼容数据转化为支持所述第二操作系统的第一目标数据;
将所述第一目标数据和所述兼容数据合成目标数据。
可选地,上述处理器3000向所述终端设备发送所述目标数据,包括:
将所述目标数据分成多个数据集;
确定所述多个数据集中的每一数据集的传输优先级;
根据所述多个数据集中的每一数据集的传输优先级将所述多个数据集传输给所述终端设备。
可选地,上述处理器3000确定所述多个数据集中的每一数据集的传输优先级,包括:
确定所述多个数据集中每一数据集在所述移动终端中的使用频率;
根据所述使用频率确定所述多个数据集中每一数据集的传输优先级。
可选地,上述处理器3000向所述终端设备发送所述目标数据,包括:
将所述目标数据分成多个数据集;
为所述多个数据集分配所述多个线程,其中,所述多个数据集中的每一数据集对应唯一一个线程;
采用所述多个线程向所述终端设备发送所述多个数据集。
可选地,上述处理器3000将所述目标数据分成多个数据集,包括:
获取所述目标数据中包含的数据类型,得到多个数据类型;
根据所述多个数据类型将所述目标数据分成所述多个数据集。
可选地,上述处理器3000向所述终端设备传输所述目标数据,包括:
对所述目标数据进行数据压缩,并将数据压缩之后的所述目标数据发送给所述终端设备。
可选地,上述处理器3000向所述终端设备传输所述目标数据,包括:
启动服务器与终端设备之间的P个数据传输通道,P为大于1的整数;
将所述目标数据分为P个数据集;
通过所述P个数据传输通道将所述P个数据集传输至终端设备,其中,每一数据传输通道对应一个数据集。
可选地,上述处理器3000在所述将所述待迁移数据调整为目标数据之后,以及所述向所述终端设备传输所述目标数据之前,还具体用于:
确定所述终端设备中当前正在运行的N个应用,所述N为大于1的整数;
将所述N个应用与预设应用列表进行匹配;
若匹配出所述N个应用中包含M个应用存在于所述预设应用列表时,指示所述终端设备关闭所述M个应用,执行所述向所述终端设备传输所述目标数据,其中,所述M为大于0且小于所述N的整数。
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种数据迁移方法的部分或全部步骤。
本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种数据迁移方法的部分或全部步骤。
尽管在此结合各实施例对本发明进行了描述,然而,在实施所要求保护的本发明过程中,本领域技术人员通过查看所述附图、公开内容、以及所附权利要求书,可理解并实现所述公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。
本领域技术人员应明白,本发明的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机程序存储/分布在合适的介质中,与其它硬件一起提供或作为硬件的一部分,也可以采用其他分布形式,如通过Internet或其它有线或无线电信系统。
本发明是参照本发明实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管结合具体特征及其实施例对本发明进行了描述,显而易见的,在不脱离本发明的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本发明的示例性说明,且视为已覆盖本发明范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。
Claims (20)
- 一种数据迁移方法,其特征在于,包括:接收移动终端发送的待迁移数据,其中,所述移动终端支持第一操作系统;获取终端设备所支持的第二操作系统,其中,所述第一操作系统与所述第二操作系统不同;将所述待迁移数据调整为目标数据,其中,所述目标数据支持所述第二操作系统;向所述终端设备传输所述目标数据。
- 根据权利要求1所述的方法,其特征在于,所述将所述待迁移数据调整为目标数据,包括:确定所述待迁移数据中的非兼容数据和兼容数据,其中,所述非兼容数据不支持所述第二操作系统,所述兼容数据支持所述第二操作系统;将所述非兼容数据转化为支持所述第二操作系统的第一目标数据;将所述第一目标数据和所述兼容数据合成目标数据。
- 根据权利要求1或2任一项所述的方法,其特征在于,所述向所述终端设备发送所述目标数据,包括:将所述目标数据分成多个数据集;确定所述多个数据集中的每一数据集的传输优先级;根据所述多个数据集中的每一数据集的传输优先级将所述多个数据集传输给所述终端设备。
- 根据权利要求3所述的方法,其特征在于,所述确定所述多个数据集中的每一数据集的传输优先级,包括:确定所述多个数据集中每一数据集在所述移动终端中的使用频率;根据所述使用频率确定所述多个数据集中每一数据集的传输优先级。
- 根据权利要求1或2任一项所述的方法,其特征在于,所述向所述终端设备发送所述目标数据,包括:将所述目标数据分成多个数据集;为所述多个数据集分配所述多个线程,其中,所述多个数据集中的每一数据集对应唯一一个线程;采用所述多个线程向所述终端设备发送所述多个数据集。
- 根据权利要求5所述的方法,其特征在于,所述将所述目标数据分成多个数据集,包括:获取所述目标数据中包含的数据类型,得到多个数据类型;根据所述多个数据类型将所述目标数据分成所述多个数据集。
- 根据权利1-6任一项所述的方法,其特征在于,所述向所述终端设备传输所述目标数据,包括:对所述目标数据进行数据压缩,并将数据压缩之后的所述目标数据发送给所述终端设备。
- 根据权利1-6任一项所述的方法,其特征在于,所述向所述终端设备传输所述目标数据,包括:启动服务器与终端设备之间的P个数据传输通道,P为大于1的整数;将所述目标数据分为P个数据集;通过所述P个数据传输通道将所述P个数据集传输至终端设备,其中,每一数据传输通道对应一个数据集。
- 根据权利要求1-8任一项所述的方法,其特征在于,在所述将所述待迁移数据调整为目标数据之后,以及所述向所述终端设备传输所述目标数据之前,所述方法还包括:确定所述终端设备中当前正在运行的N个应用,所述N为大于1的整数;将所述N个应用与预设应用列表进行匹配;若匹配出所述N个应用中包含M个应用存在于所述预设应用列表时,指示所述终端设备关闭所述M个应用,执行所述向所述终端设备传输所述目标数据,其中,所述M为大于0且小于所述N的整数。
- 一种数据迁移装置,其特征在于,包括:接收单元,用于接收移动终端发送的待迁移数据,其中,所述移动终端支持第一操作系统;获取单元,用于获取终端设备所支持的第二操作系统,其中,所述第一操作系统与所述第二操作系统不同;调整单元,用于将所述待迁移数据调整为目标数据,其中,所述目标数据支持所述第二操作系统;传输单元,用于向所述终端设备传输所述目标数据。
- 根据权利要求10所述的数据迁移装置,其特征在于,所述调整单元包括:第一确定模块,用于确定所述待迁移数据中的非兼容数据和兼容数据,其中,所述非兼容数据不支持所述第二操作系统,所述兼容数据支持所述第二操作系统;转化模块,用于将所述非兼容数据转化为支持所述第二操作系统的第一目标数据;合成模块,用于将所述第一目标数据和所述兼容数据合成目标数据。
- 根据权利要求10或11任一项所述的服务器,其特征在于,所述传输单元包括:第一划分模块,用于将所述目标数据分成多个数据集;第二确定模块,用于确定所述多个数据集中的每一数据集的传输优先级;传输模块,用于根据所述多个数据集中的每一数据集的传输优先级将所述多个数据集传输给所述终端设备。
- 根据权利要求12所述的数据迁移装置,其特征在于,所述第二确定模块具体用于:确定所述多个数据集中每一数据集在所述移动终端中的使用频率;根据所述使用频率确定所述多个数据集中每一数据集的传输优先级。
- 根据权利要求10或11任一项所述的数据迁移装置,其特征在于,所述传输单元包括:第二划分模块,用于将所述目标数据分成多个数据集;分配模块,用于为所述多个数据集分配所述多个线程,其中,所述多个数据集中的每一数据集对应唯一一个线程;发送模块,用于采用所述多个线程向所述终端设备发送所述多个数据集。
- 根据权利要求14所述的数据迁移装置,其特征在于,所述第二划分模块具体用于:获取所述目标数据中包含的数据类型,得到多个数据类型;根据所述多个数据类型将所述目标数据分成所述多个数据集。
- 根据权利10-15任一项所述的数据迁移装置,其特征在于,所述传输单元具体用于:对所述目标数据进行数据压缩,并将数据压缩之后的所述目标数据发送给所述终端设备。
- 根据权利10-15任一项所述的数据迁移装置,其特征在于,所述传输单元具体用于:启动服务器与终端设备之间的P个数据传输通道,P为大于1的整数;将所述目标数据分为P个数据集;通过所述P个数据传输通道将所述P个数据集传输至终端设备,其中,每一数据传输通道对应一个数据集。
- 一种服务器,其特征在于,包括:处理器和存储器;其中,所述处理器通过调用所述存储器中的代码或指令以执行如权利要求1至9任意一项所述的方法。
- 一种计算机存储介质,其特征在于,其用于存储计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。
- 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1-9任一项所述的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610824881.8 | 2016-09-14 | ||
| CN201610824881.8A CN106341811A (zh) | 2016-09-14 | 2016-09-14 | 一种数据迁移方法及服务器 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018049933A1 true WO2018049933A1 (zh) | 2018-03-22 |
Family
ID=57838904
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/095043 Ceased WO2018049933A1 (zh) | 2016-09-14 | 2017-07-28 | 数据迁移方法及相关产品 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106341811A (zh) |
| WO (1) | WO2018049933A1 (zh) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114244912A (zh) * | 2020-09-08 | 2022-03-25 | 腾讯科技(深圳)有限公司 | 数据传输方法、装置、计算机设备及存储介质 |
| CN114844880A (zh) * | 2022-04-07 | 2022-08-02 | 广州文远知行科技有限公司 | 一种文件上传方法、装置、电子设备及存储介质 |
| CN115543440A (zh) * | 2021-06-30 | 2022-12-30 | 阿里巴巴新加坡控股有限公司 | 安卓项目迁移到类安卓系统的方法、电子设备和存储介质 |
| CN118118728A (zh) * | 2024-04-30 | 2024-05-31 | 四川天邑康和通信股份有限公司 | Iptv机顶盒的数据处理方法和装置、机顶盒及介质 |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106484563B (zh) | 2016-09-14 | 2020-01-14 | Oppo广东移动通信有限公司 | 一种数据迁移方法及终端设备 |
| CN106341811A (zh) * | 2016-09-14 | 2017-01-18 | 广东欧珀移动通信有限公司 | 一种数据迁移方法及服务器 |
| CN106888498A (zh) * | 2017-01-25 | 2017-06-23 | 北京奇虎科技有限公司 | 一种终端间数据传输方法、装置及移动终端 |
| CN106888263B (zh) * | 2017-02-28 | 2020-11-13 | 深圳市友机机科技有限公司 | 自动读取设备参数的方法和Android工控系统 |
| CN107124714B (zh) * | 2017-04-13 | 2021-02-23 | 北京珠穆朗玛移动通信有限公司 | 数据发送方法及数据发送终端 |
| CN115220953A (zh) * | 2021-04-14 | 2022-10-21 | 中国石油天然气股份有限公司 | 基于油气管道的数据采集与监控系统的工程数据维护方法 |
| CN113568784A (zh) * | 2021-08-11 | 2021-10-29 | 深圳万兴软件有限公司 | Android端备份还原IOS端数据的方法、装置及相关组件 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101986730A (zh) * | 2010-10-27 | 2011-03-16 | 东莞宇龙通信科技有限公司 | 一种移动终端及其恢复彩信的方法 |
| US20110138375A1 (en) * | 2005-11-16 | 2011-06-09 | Microsoft Corporation | Automated state migration while deploying an operating system |
| CN102780715A (zh) * | 2011-05-10 | 2012-11-14 | 中兴通讯股份有限公司 | 一种移动终端间远程桌面的实现方法及系统 |
| CN106341811A (zh) * | 2016-09-14 | 2017-01-18 | 广东欧珀移动通信有限公司 | 一种数据迁移方法及服务器 |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101431814B (zh) * | 2007-11-05 | 2012-11-14 | 网秦无限(北京)科技有限公司 | 基于中间件的手机与pc互操作的方法与系统 |
| US9282165B2 (en) * | 2012-11-19 | 2016-03-08 | Dell Products, Lp | System and method for peer-to-peer management through policy and context replication |
| CN103401904A (zh) * | 2013-07-19 | 2013-11-20 | 蓝盾信息安全技术股份有限公司 | 一种备份移动终端数据的方法 |
-
2016
- 2016-09-14 CN CN201610824881.8A patent/CN106341811A/zh active Pending
-
2017
- 2017-07-28 WO PCT/CN2017/095043 patent/WO2018049933A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110138375A1 (en) * | 2005-11-16 | 2011-06-09 | Microsoft Corporation | Automated state migration while deploying an operating system |
| CN101986730A (zh) * | 2010-10-27 | 2011-03-16 | 东莞宇龙通信科技有限公司 | 一种移动终端及其恢复彩信的方法 |
| CN102780715A (zh) * | 2011-05-10 | 2012-11-14 | 中兴通讯股份有限公司 | 一种移动终端间远程桌面的实现方法及系统 |
| CN106341811A (zh) * | 2016-09-14 | 2017-01-18 | 广东欧珀移动通信有限公司 | 一种数据迁移方法及服务器 |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114244912A (zh) * | 2020-09-08 | 2022-03-25 | 腾讯科技(深圳)有限公司 | 数据传输方法、装置、计算机设备及存储介质 |
| CN114244912B (zh) * | 2020-09-08 | 2023-11-17 | 腾讯科技(深圳)有限公司 | 数据传输方法、装置、计算机设备及存储介质 |
| CN115543440A (zh) * | 2021-06-30 | 2022-12-30 | 阿里巴巴新加坡控股有限公司 | 安卓项目迁移到类安卓系统的方法、电子设备和存储介质 |
| CN114844880A (zh) * | 2022-04-07 | 2022-08-02 | 广州文远知行科技有限公司 | 一种文件上传方法、装置、电子设备及存储介质 |
| CN114844880B (zh) * | 2022-04-07 | 2023-10-31 | 广州文远知行科技有限公司 | 一种文件上传方法、装置、电子设备及存储介质 |
| CN118118728A (zh) * | 2024-04-30 | 2024-05-31 | 四川天邑康和通信股份有限公司 | Iptv机顶盒的数据处理方法和装置、机顶盒及介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106341811A (zh) | 2017-01-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2018049933A1 (zh) | 数据迁移方法及相关产品 | |
| KR101744183B1 (ko) | 호스트 디바이스의 능력들의 증강 | |
| US9514100B2 (en) | Method, apparatus and system of screenshot grabbing and sharing | |
| KR20200074067A (ko) | 이미지를 처리하는 전자장치 및 방법 | |
| WO2017041398A1 (zh) | 数据传输方法和装置 | |
| WO2022127661A1 (zh) | 应用共享方法、电子设备和存储介质 | |
| WO2015123937A1 (zh) | 一种分屏处理方法、装置及计算机存储介质 | |
| WO2019228344A1 (zh) | 资源配置方法、装置、终端及存储介质 | |
| US10999501B2 (en) | Electronic device and method for controlling display of panorama image | |
| WO2018049932A1 (zh) | 数据迁移方法及相关产品 | |
| CN103384275A (zh) | 跨终端进行下载的方法、系统云端服务器和终端 | |
| CN110991368B (zh) | 相机场景识别方法及相关装置 | |
| CN104869305A (zh) | 处理图像数据的方法及其装置 | |
| CN104918112B (zh) | 相机资源的应用方法及装置 | |
| CN109522131A (zh) | 资源配置方法、装置及设备 | |
| CN106375465A (zh) | 一种数据迁移方法及服务器 | |
| WO2018049939A1 (zh) | 数据迁移方法及相关产品 | |
| US20150356112A1 (en) | Method and electronic device for processing data | |
| CN109379548B (zh) | 多媒体录制方法、装置、终端及存储介质 | |
| KR102240526B1 (ko) | 전자 장치의 컨텐츠 다운로드 방법 및 그 전자 장치 | |
| KR102213429B1 (ko) | 사운드 제공 방법 및 이를 구현하는 전자 장치 | |
| JP2018502402A (ja) | システムファームウェアのプログラミングスピードを速める方法 | |
| US20170048292A1 (en) | Electronic device and method for providing content | |
| WO2018049941A1 (zh) | 数据迁移方法及相关产品 | |
| WO2018049910A1 (zh) | 数据迁移方法及相关产品 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17850135 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17850135 Country of ref document: EP Kind code of ref document: A1 |