Movatterモバイル変換


[0]ホーム

URL:


CN106445739B - Data migration method and terminal equipment - Google Patents

Data migration method and terminal equipment
Download PDF

Info

Publication number
CN106445739B
CN106445739BCN201610825482.3ACN201610825482ACN106445739BCN 106445739 BCN106445739 BCN 106445739BCN 201610825482 ACN201610825482 ACN 201610825482ACN 106445739 BCN106445739 BCN 106445739B
Authority
CN
China
Prior art keywords
application
data
terminal device
applications
data set
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.)
Active
Application number
CN201610825482.3A
Other languages
Chinese (zh)
Other versions
CN106445739A (en
Inventor
马志峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610825482.3ApriorityCriticalpatent/CN106445739B/en
Publication of CN106445739ApublicationCriticalpatent/CN106445739A/en
Priority to PCT/CN2017/092871prioritypatent/WO2018049904A1/en
Application grantedgrantedCritical
Publication of CN106445739BpublicationCriticalpatent/CN106445739B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention discloses a data migration method, which comprises the following steps: the first terminal device is used for connecting a hotspot established by a second terminal device by scanning a two-dimensional code of the second terminal device, wherein the two-dimensional code is generated based on the hotspot name and the hotspot connection password; the first terminal device backups data of a first application to obtain a first data set, and transmits the first data set to the second terminal device, wherein the importance priority of the first application is greater than or equal to a preset priority. The embodiment of the invention also provides the terminal equipment. The embodiment of the invention can avoid the problem of unnecessary memory occupation brought to a new mobile phone.

Description

Translated fromChinese
一种数据迁移方法及终端设备A data migration method and terminal device

技术领域technical field

本发明涉及电子技术领域,尤其涉及一种数据迁移方法及终端设备。The present invention relates to the field of electronic technology, and in particular, to a data migration method and a terminal device.

背景技术Background technique

目前人们换手机的频率越来越高,但是对于懒癌患者和科技小白来说,换机等于一切重新开始,日常使用的APP,重要的聊天记录、文档,连过的所有WiFi密码等这些旧机里的点滴习惯都没有了,每一次换机都是高兴10分钟,烦恼10小时。为了解决该问题,出现了数据迁移,数据迁移是旧手机备份数据,然后传给新手机进行数据恢复以达到换机的目的。At present, people are changing their mobile phones more and more frequently, but for lazy cancer patients and tech novices, changing phones means starting all over again, such as daily APPs, important chat records, documents, all connected WiFi passwords, etc. The little habits in the old machine are gone. Every time I change the machine, I am happy for 10 minutes and worry for 10 hours. In order to solve this problem, data migration occurs. Data migration is to back up the data of the old mobile phone, and then transfer it to the new mobile phone for data recovery to achieve the purpose of replacing the phone.

目前,数据迁移通常是旧手机将所有的数据进行备份(比如联系人、短信、应用程序等),然后将备份好的所有数据传给新手机进行数据恢复。将旧手机的所有数据传给新手机,可能会存在旧手机中的某些应用不是用户想要搬到新手机上的,进而给新手机带来不必要的内存占用。Currently, data migration usually involves backing up all data (such as contacts, text messages, applications, etc.) on the old mobile phone, and then transferring all the backed up data to the new mobile phone for data recovery. Transfer all the data of the old mobile phone to the new mobile phone, there may be some applications in the old mobile phone that the user does not want to move to the new mobile phone, thereby causing unnecessary memory usage to the new mobile phone.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种数据迁移方法及终端设备,以期避免给新手机带来不必要的内存占用问题。Embodiments of the present invention provide a data migration method and a terminal device, so as to avoid unnecessary memory occupation problems for new mobile phones.

第一方面,本发明实施例提供一种数据迁移方法,包括:In a first aspect, an embodiment of the present invention provides a data migration method, including:

第一终端设备通过扫描第二终端设备的二维码,以连接所述第二终端设备建立的热点,所述二维码基于所述热点名称和所述热点连接密码生成的;The first terminal device scans the two-dimensional code of the second terminal device to connect to the hotspot established by the second terminal device, and the two-dimensional code is generated based on the hotspot name and the hotspot connection password;

所述第一终端设备备份第一应用的数据,以得到第一数据集,以及将所述第一数据集传送给所述第二终端设备,所述第一应用的重要优先级大于或等于预设优先级。The first terminal device backs up the data of the first application to obtain a first data set, and transmits the first data set to the second terminal device, where the important priority of the first application is greater than or equal to the preset value. Set priority.

第二方面,本发明实施例提供了一种终端设备,包括:In a second aspect, an embodiment of the present invention provides a terminal device, including:

热点连接模块,用于通过扫描第二终端设备的二维码,以连接所述第二终端设备建立的热点,所述二维码是基于所述热点名称和所述热点连接密码生成的;a hotspot connection module, configured to connect to a hotspot established by the second terminal device by scanning a two-dimensional code of the second terminal device, the two-dimensional code is generated based on the hotspot name and the hotspot connection password;

数据备份模块,用于备份第一应用的数据,以得到第一数据集;a data backup module for backing up the data of the first application to obtain the first data set;

数据传送模块,用于将所述第一数据集传送给所述第二终端设备,所述第一应用的重要优先级大于或等于预设优先级。A data transmission module, configured to transmit the first data set to the second terminal device, where the important priority of the first application is greater than or equal to a preset priority.

第三方面,本发明实施例提供了一种终端设备,包括:In a third aspect, an embodiment of the present invention provides a terminal device, including:

存储有可执行程序代码的存储器;a memory in which executable program code is stored;

与所述存储器耦合的处理器;a processor coupled to the memory;

所述处理器调用所述存储器中存储的所述可执行程序代码,执行如本发明实施例第一方面中所描述的部分或全部步骤。The processor invokes the executable program code stored in the memory to execute some or all of the steps described in the first aspect of the embodiment of the present invention.

第四方面,本发明提供一种计算机存储介质,用于储存为本发明实施例第二方面提供的终端设备所用的计算机软件指令,其包含用于执行上述方面所设计的程序。In a fourth aspect, the present invention provides a computer storage medium for storing computer software instructions used for the terminal device provided in the second aspect of the embodiments of the present invention, which includes a program designed to execute the above aspect.

在本方案中,在第一终端设备进行数据备份之前,第一终端设备先确定重要优先级大于或等于预设优先级的第一应用,然后再备份第一应用的数据,最后再将备份好的第一应用的数据传送给第二终端设备,这样可避免旧设备将某些用户不想搬到新设备上的应用的数据迁移到新设备上,而给新手机带来不必要的内存占用问题。In this solution, before the first terminal device performs data backup, the first terminal device first determines the first application whose important priority is greater than or equal to the preset priority, then backs up the data of the first application, and finally backs up the first application. The data of the first application is transferred to the second terminal device, which can avoid the old device from migrating the data of some applications that users do not want to move to the new device to the new device, which will cause unnecessary memory occupation problems for the new mobile phone. .

本发明的这些方面或其他方面在以下实施例的描述中会更加简明易懂。These and other aspects of the invention will be more clearly understood from the description of the following embodiments.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

图1为本发明实施例提供的一种通信系统的示意图;1 is a schematic diagram of a communication system according to an embodiment of the present invention;

图2为本发明第一实施例提供的一种数据迁移方法的流程示意图;FIG. 2 is a schematic flowchart of a data migration method provided by the first embodiment of the present invention;

图3为本发明第二实施例提供的一种数据迁移方法的流程示意图;3 is a schematic flowchart of a data migration method according to a second embodiment of the present invention;

图4为本发明第一实施例提供的一种终端设备的结构示意图;FIG. 4 is a schematic structural diagram of a terminal device according to the first embodiment of the present invention;

图5为本发明第二实施例提供的一种终端设备的结构示意图;FIG. 5 is a schematic structural diagram of a terminal device according to a second embodiment of the present invention;

图6为本发明第三实施例提供的一种终端设备的结构示意图。FIG. 6 is a schematic structural diagram of a terminal device according to a third embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only Embodiments are part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

以下分别进行详细说明。Each of them will be described in detail below.

本发明的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" in the description and claims of the present invention and the accompanying drawings are used to distinguish different objects, rather than to describe a specific order. . Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

以下,对本申请中的部分用语进行解释说明,以便于本领域技术人员理解。Hereinafter, some terms in the present application will be explained so as to facilitate the understanding of those skilled in the art.

1)、终端设备,又称之为用户设备(User Equipment,UE),是一种向用户提供语音和/或数据连通性的设备,例如,具有无线连接功能的手持式设备、车载设备等。常见的终端例如包括:手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(mobile internetdevice,MID)、可穿戴设备,例如智能手表、智能手环、计步器等。1) Terminal equipment, also known as User Equipment (UE), is a device that provides voice and/or data connectivity to users, for example, a handheld device with a wireless connection function, a vehicle-mounted device, and the like. Common terminals include, for example, mobile phones, tablet computers, notebook computers, handheld computers, mobile internet devices (mobile internet devices, MIDs), wearable devices, such as smart watches, smart bracelets, and pedometers.

