[go: up one dir, main page]

CN106487878B - Method and terminal for data migration - Google Patents

Method and terminal for data migration Download PDF

Info

Publication number
CN106487878B
CN106487878B CN201610826853.XA CN201610826853A CN106487878B CN 106487878 B CN106487878 B CN 106487878B CN 201610826853 A CN201610826853 A CN 201610826853A CN 106487878 B CN106487878 B CN 106487878B
Authority
CN
China
Prior art keywords
terminal
data
path
private data
unit
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.)
Expired - Fee Related
Application number
CN201610826853.XA
Other languages
Chinese (zh)
Other versions
CN106487878A (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 Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610826853.XA priority Critical patent/CN106487878B/en
Publication of CN106487878A publication Critical patent/CN106487878A/en
Priority to PCT/CN2017/095056 priority patent/WO2018049937A1/en
Application granted granted Critical
Publication of CN106487878B publication Critical patent/CN106487878B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/30Routing of multiclass traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0435Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present invention provides a kind of method of Data Migration and terminals.The described method includes: first terminal determines the data to be transmitted that user chooses;The data to be transmitted are analyzed to determine private data and non-private data;The first terminal sends data transfer request to the second terminal;Receive the first path mark and the second ID of trace route path of the second terminal feedback;The mark of the private data and first path is sent to the second terminal;When the private data is sent, Xiang Suoshu second terminal sends the mark of the non-private data and the second path.To known to, by implementing technical solution provided by the invention, it can identify the private data and non-private data in data to be transmitted, and the private data and non-private data are transmitted respectively so that the private data and non-private data are stored in different paths, to facilitate user management.

Description

一种数据迁移的方法及终端Method and terminal for data migration

技术领域technical field

本发明涉及终端领域,具体涉及了一种数据迁移的方法及终端。The present invention relates to the field of terminals, in particular to a data migration method and terminal.

背景技术Background technique

随着终端(例如智能手机、穿戴式设备、平板电脑等电子设备)的普及,终端逐渐成为人们生活中不可或缺的一部分,以至于人们无论走到哪里都会携带终端。With the popularization of terminals (such as smart phones, wearable devices, tablet computers, and other electronic devices), terminals have gradually become an indispensable part of people's lives, so that people carry terminals wherever they go.

但是随着科技的发展,终端更新的速度很快。当用户入手一款新的终端时,往往为了方便使用,就需要将旧终端里面的数据导入到新终端中。But with the development of technology, the speed of terminal update is very fast. When a user buys a new terminal, it is often necessary to import the data in the old terminal into the new terminal for convenience of use.

需要指出的是,当从旧终端往新终端中导入数据时,新终端一般会将所有接收到的数据存储一个默认的路径下。由于传输的数据中包含隐私数据和非隐私数据,而且隐私数据和非隐私数据的重要性不同,大量的隐私数据和非隐私数据放在一起不方便用户管理。It should be pointed out that when importing data from the old terminal to the new terminal, the new terminal generally stores all the received data in a default path. Since the transmitted data contains private data and non-private data, and the importance of private data and non-private data is different, it is inconvenient for users to manage a large amount of private data and non-private data together.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供了一种数据迁移的方法及终端,能够识别待传输数据中的隐私数据和非隐私数据,并将所述隐私数据和非隐私数据进行分别传输以使得所述隐私数据和非隐私数据存储于不同的路径,从而方便用户管理。Embodiments of the present invention provide a method and terminal for data migration, which can identify private data and non-private data in data to be transmitted, and transmit the private data and non-private data respectively, so that the private data and non-private data are transmitted separately. Private data is stored in different paths to facilitate user management.

本发明实施例第一方面公开了一种数据迁移的方法,所述方法包括:A first aspect of the embodiments of the present invention discloses a data migration method, and the method includes:

第一终端确定用户选中的待传输的数据;The first terminal determines the data to be transmitted selected by the user;

所述第一终端对所述待传输的数据进行分析以确定隐私数据和非隐私数据;The first terminal analyzes the data to be transmitted to determine private data and non-private data;

所述第一终端向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;sending, by the first terminal, a data transmission request to the second terminal, where the data transmission request includes an instruction to establish a first path and a second path;

接收所述第二终端反馈的第一路径标识和第二路径标识;receiving the first path identifier and the second path identifier fed back by the second terminal;

所述第一终端向所述第二终端发送所述隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径下;sending, by the first terminal, the privacy data and the identifier of the first path to the second terminal, so that the second terminal stores the privacy data in a path corresponding to the first path identifier;

当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。When the sending of the private data is completed, send the non-private data and the identifier of the second path to the second terminal, so that the second terminal stores the non-private data in the identifier corresponding to the second path under the path.

本发明实施例第二方面公开了一种终端,所述终端包括:A second aspect of the embodiments of the present invention discloses a terminal, where the terminal includes:

确定单元,用于接收用户选中的待传输的数据;a determining unit, configured to receive the data to be transmitted selected by the user;

分析单元,用于对所述待传输的数据进行分析以确定隐私数据和非隐私数据;an analysis unit, configured to analyze the data to be transmitted to determine private data and non-private data;

发送单元,用于向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;a sending unit, configured to send a data transmission request to the second terminal, where the data transmission request includes an instruction to establish a first path and a second path;

接收单元,用于接收所述第二终端反馈的第一路径标识和第二路径标识;a receiving unit, configured to receive the first path identifier and the second path identifier fed back by the second terminal;

所述发送单元,还用于向所述第二终端发送所述隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径下;The sending unit is further configured to send the privacy data and the identifier of the first path to the second terminal, so that the second terminal stores the privacy data under the path corresponding to the first path identifier;

所述发送单元,还用于当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。The sending unit is further configured to send the non-private data and the identifier of the second path to the second terminal when the private data is sent, so that the second terminal stores the non-private data in a The second path identifies the corresponding path.

本发明第三方面公开了一种终端,所述终端包括:A third aspect of the present invention discloses a terminal, the terminal comprising:

存储有可执行程序代码的存储器;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 the method according to the first aspect.

可以看出,本发明实施例的方案中,第一终端确定用户选中的待传输的数据;所述第一终端对所述待传输的数据进行分析以确定隐私数据和非隐私数据;所述第一终端向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;接收所述第二终端反馈的第一路径标识和第二路径标识;所述第一终端向所述第二终端发送所述隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径下;当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。从而可知,通过实施本发明提供的技术方案,能够识别待传输数据中的隐私数据和非隐私数据,并将所述隐私数据和非隐私数据进行分别传输以使得所述隐私数据和非隐私数据存储于不同的路径,从而方便用户管理。It can be seen that, in the solution of the embodiment of the present invention, the first terminal determines the data to be transmitted selected by the user; the first terminal analyzes the data to be transmitted to determine private data and non-private data; A terminal sends a data transmission request to the second terminal, where the data transmission request includes instructions for establishing a first path and a second path; receives the first path identifier and the second path identifier fed back by the second terminal; The first terminal sends the privacy data and the identifier of the first path to the second terminal, so that the second terminal stores the privacy data under the path corresponding to the identifier of the first path; when the privacy When the data transmission is completed, the non-private data and the identifier of the second path are sent to the second terminal, so that the second terminal stores the non-private data in the path corresponding to the second path identifier. It can be seen that, by implementing the technical solution provided by the present invention, private data and non-private data in the data to be transmitted can be identified, and the private data and non-private data are respectively transmitted so that the private data and non-private data are stored. in different paths, so as to facilitate user management.

附图说明Description of drawings

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

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

图1-b为本发明实施例提供的一种数据迁移系统的网络架构图;1-b is a network architecture diagram of a data migration system according to an embodiment of the present invention;

图1-c为本发明实施例提供的一种数据存储示意表;FIG. 1-c is a schematic diagram of a data storage provided by an embodiment of the present invention;

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

图3为本发明实施例提供的一种终端的结构示意图;3 is a schematic structural diagram of a terminal according to an embodiment of the present invention;

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

图5为本发明实施例提供的一种终端的实体装置结构示意图;FIG. 5 is a schematic structural diagram of a physical device of a terminal according to an embodiment of the present invention;

图6为本发明实施例提供的一种手机的实体装置结构示意图。FIG. 6 is a schematic structural diagram of a physical device of a mobile phone according to an embodiment of the present invention.

具体实施方式Detailed ways

本发明实施例提供了一种数据迁移的方法及终端,能够识别待传输数据中的隐私数据和非隐私数据,并将所述隐私数据和非隐私数据进行分别传输以使得所述隐私数据和非隐私数据存储于不同的路径,从而方便用户管理。Embodiments of the present invention provide a method and terminal for data migration, which can identify private data and non-private data in data to be transmitted, and transmit the private data and non-private data respectively, so that the private data and non-private data are transmitted separately. Private data is stored in different paths to facilitate user management.

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order for those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are of the present invention. Some examples, but not all examples. 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.

本发明说明书、权利要求书和附图中出现的术语“第一”、“第二”和“第三”等是用于区别不同的对象,而并非用于描述特定的顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second" and "third" appearing in the specification, claims and drawings of the present invention 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.

在本发明的一个实施例中公开了一种数据迁移的方法,所述方法包括:第一终端确定用户选中的待传输的数据;所述第一终端对所述待传输的数据进行分析以确定隐私数据和非隐私数据;所述第一终端向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;接收所述第二终端反馈的第一路径标识和第二路径标识;所述第一终端向所述第二终端发送所述隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径下;当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。In an embodiment of the present invention, a method for data migration is disclosed. The method includes: a first terminal determines data to be transmitted selected by a user; the first terminal analyzes the data to be transmitted to determine private data and non-private data; the first terminal sends a data transmission request to the second terminal, and the data transmission request includes an instruction to establish a first path and a second path; a path identifier and a second path identifier; the first terminal sends the privacy data and the identifier of the first path to the second terminal, so that the second terminal stores the privacy data to the first path The identifier corresponds to the path; when the private data is sent, send the non-private data and the identifier of the second path to the second terminal, so that the second terminal stores the non-private data in the The second path identifies the corresponding path.

请参阅图1-a,图1-a是本发明一个实施例提供的一种数据迁移的方法。其中,如图1-a所示,本发明的一个实施例提供的一种数据迁移的方法包括以下内容:Please refer to FIG. 1-a. FIG. 1-a is a data migration method provided by an embodiment of the present invention. Wherein, as shown in FIG. 1-a, a data migration method provided by an embodiment of the present invention includes the following contents:

S101、第一终端确定用户选中的待传输的数据;S101. The first terminal determines the data to be transmitted selected by the user;

可以理解的是,该场景为:用户要将第一终端的数据迁移到第二终端,那么第一终端与第二终端建立连接后,第一终端就要提醒用户选择要传输的数据。It can be understood that the scenario is: the user wants to migrate the data of the first terminal to the second terminal, then after the first terminal establishes a connection with the second terminal, the first terminal will remind the user to select the data to be transmitted.

其中,如图1-b所示,所述第一终端可以通过广域网或者局域网与第二终端建立连接,从而获取第二终端发送的数据传输请求。Wherein, as shown in FIG. 1-b, the first terminal may establish a connection with the second terminal through a wide area network or a local area network, so as to obtain a data transmission request sent by the second terminal.

其中,所述第一终端可以为智能手机、平板电脑、智能穿戴式设备、计算机等电子设备。The first terminal may be an electronic device such as a smart phone, a tablet computer, a smart wearable device, or a computer.

其中,所述第二终端可以为智能手机、平板电脑、智能穿戴式设备、计算机等电子设备。Wherein, the second terminal may be an electronic device such as a smart phone, a tablet computer, a smart wearable device, and a computer.

其中,待传输的数据可以是音视频、图片、文字等信息。The data to be transmitted may be information such as audio and video, pictures, and text.

可以理解的是,第一终端可以遍历所述待传输的数据以确定是否存在重复的数据;若存在重复的数据,则对所述待传输的数据进行去重处理以防止传输重复的信息。It can be understood that, the first terminal may traverse the data to be transmitted to determine whether there is duplicate data; if duplicate data exists, perform deduplication processing on the data to be transmitted to prevent duplicate information from being transmitted.

需要指出的是,第一终端可以根据每份数据的标识去遍历待传输的数据以确定是否存在相同的标识,若存在相同的标识,则说明存在重复的数据。It should be noted that the first terminal can traverse the data to be transmitted according to the identifier of each piece of data to determine whether the same identifier exists, and if the same identifier exists, it means that there is duplicate data.

如图1-c所示,先将待传输的数据进行分类,比如图片类、word类型、视频类。举例来说,可将图片类数据的标识存储于图片类目录下面,然后根据图片类数据的标识对图片类数据进行去重。比如图片类下边的数据标识有12345,556677,8899,12345,那么图片类目录下面存在两个12345的数据标识,说明这两个数据是重复的。当然,去重的过程中可以提示用户是否删除重复的数据,如果不删除的重复的数据,那么建议用户对重复的数据的名称进行重命名。As shown in Figure 1-c, first classify the data to be transmitted, such as picture, word, and video. For example, the identifier of the image data can be stored under the image directory, and then the image data can be deduplicated according to the identifier of the image data. For example, the data IDs under the picture category are 12345, 556677, 8899, 12345, then there are two data IDs of 12345 under the picture category directory, indicating that the two data are duplicated. Of course, the user may be prompted whether to delete the duplicate data during the process of deduplication. If the duplicate data is not deleted, the user is advised to rename the name of the duplicate data.

S102、所述第一终端对所述待传输的数据进行分析以确定隐私数据和非隐私数据;S102, the first terminal analyzes the data to be transmitted to determine private data and non-private data;

可以理解的是,与账号密码相关的数据可认为是隐私数据。另外,隐私数据可以是用户选中的数据类型,比如短信、记事本信息、照片、视频等。It can be understood that the data related to the account password can be regarded as private data. In addition, the private data may be a data type selected by the user, such as text messages, notepad information, photos, videos, and the like.

举例来说,所述第一终端对所述待传输的数据进行分析以确定包含账号信息的数据;将包含所述账号信息的数据设置为隐私数据,以及将未包含所述账号信息的数据设置为非隐私数据。For example, the first terminal analyzes the data to be transmitted to determine data including account information; sets the data including the account information as private data, and sets the data that does not include the account information is non-private data.

S103、所述第一终端向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;S103. The first terminal sends a data transmission request to the second terminal, where the data transmission request includes an instruction to establish a first path and a second path;

其中,第一路径和第二路径不是同一路径。The first path and the second path are not the same path.

S104、接收所述第二终端反馈的第一路径标识和第二路径标识;S104. Receive the first path identifier and the second path identifier fed back by the second terminal;

其中,需要指出的是,如果接收到所述第二终端反馈的第一路径标识和第二路径标识,说明第二终端已经选择了第一存储路径和第二存储路径;第一路径标识与所述第一存储路径对应,其中,第一路径标识可以是第一路径的地址;同理,第二路径标识与所述第二存储路径对应,其中,第二路径标识可以是第二路径的地址;It should be noted that if the first path identifier and the second path identifier fed back by the second terminal are received, it means that the second terminal has selected the first storage path and the second storage path; the first path identifier is the same as the second path identifier. corresponds to the first storage path, wherein the first path identifier may be the address of the first path; similarly, the second path identifier corresponds to the second storage path, wherein the second path identifier may be the address of the second path ;

S105、所述第一终端向所述第二终端发送所述隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径下;S105, the first terminal sends the privacy data and the identifier of the first path to the second terminal, so that the second terminal stores the privacy data in the path corresponding to the first path identifier;

可以理解的是,为了保证隐私数据在发送的过程中不泄露,可以将隐私数据进行加密进行发送。It can be understood that, in order to ensure that the private data is not leaked during the sending process, the private data can be encrypted and sent.

举例来说,所述第一终端与所述第二终端进行交互以确定对称密钥;所述第一终端利用所述对称密钥对所述隐私数据进行加密;所述第一终端向所述第二终端发送加密的隐私数据和所述第一路径的标识。其中,需要指出的是,第二终端接收到加密的隐私数据后,将该加密的隐私数据存储到第一路径下,顺便也可以将对称密钥也存储在第一路径,以便随时对加密的隐私数据进行解密。For example, the first terminal interacts with the second terminal to determine a symmetric key; the first terminal encrypts the private data by using the symmetric key; the first terminal sends the symmetric key to the The second terminal sends the encrypted privacy data and the identifier of the first path. Among them, it should be pointed out that after receiving the encrypted privacy data, the second terminal stores the encrypted privacy data in the first path. By the way, the symmetric key can also be stored in the first path, so that the encrypted privacy data can be stored in the first path at any time. Decrypt private data.

另外,需要指出的是,所述第一终端向所述第二终端发送所述隐私数据和第一路径的标识之前,还要判断所述加密的隐私数据的大小,如果加密的隐私数据太大,而第二终端目前是移动流量,那么会给第二终端造成较大的消耗,安全起见,还是要提醒用户是否要发送那么的数据。In addition, it should be pointed out that before the first terminal sends the private data and the identifier of the first path to the second terminal, the size of the encrypted private data is also judged. If the encrypted private data is too large , and the second terminal is currently using mobile traffic, which will cause greater consumption to the second terminal. For safety reasons, it is still necessary to remind the user whether to send such data.

具体的,所述第一终端计算所述隐私数据的大小;若所述隐私数据的大小大于预设阈值时,所述第一终端获取所述第二终端的连网方式;若所述第二终端的连网方式为通过移动流量连网时,则向所述用户发出确认是否传输的提示;若接收到确认传输的提示,所述第一终端向所述第二终端发送所述隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储在所述第一路径的标识对应的路径下。Specifically, the first terminal calculates the size of the privacy data; if the size of the privacy data is greater than a preset threshold, the first terminal obtains the networking mode of the second terminal; When the terminal is connected to the Internet through mobile traffic, a prompt to confirm whether to transmit or not is sent to the user; if a prompt to confirm transmission is received, the first terminal sends the privacy data and the data to the second terminal. The identifier of the first path enables the second terminal to store the privacy data in a path corresponding to the identifier of the first path.

S106、当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。S106. When the sending of the private data is completed, send the non-private data and the identifier of the second path to the second terminal, so that the second terminal stores the non-private data in the identifier of the second path under the corresponding path.

可以看出,本发明实施例的方案中,第一终端确定用户选中的待传输的数据;所述第一终端对所述待传输的数据进行分析以确定隐私数据和非隐私数据;所述第一终端向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;接收所述第二终端反馈的第一路径标识和第二路径标识;所述第一终端向所述第二终端发送所述隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径下;当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。从而可知,通过实施本发明提供的技术方案,能够识别待传输数据中的隐私数据和非隐私数据,并将所述隐私数据和非隐私数据进行分别传输以使得所述隐私数据和非隐私数据存储于不同的路径,从而方便用户管理。It can be seen that, in the solution of the embodiment of the present invention, the first terminal determines the data to be transmitted selected by the user; the first terminal analyzes the data to be transmitted to determine private data and non-private data; A terminal sends a data transmission request to the second terminal, where the data transmission request includes instructions for establishing a first path and a second path; receives the first path identifier and the second path identifier fed back by the second terminal; The first terminal sends the privacy data and the identifier of the first path to the second terminal, so that the second terminal stores the privacy data under the path corresponding to the identifier of the first path; when the privacy When the data transmission is completed, the non-private data and the identifier of the second path are sent to the second terminal, so that the second terminal stores the non-private data in the path corresponding to the second path identifier. It can be seen that, by implementing the technical solution provided by the present invention, private data and non-private data in the data to be transmitted can be identified, and the private data and non-private data are respectively transmitted so that the private data and non-private data are stored. in different paths, so as to facilitate user management.

请参阅图2,图2是本发明一个实施例提供的一种数据迁移的方法。其中,如图2所示,本发明的一个实施例提供的一种数据迁移的方法包括以下内容:Please refer to FIG. 2. FIG. 2 is a data migration method provided by an embodiment of the present invention. Wherein, as shown in FIG. 2 , a method for data migration provided by an embodiment of the present invention includes the following contents:

S201、第一终端确定用户选中的待传输的数据;S201. The first terminal determines the data to be transmitted selected by the user;

其中,所述第一终端和所述第二终端可以为智能手机、平板电脑、智能穿戴式设备等电子设备。Wherein, the first terminal and the second terminal may be electronic devices such as a smart phone, a tablet computer, and a smart wearable device.

S202、所述第一终端遍历所述待传输的数据以确定是否存在重复的数据;若存在重复的数据,则对所述待传输的数据进行去重处理;S202, the first terminal traverses the data to be transmitted to determine whether there is duplicate data; if duplicate data exists, deduplicates the data to be transmitted;

S203、所述第一终端对所述待传输的数据进行分析以确定包含账号信息的数据;S203, the first terminal analyzes the data to be transmitted to determine data including account information;

S204、将包含所述账号信息的数据设置为隐私数据,以及将未包含所述账号信息的数据设置为非隐私数据;S204, setting the data including the account information as private data, and setting the data not including the account information as non-privacy data;

S205、所述第一终端与所述第二终端进行交互以确定对称密钥,并利用所述对称密钥对所述隐私数据进行加密;S205, the first terminal interacts with the second terminal to determine a symmetric key, and encrypts the private data by using the symmetric key;

S206、所述第一终端计算所述加密的隐私数据的大小;S206, the first terminal calculates the size of the encrypted private data;

S207、若所述加密的隐私数据的大小大于预设阈值时,所述第一终端获取所述第二终端的连网方式;S207. If the size of the encrypted privacy data is greater than a preset threshold, the first terminal acquires the networking mode of the second terminal;

S208、若所述第二终端的连网方式为通过移动流量连网时,则向所述用户发出确认是否传输的提示;S208. If the network connection mode of the second terminal is to connect to the network through mobile traffic, send a prompt to the user to confirm whether to transmit;

S209、若接收到确认传输的提示,所述第一终端向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;S209. If a prompt for confirming transmission is received, the first terminal sends a data transmission request to the second terminal, where the data transmission request includes an instruction to establish a first path and a second path;

S210、接收所述第二终端反馈的第一路径标识和第二路径标识;S210. Receive the first path identifier and the second path identifier fed back by the second terminal;

S211、所述第一终端向所述第二终端发送所述加密的隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径下;S211. The first terminal sends the encrypted private data and the identifier of the first path to the second terminal, so that the second terminal stores the private data under the path corresponding to the identifier of the first path ;

S212、当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。S212. When the sending of the private data is completed, send the non-private data and the identifier of the second path to the second terminal, so that the second terminal stores the non-private data in the identifier of the second path under the corresponding path.

可以看出,本发明实施例的方案中扩充了待传输数据的去重步骤,从而防止重复传输数据。本发明实施例的方案中还扩充了确认步骤,以防止对移动流量产生较大的消耗。It can be seen that, in the solution of the embodiment of the present invention, the deduplication step of the data to be transmitted is expanded, thereby preventing repeated transmission of data. In the solution of the embodiment of the present invention, a confirmation step is also expanded to prevent a large consumption of mobile traffic.

请参阅图3,图3是本发明的一个实施例提供的一种终端的结构示意图。其中,如图3所示,本发明的一个实施例提供的一种终端300,其中,该终端可以是为智能手机、平板电脑、智能穿戴式设备等电子设备。该终端300包括确定单元301、分析单元302、发送单元303以及接收单元304。Please refer to FIG. 3 , which is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in FIG. 3 , an embodiment of the present invention provides a terminal 300 , where the terminal may be an electronic device such as a smart phone, a tablet computer, and a smart wearable device. The terminal 300 includes a determination unit 301 , an analysis unit 302 , a transmission unit 303 and a reception unit 304 .

确定单元301,用于接收用户选中的待传输的数据;A determination unit 301, configured to receive the data to be transmitted selected by the user;

分析单元302,用于对所述待传输的数据进行分析以确定隐私数据和非隐私数据;an analysis unit 302, configured to analyze the data to be transmitted to determine private data and non-private data;

发送单元303,用于向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;a sending unit 303, configured to send a data transmission request to the second terminal, where the data transmission request includes an instruction to establish a first path and a second path;

接收单元304,用于接收所述第二终端反馈的第一路径标识和第二路径标识;a receiving unit 304, configured to receive the first path identifier and the second path identifier fed back by the second terminal;

发送单元303,还用于向所述第二终端发送所述隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径下;The sending unit 303 is further configured to send the privacy data and the identifier of the first path to the second terminal, so that the second terminal stores the privacy data under the path corresponding to the identifier of the first path;

发送单元303,还用于当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。The sending unit 303 is further configured to send the non-private data and the identifier of the second path to the second terminal when the private data is sent, so that the second terminal stores the non-private data to the second terminal. The second path identifies the corresponding path.

其中,确定单元301、分析单元302、发送单元303以及接收单元304可以用于执行实施例1中步骤S101至S106所述的方法,具体描述详见实施例1 对所述方法的描述,在此不再赘述。The determining unit 301, the analyzing unit 302, the sending unit 303, and the receiving unit 304 may be used to execute the method described in steps S101 to S106 in Embodiment 1. For details, please refer to the description of the method in Embodiment 1, here No longer.

请参阅图4,图4是本发明的一个实施例提供的一种终端的结构示意图。其中,如图4所示,本发明的一个实施例提供的另一种终端400,其中,该终端可以是为智能手机、平板电脑、智能穿戴式设备等电子设备。该终端400 包括确定单元401、分析单元402、发送单元403、接收单元404、加密单元 405、计算单元406、获取单元407、提示单元408、遍历单元409和去重单元 410。Please refer to FIG. 4 , which is a schematic structural diagram of a terminal provided by an embodiment of the present invention. As shown in FIG. 4 , another terminal 400 is provided by an embodiment of the present invention, wherein the terminal may be an electronic device such as a smart phone, a tablet computer, and a smart wearable device. The terminal 400 includes a determination unit 401, an analysis unit 402, a transmission unit 403, a reception unit 404, an encryption unit 405, a calculation unit 406, an acquisition unit 407, a prompt unit 408, a traversal unit 409 and a deduplication unit 410.

确定单元401,用于接收用户选中的待传输的数据;Determining unit 401, configured to receive the data to be transmitted selected by the user;

遍历单元409,用于遍历所述待传输的数据以确定是否存在重复的数据;Traversing unit 409, configured to traverse the data to be transmitted to determine whether there is duplicate data;

去重单元410,用于若存在重复的数据,则对所述待传输的数据进行去重处理;A deduplication unit 410, configured to perform deduplication processing on the data to be transmitted if there is duplicate data;

分析单元402 ,用于对所述待传输的数据进行分析以确定隐私数据和非隐私数据;an analysis unit 402, configured to analyze the data to be transmitted to determine private data and non-private data;

具体的,分析单元402包括分析子单元和设置子单元;Specifically, the analysis unit 402 includes an analysis subunit and a setting subunit;

所述分析子单元,用于对所述待传输的数据进行分析以确定包含账号信息的数据;the analysis subunit, configured to analyze the data to be transmitted to determine data including account information;

所述设置子单元,用于将包含所述账号信息的数据设置为隐私数据,以及将未包含所述账号信息的数据设置为非隐私数据。The setting subunit is configured to set the data containing the account information as private data, and set the data not containing the account information as non-private data.

确定单元401,用于与所述第二终端进行交互以确定对称密钥;a determining unit 401, configured to interact with the second terminal to determine a symmetric key;

加密单元405,用于利用所述对称密钥对所述隐私数据进行加密;an encryption unit 405, configured to encrypt the private data by using the symmetric key;

计算单元406,用于计算所述隐私数据的大小;a calculation unit 406, configured to calculate the size of the privacy data;

获取单元407,用于若所述加密的隐私数据的大小大于预设阈值时,获取所述第二终端的连网方式;an obtaining unit 407, configured to obtain the networking mode of the second terminal if the size of the encrypted privacy data is greater than a preset threshold;

提示单元408,用于若所述第二终端的连网方式为通过移动流量连网时,则向所述用户发出确认是否传输的提示;a prompting unit 408, configured to send a prompt to the user for confirming whether to transmit if the network connection mode of the second terminal is to connect to the Internet through mobile traffic;

发送单元403,具体用于若接收到确认传输的提示,向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;The sending unit 403 is specifically configured to send a data transmission request to the second terminal if a prompt for confirming the transmission is received, where the data transmission request includes an indication of establishing the first path and the second path;

接收单元404,用于接收所述第二终端反馈的第一路径标识和第二路径标识;a receiving unit 404, configured to receive the first path identifier and the second path identifier fed back by the second terminal;

发送单元403,还用于向所述第二终端发送所述加密的隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径下;The sending unit 403 is further configured to send the encrypted privacy data and the identifier of the first path to the second terminal, so that the second terminal stores the privacy data under the path corresponding to the identifier of the first path ;

发送单元403,还用于当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。The sending unit 403 is further configured to send the non-private data and the identifier of the second path to the second terminal when the private data is sent, so that the second terminal stores the non-private data to the second terminal. The second path identifies the corresponding path.

其中,确定单元401、分析单元402、发送单元403、接收单元404、加密单元405、计算单元406、获取单元407、提示单元408、遍历单元409和去重单元410可以用于执行实施例2中步骤S201至S212所述的方法,具体描述详见实施例2对所述方法的描述,在此不再赘述。The determining unit 401, analyzing unit 402, sending unit 403, receiving unit 404, encrypting unit 405, calculating unit 406, obtaining unit 407, prompting unit 408, traversing unit 409, and deduplication unit 410 may be used to execute Embodiment 2 For the methods described in steps S201 to S212, for a specific description, refer to the description of the method in Embodiment 2, which is not repeated here.

请参阅图5,在本发明的另一个实施例中,提供一种终端。所述终端500 包括CPU501、存储器502、总线503。其中,该终端500可以是智能手机、平板电脑、智能穿戴设备等具有通话功能的电子设备。Referring to FIG. 5, in another embodiment of the present invention, a terminal is provided. The terminal 500 includes a CPU 501 , a memory 502 , and a bus 503 . The terminal 500 may be an electronic device with a call function, such as a smart phone, a tablet computer, and a smart wearable device.

其中,CPU501执行预先存储在存储器502中的程序,该执行过程具体包括:The CPU 501 executes a program pre-stored in the memory 502, and the execution process specifically includes:

确定用户选中的待传输的数据;Determine the data to be transmitted selected by the user;

对所述待传输的数据进行分析以确定隐私数据和非隐私数据;analyze the data to be transmitted to determine private and non-private data;

向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;sending a data transmission request to the second terminal, where the data transmission request includes an instruction to establish a first path and a second path;

接收所述第二终端反馈的第一路径标识和第二路径标识;receiving the first path identifier and the second path identifier fed back by the second terminal;

向所述第二终端发送所述隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径下;sending the privacy data and the identifier of the first path to the second terminal, so that the second terminal stores the privacy data under the path corresponding to the first path identifier;

当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。When the sending of the private data is completed, send the non-private data and the identifier of the second path to the second terminal, so that the second terminal stores the non-private data in the identifier corresponding to the second path under the path.

可选的,所述第一终端对所述待传输的数据进行分析以确定隐私数据和非隐私数据,包括:Optionally, the first terminal analyzes the data to be transmitted to determine private data and non-private data, including:

对所述待传输的数据进行分析以确定包含账号信息的数据;Analyze the data to be transmitted to determine data containing account information;

将包含所述账号信息的数据设置为隐私数据,以及将未包含所述账号信息的数据设置为非隐私数据。The data containing the account information is set as private data, and the data not containing the account information is set as non-private data.

可选的,所述向所述第二终端发送所述隐私数据和第一路径的标识之前,所述执行过程还包括:Optionally, before the sending the privacy data and the identifier of the first path to the second terminal, the execution process further includes:

与所述第二终端进行交互以确定对称密钥;interacting with the second terminal to determine a symmetric key;

利用所述对称密钥对所述隐私数据进行加密;encrypting the private data with the symmetric key;

向所述第二终端发送所述隐私数据和第一路径的标识,包括:Sending the privacy data and the identifier of the first path to the second terminal includes:

向所述第二终端发送加密的隐私数据和所述第一路径的标识。Send the encrypted privacy data and the identifier of the first path to the second terminal.

可选的,所述第一终端向所述第二终端发送所述隐私数据和第一路径的标识之前,所述执行过程还包括:Optionally, before the first terminal sends the privacy data and the identifier of the first path to the second terminal, the execution process further includes:

计算所述加密的隐私数据的大小;calculating the size of the encrypted private data;

若所述隐私数据的大小大于预设阈值时,获取所述第二终端的连网方式;If the size of the privacy data is greater than a preset threshold, acquiring the networking mode of the second terminal;

若所述第二终端的连网方式为通过移动流量连网时,则向所述用户发出确认是否传输的提示;If the network connection mode of the second terminal is to connect to the network through mobile traffic, send a prompt to the user to confirm whether to transmit;

若接收到确认传输的提示,向所述第二终端发送所述隐私数据和第一路径的标识。If a prompt for confirming the transmission is received, the privacy data and the identifier of the first path are sent to the second terminal.

可选的,所述第一终端对所述待传输的数据进行分析以确定隐私数据和非隐私数据之前,所述执行过程还包括:Optionally, before the first terminal analyzes the data to be transmitted to determine private data and non-private data, the execution process further includes:

遍历所述待传输的数据以确定是否存在重复的数据;traversing the data to be transmitted to determine whether there is duplicate data;

若存在重复的数据,则对所述待传输的数据进行去重处理。If there is duplicate data, deduplication processing is performed on the data to be transmitted.

可以看出,本发明实施例的方案中,第一终端确定用户选中的待传输的数据;所述第一终端对所述待传输的数据进行分析以确定隐私数据和非隐私数据;所述第一终端向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;接收所述第二终端反馈的第一路径标识和第二路径标识;所述第一终端向所述第二终端发送所述隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径下;当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。从而可知,通过实施本发明提供的技术方案,能够识别待传输数据中的隐私数据和非隐私数据,并将所述隐私数据和非隐私数据进行分别传输以使得所述隐私数据和非隐私数据存储于不同的路径,从而方便用户管理。It can be seen that, in the solution of the embodiment of the present invention, the first terminal determines the data to be transmitted selected by the user; the first terminal analyzes the data to be transmitted to determine private data and non-private data; A terminal sends a data transmission request to the second terminal, where the data transmission request includes instructions for establishing a first path and a second path; receives the first path identifier and the second path identifier fed back by the second terminal; The first terminal sends the privacy data and the identifier of the first path to the second terminal, so that the second terminal stores the privacy data under the path corresponding to the identifier of the first path; when the privacy When the data transmission is completed, the non-private data and the identifier of the second path are sent to the second terminal, so that the second terminal stores the non-private data in the path corresponding to the second path identifier. It can be seen that, by implementing the technical solution provided by the present invention, private data and non-private data in the data to be transmitted can be identified, and the private data and non-private data are respectively transmitted so that the private data and non-private data are stored. in different paths, so as to facilitate user management.

请参阅图6,图6是本发明的一个实施例提供的终端相关的手机的部分结构的框图。参考图6,手机包括:射频(Radio Frequency,RF)电路610、存储器620、输入单元630、显示单元640、传感器650、音频电路660、无线保真(Wireless Fidelity,WiFi)模块670、处理器680、以及电源690等部件。本领域技术人员可以理解,图6中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Please refer to FIG. 6. FIG. 6 is a block diagram of a partial structure of a terminal-related mobile phone provided by an embodiment of the present invention. Referring to FIG. 6 , the mobile phone includes: a radio frequency (RF) circuit 610 , a memory 620 , an input unit 630 , a display unit 640 , a sensor 650 , an audio circuit 660 , a Wireless Fidelity (WiFi) module 670 , and a processor 680 , and the power supply 690 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 6 does not constitute a limitation on the mobile phone, and may include more or less components than the one shown, or combine some components, or arrange different components.

下面结合图6对手机的各个构成部件进行具体的介绍:Below in conjunction with Figure 6, the various components of the mobile phone are introduced in detail:

RF电路610可用于信息的接收和发送。通常,RF电路610包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(LowNoiseAmplifier,LNA)、双工器等。此外,RF电路610还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System ofMobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(CodeDivisionMultiple Access,CDMA)、宽带码分多址(Wideband Code Division MultipleAccess, WCDMA)、长期演进(LongTerm Evolution,LTE)、电子邮件、短消息服务(ShortMessaging Service,SMS)等。RF circuitry 610 may be used for the reception and transmission of information. Typically, the RF 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 (GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (Short Messaging Service, SMS), etc.

存储器620可用于存储软件程序以及模块,处理器680通过运行存储在存储器620的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器620可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如数据迁移功能、触控操作检测功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如数据存储列表数据等)等。此外,存储器620可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 620 can be used to store software programs and modules, and the processor 680 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 620 . The memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a data migration function, a touch operation detection function, etc.), etc.; the storage data area may Stores data created according to the usage of the mobile phone (such as data storage list data, etc.), etc. 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为电容式指纹模组为例,具体包括感应电极(n1个异常感应电极和n2个正常感应电极)和与所述感应电极连接的信号处理电路 (如放大电路、噪声抑制电路、模数转化电路,等等)。除了指纹模组631,输入单元630还可以包括其他输入设备632。具体地,其他输入设备632可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input 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, the input unit 630 may include a fingerprint module 631 and other input devices 632. The fingerprint module 631 can collect the user's fingerprint data on it. Optionally, the fingerprint module 631 may include an optical fingerprint module, a capacitive fingerprint module and a radio frequency fingerprint module. Taking the fingerprint module 631 as a capacitive fingerprint module as an example, it specifically includes sensing electrodes (n1 abnormal sensing electrodes and n2 normal sensing electrodes) and a signal processing circuit (such as an amplifier circuit, a noise suppression circuit) connected to the sensing electrodes , analog-to-digital conversion circuits, etc.). Besides the fingerprint module 631 , the input unit 630 may also include other input devices 632 . Specifically, other input devices 632 may include, but are not limited to, one or more 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。虽然在图6中,指纹模组631与显示屏641是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将指纹模组631与显示屏641集成而实现手机的输入和输出功能。The display 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. The display unit 640 may include a display screen 641. Optionally, the display screen 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. Although in FIG. 6 , the fingerprint module 631 and the display screen 641 are used as two independent components to realize the input and input functions of the mobile phone, but in some embodiments, the fingerprint module 631 and the display screen 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 one sensor 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 the display screen 641 according to the brightness of the ambient light, and the proximity sensor may turn off the display screen 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可将接收到的音频数据转换后的电信号,传输到扬声器6 61,由扬声器661转换为声音信号输出;另一方面,传声器662将收集的声音信号转换为电信号,由音频电路660接收后转换为音频数据,再将音频数据输出处理器680处理后,经RF电路610以发送给比如另一手机,或者将音频数据输出至存储器620以便进一步处理。The audio circuit 660, the speaker 661, and the microphone 662 can provide an audio interface between the user and the mobile phone. The audio 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 the audio circuit 660 converts it into audio data after receiving, and then outputs the audio data to the processor 680 for processing, and then passes through the RF circuit 610 to send to another mobile phone, for example, or outputs the audio data to the memory 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 the WiFi module 670. It provides users with wireless broadband Internet access. Although FIG. 6 shows the WiFi 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中。The processor 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 the memory 620, and calling the data stored in the memory 620. Various functions of the mobile phone and processing data, so as to monitor the mobile phone as a whole. Optionally, the processor 680 may include one or more processing units; preferably, the processor 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 the processor 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 the processor 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.

