CN107045610A - Data migration method, terminal device, and computer-readable storage medium - Google Patents
Data migration method, terminal device, and computer-readable storage medium Download PDFInfo
- Publication number
- CN107045610A CN107045610A CN201710318712.1A CN201710318712A CN107045610A CN 107045610 A CN107045610 A CN 107045610A CN 201710318712 A CN201710318712 A CN 201710318712A CN 107045610 A CN107045610 A CN 107045610A
- Authority
- CN
- China
- Prior art keywords
- data
- terminal
- migrated
- virus
- terminal device
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
- G06F21/55—Detecting local intrusion or implementing counter-measures
- G06F21/56—Computer malware detection or handling, e.g. anti-virus arrangements
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/606—Protecting data by securing the transmission between two devices or processes
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/03—Indexing scheme relating to G06F21/50, monitoring users, programs or devices to maintain the integrity of platforms
- G06F2221/033—Test or assess software
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Virology (AREA)
- Bioethics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Telephone Function (AREA)
Abstract
Description
技术领域technical field
本发明属于通信技术领域,尤其涉及数据迁移方法、终端设备及计算机可读存储介质。The invention belongs to the technical field of communication, and in particular relates to a data migration method, a terminal device and a computer-readable storage medium.
背景技术Background technique
随着智能手机、平板电脑等终端设备的广泛普及,用户更换终端设备的频率也越来越快。更换终端设备的过程中需要将旧终端设备上的数据迁移到新终端设备上。然而,现有技术通常是直接将旧终端设备上的数据迁移到新终端设备,如果旧终端设备上存在不安全因素(例如木马病毒),则在数据迁移过程中,旧终端设备会将该不安全因素传递给新终端设备,从而可能会造成数据泄露。With the widespread popularization of terminal devices such as smartphones and tablet computers, users are replacing terminal devices more and more frequently. During the process of replacing the terminal equipment, the data on the old terminal equipment needs to be migrated to the new terminal equipment. However, the existing technology usually directly migrates the data on the old terminal device to the new terminal device. If there is an insecure factor (such as a Trojan horse virus) on the old terminal device, then during the data migration process, the old terminal device will transfer the old terminal device to the new terminal device. The security factor is passed to the new terminal device, which may cause data leakage.
故,有必要提出一种新的技术方案,以解决上述技术问题。Therefore, it is necessary to propose a new technical solution to solve the above technical problems.
发明内容Contents of the invention
有鉴于此,本发明实施例提供了数据迁移方法、终端设备及计算机可读存储介质,以解决现有数据迁移方法可能会造成数据泄露的问题。In view of this, embodiments of the present invention provide a data migration method, a terminal device, and a computer-readable storage medium, so as to solve the problem that existing data migration methods may cause data leakage.
本发明实施例的第一方面提供了一种数据迁移方法,所述数据迁移方法包括:The first aspect of the embodiments of the present invention provides a data migration method, the data migration method includes:
第一终端在接收到数据迁移指令时,确定待迁移数据;When receiving the data migration instruction, the first terminal determines the data to be migrated;
所述第一终端检测所述待迁移数据中是否存在病毒数据;The first terminal detects whether virus data exists in the data to be migrated;
若所述第一终端在所述待迁移数据中未检测出所述病毒数据,则将所述待迁移数据传输至与所述第一终端连接的第二终端。If the first terminal does not detect the virus data in the data to be migrated, the data to be migrated is transmitted to a second terminal connected to the first terminal.
本发明实施例的第二方面提供了一种终端设备,所述终端设备包括:A second aspect of the embodiments of the present invention provides a terminal device, where the terminal device includes:
数据确定模块,用于在接收到数据迁移指令时,确定待迁移数据;A data determination module, configured to determine the data to be migrated when a data migration instruction is received;
数据检测模块,用于检测所述待迁移数据中是否存在病毒数据;A data detection module, configured to detect whether virus data exists in the data to be migrated;
数据传输模块,用于若在所述待迁移数据中未检测出所述病毒数据,则将所述待迁移数据传输至与所述终端设备连接的第二终端。A data transmission module, configured to transmit the data to be migrated to a second terminal connected to the terminal device if the virus data is not detected in the data to be migrated.
本发明实施例的第三方面提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:A third aspect of the embodiments of the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, when the processor executes the computer program Implement the following steps:
在接收到数据迁移指令时,确定待迁移数据;When receiving the data migration instruction, determine the data to be migrated;
检测所述待迁移数据中是否存在病毒数据;Detecting whether virus data exists in the data to be migrated;
若在所述待迁移数据中未检测出所述病毒数据,则将所述待迁移数据传输至与所述终端设备连接的第二终端。If the virus data is not detected in the data to be migrated, the data to be migrated is transmitted to a second terminal connected to the terminal device.
本发明实施例的第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
在接收到数据迁移指令时,确定待迁移数据;When receiving the data migration instruction, determine the data to be migrated;
检测所述待迁移数据中是否存在病毒数据;Detecting whether virus data exists in the data to be migrated;
若在所述待迁移数据中未检测出所述病毒数据,则将所述待迁移数据传输至与终端设备连接的第二终端。If the virus data is not detected in the data to be migrated, the data to be migrated is transmitted to a second terminal connected to the terminal device.
本发明实施例与现有技术相比存在的有益效果是:本发明实施例通过在数据迁移之前,第一终端先检测待迁移数据中是否存在病毒数据,并在所述待迁移数据中未检测出所述病毒数据时,才将所述待迁移数据传输至与所述第一终端连接的第二终端,从而可避免将所述第一终端上存在的不安全因素(例如木马病毒)传递给所述第二终端,确保传输至所述第二终端的所述待迁移数据是安全的(例如未携带木马病毒),提高了数据迁移的安全性,进而可避免数据的泄露。Compared with the prior art, the embodiment of the present invention has the following beneficial effects: in the embodiment of the present invention, before data migration, the first terminal first detects whether there is virus data in the data to be migrated, and detects no virus data in the data to be migrated. When the virus data is out, the data to be migrated is transmitted to the second terminal connected to the first terminal, thereby avoiding the unsafe factors (such as Trojan horse virus) existing on the first terminal from being transmitted to the The second terminal ensures that the data to be migrated transmitted to the second terminal is safe (for example, does not carry a Trojan horse virus), which improves the security of data migration, thereby avoiding data leakage.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the descriptions of the embodiments or the prior art. Obviously, the accompanying drawings in the following descriptions are only of the present invention. For some embodiments, those skilled in the art can also obtain other drawings according to these drawings without paying creative efforts.
图1是本发明实施例一提供的数据迁移方法的实现流程图;FIG. 1 is an implementation flowchart of the data migration method provided by Embodiment 1 of the present invention;
图2是本发明实施例二提供的数据迁移方法的实现流程图;FIG. 2 is an implementation flow chart of the data migration method provided by Embodiment 2 of the present invention;
图3是本发明实施例三提供的终端设备的结构框图;FIG. 3 is a structural block diagram of a terminal device provided in Embodiment 3 of the present invention;
图4是本发明实施例四提供的终端设备的结构框图;FIG. 4 is a structural block diagram of a terminal device provided in Embodiment 4 of the present invention;
图5是本发明实施例五提供的终端设备的结构框图。FIG. 5 is a structural block diagram of a terminal device provided in Embodiment 5 of the present invention.
具体实施方式detailed description
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本发明实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本发明。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本发明的描述。In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and/or components, but does not exclude one or more other features. , whole, step, operation, element, component and/or the presence or addition of a collection thereof.
还应当理解,在此本发明说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本发明。如在本发明说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the description of the present invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the present invention. As used in this specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural referents unless the context clearly dictates otherwise.
还应当进一步理解,在本发明说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be further understood that the term "and/or" used in the description of the present invention and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations .
如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be construed as "when" or "once" or "in response to determining" or "in response to detecting" depending on the context . Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be construed, depending on the context, to mean "once determined" or "in response to the determination" or "once detected [the described condition or event] ]” or “in response to detection of [described condition or event]”.
具体实现中,本发明实施例中描述的终端设备包括但不限于诸如具有触摸敏感表面(例如,触摸屏显示器和/或触摸板)的移动电话、膝上型计算机或平板计算机之类的其它便携式设备。还应当理解的是,在某些实施例中,所述设备并非便携式通信设备,而是具有触摸敏感表面(例如,触摸屏显示器和/或触摸板)的台式计算机。In a specific implementation, the terminal devices described in the embodiments of the present invention include but are not limited to other portable devices such as mobile phones, laptop computers or tablet computers with touch-sensitive surfaces (for example, touch screen displays and/or touch pads) . It should also be appreciated that in some embodiments, the device is not a portable communication device, but a desktop computer with a touch-sensitive surface (eg, a touchscreen display and/or a touchpad).
在接下来的讨论中,描述了包括显示器和触摸敏感表面的终端设备。然而,应当理解的是,终端设备可以包括诸如物理键盘、鼠标和/或控制杆的一个或多个其它物理用户接口设备。In the ensuing discussion, a terminal device comprising a display and a touch-sensitive surface is described. However, it should be understood that a terminal device may include one or more other physical user interface devices such as a physical keyboard, mouse and/or joystick.
终端设备支持各种应用程序,例如以下中的一个或多个:绘图应用程序、演示应用程序、文字处理应用程序、网站创建应用程序、盘刻录应用程序、电子表格应用程序、游戏应用程序、电话应用程序、视频会议应用程序、电子邮件应用程序、即时消息收发应用程序、锻炼支持应用程序、照片管理应用程序、数码相机应用程序、数字摄影机应用程序、web浏览应用程序、数字音乐播放器应用程序和/或数字视频播放器应用程序。The terminal device supports various applications such as one or more of the following: drawing application, presentation application, word processing application, website creation application, disk burning application, spreadsheet application, gaming application, telephone applications, video conferencing applications, email applications, instant messaging applications, exercise support applications, photo management applications, digital camera applications, digital video camera applications, web browsing applications, digital music player applications and/or digital video player applications.
可以在终端设备上执行的各种应用程序可以使用诸如触摸敏感表面的至少一个公共物理用户接口设备。可以在应用程序之间和/或相应应用程序内调整和/或改变触摸敏感表面的一个或多个功能以及终端设备上显示的相应信息。这样,终端设备的公共物理架构(例如,触摸敏感表面)可以支持具有对用户而言直观且透明的用户界面的各种应用程序。Various applications that can be executed on the terminal device can use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal device can be adjusted and/or changed between applications and/or within the respective application. In this way, the common physical architecture (eg, touch-sensitive surface) of the terminal device can support various applications with a user interface that is intuitive and transparent to the user.
需要说明的是,本实施例第一终端是指某一终端,“第一”在此仅为表述和指代的方便,并不意味着本发明的具体实现方式中一定会有与之对应的第一 终端。类似地,第二终端中的“第二”也仅仅是为了表述和指代的方便,并不意味着本发明的具体实现方式中一定会有与之对应的第二终端。It should be noted that the first terminal in this embodiment refers to a certain terminal, and the "first" here is only for the convenience of expression and reference, and does not mean that there must be a corresponding terminal in the specific implementation of the present invention. first terminal. Similarly, the "second" in the second terminal is only for the convenience of expression and reference, and does not mean that there must be a corresponding second terminal in the specific implementation manner of the present invention.
应理解,本实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that the sequence numbers of the steps in this embodiment do not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present invention.
为了说明本发明所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions of the present invention, specific examples are used below to illustrate.
参见图1,是本发明实施例一提供的数据迁移方法的实现流程图,如图所示该数据迁移方法可以包括以下步骤:Referring to FIG. 1 , it is a flowchart of the implementation of the data migration method provided by Embodiment 1 of the present invention. As shown in the figure, the data migration method may include the following steps:
步骤S101,第一终端在接收到数据迁移指令时,确定待迁移数据。In step S101, the first terminal determines data to be migrated when receiving a data migration instruction.
在本发明实施例中,所述第一终端在接收到数据迁移指令时,可以根据所述数据迁移指令,从所述第一终端中所存储的数据中确定所述第一终端将要迁移至其他终端的待迁移数据。其中,所述第一终端是指将自身存储的数据迁移至其他终端的终端设备。所述数据迁移指令可以是用户通过所述第一终端发出的指令或者所述第一终端根据预设时间间隔触发的指令,在此不作限定。In the embodiment of the present invention, when the first terminal receives the data migration instruction, it can determine from the data stored in the first terminal according to the data migration instruction that the first terminal will migrate to other The terminal data to be migrated. Wherein, the first terminal refers to a terminal device that migrates its own stored data to other terminals. The data migration instruction may be an instruction issued by the user through the first terminal or an instruction triggered by the first terminal according to a preset time interval, which is not limited herein.
所述待迁移数据可以是指所述第一终端中所有应用程序的数据,还可以是用户从所述第一终端的所有应用程序中选择的应用程序的数据(例如所述第一终端在接收到数据迁移指令时,在所述第一终端的屏幕上可以以列表的形式显示所述第一终端中所有的应用程序的名称和/或图标,以便于用户从上述所有应用程序中选择待迁移数据。其中,所述第一终端中的所有应用程序在列表中可以根据应用程序的访问频率排序,访问频率越高的应用程序在列表中的排序越靠前)。由于在所述第一终端中通常安装有较多的应用程序,在所述第一终端显示所安装的所有应用程序时,可以在所述第一终端的多个页面显示上述所有应用程序。所述待迁移数据包括但不限于文字、音视频、图片等。The data to be migrated may refer to the data of all the application programs in the first terminal, and may also be the data of the application program selected by the user from all the application programs of the first terminal (for example, the first terminal is receiving When the data migration instruction is received, the names and/or icons of all the application programs in the first terminal may be displayed in the form of a list on the screen of the first terminal, so that the user can select from all the above-mentioned application programs to be migrated data. Wherein, all the application programs in the first terminal may be sorted according to the access frequency of the applications in the list, and the higher the access frequency, the higher the sorting of the application programs in the list). Since there are generally many application programs installed in the first terminal, when the first terminal displays all the installed application programs, all the above-mentioned application programs may be displayed on multiple pages of the first terminal. The data to be migrated includes but is not limited to text, audio and video, pictures, etc.
需要说明的是,用户在确定待迁移数据时,可能并不想迁移某一应用程序的所有数据,而只想迁移该某一应用程序中的某些数据,那么本发明实施例可以在所述第一终端的屏幕上显示所述第一终端中所有应用程序所包含的数据 (即显示每个应用程序的数据,例如爱奇艺中的所有缓存文件),并确定用户从上述所有应用程序所包含的数据中所选择的数据为待迁移数据(例如从爱奇艺所存储的多个缓存文件中所选择的至少一个缓存文件)。在实际应用场景中,一个应用程序可能会包含较多的数据,若将该较多的数据都显示在所述第一终端的屏幕上,会占据所述第一终端的屏幕上较大的空间,导致一个页面上能够显示的应用程序较少。为了解决该问题,可以在所述第一终端的屏幕上显示应用程序的名称和/或图标,在检测到对某一应用程序的点击操作或者对某一应用程序所对应的选择选项(在所述第一终端的屏幕上显示所有应用程序时,可以为每个应用程序设置相应的选择选项,以触发显示该应用程序所包含的数据)的点击操作时,才在所述第一终端的当前页面显示该某一应用程序所包含的数据,并在选择后隐藏该某一应用程序所包含的数据或者只隐藏该某一应用程序锁包含的数据中未被选中的数据。其中,触发显示一个应用程序所包含的数据的操作不仅可以为点击操作(例如单击或者双击),也可以为滑动操作、长按操作等,在此不作限定。It should be noted that when the user determines the data to be migrated, he may not want to migrate all the data of a certain application, but only wants to migrate some data in the certain application, then the embodiment of the present invention can be described in the first Display the data contained in all applications in the first terminal on the screen of a terminal (that is, display the data of each application, such as all cache files in iQIYI), and determine the user's data from all the applications contained in the above-mentioned applications. The data selected in the data is the data to be migrated (for example, at least one cache file selected from multiple cache files stored by iQIYI). In an actual application scenario, an application program may contain more data, and if the more data is displayed on the screen of the first terminal, it will occupy a larger space on the screen of the first terminal , resulting in fewer applications that can be displayed on one page. In order to solve this problem, the name and/or icon of the application program may be displayed on the screen of the first terminal, and when a click operation on a certain application program or a selection option corresponding to a certain application program is detected (in the When all application programs are displayed on the screen of the first terminal, a corresponding selection option can be set for each application program to trigger the click operation of displaying the data contained in the application program), only when the current application program of the first terminal The page displays the data included in the certain application program, and hides the data contained in the certain application program after selection or only hides the unselected data in the data contained in the certain application program lock. Wherein, the operation to trigger displaying the data contained in an application program may not only be a click operation (for example, single click or double click), but also may be a slide operation, a long press operation, etc., which are not limited herein.
可选的,所述第一终端在接收到数据迁移指令时,确定待迁移数据包括:Optionally, when the first terminal receives the data migration instruction, determining that the data to be migrated includes:
所述第一终端在接收到数据迁移指令时,确定是否已与所述第二终端建立通信连接;When the first terminal receives the data migration instruction, it determines whether a communication connection has been established with the second terminal;
若是,则所述第一终端根据所述数据迁移指令确定所述待迁移数据;If so, the first terminal determines the data to be migrated according to the data migration instruction;
若否,则所述第一终端建立与所述第二终端的通信连接,并在连接成功后,根据所述数据迁移指令确定所述待迁移数据。If not, the first terminal establishes a communication connection with the second terminal, and determines the data to be migrated according to the data migration instruction after the connection is successful.
在本发明实施例中,所述第一终端在接收到数据迁移指令时,检测所述第一终端是否已与所述第二终端建立通信连接,以确定所述第一终端是否已与所述第二终端建立通信连接。所述数据迁移指令中可以包括需与所述第一终端建立通信连接的第二终端的信息,以便于所述第一终端在接收到所述数据迁移指令后,就可以获知需要与之建立通信连接的第二终端,从而可使得在所述第一终端检测到有终端与其建立通信连接时,可以通过获取该终端的信息,检测该 终端的信息是否为所述数据迁移指令中的第二终端的信息,以保证所述第一终端与所述第二终端建立通信连接,避免将所述待迁移数据传输至非(即不是)第二终端的终端。其中,所述第二终端的信息可以是指唯一表征所述第二终端的信息,包括但不限于移动设备识别码(Mobile Equipment Identifier,MEID)和国际移动设备身份码(International Mobile Equipment Identity,IMEI)等。In the embodiment of the present invention, when the first terminal receives the data migration instruction, it detects whether the first terminal has established a communication connection with the second terminal, so as to determine whether the first terminal has established a communication connection with the The second terminal establishes a communication connection. The data migration instruction may include information about the second terminal that needs to establish a communication connection with the first terminal, so that the first terminal can know that communication needs to be established with it after receiving the data migration instruction. connected second terminal, so that when the first terminal detects that a terminal has established a communication connection with it, it can detect whether the information of the terminal is the second terminal in the data migration instruction by acquiring the information of the terminal information, so as to ensure that the first terminal establishes a communication connection with the second terminal, and avoid transmitting the data to be migrated to a terminal that is not (that is, not) the second terminal. Wherein, the information of the second terminal may refer to information that uniquely characterizes the second terminal, including but not limited to a mobile equipment identifier (Mobile Equipment Identifier, MEID) and an International Mobile Equipment Identity (International Mobile Equipment Identity, IMEI )Wait.
在本发明实施例中,可以通过热点、蓝牙、红外、无线保真(Wireless Fidelity,WiFi)、有线等方式建立第一终端与第二终端的通信连接。在确定所述第一终端与所述第二终端建立通信连接后,再确定待迁移数据,可以防止在所述第一终端与所述第二终端未建立通信连接时就确定待迁移数据和检测所述待迁移数据中是否存在病毒数据,减少所述第一终端的电量消耗。In the embodiment of the present invention, the communication connection between the first terminal and the second terminal may be established through hotspot, bluetooth, infrared, wireless fidelity (Wireless Fidelity, WiFi), wired, etc. methods. After determining that the first terminal establishes a communication connection with the second terminal, then determining the data to be migrated can prevent the determination of the data to be migrated and detection when the communication connection between the first terminal and the second terminal is not established. Whether there is virus data in the data to be migrated, and reduce the power consumption of the first terminal.
步骤S102,所述第一终端检测所述待迁移数据中是否存在病毒数据。Step S102, the first terminal detects whether virus data exists in the data to be migrated.
在本发明实施例中,在步骤S102之前,用户可以选择是否需要检测所述待迁移数据中是否存在病毒数据(默认状态下是检测所述待迁移数据中是否存在病毒数据),当用户选择“是”或者不选择时,在所述第一终端确定所述待迁移数据之后,在所述第一终端的后台检测所述待迁移数据中是否存在病毒数据。其中,所述病毒数据可以是指携带病毒的数据,且对病毒的类型不作限定。In the embodiment of the present invention, before step S102, the user can choose whether to detect whether there is virus data in the data to be migrated (by default, it is to detect whether there is virus data in the data to be migrated), when the user selects " When "Yes" or not selected, after the first terminal determines the data to be migrated, check whether there is virus data in the data to be migrated in the background of the first terminal. Wherein, the virus data may refer to data carrying a virus, and the type of the virus is not limited.
在本发明实施例中,所述第一终端在确定好将要迁移至所述第二终端的所述待迁移数据之后,可以通过所述第一终端中已安装的病毒扫描软件或者其他终端设备上已安装的病毒扫描软件检测所述待迁移数据中是否存在病毒数据。例如,通过手机中的手机管家检测所述待迁移数据中是否存在病毒数据,或者将手机与电脑采用USB连接后,通过电脑中的360杀毒软件检测所述待迁移数据中是否存在病毒数据,并将检测结果发送给所述第一终端。该检测结果可以包括所述待迁移数据中的病毒数据。其中,所述病毒数据是指携带病毒的数据。In the embodiment of the present invention, after the first terminal has determined the data to be migrated to the second terminal, it can scan the virus through the virus scanning software installed in the first terminal or on other terminal devices. The installed virus scanning software detects whether virus data exists in the data to be migrated. For example, whether there is virus data in the data to be migrated is detected by the mobile phone housekeeper in the mobile phone, or after the mobile phone is connected to the computer using USB, the 360 antivirus software in the computer is used to detect whether there is virus data in the data to be migrated, and Send the detection result to the first terminal. The detection result may include virus data in the data to be migrated. Wherein, the virus data refers to data carrying viruses.
步骤S103,若所述第一终端在所述待迁移数据中未检测出所述病毒数据,则将所述待迁移数据传输至与所述第一终端连接的第二终端。Step S103, if the first terminal does not detect the virus data in the data to be migrated, then transmit the data to be migrated to a second terminal connected to the first terminal.
在本发明实施例中,所述第一终端在检测到所述待迁移数据中不存在所述 病毒数据时,可以在所述第一终端中以弹窗或者标签的方式提示用户再次确认是否将所述待迁移数据传输至所述第二终端,在接收到确认指令后,所述第一终端将所述待迁移数据传输至所述第二终端。或者将所述待迁移数据显示在所述第一终端的屏幕上,在接收到用户对所述待迁移数据中数据的选择操作信息时,所述第一终端将用户所选中的数据传输至所述第二终端。其中,用户在对所述待迁移数据中的数据进行选择操作时,可以依次选择多个数据,所述第一终端在接收到确定指令后,将所选中的数据传输至所述第二终端。In the embodiment of the present invention, when the first terminal detects that the virus data does not exist in the data to be migrated, it may prompt the user to reconfirm whether to The data to be migrated is transmitted to the second terminal, and after receiving the confirmation instruction, the first terminal transmits the data to be migrated to the second terminal. Or display the data to be migrated on the screen of the first terminal, and when receiving the user's selection operation information on the data in the data to be migrated, the first terminal will transmit the data selected by the user to the Describe the second terminal. Wherein, when the user performs a selection operation on the data in the data to be migrated, he may select multiple data in sequence, and the first terminal transmits the selected data to the second terminal after receiving the confirmation instruction.
所述第一终端在将所述待迁移数据传输至所述第二终端之后,或者所述第二终端在接收到所述第一终端传输的所述待迁移数据之后,都可以向用户发送相应的提示信息,以提醒用户已完成数据迁移。After the first terminal transmits the data to be migrated to the second terminal, or after the second terminal receives the data to be migrated transmitted by the first terminal, it may send a corresponding to remind the user that the data migration has been completed.
可选的,所述数据迁移方法还包括:Optionally, the data migration method also includes:
若所述第一终端在所述待迁移数据中检测出所述病毒数据,则禁止所述病毒数据的传输,并将所述待迁移数据中除所述病毒数据之外的数据传输至与所述第一终端连接的所述第二终端,以使得所述第二终端在接收到所述第一终端传输的数据后,检测接收到的所述数据是否存在病毒数据。If the first terminal detects the virus data in the data to be migrated, the transmission of the virus data is prohibited, and the data other than the virus data in the data to be migrated is transmitted to the The second terminal connected to the first terminal, so that after receiving the data transmitted by the first terminal, the second terminal detects whether the received data contains virus data.
在本发明实施例中,所述第二终端在接收到所述第一终端传输的数据后,为了进一步的确认所接收到的数据中是否存在病毒数据,所述第二终端可以对所接收到的数据进行病毒检测,该病毒检测的方式可以与所述第一终端检测所述待迁移数据中是否存在病毒数据的方式相同,在此不再赘述。In the embodiment of the present invention, after the second terminal receives the data transmitted by the first terminal, in order to further confirm whether there is virus data in the received data, the second terminal may check the received data The virus detection method of the data to be migrated may be the same as the method of detecting whether there is virus data in the data to be migrated by the first terminal, which will not be repeated here.
在本发明实施例中,若所述第二终端从所接收到的所述第一终端传输的数据中检测到病毒数据,则所述第二终端可以向用户发送相应的提示,以提醒用户所接收到的数据中存在病毒数据,并从所接收到的数据中过滤掉该病毒数据,即从所接收到的数据中删除该病毒数据。In the embodiment of the present invention, if the second terminal detects virus data from the received data transmitted by the first terminal, the second terminal may send a corresponding prompt to the user to remind the user of the virus data received. Virus data exists in the received data, and the virus data is filtered out from the received data, that is, the virus data is deleted from the received data.
可选的,若所述第一终端在所述待迁移数据中检测出所述病毒数据,则禁止所述病毒数据的传输,并将所述待迁移数据中除所述病毒数据之外的数据传输至与所述第一终端连接的所述第二终端包括:Optionally, if the first terminal detects the virus data in the data to be migrated, the transmission of the virus data is prohibited, and the data other than the virus data in the data to be migrated is The transmission to the second terminal connected to the first terminal includes:
若所述第一终端在所述待迁移数据中检测出所述病毒数据,则对所述病毒数据进行标记;If the first terminal detects the virus data in the data to be migrated, mark the virus data;
若所述第一终端接收到对标记的数据的确认指令,则禁止所述标记的数据的传输,并将所述待迁移数据中未标记的数据传输至与所述第一终端连接的所述第二终端。If the first terminal receives an acknowledgment instruction for the marked data, prohibit the transmission of the marked data, and transmit the unmarked data in the data to be migrated to the first terminal connected to the second terminal.
在本发明实施例中,所述第一终端在检测到所述待迁移数据中存在病毒数据时,可以对所述病毒数据进行标记,以区分所述待迁移数据中的病毒数据与所述待迁移数据中除了所述病毒数据之外的数据或者便于用户知晓标记的数据为病毒数据,可以在所述第一终端的屏幕上显示标记的数据,在接收到用户对所述第一终端的屏幕上显示的标记的数据的确认指令时,禁止所述标记的数据的传输,并将所述待迁移数据中未标记的数据传输至与所述第一终端连接的所述第二终端。需要说明的是,在检测到用户对所述第一终端的屏幕上显示的标记的数据的去标记指令时,去除该标记的数据的标记,此时表征所述第一终端可以将该数据传输至所述第二终端。其中,标记方式可以是为每个病毒数据设置一个标签,该标签的内容可以是“病毒数据”,且该标签的位置可以在每个病毒数据的右上角位置或者左上角位置等,在此不作限定。In the embodiment of the present invention, when the first terminal detects that there is virus data in the data to be migrated, it may mark the virus data to distinguish the virus data in the data to be migrated from the data to be migrated. Data other than the virus data in the migration data or to facilitate the user to know that the marked data is virus data, the marked data may be displayed on the screen of the first terminal, and after receiving the user’s request to the first terminal screen When confirming the marked data displayed on the above, the transmission of the marked data is prohibited, and the unmarked data in the data to be migrated is transmitted to the second terminal connected to the first terminal. It should be noted that when the user's de-marking instruction for the marked data displayed on the screen of the first terminal is detected, the mark of the marked data is removed, which means that the first terminal can transmit the data to the second terminal. Among them, the marking method can be to set a label for each virus data, the content of the label can be "virus data", and the position of the label can be in the upper right corner or upper left corner of each virus data, etc. limited.
通过本发明实施例可避免将第一终端上存在的不安全因素(例如木马病毒)传递给第二终端,确保传输至第二终端的待迁移数据是安全的(例如未携带木马病毒),提高了数据迁移的安全性,进而可避免数据的泄露。Through the embodiment of the present invention, it can be avoided that the unsafe factors (such as Trojan horse virus) existing on the first terminal are passed to the second terminal, ensuring that the data to be migrated to the second terminal is safe (such as not carrying Trojan horse virus), and improving This ensures the security of data migration and avoids data leakage.
参见图2,是本发明实施例二提供的数据迁移方法的实现流程图,如图所示该数据迁移方法可以包括以下步骤:Referring to FIG. 2 , it is a flowchart of the implementation of the data migration method provided by Embodiment 2 of the present invention. As shown in the figure, the data migration method may include the following steps:
步骤S201,第一终端在接收到数据迁移指令时,确定待迁移数据。In step S201, the first terminal determines data to be migrated when receiving a data migration instruction.
该步骤与步骤S101相同,具体可参见步骤S101的相关描述,在此不再赘述。This step is the same as step S101, for details, please refer to the relevant description of step S101, which will not be repeated here.
步骤S202,所述第一终端启动病毒数据检测进程。Step S202, the first terminal starts a virus data detection process.
步骤S203,所述第一终端通过所述病毒数据检测进程检测所述待迁移数据中是否存在病毒数据。Step S203, the first terminal detects whether virus data exists in the data to be migrated through the virus data detection process.
在本发明实施例中,在步骤S202之前,用户可以选择是否需要检测所述待迁移数据中是否存在病毒数据(默认状态下是检测所述待迁移数据中是否存在病毒数据),当用户选择“是”或者不选择时,在所述第一终端确定所述待迁移数据之后,所述第一终端启动病毒数据检测进程,以在所述第一终端的后台通过所述病毒数据检测进程检测所述待迁移数据中是否存在病毒数据。In the embodiment of the present invention, before step S202, the user can choose whether to detect whether there is virus data in the data to be migrated (by default, it is to detect whether there is virus data in the data to be migrated), when the user selects " "Yes" or not selected, after the first terminal determines the data to be migrated, the first terminal starts the virus data detection process to detect the virus data detected by the virus data detection process in the background of the first terminal Describe whether there is virus data in the data to be migrated.
在本发明实施例中,所述启动病毒数据检测进程可以是指启动所述第一终端中已安装的病毒扫描软件或者其他终端设备上已安装的病毒扫描软件。例如,手机中的手机管家,或者将手机与电脑采用USB连接后,启动电脑上已安装的360杀毒软件等,在此不作限定。In the embodiment of the present invention, starting the virus data detection process may refer to starting the virus scanning software installed in the first terminal or the virus scanning software installed on other terminal devices. For example, the mobile phone housekeeper in the mobile phone, or the 360 antivirus software installed on the computer after connecting the mobile phone to the computer through USB, etc., are not limited here.
可选的,本发明实施例也可以在所述第一终端接收到数据迁移指令之后,根据该数据迁移指令搜集待迁移数据时开启病毒数据检测进程。Optionally, in this embodiment of the present invention, after the first terminal receives the data migration instruction, the virus data detection process may be started when the data to be migrated is collected according to the data migration instruction.
步骤S204,若所述第一终端在所述待迁移数据中未检测出所述病毒数据,则将所述待迁移数据传输至与所述第一终端连接的第二终端。Step S204, if the first terminal does not detect the virus data in the data to be migrated, then transmit the data to be migrated to a second terminal connected to the first terminal.
该步骤与步骤S103相同,具体可参见步骤S103的相关描述,在此不再赘述。This step is the same as step S103, for details, please refer to the related description of step S103, which will not be repeated here.
本发明实施例在实施例一的基础上增加“启动病毒检测进程;通过所述病毒检测进程检测所述待迁移数据中是否存在病毒数据”,从而通过启动病毒检测进程对所述待迁移数据进行病毒检测,提高数据迁移的安全性。In the embodiment of the present invention, on the basis of the first embodiment, "start the virus detection process; detect whether there is virus data in the data to be migrated through the virus detection process", so as to perform the process on the data to be migrated by starting the virus detection process Virus detection to improve the security of data migration.
参见图3,是本发明实施例三提供的终端设备的结构框图,为了便于说明,仅示出了与本发明实施例相关的部分。Referring to FIG. 3 , it is a structural block diagram of a terminal device provided by Embodiment 3 of the present invention. For ease of description, only parts related to the embodiment of the present invention are shown.
所述终端设备包括:The terminal equipment includes:
数据确定模块31,用于在接收到数据迁移指令时,确定待迁移数据;A data determination module 31, configured to determine the data to be migrated when a data migration instruction is received;
数据检测模块32,用于检测所述待迁移数据中是否存在病毒数据;A data detection module 32, configured to detect whether virus data exists in the data to be migrated;
数据传输模块33,用于若在所述待迁移数据中未检测出所述病毒数据,则将所述待迁移数据传输至与所述终端设备连接的第二终端。The data transmission module 33 is configured to transmit the data to be migrated to a second terminal connected to the terminal device if the virus data is not detected in the data to be migrated.
可选的,所述数据传输模块33还用于:Optionally, the data transmission module 33 is also used for:
若在所述待迁移数据中检测出所述病毒数据,则禁止所述病毒数据的传输,并将所述待迁移数据中除所述病毒数据之外的数据传输至与所述终端设备连接的所述第二终端,以使得所述第二终端在接收到所述终端设备传输的数据后,检测接收到的所述数据是否存在病毒数据。If the virus data is detected in the data to be migrated, the transmission of the virus data is prohibited, and the data other than the virus data in the data to be migrated is transmitted to the terminal device connected to the The second terminal, such that after receiving the data transmitted by the terminal device, the second terminal detects whether there is virus data in the received data.
可选的,所述数据传输模块33包括:Optionally, the data transmission module 33 includes:
标记单元331,用于若在所述待迁移数据中检测出所述病毒数据,则对所述病毒数据进行标记;A marking unit 331, configured to mark the virus data if the virus data is detected in the data to be migrated;
传输单元332,用于若接收到对标记的数据的确认指令,则禁止所述标记的数据的传输,并将所述待迁移数据中未标记的数据传输至与所述终端设备连接的所述第二终端。The transmission unit 332 is configured to prohibit the transmission of the marked data and transmit the unmarked data in the data to be migrated to the terminal device connected to the second terminal.
所述数据确定模块31包括:The data determination module 31 includes:
连接确定单元311,用于在接收到数据迁移指令时,确定是否已与所述第二终端建立通信连接;A connection determining unit 311, configured to determine whether a communication connection has been established with the second terminal when a data migration instruction is received;
第一确定单元312,用于在所述连接确定单元的判断结果为是时,根据所述数据迁移指令确定所述待迁移数据;The first determining unit 312 is configured to determine the data to be migrated according to the data migration instruction when the determination result of the connection determining unit is yes;
第二确定单元313,用于在所述连接确定单元的判断结果为否时,建立与所述第二终端的通信连接,并在连接成功后,根据所述数据迁移指令确定所述待迁移数据。The second determination unit 313 is configured to establish a communication connection with the second terminal when the determination result of the connection determination unit is No, and determine the data to be migrated according to the data migration instruction after the connection is successful. .
可选的,所述终端设备还包括:Optionally, the terminal device also includes:
启动模块34,用于在检测所述待迁移数据中是否存在病毒数据之前,启动病毒数据检测进程;A startup module 34, configured to start a virus data detection process before detecting whether there is virus data in the data to be migrated;
所述数据检测模块32,用于通过所述病毒数据检测进程检测所述待迁移数据中是否存在病毒数据。The data detection module 32 is configured to detect whether virus data exists in the data to be migrated through the virus data detection process.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units, Completion of modules means that the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit, and the above-mentioned integrated units may adopt hardware It can also be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the above system, reference may be made to the corresponding process in the foregoing method embodiments, and details will not be repeated here.
参见图4,是本发明实施例四提供的终端设备的结构框图。如图所示的该终端设备可以包括:一个或多个处理器401(图中仅示出一个);一个或多个输入设备402(图中仅示出一个),一个或多个输出设备403(图中仅示出一个)和存储器404。上述处理器401、输入设备402、输出设备403和存储器404通过总线405连接。存储器404用于存储指令,处理器401用于执行存储器404存储的指令。其中:Referring to FIG. 4 , it is a structural block diagram of a terminal device provided in Embodiment 4 of the present invention. The terminal device as shown in the figure may include: one or more processors 401 (only one is shown in the figure); one or more input devices 402 (only one is shown in the figure), one or more output devices 403 (only one is shown in the figure) and memory 404 . The aforementioned processor 401 , input device 402 , output device 403 and memory 404 are connected through a bus 405 . The memory 404 is used to store instructions, and the processor 401 is used to execute the instructions stored in the memory 404 . in:
所述处理器401,用于在接收到数据迁移指令时,确定待迁移数据;检测所述待迁移数据中是否存在病毒数据;若在所述待迁移数据中未检测出所述病毒数据,则通过所述输出设备403将所述待迁移数据传输至与所述终端设备连接的第二终端。The processor 401 is configured to, when receiving a data migration instruction, determine the data to be migrated; detect whether there is virus data in the data to be migrated; if the virus data is not detected in the data to be migrated, then The data to be migrated is transmitted to a second terminal connected to the terminal device through the output device 403 .
可选的,所述处理器401,还用于若在所述待迁移数据中检测出所述病毒数据,则禁止所述病毒数据的传输,并通过所述输出设备403将所述待迁移数据中除所述病毒数据之外的数据传输至与所述终端设备连接的所述第二终端,以使得所述第二终端在接收到所述终端设备传输的数据后,检测接收到的所述数据是否存在病毒数据。Optionally, the processor 401 is further configured to, if the virus data is detected in the data to be migrated, prohibiting the transmission of the virus data, and outputting the data to be migrated via the output device 403 The data except the virus data is transmitted to the second terminal connected to the terminal device, so that after receiving the data transmitted by the terminal device, the second terminal detects the received Whether the data has virus data.
可选的,所述处理器401具体用于若在所述待迁移数据中检测出所述病毒数据,则对所述病毒数据进行标记;若通过所述输入设备402接收到对标记的数据的确认指令,则禁止所述标记的数据的传输,并通过所述输出设备403将所述待迁移数据中未标记的数据传输至与所述终端设备连接的所述第二终端。Optionally, the processor 401 is specifically configured to mark the virus data if the virus data is detected in the data to be migrated; If the instruction is confirmed, the transmission of the marked data is prohibited, and the unmarked data in the data to be migrated is transmitted to the second terminal connected to the terminal device through the output device 403 .
可选的,所述处理器401,具体用于在接收到数据迁移指令时,确定是否已与所述第二终端建立通信连接;在所述连接确定单元的判断结果为是时,根据所述数据迁移指令确定所述待迁移数据;在所述连接确定单元的判断结果为否时,建立与所述第二终端的通信连接,并在连接成功后,根据所述数据迁移指令确定所述待迁移数据。Optionally, the processor 401 is specifically configured to determine whether a communication connection has been established with the second terminal when receiving the data migration instruction; when the determination result of the connection determination unit is yes, according to the The data migration instruction determines the data to be migrated; when the judgment result of the connection determination unit is No, establish a communication connection with the second terminal, and after the connection is successful, determine the data to be migrated according to the data migration instruction Migrate data.
可选的,在检测所述待迁移数据中是否存在病毒数据之前,所述处理器401,还用于启动病毒数据检测进程,并通过所述病毒数据检测进程检测所述待迁移数据中是否存在病毒数据。Optionally, before detecting whether virus data exists in the data to be migrated, the processor 401 is further configured to start a virus data detection process, and detect whether there is virus data in the data to be migrated through the virus data detection process. virus data.
所述存储器404,用于存储软件程序以及模块。所述处理器401通过运行存储在所述存储器404的软件程序以及模块,从而执行各种功能应用以及数据处理,以将未检测出病毒数据的待迁移数据传输至第二终端。The memory 404 is used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 404, so as to transmit the data to be migrated without virus data detected to the second terminal.
应当理解,在本发明实施例中,所述处理器401可以是中央处理单元(CentralProcessing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DigitalSignal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present invention, the processor 401 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), dedicated Integrated Circuit (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
输入设备402可以包括触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风、数据接收接口等。输出设备403可以包括显示器(LCD等)、扬声器、数据发送接口等。The input device 402 may include a touch panel, a fingerprint sensor (for collecting user's fingerprint information and fingerprint direction information), a microphone, a data receiving interface, and the like. The output device 403 may include a display (LCD, etc.), a speaker, a data sending interface, and the like.
该存储器404可以包括只读存储器和随机存取存储器,并向处理器401提供指令和数据。存储器404的一部分还可以包括非易失性随机存取存储器。例 如,存储器404还可以存储设备类型的信息。The memory 404 may include read-only memory and random-access memory, and provides instructions and data to the processor 401 . A portion of memory 404 may also include non-volatile random access memory. For example, memory 404 may also store device type information.
具体实现中,本发明实施例中所描述的处理器401、输入设备402、输出设备403和存储器404可执行本发明实施例提供的数据迁移方法的实施例中所描述的实现方式,也可执行实施例三所述终端设备中所描述的实现方式,在此不再赘述。In specific implementation, the processor 401, input device 402, output device 403, and memory 404 described in the embodiment of the present invention can execute the implementation described in the embodiment of the data migration method provided in the embodiment of the present invention, and can also execute The implementation manner described in the terminal device in Embodiment 3 will not be repeated here.
参见图5,是本发明实施例五提供的终端设备的结构框图,该终端设备可以用于实施本发明实施例提供的数据迁移方法的实施例中所描述的实现方式,也可执行实施例三所述终端设备中所描述的实现方式。Referring to FIG. 5 , it is a structural block diagram of a terminal device provided in Embodiment 5 of the present invention. The terminal device can be used to implement the implementation described in the embodiment of the data migration method provided in the embodiment of the present invention, and can also execute Embodiment 3 The implementation described in the terminal device.
如图5所示,终端设备1200可以包括RF(Radio Frequency,射频)电路110、包括有一个或一个以上(图中仅示出一个)计算机可读存储介质的存储器120、输入单元130、显示单元140、传感器150、音频电路160、传输模块170、包括有一个或者一个以上(图中仅示出一个)处理核心的处理器180以及电源190等部件。本领域技术人员可以理解,图5中示出的终端设备结构并不构成对终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:As shown in FIG. 5, the terminal device 1200 may include an RF (Radio Frequency, radio frequency) circuit 110, a memory 120 including one or more (only one is shown in the figure) computer-readable storage media, an input unit 130, and a display unit. 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one is shown in the figure) processing cores, a power supply 190 and other components. Those skilled in the art can understand that the structure of the terminal device shown in FIG. 5 does not constitute a limitation on the terminal device, and may include more or less components than shown in the figure, or combine some components, or arrange different components. in:
RF电路110用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。RF电路110可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。RF电路110可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for Mobile Communication,GSM)、增强型移动通信技术(Enhanced DataGSM Environment,EDGE),宽带码分多址技术(wideband code division multipleaccess,W-CDMA),码分多址技术(Code division access, CDMA)、时分多址技术(timedivision multiple access,TDMA),无线保真技术(Wireless,Fidelity,WiFi)(如美国电气和电子工程师协会标准IEEE 802.11a,IEEE 802.11b,IEEE802.11g和/或IEEE802.11n)、网络电话(Voice over internet protocal,VoIP)、全球微波互联接入(Worldwide Interoperability for Microwave Access,Wi-Max)、其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。The RF circuit 110 is used to receive and send electromagnetic waves, realize mutual conversion between electromagnetic waves and electrical signals, and communicate with communication networks or other devices. The RF circuit 110 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memory, and the like. The RF circuit 110 can communicate with various networks such as the Internet, intranet, wireless network, or communicate with other devices through the wireless network. The wireless network mentioned above may include a cellular telephone network, a wireless local area network or a metropolitan area network. The wireless network mentioned above can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced DataGSM Environment (EDGE), broadband code division Multiple access technology (wideband code division multiple access, W-CDMA), code division multiple access technology (Code division access, CDMA), time division multiple access technology (timedivision multiple access, TDMA), wireless fidelity technology (Wireless, Fidelity, WiFi) (such as IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE802.11n), VoIP (Voice over internet protocol, VoIP), Worldwide Interoperability for Microwave Access , Wi-Max), other protocols for mail, instant messaging and short messaging, and any other suitable communication protocol, even those that have not yet been developed.
存储器120可用于存储软件程序以及模块,如上述实施例一至二中数据迁移方法/实施例三中终端设备对应的程序指令/模块,处理器180通过运行存储在存储器120内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现获取预设事件对应的资源的功能。存储器120可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器120可进一步包括相对于处理器180远程设置的存储器,这些远程存储器可以通过网络连接至终端设备1200。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 120 can be used to store software programs and modules, such as the program instructions/modules corresponding to the data migration method in the above-mentioned embodiments 1 to 2/the terminal device in the third embodiment, the processor 180 runs the software programs and modules stored in the memory 120, In this way, various functional applications and data processing are performed, that is, the function of obtaining resources corresponding to preset events is realized. The memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 may further include a memory that is remotely located relative to the processor 180, and these remote memories may be connected to the terminal device 1200 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
输入单元130可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元130可包括触敏表面131以及其他输入设备132。触敏表面131,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面131上或在触敏表面131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面131。除了触敏表面131, 输入单元130还可以包括其他输入设备132。具体地,其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 130 can be used to receive input numbers or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 130 may include a touch-sensitive surface 131 and other input devices 132 . The touch-sensitive surface 131, also referred to as a touch screen or a touchpad, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch-sensitive surface 131 or on the operation near the touch-sensitive surface 131), and drive the corresponding connection device according to the preset program. Optionally, the touch-sensitive surface 131 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and 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 sends it to the to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 131 , the input unit 130 may also include other input devices 132 . Specifically, other input devices 132 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.
显示单元140可用于显示由用户输入的信息或提供给用户的信息以及终端设备1200的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元140可包括显示面板141,可选的,可以采用LCD(Liquid CrystalDisplay,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板141。进一步的,触敏表面131可覆盖显示面板141,当触敏表面131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图5中,触敏表面131与显示面板141是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面131与显示面板141集成而实现输入和输出功能。The display unit 140 can be used to display information input by or provided to the user and various graphical user interfaces of the terminal device 1200. These graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. The display unit 140 may include a display panel 141. Optionally, the display panel 141 may be configured in the form of LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light-emitting diode), and the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation on or near it, the touch operation is sent to the processor 180 to determine the type of the touch event, and then the processor 180 determines the type of the touch event according to the type of the touch event. The type provides a corresponding visual output on the display panel 141 . Although in FIG. 5, the touch-sensitive surface 131 and the display panel 141 are used as two independent components to realize input and input functions, in some embodiments, the touch-sensitive surface 131 and the display panel 141 can be integrated to realize input. and output functions.
终端设备1200还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在终端设备1200移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端设备1200还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The terminal device 1200 may further include at least one sensor 150, 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 panel 141 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 141 when the terminal device 1200 moves to the ear. and/or backlighting. As a kind of motion sensor, the gravitational acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used for applications that recognize the attitude of mobile phones (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition-related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, and infrared sensor that can also be configured on terminal device 1200, here No longer.
音频电路160、扬声器161,传声器162可提供用户与终端设备1200之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集 的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器180处理后,经RF电路110以发送给比如另一终端,或者将音频数据输出至存储器120以便进一步处理。音频电路160还可能包括耳塞插孔,以提供外设耳机与终端设备1200的通信。The audio circuit 160 , the speaker 161 and the microphone 162 can provide an audio interface between the user and the terminal device 1200 . The audio circuit 160 can transmit the electrical signal converted from the received audio data to the loudspeaker 161, and the loudspeaker 161 converts it into an audio signal output; After being received, it is converted into audio data, and then the audio data is processed by the output processor 180, and then sent to another terminal through the RF circuit 110, or the audio data is output to the memory 120 for further processing. The audio circuit 160 may also include an earplug jack to provide communication between an external earphone and the terminal device 1200 .
终端设备1200通过传输模块170(例如WiFi模块)可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了传输模块170,但是可以理解的是,其并不属于终端设备1200的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。The terminal device 1200 can help the user to send and receive e-mails, browse the web, access streaming media, etc. through the transmission module 170 (such as a WiFi module), and it provides users with wireless broadband Internet access. Although FIG. 5 shows the transmission module 170, it can be understood that it is not an essential component of the terminal device 1200, and can be completely omitted as required without changing the essence of the invention.
处理器180是终端设备1200的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行终端设备1200的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理核心;优选的,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。The processor 180 is the control center of the terminal device 1200, and uses various interfaces and lines to connect various parts of the entire mobile phone, by running or executing software programs and/or modules stored in the memory 120, and calling data stored in the memory 120 , execute various functions and process data of the terminal device 1200, so as to monitor the mobile phone as a whole. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 180 .
终端设备1200还包括给各个部件供电的电源190(比如电池),优选的,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源190还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The terminal device 1200 also includes a power supply 190 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 180 through the power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system. . The power supply 190 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
尽管未示出,终端设备1200还可以包括摄像头、蓝牙模块等,在此不再赘述。具体在本实施例中,终端设备的显示单元是触摸屏显示器,终端设备还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行述一个或者一个以上程序包含用于进行以下操作的指令:Although not shown, the terminal device 1200 may also include a camera, a Bluetooth module, etc., which will not be repeated here. Specifically in this embodiment, the display unit of the terminal device is a touch screen display, and the terminal device also includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and are configured to be controlled by one or one The above processor executes the one or more programs including instructions for performing the following operations:
在接收到数据迁移指令时,确定待迁移数据;When receiving the data migration instruction, determine the data to be migrated;
检测所述待迁移数据中是否存在病毒数据;Detecting whether virus data exists in the data to be migrated;
若在所述待迁移数据中未检测出所述病毒数据,则将所述待迁移数据传输至与所述终端设备连接的第二终端。If the virus data is not detected in the data to be migrated, the data to be migrated is transmitted to a second terminal connected to the terminal device.
假设上述为第一种可能的实施方式,则在第一种可能的实施方式作为基础而提供的第二种可能的实施方式中,所述终端设备的存储器中,还包括用于执行以下操作的指令:Assuming that the above is the first possible implementation manner, then in the second possible implementation manner provided on the basis of the first possible implementation manner, the memory of the terminal device further includes a function for performing the following operations instruction:
若在所述待迁移数据中检测出所述病毒数据,则禁止所述病毒数据的传输,并将所述待迁移数据中除所述病毒数据之外的数据传输至与所述终端设备连接的所述第二终端,以使得所述第二终端在接收到所述终端设备传输的数据后,检测接收到的所述数据是否存在病毒数据。If the virus data is detected in the data to be migrated, the transmission of the virus data is prohibited, and the data other than the virus data in the data to be migrated is transmitted to the terminal device connected to the The second terminal, such that after receiving the data transmitted by the terminal device, the second terminal detects whether there is virus data in the received data.
假设上述为第二种可能的实施方式,则在第二种可能的实施方式作为基础而提供的第三种可能的实施方式中,所述终端设备的存储器中,还包含用于执行以下操作的指令:Assuming that the above is the second possible implementation manner, then in the third possible implementation manner provided on the basis of the second possible implementation manner, the memory of the terminal device further includes a function for performing the following operations instruction:
若在所述待迁移数据中检测出所述病毒数据,则对所述病毒数据进行标记;If the virus data is detected in the data to be migrated, then mark the virus data;
若接收到对标记的数据的确认指令,则禁止所述标记的数据的传输,并将所述待迁移数据中未标记的数据传输至与所述终端设备连接的所述第二终端。If a confirmation instruction on the marked data is received, the transmission of the marked data is prohibited, and the unmarked data in the data to be migrated is transmitted to the second terminal connected to the terminal device.
在第一种可能的实施方式作为基础而提供的第四种可能的实施方式中,所述终端设备的存储器中,还包含用于执行以下操作的指令:In a fourth possible implementation manner provided on the basis of the first possible implementation manner, the memory of the terminal device further includes instructions for performing the following operations:
在接收到数据迁移指令时,确定是否已与所述第二终端建立通信连接;When receiving the data migration instruction, determine whether a communication connection has been established with the second terminal;
在所述连接确定单元的判断结果为是时,根据所述数据迁移指令确定所述待迁移数据;When the determination result of the connection determination unit is yes, determine the data to be migrated according to the data migration instruction;
在所述连接确定单元的判断结果为否时,建立与所述第二终端的通信连接,并在连接成功后,根据所述数据迁移指令确定所述待迁移数据。When the judgment result of the connection determination unit is negative, establish a communication connection with the second terminal, and determine the data to be migrated according to the data migration instruction after the connection is successful.
在第一种可能的实施方式或第二种可能的实施方式或第三种可能的实施方式或第四种可能的实施方式作为基础而提供的第五种可能的实施方式中,所述终端设备的存储器中,还包含用于执行以下操作的指令:In a fifth possible implementation manner provided on the basis of the first possible implementation manner, the second possible implementation manner, the third possible implementation manner, or the fourth possible implementation manner, the terminal device memory also contains instructions for:
启动病毒数据检测进程;Start the virus data detection process;
通过所述病毒数据检测进程检测所述待迁移数据中是否存在病毒数据。Detect whether there is virus data in the data to be migrated through the virus data detection process.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts that are not detailed or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
在本发明所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the system embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明 实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明实施例各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment 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 The medium includes several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .
具体如下,本发明再一实施例还提供一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中的存储器中所包含的计算机可读存储介质;也可以是单独存在,未装配入终端设备中的计算机可读存储介质。所述计算机可读存储介质存储有一个或者一个以上程序,所述一个或者一个以上程序被一个或者一个以上的处理器用来执行一个数据迁移方法,所述数据迁移方法包括:Specifically as follows, another embodiment of the present invention also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the memory in the above-mentioned embodiment; A computer-readable storage medium incorporated into a terminal device. The computer-readable storage medium stores one or more programs, and the one or more programs are used by one or more processors to execute a data migration method, and the data migration method includes:
在接收到数据迁移指令时,确定待迁移数据;When receiving the data migration instruction, determine the data to be migrated;
检测所述待迁移数据中是否存在病毒数据;Detecting whether virus data exists in the data to be migrated;
若在所述待迁移数据中未检测出所述病毒数据,则将所述待迁移数据传输至与所述终端设备连接的第二终端。If the virus data is not detected in the data to be migrated, the data to be migrated is transmitted to a second terminal connected to the terminal device.
假设上述为第一种可能的实施方式,则在第一种可能的实施方式作为基础而提供的第二种可能的实施方式中,所述终端设备的存储器中,还包括用于执行以下操作的指令:Assuming that the above is the first possible implementation manner, then in the second possible implementation manner provided on the basis of the first possible implementation manner, the memory of the terminal device further includes a function for performing the following operations instruction:
若在所述待迁移数据中检测出所述病毒数据时,则禁止所述病毒数据的传输,并将所述待迁移数据中除所述病毒数据之外的数据传输至与所述终端设备连接的所述第二终端,以使得所述第二终端在接收到所述终端设备传输的数据后,检测接收到的所述数据是否存在病毒数据。If the virus data is detected in the data to be migrated, the transmission of the virus data is prohibited, and the data other than the virus data in the data to be migrated is transmitted to the terminal device connected to the the second terminal, so that after receiving the data transmitted by the terminal device, the second terminal detects whether there is virus data in the received data.
假设上述为第二种可能的实施方式,则在第二种可能的实施方式作为基础而提供的第三种可能的实施方式中,所述终端设备的存储器中,还包含用于执行以下操作的指令:Assuming that the above is the second possible implementation manner, then in the third possible implementation manner provided on the basis of the second possible implementation manner, the memory of the terminal device further includes a function for performing the following operations instruction:
若在所述待迁移数据中检测出所述病毒数据,则对所述病毒数据进行标记;If the virus data is detected in the data to be migrated, then mark the virus data;
若接收到对标记的数据的确认指令,则禁止所述标记的数据的传输,并将所述待迁移数据中未标记的数据传输至与所述终端设备连接的所述第二终端。If a confirmation instruction on the marked data is received, the transmission of the marked data is prohibited, and the unmarked data in the data to be migrated is transmitted to the second terminal connected to the terminal device.
在第一种可能的实施方式作为基础而提供的第四种可能的实施方式中,所述终端设备的存储器中,还包含用于执行以下操作的指令:In a fourth possible implementation manner provided on the basis of the first possible implementation manner, the memory of the terminal device further includes instructions for performing the following operations:
在接收到数据迁移指令时,确定是否已与所述第二终端建立通信连接;When receiving the data migration instruction, determine whether a communication connection has been established with the second terminal;
在所述连接确定单元的判断结果为是时,根据所述数据迁移指令确定所述待迁移数据;When the determination result of the connection determination unit is yes, determine the data to be migrated according to the data migration instruction;
在所述连接确定单元的判断结果为否时,建立与所述第二终端的通信连接,并在连接成功后,根据所述数据迁移指令确定所述待迁移数据。When the judgment result of the connection determination unit is negative, establish a communication connection with the second terminal, and determine the data to be migrated according to the data migration instruction after the connection is successful.
在第一种可能的实施方式或第二种可能的实施方式或第三种可能的实施方式或第四种可能的实施方式作为基础而提供的第五种可能的实施方式中,所述终端设备的存储器中,还包含用于执行以下操作的指令:In a fifth possible implementation manner provided on the basis of the first possible implementation manner, the second possible implementation manner, the third possible implementation manner, or the fourth possible implementation manner, the terminal device memory also contains instructions for:
启动病毒数据检测进程;Start the virus data detection process;
通过所述病毒数据检测进程检测所述待迁移数据中是否存在病毒数据。Detect whether there is virus data in the data to be migrated through the virus data detection process.
以上所述实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围,均应包含在本发明的保护范围之内。The above-described embodiments are only used to illustrate the technical solutions of the present invention, rather than 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 that: it can still carry out the foregoing embodiments Modifications to the technical solutions recorded in the examples, or equivalent replacement of some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should be included in within the protection scope of the present invention.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710318712.1A CN107045610B (en) | 2017-05-08 | 2017-05-08 | Data migration method, terminal device and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710318712.1A CN107045610B (en) | 2017-05-08 | 2017-05-08 | Data migration method, terminal device and computer-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107045610A true CN107045610A (en) | 2017-08-15 |
CN107045610B CN107045610B (en) | 2020-06-12 |
Family
ID=59547222
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710318712.1A Expired - Fee Related CN107045610B (en) | 2017-05-08 | 2017-05-08 | Data migration method, terminal device and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107045610B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107896207A (en) * | 2017-09-28 | 2018-04-10 | 努比亚技术有限公司 | A kind of data migration method, terminal and computer-readable recording medium |
CN110704843A (en) * | 2019-09-29 | 2020-01-17 | 珠海市魅族科技有限公司 | USB accessory safety control method and device, storage medium and electronic device |
CN113038447A (en) * | 2021-03-31 | 2021-06-25 | 德氪微电子(深圳)有限公司 | Data transmission method, device, mobile terminal and storage medium |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101079689A (en) * | 2006-05-26 | 2007-11-28 | 上海晨兴电子科技有限公司 | Method and device for virus scanning and processing of the data received by mobile phone |
CN102222184A (en) * | 2011-05-17 | 2011-10-19 | 中兴通讯股份有限公司 | Method and system for killing mobile terminal viruses |
CN102667772A (en) * | 2010-03-01 | 2012-09-12 | 株式会社日立制作所 | File level hierarchical storage management system, method, and apparatus |
CN102685194A (en) * | 2010-12-20 | 2012-09-19 | 微软公司 | Storage device migration and redirection |
CN104023410A (en) * | 2014-05-14 | 2014-09-03 | 北京奇虎科技有限公司 | Method and device capable of realizing safe data transfer between wireless terminals |
CN104022998A (en) * | 2013-03-01 | 2014-09-03 | 北京瑞星信息技术有限公司 | Network transmission data virus detection processing method |
CN104115157A (en) * | 2011-12-30 | 2014-10-22 | 英特尔公司 | Trusted application migration across computer nodes |
CN104468458A (en) * | 2013-09-12 | 2015-03-25 | 中国电信股份有限公司 | Method and system for migrating client work load to cloud environment, and migration agent |
CN104462562A (en) * | 2014-12-29 | 2015-03-25 | 浪潮软件集团有限公司 | Data migration system and method based on data warehouse automation |
CN105323261A (en) * | 2015-12-15 | 2016-02-10 | 北京奇虎科技有限公司 | Data detection method and device |
US9565202B1 (en) * | 2013-03-13 | 2017-02-07 | Fireeye, Inc. | System and method for detecting exfiltration content |
CN106603522A (en) * | 2016-12-09 | 2017-04-26 | 北京安天电子设备有限公司 | Cloud data virus detection method and cloud data virus detection system based on bypass listening |
-
2017
- 2017-05-08 CN CN201710318712.1A patent/CN107045610B/en not_active Expired - Fee Related
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101079689A (en) * | 2006-05-26 | 2007-11-28 | 上海晨兴电子科技有限公司 | Method and device for virus scanning and processing of the data received by mobile phone |
CN102667772A (en) * | 2010-03-01 | 2012-09-12 | 株式会社日立制作所 | File level hierarchical storage management system, method, and apparatus |
CN102685194A (en) * | 2010-12-20 | 2012-09-19 | 微软公司 | Storage device migration and redirection |
CN102222184A (en) * | 2011-05-17 | 2011-10-19 | 中兴通讯股份有限公司 | Method and system for killing mobile terminal viruses |
CN104115157A (en) * | 2011-12-30 | 2014-10-22 | 英特尔公司 | Trusted application migration across computer nodes |
CN104022998A (en) * | 2013-03-01 | 2014-09-03 | 北京瑞星信息技术有限公司 | Network transmission data virus detection processing method |
US9565202B1 (en) * | 2013-03-13 | 2017-02-07 | Fireeye, Inc. | System and method for detecting exfiltration content |
CN104468458A (en) * | 2013-09-12 | 2015-03-25 | 中国电信股份有限公司 | Method and system for migrating client work load to cloud environment, and migration agent |
CN104023410A (en) * | 2014-05-14 | 2014-09-03 | 北京奇虎科技有限公司 | Method and device capable of realizing safe data transfer between wireless terminals |
CN104462562A (en) * | 2014-12-29 | 2015-03-25 | 浪潮软件集团有限公司 | Data migration system and method based on data warehouse automation |
CN105323261A (en) * | 2015-12-15 | 2016-02-10 | 北京奇虎科技有限公司 | Data detection method and device |
CN106603522A (en) * | 2016-12-09 | 2017-04-26 | 北京安天电子设备有限公司 | Cloud data virus detection method and cloud data virus detection system based on bypass listening |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107896207A (en) * | 2017-09-28 | 2018-04-10 | 努比亚技术有限公司 | A kind of data migration method, terminal and computer-readable recording medium |
CN110704843A (en) * | 2019-09-29 | 2020-01-17 | 珠海市魅族科技有限公司 | USB accessory safety control method and device, storage medium and electronic device |
CN113038447A (en) * | 2021-03-31 | 2021-06-25 | 德氪微电子(深圳)有限公司 | Data transmission method, device, mobile terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107045610B (en) | 2020-06-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106327166A (en) | Information processing method and mobile terminal | |
WO2015043189A1 (en) | Message display method and apparatus, and terminal device | |
WO2014206143A1 (en) | Method, apparatus and device for displaying number of unread messages | |
CN106203035A (en) | A data access control method and mobile terminal | |
CN105959971A (en) | WiFi password sharing method and mobile terminal | |
CN107278380A (en) | Method for connecting bluetooth device and terminal device | |
CN106326073B (en) | The method and mobile terminal of information processing | |
CN107145386B (en) | Data migration method, terminal device and computer readable storage medium | |
WO2018049901A1 (en) | Data migration method and related devices | |
CN105187653B (en) | Network connection switchs method for closing and device | |
CN106250014A (en) | Application recommended method and device | |
CN106507269A (en) | A data migration method and terminal equipment | |
CN106326072B (en) | Information processing method and mobile terminal | |
CN106658353A (en) | A data migration method and terminal equipment | |
CN108270757B (en) | User account switching method, device, client and system | |
CN106445739B (en) | Data migration method and terminal equipment | |
US20140325449A1 (en) | Method, device and storage medium for starting application in electronic apparatus | |
CN105162930B (en) | The way of recording and device of mobile terminal | |
CN107045610B (en) | Data migration method, terminal device and computer-readable storage medium | |
WO2015062234A1 (en) | Mobile terminal resource processing method, device and apparatus | |
CN106529332A (en) | Permission control method and apparatus for mobile terminal, and mobile terminal | |
CN106484563B (en) | Data migration method and terminal equipment | |
CN108153460A (en) | A kind of icon hiding method and terminal | |
CN106339862A (en) | Information processing method and mobile terminal | |
CN107272985A (en) | Notification message processing method and related product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | 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 | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200612 |