2)热点是指把终端设备的接收GPRS、3G、4G或5G信号转化为WIFI信号再发出去,这样终端设备就成了一个WIFI热点。能够建立热点的终端设备要求必须具有无线接入点(Access point,AP)功能。2) Hotspot refers to converting the GPRS, 3G, 4G or 5G signal received by the terminal device into a WIFI signal and then sending it out, so that the terminal device becomes a WIFI hotspot. A terminal device capable of establishing a hotspot must have a wireless access point (Access point, AP) function.

3)数据集又称为资料集、数据集合或资料集合,是一种由数据所组成的集合。3) Data set, also known as data set, data set or data set, is a collection composed of data.

4)线程,有时被称为轻量级进程(Lightweight Process,LWP),是程序执行流的最小单元。4) A thread, sometimes called a Lightweight Process (LWP), is the smallest unit of program execution flow.

5)串行执行指定是动作A与动作B是先后执行关系,比如,先执行动作A再执行动作B,或者,先执行动作B再执行动作A。5) Serial execution specifies that action A and action B are executed in sequence, for example, action A is executed first and then action B is executed, or, action B is executed first and then action A is executed.

6)并行执行是在两条线程上分别执行动作A与动作B,比如,在第一线程上执行动作A,在第二线程上执行动作B,二者可以是同时进行的,也可以是在执行一个动作的过程中执行另一动作。6) Parallel execution is to execute action A and action B on two threads respectively. For example, action A is executed on the first thread and action B is executed on the second thread. Execute one action while another action is being executed.

7)、“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。7), "multiple" refers to two or more. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the associated objects are an "or" relationship.

下面结合附图对本申请的实施例进行描述。The embodiments of the present application will be described below with reference to the accompanying drawings.

请参阅图1,图1是本发明实施例公开的一种通信系统的示意图。图1所示的通信系统包括第一终端设备110和第二终端设备120,其中,第一终端设备110通过扫描第二终端设备120的二维码,以连接第二终端设备120建立的热点,上述二维码是基于热点名称和热点连接密码生成的;第一终端设备110备份第一应用的数据,以得到第一数据集,以及将第一数据集传送给第二终端设备120,第一应用的重要优先级大于或等于预设优先级,这样可避免旧设备将某些用户不想搬到新设备上的应用的数据迁移到新设备上,而给新手机带来不必要的内存占用问题。Please refer to FIG. 1. FIG. 1 is a schematic diagram of a communication system disclosed in an embodiment of the present invention. The communication system shown in FIG. 1 includes a first terminal device 110 and a second terminal device 120, wherein the first terminal device 110 scans the two-dimensional code of the second terminal device 120 to connect to the hotspot established by the second terminal device 120, The above two-dimensional code is generated based on the hotspot name and the hotspot connection password; the first terminal device 110 backs up the data of the first application to obtain the first data set, and transmits the first data set to the second terminal device 120, the first The important priority of the application is greater than or equal to the preset priority, which can prevent the old device from migrating the data of some applications that the user does not want to move to the new device to the new device, which will cause unnecessary memory usage problems on the new phone .