前述图1、图2所示的实施例中,各步骤方法流程可以基于该手机的结构实现。In the foregoing embodiments shown in FIG. 1 and FIG. 2 , the method flow of each step can be implemented based on the structure of the mobile phone.

前述图3、图4所示的实施例中,各单元功能可以基于该手机的结构实现。In the aforementioned embodiments shown in FIG. 3 and FIG. 4 , the functions of each unit can be implemented based on the structure of the mobile phone.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。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,RandomAccess Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this 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 storage medium , including several instructions for causing 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 storage medium 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.

以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: The technical solutions described in the embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (11)

1. a kind of method of Data Migration, which is characterized in that the described method includes:
First terminal determines the data to be transmitted that user chooses to migrate to second terminal;
The first terminal analyzes to determine private data and non-private data the data to be transmitted;
The first terminal sends data transfer request to the second terminal, includes establishing first in the data transfer request The instruction in path and the second path;
The first path mark and the second ID of trace route path, the second terminal for receiving the second terminal feedback establish described first Path and second path, first path mark is corresponding with the first path, second ID of trace route path with it is described Second path is corresponding;
The first terminal sends the mark of the private data and the first path so that described to the second terminal The private data is stored to the first path and is identified under corresponding path by second terminal;
When the private data is sent, Xiang Suoshu second terminal sends the non-private data and second path Mark is so that the second terminal will be under the non-private data storage to the corresponding path of second ID of trace route path.
2. the method according to claim 1, wherein the first terminal divides the data to be transmitted Analysis is to determine private data and non-private data, comprising:
The first terminal analyzes to determine the data for including account information the data to be transmitted;
Private data, and the data setting that will not include the account information are set by the data comprising the account information For non-private data.
3. according to the method described in claim 2, it is characterized in that, the first terminal is described hidden to second terminal transmission Before the mark of private data and first path, the method also includes:
The first terminal and the second terminal are interacted to determine symmetric key;
The first terminal encrypts the private data using the symmetric key;
The first terminal sends the mark of the private data and first path to the second terminal, comprising:
The first terminal sends the private data of encryption and the mark of the first path to the second terminal.
4. according to the method described in claim 3, it is characterized in that, the first terminal is described hidden to second terminal transmission Before the mark of private data and first path, the method also includes:
The first terminal calculates the size of the private data of the encryption;
If the size of the private data is greater than preset threshold, the first terminal obtains the networking side of the second terminal Formula;
If the network connecting mode of the second terminal is by mobile flow networking, is issued to the user and be confirmed whether to transmit Prompt;
If receiving the prompt of confirmation transmission, the first terminal sends the private data and the first via to the second terminal The mark of diameter.
5. method according to any one of claims 1 to 4, which is characterized in that the first terminal is to the number to be transmitted According to being analyzed to determine private data and non-private data before, the method also includes:
The first terminal traverses the data to be transmitted to determine whether there is duplicate data;
Duplicate data if it exists then carry out duplicate removal processing to the data to be transmitted.
6. a kind of terminal, which is characterized in that the terminal includes:
Determination unit, for receiving the data to be transmitted that user chooses to migrate to second terminal;
Analytical unit, for being analyzed the data to be transmitted to determine private data and non-private data;
Transmission unit includes establishing for sending data transfer request to the second terminal, in the data transfer request The instruction in one path and the second path;
Receiving unit, for receiving the first path mark and the second ID of trace route path of the second terminal feedback, described second eventually The first path and second path are established in end, and the first path mark is corresponding with the first path, and described second ID of trace route path is corresponding with second path;
The transmission unit, be also used to send the mark of the private data and the first path to the second terminal so that The second terminal is obtained to store the private data under the corresponding path of first path mark;
The transmission unit is also used to when the private data is sent, and Xiang Suoshu second terminal sends the non-privacy Data and the mark in second path are so that the second terminal stores the non-private data to second path It identifies under corresponding path.
7. terminal according to claim 6, which is characterized in that the analytical unit includes that analysis subelement and setting are single Member;
The analysis subelement, for being analyzed the data to be transmitted to determine the data for including account information;
The setting subelement, the data of the account information are set as private data for will include, and will not include institute The data for stating account information are set as non-private data.
8. terminal according to claim 7, which is characterized in that the terminal further includes encryption unit;
The determination unit, for interacting with the second terminal to determine symmetric key;
The encryption unit, for being encrypted using the symmetric key to the private data;
The transmission unit, specifically for sending the private data of encryption and the mark of the first path to the second terminal Know.
9. terminal according to claim 8, which is characterized in that the terminal further includes computing unit, acquiring unit and mentions Show unit;
The computing unit, for calculating the size of the private data;
The acquiring unit obtains described second eventually if the size of the private data for the encryption is greater than preset threshold The network connecting mode at end;
The prompt unit, if the network connecting mode for the second terminal is by mobile flow networking, to the use Family issues the prompt for being confirmed whether transmission;
The transmission unit, if the terminal sends institute to the second terminal specifically for the prompt for receiving confirmation transmission State the mark of private data and first path.
10. according to any terminal of claim 6 to 9, which is characterized in that the terminal further includes Traversal Unit and duplicate removal Unit;
The Traversal Unit, for traversing the data to be transmitted to determine whether there is duplicate data;
The duplicate removal unit then carries out duplicate removal processing to the data to be transmitted for duplicate data if it exists.
11. a kind of terminal characterized by comprising
It is stored with the memory of executable program code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, executes such as claim 1 to right It is required that 5 described in any item methods.
CN201610826853.XA 2016-09-14 2016-09-14 Method and terminal for data migration Expired - Fee Related CN106487878B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610826853.XA CN106487878B (en) 2016-09-14 2016-09-14 Method and terminal for data migration
PCT/CN2017/095056 WO2018049937A1 (en) 2016-09-14 2017-07-28 Data migration method and terminals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610826853.XA CN106487878B (en) 2016-09-14 2016-09-14 Method and terminal for data migration