请参见图2,图2为本发明实施例提供的一种数据迁移方法的流程示意图,包括以下步骤:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of a data migration method provided by an embodiment of the present invention, including the following steps:

S201、第一终端设备通过扫描第二终端设备的二维码,以连接所述第二终端设备建立的热点,所述二维码是基于所述热点名称和所述热点连接密码生成的。S201. The first terminal device scans a two-dimensional code of the second terminal device to connect to a hotspot established by the second terminal device, where the two-dimensional code is generated based on the hotspot name and the hotspot connection password.

S202、所述第一终端设备备份第一应用的数据,以得到第一数据集,以及将所述第一数据集传送给所述第二终端设备,所述第一应用的重要优先级大于或等于预设优先级。S202. The first terminal device backs up the data of the first application to obtain a first data set, and transmits the first data set to the second terminal device, where the important priority of the first application is greater than or equal to the preset priority.

其中,上述二维码是第二终端设备在建立热点之后,自行根据热点名称和热点连接密码生成的。The above two-dimensional code is generated by the second terminal device according to the hotspot name and the hotspot connection password by itself after establishing the hotspot.

其中,预设优先级可以是优先级1、优先级2、优先级3等等。其中,优先级1>优先级2>优先级3。The preset priority may be priority 1, priority 2, priority 3, and so on. Among them, priority 1 > priority 2 > priority 3.

可选地,应用的重要优先级是用户自定义的,或是所述第一终端设备自定义的,或是所述第一终端设备基于应用的使用频率和/或关联应用的数据的内容确定的(比如,使用频率越高重要优先级越大,比如使用频率超过80次重要优先级为优先级1,使用频率在40-80重要优先级为优先级2,使用频率小于40重要优先级为优先级3,另外,关联应用的数据内容涉及工作、行程、记事等方面的重要优先级越大。)。Optionally, the important priority of the application is user-defined, or customized by the first terminal device, or determined by the first terminal device based on the usage frequency of the application and/or the content of the data associated with the application. (For example, the higher the frequency of use, the greater the priority. For example, if the frequency of use is more than 80 times, the priority is priority 1, the frequency of use is 40-80, the priority is priority 2, and the frequency of use is less than 40. The priority is Priority 3, in addition, the data content of the associated application involves work, itinerary, notes, etc., the greater the priority.).

可选地,在备份所述第一应用的数据的过程中,所述第一终端设备备份第二应用的数据,以得到第二数据集,以及将所述第二数据集传送给网络服务器,所述第二应用的重要优先级小于所述预设优先级。Optionally, in the process of backing up the data of the first application, the first terminal device backs up the data of the second application to obtain a second data set, and transmits the second data set to a network server, The important priority of the second application is lower than the preset priority.

由于第一终端设备只是将第一终端设备中的部分应用的数据传送给第二终端设备,为了方便后续用户使用未传送的这些应用,第一终端设备将未传送给第二终端设备的这些应用的数据备份到网络服务器中。Since the first terminal device only transmits data of some applications in the first terminal device to the second terminal device, in order to facilitate subsequent users to use these applications that have not been transmitted, the first terminal device will not transmit these applications to the second terminal device. data is backed up to a network server.

可选地,所述第一数据集的传送和第二数据集的传送是并行执行的。Optionally, the transfer of the first data set and the transfer of the second data set are performed in parallel.

可选地,所述第一应用的数量为N时,所述N为大于1的整数,所述第一终端设备备份所述第一应用的数据,包括:Optionally, when the number of the first applications is N, the N is an integer greater than 1, and the first terminal device backs up the data of the first application, including:

若所述N大于或等于M,所述第一终端设备并行备份所述N个第一应用中的M个第一应用的数据,所述M为大于1的整数,所述M个第一应用的使用频率高于所述N个第一应用中除了所述M个第一应用之外的任一第一应用的使用频率;在第一应用i的数据备份完成后,所述第一终端设备在备份所述第一应用i的线程上备份第一应用j的数据,所述第一应用i为所述M个第一应用中的其中一个第一应用,直至所述N个第一应用的数据备份完成,所述第一应用j的使用频率高于所述N-M个第一应用中除了所述第一应用j之外的任一第一应用的使用频率;若所述N小于所述M,所述第一终端设备并行备份所述N个第一应用的数据。If the N is greater than or equal to M, the first terminal device concurrently backs up data of M first applications among the N first applications, where M is an integer greater than 1, and the M first applications The frequency of use of the first application is higher than the frequency of use of any first application except the M first applications in the N first applications; after the data backup of the first application i is completed, the first terminal device Back up the data of the first application j on the thread that backs up the first application i, where the first application i is one of the M first applications, until the first application of the N first applications After the data backup is completed, the usage frequency of the first application j is higher than the usage frequency of any first application except the first application j among the N-M first applications; if the N is less than the M , the first terminal device backs up the data of the N first applications in parallel.

举例来说,假设N=5,M=3,5个第一应用的使用频率顺序有:第一应用1使用频率>第一应用2的使用频率>第一应用3的使用频率>第一应用4的使用频率>第一应用5的使用频率,第一终端设备在3条线程上并行备份第一应用1、第一应用2和第一应用3,在第一应用1的数据备份完成后,第一终端设备在备份第一应用1的线程上备份第一应用4,以此类推,直至这5个第一应用的数据都备份完成。For example, assuming N=5, M=3, the order of the usage frequencies of the 5 first applications is: the usage frequency of the first application 1 > the usage frequency of the first application 2 > the usage frequency of the first application 3 > the first application The usage frequency of 4 > the usage frequency of the first application 5. The first terminal device backs up the first application 1, the first application 2 and the first application 3 in parallel on three threads. After the data backup of the first application 1 is completed, The first terminal device backs up the first application 4 on the thread that backs up the first application 1, and so on, until the data of the five first applications are backed up.

可选地,所述第一应用的数量为N时,所述N为大于1的整数,所述第一终端设备备份所述第一应用的数据,包括:Optionally, when the number of the first applications is N, the N is an integer greater than 1, and the first terminal device backs up the data of the first application, including:

若所述N大于或等于w,所述第一终端设备并行备份所述N个第一应用中的任意w个第一应用的数据,所述w为大于1的整数;在第一应用j的数据备份完成后,所述第一终端设备在备份所述第一应用j的线程上备份第一应用k的数据,直至所述N个第一应用的数据备份完成,所述第一应用j为所述w个第一应用中的其中一个第一应用,所述第一应用k为所述N个第一应用中除了所述w个第一应用之外的任一第一应用;若所述N小于所述w,所述第一终端设备并行备份所述N个第一应用的数据。If the N is greater than or equal to w, the first terminal device parallelly backs up data of any w of the N first applications, where w is an integer greater than 1; After the data backup is completed, the first terminal device backs up the data of the first application k on the thread that backs up the first application j, until the data backup of the N first applications is completed, and the first application j is: One of the first applications among the w first applications, and the first application k is any first application except the w first applications among the N first applications; if the N is less than the w, and the first terminal device backs up the data of the N first applications in parallel.

举例来说,假设N=10,w=4,第一终端设备在4条线程上并行备份10个第一应用中的任意4个第一应用的数据,在这4个第一应用的其中一个应用的数据备份完成后,第一终端设备在备份这个其中一个应用的线程上备份除了这4个第一应用之外的任一第一应用的数据,以此类推,直到这10个第一应用的数据全部备份完成。For example, assuming N=10, w=4, the first terminal device parallelly backs up the data of any 4 first applications among the 10 first applications on 4 threads, and in one of the 4 first applications After the data backup of the application is completed, the first terminal device backs up the data of any first application except the 4 first applications on the thread of backing up one of the applications, and so on, until the 10 first applications All data is backed up.

可选地,所述第一应用的数量为N时,所述N为大于1的整数,所述第一终端设备备份所述第一应用的数据,包括:Optionally, when the number of the first applications is N, the N is an integer greater than 1, and the first terminal device backs up the data of the first application, including:

若所述N大于或等于W,所述第一终端设备并行备份所述N个第一应用中的W个第一应用的数据,所述W为大于1的整数,所述W个第一应用最近一次的使用时间晚于所述N个第一应用中除了所述W个第一应用之外的任一第一应用最近一次的使用时间;If the N is greater than or equal to W, the first terminal device concurrently backs up data of W first applications among the N first applications, where W is an integer greater than 1, and the W first applications The most recent use time is later than the most recent use time of any first application in the N first applications except the W first applications;

在第一应用g的数据备份完成后,所述第一终端设备在备份所述第一应用g的线程上备份第一应用h的数据,直至所述N个第一应用的数据备份完成,所述第一应用g为所述W个第一应用中的其中一个第一应用,所述第一应用h最近一次的使用时间晚于所述N-W个第一应用中除了所述第一应用h之外的任一第一应用最近一次的使用时间;若所述N小于所述W,所述第一终端设备并行备份所述N个第一应用的数据。After the data backup of the first application g is completed, the first terminal device backs up the data of the first application h on the thread that backs up the first application g, until the data backup of the N first applications is completed, so The first application g is one of the first applications among the W first applications, and the most recent use time of the first application h is later than that of the N-W first applications except the first application h. The latest use time of any first application other than the first application; if the N is less than the W, the first terminal device backs up the data of the N first applications in parallel.

需要说明的是,假设第一时间为16年9月10日23:20,第二时间为16年9月10日21:20,那么第一时间晚于第二时间。另外,上述进一步限定备份第一应用数据的具体实现过程,同样也适用于备份第二应用的数据,在此不再叙述。It should be noted that, if the first time is 23:20 on September 10, 2016, and the second time is 21:20 on September 10, 2016, then the first time is later than the second time. In addition, the specific implementation process for backing up the data of the first application is further defined above, and is also applicable to backing up the data of the second application, which will not be described here.

需要说明的是,当第一应用为N个时,上述第一数据集对应有N个,N个第一数据集与N个第一应用一一对应,那么第一终端设备向第二终端设备传送的第一数据集对应为N个。另外,上述备份第一应用的数据的具体实施方式,同样适用于备份第二应用的数据,在此不再叙述。It should be noted that, when there are N first applications, there are N corresponding first data sets, and the N first data sets are in one-to-one correspondence with N first applications, then the first terminal device sends data to the second terminal device. The number of first data sets transmitted corresponds to N. In addition, the above-mentioned specific implementation manner of backing up the data of the first application is also applicable to backing up the data of the second application, and will not be described here.

本发明实施例还提供了另一更为详细的方法流程,如图3所示,包括:The embodiment of the present invention also provides another more detailed method flow, as shown in FIG. 3 , including:

S301、第一终端设备通过扫描第二终端设备的二维码,以连接所述第二终端设备建立的热点,所述二维码是基于所述热点名称和所述热点连接密码生成的。S301. The first terminal device scans a two-dimensional code of the second terminal device to connect to a hotspot established by the second terminal device, where the two-dimensional code is generated based on the hotspot name and the hotspot connection password.