Publications (2)

Publication Number Publication Date
CN106487878A CN106487878A (en) 2017-03-08
CN106487878B true CN106487878B (en) 2019-08-20

Family

ID=58267255

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610826853.XA Expired - Fee Related CN106487878B (en) 2016-09-14 2016-09-14 Method and terminal for data migration

Country Status (2)

Country Link
CN (1) CN106487878B (en)
WO (1) WO2018049937A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106487878B (en) * 2016-09-14 2019-08-20 Oppo广东移动通信有限公司 Method and terminal for data migration
EP3547637A1 (en) * 2018-03-30 2019-10-02 AO Kaspersky Lab System and method for routing data when executing queries
US11635903B2 (en) * 2021-06-15 2023-04-25 International Business Machines Corporation Cloud data migration
CN116303362A (en) * 2023-03-21 2023-06-23 上海探寻信息技术有限公司 Method and device for migrating data of intelligent wearable device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683409A (en) * 2013-11-29 2015-06-03 华为终端有限公司 Application sharing method and terminal between terminals
CN105188015A (en) * 2015-08-07 2015-12-23 上海斐讯数据通信技术有限公司 Mobile terminal private data migration backup method and mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100620055B1 (en) * 2004-12-06 2006-09-08 엘지전자 주식회사 How to cancel your location information request
CN104408383B (en) * 2014-10-31 2018-03-16 东莞宇龙通信科技有限公司 Private data processing system and method
CN104540088A (en) * 2014-12-23 2015-04-22 小米科技有限责任公司 Connection establishment method, terminal and device
CN105577361A (en) * 2015-04-20 2016-05-11 宇龙计算机通信科技(深圳)有限公司 Information processing method and device thereof
CN106487878B (en) * 2016-09-14 2019-08-20 Oppo广东移动通信有限公司 Method and terminal for data migration

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683409A (en) * 2013-11-29 2015-06-03 华为终端有限公司 Application sharing method and terminal between terminals
CN105188015A (en) * 2015-08-07 2015-12-23 上海斐讯数据通信技术有限公司 Mobile terminal private data migration backup method and mobile terminal