S302、所述第一终端设备确定第一应用,所述第一应用的重要优先级大于或等于预设优先级。S302. The first terminal device determines a first application, where an important priority of the first application is greater than or equal to a preset priority.

S303、若所述第一应用的数量为N时,所述N为大于1的整数,所述第一终端设备确定所述N是否大于M,所述M为大于1的整数。S303. If the number of the first applications is N, and the N is an integer greater than 1, the first terminal device determines whether the N is greater than M, and the M is an integer greater than 1.

若是,则执行步骤S304。If yes, step S304 is executed.

若否,则执行步骤S306。If not, step S306 is executed.

S304、所述第一终端设备并行备份所述N个第一应用中的M个第一应用的数据,所述M个第一应用的使用频率高于所述N个第一应用中除了所述M个第一应用之外的任一第一应用的使用频率。S304. The first terminal device backs up the data of M first applications in the N first applications in parallel, and the usage frequency of the M first applications is higher than that of the N first applications except the The usage frequency of any first application other than the M first applications.

S305、在第一应用i的数据备份完成后,所述第一终端设备在备份所述第一应用i的线程上备份第一应用j的数据,直至所述N个第一应用的数据备份完成,以得到N个第一数据集,所述第一应用i为所述M个第一应用中的其中一个第一应用,所述第一应用j的使用频率高于所述N-M个第一应用中除了所述第一应用j之外的任一第一应用的使用频率。S305. After the data backup of the first application i is completed, the first terminal device backs up the data of the first application j on the thread that backs up the first application i, until the data backup of the N first applications is completed , to obtain N first data sets, the first application i is one of the M first applications, and the use frequency of the first application j is higher than the N-M first applications The usage frequency of any first application except the first application j in .

S306、所述第一终端设备并行备份所述N个第一应用的数据,以得到N个第一数据集。S306. The first terminal device backs up the data of the N first applications in parallel to obtain N first data sets.

S307、所述第一终端设备将所述N个第一数据集传送给所述第二终端设备。S307. The first terminal device transmits the N first data sets to the second terminal device.

S308、在备份所述第一应用的数据的过程中,所述第一终端设备备份第二应用的数据,以得到第二数据集。S308. During the process of backing up the data of the first application, the first terminal device backs up the data of the second application to obtain a second data set.

S309、所述第一终端设备将所述第二数据集传送给网络服务器,所述第二应用的重要优先级小于所述预设优先级。S309: The first terminal device transmits the second data set to the network server, where the important priority of the second application is lower than the preset priority.

需要说明的是,图3所示的方法的各个步骤的具体实现过程可参见上述方法所述的具体实现过程,在此不再叙述。It should be noted that, for the specific implementation process of each step of the method shown in FIG. 3 , reference may be made to the specific implementation process described in the above method, which will not be described here.

本发明实施例还提供了一种终端设备400,如图4所示,包括:An embodiment of the present invention further provides a terminal device 400, as shown in FIG. 4, including:

热点连接模块401,用于通过扫描第二终端设备的二维码,以连接所述第二终端设备建立的热点,所述二维码是基于所述热点名称和所述热点连接密码生成的;A hotspot connection module 401, configured to connect to a hotspot established by the second terminal device by scanning a two-dimensional code of the second terminal device, the two-dimensional code is generated based on the hotspot name and the hotspot connection password;

数据备份模块402,用于备份第一应用的数据,以得到第一数据集;A data backup module 402, configured to back up the data of the first application to obtain the first data set;

数据传送模块403,用于将所述第一数据集传送给所述第二终端设备,所述第一应用的重要优先级大于或等于预设优先级。A data transmission module 403, configured to transmit the first data set to the second terminal device, where the important priority of the first application is greater than or equal to a preset priority.

可选地,所述数据备份模块402,还用于在备份所述第一应用的数据的过程中,所述第一终端设备备份第二应用的数据,以得到第二数据集;Optionally, the data backup module 402 is further configured to, in the process of backing up the data of the first application, the first terminal device backing up the data of the second application to obtain a second data set;

所述数据传送模块403,还用于将所述第二数据集传送给网络服务器,所述第二应用的重要优先级小于所述预设优先级。The data transmission module 403 is further configured to transmit the second data set to a network server, where the important priority of the second application is lower than the preset priority.

可选地,所述第一数据集的传送和第二数据集的传送是并行执行的。Optionally, the transfer of the first data set and the transfer of the second data set are performed in parallel.

可选地,应用的重要优先级是用户自定义的,或是所述第一终端设备自定义的,或是所述第一终端设备基于应用的使用频率和/或关联应用的数据的内容确定的。Optionally, the important priority of the application is user-defined, or customized by the first terminal device, or determined by the first terminal device based on the usage frequency of the application and/or the content of the data associated with the application. of.

可选地,所述第一应用的数量为N时,所述N为大于1的整数,所述数据备份模块402具体用于:Optionally, when the number of the first applications is N, the N is an integer greater than 1, and the data backup module 402 is specifically configured to:

若所述N大于或等于M,并行备份所述N个第一应用中的M个第一应用的数据,所述M为大于1的整数,所述M个第一应用的使用频率高于所述N个第一应用中除了所述M个第一应用之外的任一第一应用的使用频率;If the N is greater than or equal to M, backup data of M first applications in the N first applications in parallel, where M is an integer greater than 1, and the M first applications are used more frequently than all the first applications. the usage frequency of any first application except the M first applications among the N first applications;

在第一应用i的数据备份完成后,备份所述第一应用i的线程上备份第一应用j的数据,直至所述N个第一应用的数据备份完成,所述第一应用i为所述M个第一应用中的其中一个第一应用,所述第一应用j的使用频率高于所述N-M个第一应用中除了所述第一应用j之外的任一第一应用的使用频率;After the data backup of the first application i is completed, the data of the first application j is backed up on the thread of the first application i, until the data backup of the N first applications is completed, and the first application i is the One of the first applications in the M first applications, the use frequency of the first application j is higher than the use of any first application except the first application j in the N-M first applications frequency;

若所述N小于所述M,并行备份所述N个第一应用的数据。If the N is less than the M, the data of the N first applications are backed up in parallel.

需要说明的是,上述各模块(热点连接模块401、数据备份模块402以及数据传送模块403)用于执行上述方法的相关步骤。It should be noted that the above modules (the hotspot connection module 401 , the data backup module 402 and the data transmission module 403 ) are used to execute the relevant steps of the above method.

在本实施例中,终端设备400是以模块的形式来呈现。这里的“模块”可以指特定应用集成电路(application-specific integrated circuit,ASIC),执行一个或多个软件或固件程序的处理器和存储器,集成逻辑电路,和/或其他可以提供上述功能的器件。此外,以上热点连接模块401、数据备份模块402以及数据传送模块403可通过图5所示的终端设备的处理器501来实现。In this embodiment, the terminal device 400 is presented in the form of a module. "Module" herein may refer to an application-specific integrated circuit (ASIC), a processor and memory executing one or more software or firmware programs, an integrated logic circuit, and/or other devices that may provide the above-described functions . In addition, the above hotspot connection module 401 , data backup module 402 and data transmission module 403 can be implemented by theprocessor 501 of the terminal device shown in FIG. 5 .

如图5所示,终端设备500可以以图5中的结构来实现,该终端设备500包括至少一个处理器501,至少一个存储器502以及至少一个通信接口503。所述处理器501、所述存储器502和所述通信接口503通过所述通信总线连接并完成相互间的通信。As shown in FIG. 5 , theterminal device 500 can be implemented with the structure in FIG. 5 , theterminal device 500 includes at least oneprocessor 501 , at least one memory 502 and at least onecommunication interface 503 . Theprocessor 501, the memory 502 and thecommunication interface 503 are connected through the communication bus and complete the communication with each other.

处理器501可以是通用中央处理器(CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制以上方案程序执行的集成电路。Theprocessor 501 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the programs of the above solutions.

通信接口503,用于与其他设备或通信网络通信,如以太网,无线接入网(RAN),无线局域网(Wireless Local Area Networks,WLAN)等。Thecommunication interface 503 is used to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (Wireless Local Area Networks, WLAN).

存储器502可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(ElectricallyErasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。Memory 502 may be read-only memory (ROM) or other type of static storage device that can store static information and instructions, random access memory (RAM), or other type of static storage device that can store information and instructions The dynamic storage device can also be an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical disk storage, optical disk storage ( including compact discs, laser discs, compact discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or capable of carrying or storing desired program code in the form of instructions or data structures and capable of being stored by a computer any other medium taken, but not limited to this. The memory can exist independently and be connected to the processor through a bus. The memory can also be integrated with the processor.

其中,所述存储器502用于存储执行以上方案的应用程序代码,并由处理器501来控制执行。所述处理器501用于执行所述存储器502中存储的应用程序代码。Wherein, the memory 502 is used for storing the application code for executing the above solution, and the execution is controlled by theprocessor 501 . Theprocessor 501 is configured to execute the application code stored in the memory 502 .

存储器502存储的代码可执行以上提供的终端设备执行的上述数据迁移方法,比如,第一终端设备通过扫描第二终端设备的二维码,以连接所述第二终端设备建立的热点,所述二维码是基于所述热点名称和所述热点连接密码生成的;所述第一终端设备备份第一应用的数据,以得到第一数据集,以及将所述第一数据集传送给所述第二终端设备,所述第一应用的重要优先级大于或等于预设优先级。The code stored in the memory 502 can execute the above-mentioned data migration method performed by the terminal device provided above. For example, the first terminal device scans the QR code of the second terminal device to connect to the hotspot established by the second terminal device, and the The two-dimensional code is generated based on the hotspot name and the hotspot connection password; the first terminal device backs up the data of the first application to obtain a first data set, and transmits the first data set to the For the second terminal device, the important priority of the first application is greater than or equal to a preset priority.

本发明实施例还提供了一个更为具体的应用场景,如下:上述终端设备为手机,下面结合图6对手机的各个构成部件进行具体的介绍:The embodiment of the present invention also provides a more specific application scenario, as follows: the above-mentioned terminal device is a mobile phone, and each component of the mobile phone is specifically introduced below with reference to FIG. 6 :

RF电路610可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器680处理;另外,将设计上行的数据发送给基站。通常,RF电路610包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low NoiseAmplifier,LNA)、双工器等。此外,RF电路610还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(GlobalSystem of Mobile communication,GSM)、通用分组无线服务(General Packet RadioService,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。TheRF circuit 610 can be used for receiving and sending signals during sending and receiving information or during a call. In particular, after receiving the downlink information of the base station, it is processed by theprocessor 680; in addition, the designed uplink data is sent to the base station. Typically, theRF circuit 610 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition,RF circuitry 610 may communicate with networks and other devices via wireless communications. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access) , CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (Short Messaging Service, SMS) and the like.

存储器620可用于存储软件程序以及模块,处理器680通过运行存储在存储器620的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器620可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如数据备份功能、数据集传送功能、二维码扫描功能)等;存储数据区可存储根据手机的使用所创建的数据(比如备份的第一数据集和第二数据集,以及确定的第一应用和第二应用的重要优先级)等。此外,存储器620可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Thememory 620 can be used to store software programs and modules, and theprocessor 680 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in thememory 620 . Thememory 620 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function (such as a data backup function, a data set transfer function, a two-dimensional code scanning function), etc.; The storage data area may store data created according to the use of the mobile phone (such as the first data set and the second data set backed up, and the determined important priorities of the first application and the second application) and the like. Additionally,memory 620 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

输入单元630可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元630可包括触控面板631、其他输入设备632。触控面板631,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板631上或在触控面板631附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板631可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器580,并能接收处理器680发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板631。除以了触控面板631,输入单元630还可以包括其他输入设备632。具体地,其他输入设备632可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的至少一种。Theinput unit 630 may be used for receiving inputted numerical or character information, and generating key signal input related to user setting and function control of the mobile phone. Specifically, theinput unit 630 may include atouch panel 631 andother input devices 632 . Thetouch panel 631, also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable object or attachment on or near the touch panel 631). operation), and drive the corresponding connection device according to the preset program. Optionally, thetouch panel 631 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 580, and can receive the command sent by theprocessor 680 and execute it. In addition, thetouch panel 631 can be realized by various types of resistive, capacitive, infrared, and surface acoustic waves. Besides thetouch panel 631 , theinput unit 630 may further includeother input devices 632 . Specifically,other input devices 632 may include, but are not limited to, at least one of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.