Also Published As

Publication number Publication date
WO2018049937A1 (en) 2018-03-22
CN106487878A (en) 2017-03-08

Similar Documents

Publication Publication Date Title
CN106446111B (en) Data migration method and terminal
CN107066229A (en) Recording method and terminal
CN106681860B (en) A kind of data back up method and data backup device
WO2018049935A1 (en) Data migration method and terminals
CN106484326B (en) Data transmission processing method and mobile terminal
CN106454805A (en) Data migration method and mobile terminal
CN106487878B (en) Method and terminal for data migration
CN106469028A (en) A data migration method and mobile terminal
CN106534288A (en) Data transmission method and mobile terminal
CN106648455A (en) Data migration method and mobile terminal
CN106658354A (en) Data transmission method and equipment
CN107277232A (en) Locking screen interface control method and Related product
CN106453571A (en) Data migration method and terminal
CN107291327A (en) Application control method and related product
CN106572163B (en) Data migration method and terminal
CN106569916A (en) Data backup method and mobile terminal
WO2018049936A2 (en) Data migration method and terminals
CN106484563A (en) A kind of data migration method and terminal unit
CN106954211B (en) Key writing method and mobile terminal
CN106527980A (en) Data migration method and terminal
CN106095558A (en) A kind of method of audio effect processing and terminal
CN107038414B (en) Fingerprint template synchronization method and device
CN106357767B (en) Information synchronization method and server
CN106357513B (en) Message processing method, device, server and message processing system
CN106254559A (en) Method and server for information storage

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190820

CF01 Termination of patent right due to non-payment of annual fee