显示单元640可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元640可包括显示面板641,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板641。进一步的,触控面板631可覆盖显示面板641,当触控面板631检测到在其上或附近的触摸操作后,传送给处理器580以确定触摸事件的类型,随后处理器680根据触摸事件的类型在显示面板641上提供相应的视觉输出。虽然在图6中,触控面板631与显示面板641是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板631与显示面板641集成而实现手机的输入和输出功能。Thedisplay unit 640 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. Thedisplay unit 640 may include adisplay panel 641. Optionally, thedisplay panel 641 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. Further, thetouch panel 631 can cover thedisplay panel 641, and when thetouch panel 631 detects a touch operation on or near it, it transmits it to the processor 580 to determine the type of the touch event, and then theprocessor 680 determines the type of the touch event according to the touch event. Type provides corresponding visual output ondisplay panel 641 . Although in FIG. 6, thetouch panel 631 and thedisplay panel 641 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, thetouch panel 631 and thedisplay panel 641 can be integrated to form Realize the input and output functions of the mobile phone.

手机还可包括至少一种传感器650,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板641的亮度,接近传感器可在手机移动到耳边时,关闭显示面板641和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The cell phone may also include at least onesensor 650, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of thedisplay panel 641 according to the brightness of the ambient light, and the proximity sensor may turn off thedisplay panel 641 and/or when the mobile phone is moved to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary. games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. Repeat.

音频电路660、扬声器661,传声器662可提供用户与手机之间的音频接口。音频电路660可将接收到的音频数据转换后的电信号,传输到扬声器661,由扬声器661转换为声音信号输出;另一方面,传声器662将收集的声音信号转换为电信号,由音频电路660接收后转换为音频数据,再将音频数据输出处理器680处理后,经RF电路610以发送给比如另一手机,或者将音频数据输出至存储器620以便进一步处理。Theaudio circuit 660, the speaker 661, and the microphone 662 can provide an audio interface between the user and the mobile phone. Theaudio circuit 660 can transmit the received audio data converted electrical signal to the speaker 661, and the speaker 661 converts it into a sound signal for output; on the other hand, the microphone 662 converts the collected sound signal into an electrical signal, which is converted by theaudio circuit 660 After receiving, it is converted into audio data, and then the audio data is output to theprocessor 680 for processing, and then sent to, for example, another mobile phone through theRF circuit 610, or the audio data is output to thememory 620 for further processing.

WiFi属于短距离无线传输技术,手机通过WiFi模块670可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了WiFi模块670,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages, and access streaming media through theWiFi module 670. It provides users with wireless broadband Internet access. Although FIG. 6 shows theWiFi module 670, it can be understood that it is not a necessary component of the mobile phone, and can be completely omitted as required within the scope of not changing the essence of the invention.

处理器680是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器620内的软件程序和/或模块,以及调用存储在存储器620内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器680可包括一个或多个处理单元;优选的,处理器680可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器680中。Theprocessor 680 is the control center of the mobile phone, using various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in thememory 620, and calling the data stored in thememory 620. Various functions of the mobile phone and processing data, so as to monitor the mobile phone as a whole. Optionally, theprocessor 680 may include one or more processing units; preferably, theprocessor 680 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc. , the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into theprocessor 680 .

手机还包括给各个部件供电的电源690(比如电池),优选的,电源可以通过电源管理系统与处理器680逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 690 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to theprocessor 680 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.

尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, and the like, which will not be repeated here.

前述实施例中,各步骤方法流程可以基于图6所示的终端设备的结构实现。In the foregoing embodiments, the method flow of each step may be implemented based on the structure of the terminal device shown in FIG. 6 .

本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种数据迁移方法的部分或全部步骤。Embodiments of the present invention further provide a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program includes part or all of the steps of any of the data migration methods described in the above method embodiments.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. As in accordance with the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a computer-readable memory. Based on such understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, Several instructions are included to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: RAM), magnetic disk or optical disk, etc.

以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上上述,本说明书内容不应理解为对本发明的限制。The embodiments of the present invention have been introduced in detail above, and specific examples are used to illustrate the principles and implementations of the present invention. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present invention; at the same time, for Persons of ordinary skill in the art, according to the idea of the present invention, will have changes in the specific embodiments and application scope. To sum up, the content of this description should not be construed as a limitation of the present invention.

Claims (7)

the first terminal device backups data of a first application to obtain a first data set, wherein when the number of the first applications is N, the N is an integer greater than 1; the backing up data of the first application includes: if the N is greater than or equal to M, the first terminal device parallelly backs up data of M first applications in the N first applications, wherein the M is an integer greater than 1, and the use frequency of the M first applications is higher than that of any one first application except the M first applications in the N first applications; after the data backup of a first application i is completed, the first terminal device backups the data of a first application j on a thread for backing up the first application i until the data backup of the N first applications is completed, wherein the first application i is one of the M first applications, and the use frequency of the first application j is higher than that of any one of the N-M first applications except the first application j; if the N is smaller than the M, the first terminal equipment parallelly backs up the data of the N first applications; transmitting the first data set to the second terminal equipment, wherein the importance priority of the first application is greater than or equal to a preset priority;
the data backup module is used for backing up data of the first application to obtain a first data set; when the number of the first applications is N, the N is an integer greater than 1; the backing up data of the first application includes: if the N is greater than or equal to M, the first terminal device parallelly backs up data of M first applications in the N first applications, wherein the M is an integer greater than 1, and the use frequency of the M first applications is higher than that of any one first application except the M first applications in the N first applications; after the data backup of a first application i is completed, the first terminal device backups the data of a first application j on a thread for backing up the first application i until the data backup of the N first applications is completed, wherein the first application i is one of the M first applications, and the use frequency of the first application j is higher than that of any one of the N-M first applications except the first application j; if the N is smaller than the M, the first terminal equipment parallelly backs up the data of the N first applications;
CN201610825482.3A2016-09-142016-09-14Data migration method and terminal equipmentActiveCN106445739B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN201610825482.3ACN106445739B (en)2016-09-142016-09-14Data migration method and terminal equipment
PCT/CN2017/092871WO2018049904A1 (en)2016-09-142017-07-13Data migration method and related devices

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610825482.3ACN106445739B (en)2016-09-142016-09-14Data migration method and terminal equipment

Publications (2)

Publication NumberPublication Date
CN106445739A CN106445739A (en)2017-02-22
CN106445739Btrue CN106445739B (en)2020-01-14

Family

ID=58168330

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610825482.3AActiveCN106445739B (en)2016-09-142016-09-14Data migration method and terminal equipment

Country Status (2)

CountryLink
CN (1)CN106445739B (en)
WO (1)WO2018049904A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106445739B (en)*2016-09-142020-01-14Oppo广东移动通信有限公司Data migration method and terminal equipment
CN109753255A (en)*2017-11-082019-05-14腾讯科技(深圳)有限公司A kind of method, unit and storage medium transmitting data
CN109302698A (en)*2018-08-272019-02-01优视科技新加坡有限公司Near-field Data moving method and its device
EP3885926B1 (en)2020-03-252024-08-28Carrier CorporationFire protection system
CN117675783A (en)*2022-09-082024-03-08华为技术有限公司 Data transmission methods, electronic devices and storage media

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20070011276A1 (en)*2005-07-082007-01-11Cisco Technology, Inc.Apparatus and methods for data tapping in a storage area network
CN105282824A (en)*2014-06-032016-01-27中兴通讯股份有限公司File sharing method based on wireless communication and wireless communication terminal
CN105893173A (en)*2015-12-102016-08-24乐视网信息技术(北京)股份有限公司Caching data processing method and device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101764880B (en)*2009-12-212012-05-30宇龙计算机通信科技(深圳)有限公司Information backup method and terminal
CN102110031A (en)*2011-02-232011-06-29宇龙计算机通信科技(深圳)有限公司Android system-based application program backup and recovery method
US20140068212A1 (en)*2012-09-042014-03-06Microsoft CorporationDevice backups and updates in view of data usage statistics
US10368142B2 (en)*2013-03-142019-07-30Comcast Cable Communications, LlcDelivery of content and priority messages
CN104301344A (en)*2013-07-172015-01-21北京奇虎科技有限公司 File transfer method, terminal and system
CN105138279A (en)*2015-08-032015-12-09深圳市美贝壳科技有限公司Intelligent management method of household equipment data
CN105511985A (en)*2015-12-012016-04-20魅族科技(中国)有限公司Data backup method and terminal
CN106445739B (en)*2016-09-142020-01-14Oppo广东移动通信有限公司Data migration method and terminal equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20070011276A1 (en)*2005-07-082007-01-11Cisco Technology, Inc.Apparatus and methods for data tapping in a storage area network
CN105282824A (en)*2014-06-032016-01-27中兴通讯股份有限公司File sharing method based on wireless communication and wireless communication terminal
CN105893173A (en)*2015-12-102016-08-24乐视网信息技术(北京)股份有限公司Caching data processing method and device

Also Published As

Publication numberPublication date
CN106445739A (en)2017-02-22
WO2018049904A1 (en)2018-03-22

Similar Documents

PublicationPublication DateTitle
CN106502834B (en)Backup method, the apparatus and system of data
CN106507269B (en)Data migration method and terminal equipment
CN106714103B (en) A kind of network positioning method and terminal device
CN106658753B (en)Data migration method and terminal equipment
CN106488391B (en) A data migration method and terminal device
CN106445739B (en)Data migration method and terminal equipment
CN106453511A (en) A data backup method and device
CN106658353A (en) A data migration method and terminal equipment
US10687207B2 (en)Method for data migration and terminal
CN107145386A (en)Data migration method, terminal device and computer-readable recording medium
CN106066769B (en)Mobile terminal processing method and mobile terminal
CN106648976A (en) A data backup method and device
CN106502827A (en) A data backup method and device
CN106714279A (en) A hotspot network switching method and terminal equipment
CN106658705B (en)Network positioning method and terminal equipment
CN106371896A (en) Virtual machine memory configuration method and device, mobile terminal
CN106293407A (en)A kind of image display method and terminal unit
CN106547400A (en)The method of reporting information, device and terminal
CN106790361B (en)Data processing method and device
CN111954193A (en) A Bluetooth device connection detection method, device and mobile terminal
CN106230709B (en)Method and device for distinguishing and synchronizing chat information
CN106254637B (en)Screen-locked magazine picture data packet updating method and terminal equipment
CN111638897B (en) System update method, device, terminal equipment and storage medium
CN106648972A (en)Data backup method and mobile terminal
CN106445841A (en) A data transmission control method and device

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information

Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after:OPPO Guangdong Mobile Communications Co., Ltd.

Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before:Guangdong Opel Mobile Communications Co., Ltd.

CB02Change of applicant information
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp