WO2018049937A1 - 一种数据迁移的方法及终端 - Google Patents
一种数据迁移的方法及终端 Download PDFInfo
- Publication number
- WO2018049937A1 WO2018049937A1 PCT/CN2017/095056 CN2017095056W WO2018049937A1 WO 2018049937 A1 WO2018049937 A1 WO 2018049937A1 CN 2017095056 W CN2017095056 W CN 2017095056W WO 2018049937 A1 WO2018049937 A1 WO 2018049937A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- terminal
- path
- private data
- identifier
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/563—Data redirection of data network streams
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/30—Routing of multiclass traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network 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/0435—Network 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
Definitions
- the present invention relates to the field of terminals, and in particular, to a data migration method and terminal.
- terminals such as smart phones, wearable devices, tablets and other electronic devices
- terminals have become an indispensable part of people's lives, so that people will carry terminals wherever they go.
- Embodiments of the present invention provide a data migration method and a terminal, which are capable of identifying private data and non-private data in data to be transmitted, and separately transmitting the private data and non-private data to make the private data and non-private data Privacy data is stored in different paths for easy user management.
- a first aspect of the embodiments of the present invention discloses a data migration method, where the method includes:
- the first terminal analyzes the data to be transmitted to determine private data and non-private data
- 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 private data in a path corresponding to the first path identifier;
- a second aspect of the embodiments of the present invention discloses a data migration apparatus, where the apparatus includes:
- a determining unit configured to receive data selected by the user to be transmitted
- An analyzing 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 indication of establishing a first path and a second path;
- a receiving unit configured to receive a first path identifier and a second path identifier that are 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 private data in a path corresponding to the first path identifier;
- the sending unit is further configured to: 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 to The second path identifier is located under the corresponding path.
- a third aspect of the present invention discloses a terminal, where the terminal includes:
- a processor coupled to the memory
- the processor invokes the executable program code stored in the memory to perform the method of the first aspect.
- a fourth aspect of the invention discloses a storage medium in which program code is stored, and when the program code is executed by a processor, the processor performs the following operations:
- FIG. 1 is a schematic flowchart of a method for data migration according to an embodiment of the present disclosure
- FIG. 1 is a network architecture diagram of a data migration system according to an embodiment of the present invention
- FIG. 1 is a schematic diagram of data storage according to an embodiment of the present invention
- FIG. 2 is a schematic flowchart of another method for data migration according to an embodiment of the present invention.
- FIG. 3 is a schematic structural diagram of a data migration apparatus according to an embodiment of the present disclosure.
- FIG. 4 is a schematic structural diagram of another data migration apparatus according to an embodiment of the present invention.
- FIG. 5 is a schematic structural diagram of a physical device of a data migration apparatus according to an embodiment of the present disclosure
- FIG. 6 is a schematic structural diagram of a physical device of a mobile phone according to an embodiment of the present invention.
- Embodiments of the present invention provide a data migration method and a terminal, which are capable of identifying private data and non-private data in data to be transmitted, and separately transmitting the private data and non-private data to make the private data and non-private data Privacy data is stored in different paths for easy user management.
- a method for data migration includes: determining, by a first terminal, data to be transmitted selected by a user; and analyzing, by the first terminal, data to be transmitted to determine Privacy data and non-private data; the first terminal sends a data transmission request to the second terminal, where the data transmission request includes an indication of establishing a first path and a second path; and receiving a second feedback from the second terminal a path identifier and a second path identifier; the first terminal transmitting 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 Identifying the corresponding path; when the private data is sent, sending 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 to the The second path identifies the path below it.
- FIG. 1-a is a data migration method according to an embodiment of the present invention.
- a method for data migration provided by an embodiment of the present invention includes the following content:
- the first terminal determines data to be transmitted selected by the user.
- the scenario is: the user wants to migrate the data of the first terminal to the second terminal, and after the first terminal establishes a connection with the second terminal, the first terminal prompts the user to select the data to be transmitted.
- the first terminal may establish a connection with the second terminal by using 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.
- the second terminal may be an electronic device such as a smart phone, a tablet computer, a smart wearable device, or a computer.
- the data to be transmitted may be information such as audio and video, pictures, and text.
- the first terminal can traverse the data to be transmitted to determine whether there is duplicate data; if there is duplicate data, perform deduplication processing on the data to be transmitted to prevent transmission of duplicate information.
- the first terminal may traverse the data to be transmitted according to the identifier of each piece of data to determine whether the same identifier exists. If the same identifier exists, it indicates that there is duplicate data.
- the data to be transmitted is classified first, such as picture class, word type, and video class.
- the identifier of the image class data may be stored under the image class directory, and then the image class data is deduplicated according to the identifier of the image class data.
- the data identifier under the picture class has 12345, 556677, 8899, 12345.
- there are two 12345 data identifiers under the picture class directory indicating that the two data are duplicated.
- the user may be prompted to delete duplicate data. If the duplicate data is not deleted, it is recommended that the user rename the name of the duplicate data.
- the first terminal analyzes the data to be transmitted to determine private data and non-private data.
- the data related to the account password can be regarded as private data.
- the privacy data may be a data type selected by the user, such as a text message, a notebook message, a photo, a video, and the like.
- the first terminal analyzes the data to be transmitted to determine data including account information; sets data including the account information as private data, and sets data that does not include the account information. For non-private data.
- the first terminal sends a data transmission request to the second terminal, where the data transmission request includes an indication of establishing a first path and a second path.
- the first path and the second path are not the same path.
- S104 Receive a first path identifier and a second path identifier that are fed back by the second terminal.
- the second terminal has selected the first storage path and the second storage path; the first path identifier and the location Corresponding to the first storage path, where the first path identifier may be the address of the first path; similarly, the second path identifier corresponds to the second storage path, where the second path identifier may be the address of the second path ;
- 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 private data to a path corresponding to the first path identifier;
- the privacy data may be encrypted and transmitted.
- 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 is to the The second terminal transmits the encrypted private data and the identifier of the first path. It should be noted that after the second terminal receives the encrypted private data, the encrypted private data is stored in the first path, and the symmetric key may also be stored in the first path, so as to be encrypted at any time. The privacy data is decrypted.
- the size of the encrypted private data is also determined, if the encrypted private data is too large.
- the second terminal is currently mobile traffic, which will cause a large consumption to the second terminal. For security reasons, it is necessary to remind the user whether to send such data.
- the first terminal calculates a size of the private data; if the size of the private data is greater than a preset threshold, the first terminal acquires a networking mode of the second terminal; When the terminal is connected to the network by using mobile traffic, the user is prompted to confirm whether to transmit; if receiving the prompt for confirming the transmission, the first terminal sends the privacy data to the second terminal.
- the identifier of the first path is such that the second terminal stores the privacy data under a path corresponding to the identifier of the first path.
- the first terminal determines 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 an indication of establishing a first path and a second path, and receiving a first path identifier and a second path identifier fed back by the second terminal; Transmitting, by the first terminal, the privacy data and the identifier of the first path, to enable the second terminal to store the privacy data to a path corresponding to the first path identifier; when the privacy Sending the non-private data and the second terminal to the second terminal when the data transmission is completed
- the identifier of the second path is such that the second terminal stores the non-private data under the path corresponding to the second path identifier.
- the privacy data and the non-private data in the data to be transmitted can be identified, and the private data and the non-private data are separately transmitted to make the private data and the non-private data storage. On different paths, it is convenient for user management.
- FIG. 2 is a data migration method according to an embodiment of the present invention.
- a method for data migration provided by an embodiment of the present invention includes the following content:
- the first terminal determines data to be transmitted selected by the user.
- the first terminal and the second terminal may be electronic devices such as a smart phone, a tablet computer, and a smart wearable device.
- the first terminal traverses the data to be transmitted to determine whether there is duplicate data; if there is duplicate data, performs deduplication processing on the data to be transmitted;
- the first terminal analyzes the data to be transmitted to determine data that includes account information.
- the first terminal interacts with the second terminal to determine a symmetric key, and encrypts the private data by using the symmetric key.
- the first terminal calculates a size of the encrypted private data.
- the first terminal acquires a networking mode of the second terminal.
- the networking mode of the second terminal is to connect to the network by using mobile traffic, send a prompt to the user to confirm whether to transmit.
- the first terminal sends a data transmission request to the second terminal, where the data transmission request includes an indication of establishing the first path and the second path.
- S210 Receive a first path identifier and a second path identifier that are fed back by the second terminal.
- the first terminal sends the encrypted privacy data and the identifier of the first path to the second terminal, so that the second terminal stores the private data in a path corresponding to the first path identifier.
- the de-duplication step of the data to be transmitted is expanded in the solution of the embodiment of the present invention, thereby preventing repeated transmission of data.
- the verification step is also extended in the solution of the embodiment of the present invention to prevent a large consumption of mobile traffic.
- FIG. 3 is a schematic structural diagram of a data migration apparatus according to an embodiment of the present invention.
- an embodiment of the present invention provides a data migration device 300, wherein the data migration device 300 can be an electronic device such as a smart phone, a tablet computer, or a smart wearable device.
- the data migration device 300 includes a determination unit 301, an analysis unit 302, a transmission unit 303, and a reception unit 304.
- a determining unit 301 configured to receive data to be transmitted selected by a user
- the analyzing unit 302 is configured to analyze the data to be transmitted to determine private data and non-private data;
- the sending unit 303 is configured to send a data transmission request to the second terminal, where the data transmission request includes an indication that the first path and the second path are established;
- the receiving unit 304 is configured to receive the first path identifier and the second path identifier that are fed back by the second terminal.
- 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 private data to a path corresponding to the first path identifier;
- the sending unit 303 is further configured to: 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 to the The path corresponding to the second path identifier is described.
- the determining unit 301, the analyzing unit 302, the sending unit 303, and the receiving unit 304 may be used to perform the methods described in steps S101 to S106 in Embodiment 1, and the specific description is described in detail in the description of the method in Embodiment 1. No longer.
- FIG. 4 is a schematic structural diagram of a data migration apparatus according to an embodiment of the present invention.
- the data migration device may be an electronic device such as a smart phone, a tablet computer, or a smart wearable device.
- the data migration apparatus 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 presentation unit 408, a traversal unit 409, and a deduplication unit 410.
- a determining unit 401 configured to receive data to be transmitted selected by a user
- a traversing unit 409 configured to traverse the data to be transmitted to determine whether there is duplicate data
- the de-duplication unit 410 is configured to perform de-duplication processing on the data to be transmitted if there is duplicate data;
- the analyzing unit 401 is configured to analyze the data to be transmitted to determine private data and non-private data;
- the analyzing unit 402 includes an analyzing subunit and a setting subunit;
- the analyzing subunit is configured to analyze the data to be transmitted to determine data including account information
- the setting subunit is configured to set data including the account information as private data, and set data not including the account information as non-private data.
- a determining unit 401 configured to interact with the second terminal to determine a symmetric key
- the encryption unit 405 is configured to encrypt the private data by using the symmetric key
- the calculating unit 406 is configured to calculate a size of the privacy data
- the obtaining unit 407 is configured to acquire a networking mode of the second terminal if the size of the encrypted private data is greater than a preset threshold.
- the prompting unit 408 is configured to send a prompt to the user to confirm whether to transmit if the networking mode of the second terminal is to connect through a mobile traffic;
- the sending unit 403 is specifically configured to: if receiving the prompt for confirming the transmission, send a data transmission request to the second terminal, where the data transmission request includes an indication of establishing the first path and the second path;
- the receiving unit 404 is configured to receive the first path identifier and the second path identifier that are fed back by the second terminal.
- 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 private data in a path corresponding to the first path identifier. ;
- the sending unit 403 is further configured to: 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 to the The path corresponding to the second path identifier is described.
- the determining unit 401, the analyzing unit 402, the sending unit 403, the receiving unit 404, the encrypting unit 405, the calculating unit 406, the obtaining unit 407, the prompting unit 408, the traversing unit 409, and the deduping unit 410 may be used to execute the embodiment 2
- the determining unit 401, the analyzing unit 402, the sending unit 403, the receiving unit 404, the encrypting unit 405, the calculating unit 406, the obtaining unit 407, the prompting unit 408, the traversing unit 409, and the deduping unit 410 may be used to execute the embodiment 2
- the terminal 500 includes a CPU 501, a memory 502, and a bus 503.
- the terminal 500 can be an electronic device with a call function, such as a smart phone, a tablet computer, or a smart wearable device.
- the CPU 501 executes a program that is stored in the memory 502 in advance, and the execution process specifically includes:
- the first terminal analyzes the data to be transmitted to determine private data and non-private data, including:
- the data including the account information is set as private data, and the data not including the account information is set as non-private data.
- the execution process further includes:
- Sending the privacy data and the identifier of the first path to the second terminal including:
- the performing process before the sending, by the first terminal, the privacy data and the identifier of the first path to the second terminal, the performing process further includes:
- the networking mode of the second terminal is to connect through the mobile traffic, sending a prompt to the user to confirm whether to transmit;
- the performing process further includes:
- the data to be transmitted is subjected to deduplication processing.
- the first terminal determines 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 an indication of establishing a first path and a second path, and receiving a first path identifier and a second path identifier fed back by the second terminal; Transmitting, by the first terminal, the privacy data and the identifier of the first path, to enable the second terminal to store the privacy data to a path corresponding to the first path identifier; when the privacy When the data is sent, 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 a path corresponding to the second path identifier.
- the privacy data and the non-private data in the data to be transmitted can be identified, and the private data and the non-private data are separately transmitted to make the private data and the non-private data storage. On different paths, it is convenient for user management.
- FIG. 6 is a block diagram showing a partial structure of a terminal-related mobile phone according to an embodiment of the present invention.
- 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 power supply 690 and other components.
- RF radio frequency
- the RF circuit 610 can be used for receiving and transmitting information.
- 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.
- LNA Low Noise Amplifier
- RF circuitry 610 can also communicate with the network and other devices via wireless communication.
- the above wireless communication may 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 (LTE), E-mail, Short Messaging Service (SMS), and the like.
- GSM Global System of Mobile communication
- GPRS General Packet Radio Service
- CDMA Code Division Multiple Access
- WCDMA Wideband Code Division Multiple Access
- LTE Long Term Evolution
- E-mail Short Messaging Service
- 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 software programs and modules stored in the memory 620.
- the storage device 620 can include a storage program area and a storage data area, wherein the storage program area can store an operating system, an application required for at least one function (such as a data migration function, a touch operation detection function, etc.), and the storage data area can be Stores data created based on the use of the mobile phone (such as data storage list data, etc.).
- memory 620 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
- the input unit 630 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset.
- the input unit 630 can include a fingerprint module 631 and other input devices 632.
- the fingerprint module 631 can collect fingerprint data of the user.
- the fingerprint module 631 can include an optical fingerprint module, a capacitive fingerprint module, and a radio frequency fingerprint module.
- a capacitive fingerprint module specifically including sensing electrodes (n1 An abnormal sensing electrode and n2 normal sensing electrodes) and a signal processing circuit (such as an amplifying circuit, a noise suppressing circuit, an analog-to-digital conversion circuit, etc.) connected to the sensing electrode.
- the input unit 630 can also include other input devices 632.
- other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
- the display unit 640 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
- the display unit 640 can include a display screen 641.
- the display screen 641 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
- the fingerprint module 631 and the display screen 641 are two separate components to implement the input and input functions of the mobile phone, in some embodiments, the fingerprint module 631 can be integrated with the display screen 641. Realize the input and output functions of the phone.
- the handset can also include at least one type of sensor 650, such as a light sensor, motion sensor, and other sensors.
- 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 moves to the ear. Or backlight.
- the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
- the mobile phone can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
- the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration
- vibration recognition related functions such as pedometer, tapping
- the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
- Audio circuit 660, speaker 661, and microphone 662 provide an audio interface between the user and the handset.
- the audio circuit 660 can transmit the converted electrical data of the received audio data to the speaker 761 for conversion to the sound signal output by the speaker 661.
- the microphone 662 converts the collected sound signal into an electrical signal by the audio circuit 660. After receiving, it is converted into audio data, and then processed by the audio data output processor 680, sent to the other mobile phone via the RF circuit 610, or outputted to the memory 620 for further processing.
- WiFi is a short-range 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, which provides users with wireless broadband Internet access.
- FIG. 6 shows the WiFi module 670, it can be understood that it does not belong to the mobile phone. It must be constructed and can be omitted as needed within the scope of not changing the essence of the invention.
- the processor 680 is the control center of the handset, and connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 620, and invoking data stored in the memory 620, executing The phone's various functions and processing data, so that the overall monitoring of the phone.
- the processor 680 may include one or more processing units; preferably, the processor 680 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
- the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 680.
- the handset also includes a power source 690 (such as a battery) that supplies power to the various components.
- a power source 690 such as a battery
- the power source can be logically coupled to the processor 680 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
- the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
- each step method flow can be implemented based on the structure of the mobile phone.
- each unit function can be implemented based on the structure of the mobile phone.
- the disclosed apparatus may be implemented in other ways.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
- the units described as separate components may or may not be physically separated, and the 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 of the embodiment.
- each functional unit in various embodiments of the present invention may be integrated in one processing unit. It is also possible that each unit physically exists alone, or two or more units may be integrated in one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
- the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
- the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
- a number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
- the foregoing storage medium includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like. .
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
本发明提供了一种数据迁移的方法及终端。所述方法包括:第一终端确定用户选中的待传输的数据;对所述待传输的数据进行分析以确定隐私数据和非隐私数据;所述第一终端向所述第二终端发送数据传输请求;接收所述第二终端反馈的第一路径标识和第二路径标识;向所述第二终端发送所述隐私数据和第一路径的标识;当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识。从而可知,通过实施本发明提供的技术方案,能够识别待传输数据中的隐私数据和非隐私数据,并将所述隐私数据和非隐私数据进行分别传输以使得所述隐私数据和非隐私数据存储于不同的路径,从而方便用户管理。
Description
本发明要求2016年9月14日递交的发明名称为“一种数据迁移的方法及终端”的申请号201610826853.X的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。
本发明涉及终端领域,具体涉及了一种数据迁移的方法及终端。
随着终端(例如智能手机、穿戴式设备、平板电脑等电子设备)的普及,终端逐渐成为人们生活中不可或缺的一部分,以至于人们无论走到哪里都会携带终端。
但是随着科技的发展,终端更新的速度很快。当用户入手一款新的终端时,往往为了方便使用,就需要将旧终端里面的数据导入到新终端中。
发明内容
本发明实施例提供了一种数据迁移的方法及终端,能够识别待传输数据中的隐私数据和非隐私数据,并将所述隐私数据和非隐私数据进行分别传输以使得所述隐私数据和非隐私数据存储于不同的路径,从而方便用户管理。
本发明实施例第一方面公开了一种数据迁移的方法,所述方法包括:
第一终端确定用户选中的待传输的数据;
所述第一终端对所述待传输的数据进行分析以确定隐私数据和非隐私数据;
所述第一终端向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;
接收所述第二终端反馈的第一路径标识和第二路径标识;
所述第一终端向所述第二终端发送所述隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径下;
当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。
本发明实施例第二方面公开了一种数据迁移装置,所述装置包括:
确定单元,用于接收用户选中的待传输的数据;
分析单元,用于对所述待传输的数据进行分析以确定隐私数据和非隐私数据;
发送单元,用于向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;
接收单元,用于接收所述第二终端反馈的第一路径标识和第二路径标识;
所述发送单元,还用于向所述第二终端发送所述隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径下;
所述发送单元,还用于当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。
本发明第三方面公开了一种终端,所述终端包括:
存储有可执行程序代码的存储器;
与所述存储器耦合的处理器;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行如第一方面所述的方法。
本发明第四方面公开了一种存储介质,所述存储介质中存储有程序代码,当所述程序代码被处理器执行时,所述处理器执行以下操作:
确定用户选中的待传输的数据;
对所述待传输的数据进行分析以确定隐私数据和非隐私数据;
向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;
接收所述第二终端反馈的第一路径标识和第二路径标识;
向所述第二终端发送所述隐私数据和第一路径的标识以使得所述第二终
端将所述隐私数据存储到所述第一路径标识对应的路径下;
当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1-a为本发明实施例提供的一种数据迁移的方法的流程示意图;
图1-b为本发明实施例提供的一种数据迁移系统的网络架构图;
图1-c为本发明实施例提供的一种数据存储示意表;
图2为本发明实施例提供的另一种数据迁移的方法的流程示意图;
图3为本发明实施例提供的一种数据迁移装置的结构示意图;
图4为本发明实施例提供的另一种数据迁移装置的结构示意图;
图5为本发明实施例提供的一种数据迁移装置的实体装置结构示意图;
图6为本发明实施例提供的一种手机的实体装置结构示意图。
本发明实施例提供了一种数据迁移的方法及终端,能够识别待传输数据中的隐私数据和非隐私数据,并将所述隐私数据和非隐私数据进行分别传输以使得所述隐私数据和非隐私数据存储于不同的路径,从而方便用户管理。
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
本发明说明书、权利要求书和附图中出现的术语“第一”、“第二”和“第三”等是用于区别不同的对象,而并非用于描述特定的顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
在本发明的一个实施例中公开了一种数据迁移的方法,所述方法包括:第一终端确定用户选中的待传输的数据;所述第一终端对所述待传输的数据进行分析以确定隐私数据和非隐私数据;所述第一终端向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;接收所述第二终端反馈的第一路径标识和第二路径标识;所述第一终端向所述第二终端发送所述隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径下;当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。
请参阅图1-a,图1-a是本发明一个实施例提供的一种数据迁移的方法。其中,如图1-a所示,本发明的一个实施例提供的一种数据迁移的方法包括以下内容:
S101、第一终端确定用户选中的待传输的数据;
可以理解的是,该场景为:用户要将第一终端的数据迁移到第二终端,那么第一终端与第二终端建立连接后,第一终端就要提醒用户选择要传输的数据。
其中,如图1-b所示,所述第一终端可以通过广域网或者局域网与第二终端建立连接,从而获取第二终端发送的数据传输请求。
其中,所述第一终端可以为智能手机、平板电脑、智能穿戴式设备、计算机等电子设备。
其中,所述第二终端可以为智能手机、平板电脑、智能穿戴式设备、计算机等电子设备。
其中,待传输的数据可以是音视频、图片、文字等信息。
可以理解的是,第一终端可以遍历所述待传输的数据以确定是否存在重复的数据;若存在重复的数据,则对所述待传输的数据进行去重处理以防止传输重复的信息。
需要指出的是,第一终端可以根据每份数据的标识去遍历待传输的数据以确定是否存在相同的标识,若存在相同的标识,则说明存在重复的数据。
如图1-c所示,先将待传输的数据进行分类,比如图片类、word类型、视频类。举例来说,可将图片类数据的标识存储于图片类目录下面,然后根据图片类数据的标识对图片类数据进行去重。比如图片类下边的数据标识有12345,556677,8899,12345,那么图片类目录下面存在两个12345的数据标识,说明这两个数据是重复的。当然,去重的过程中可以提示用户是否删除重复的数据,如果不删除的重复的数据,那么建议用户对重复的数据的名称进行重命名。
S102、所述第一终端对所述待传输的数据进行分析以确定隐私数据和非隐私数据;
可以理解的是,与账号密码相关的数据可认为是隐私数据。另外,隐私数据可以是用户选中的数据类型,比如短信、记事本信息、照片、视频等。
举例来说,所述第一终端对所述待传输的数据进行分析以确定包含账号信息的数据;将包含所述账号信息的数据设置为隐私数据,以及将未包含所述账号信息的数据设置为非隐私数据。
S103、所述第一终端向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;
其中,第一路径和第二路径不是同一路径。
S104、接收所述第二终端反馈的第一路径标识和第二路径标识;
其中,需要指出的是,如果接收到所述第二终端反馈的第一路径标识和第二路径标识,说明第二终端已经选择了第一存储路径和第二存储路径;第一路径标识与所述第一存储路径对应,其中,第一路径标识可以是第一路径的地址;同理,第二路径标识与所述第二存储路径对应,其中,第二路径标识可以是第二路径的地址;
S105、所述第一终端向所述第二终端发送所述隐私数据和第一路径的标识
以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径下;
可以理解的是,为了保证隐私数据在发送的过程中不泄露,可以将隐私数据进行加密进行发送。
举例来说,所述第一终端与所述第二终端进行交互以确定对称密钥;所述第一终端利用所述对称密钥对所述隐私数据进行加密;所述第一终端向所述第二终端发送加密的隐私数据和所述第一路径的标识。其中,需要指出的是,第二终端接收到加密的隐私数据后,将该加密的隐私数据存储到第一路径下,顺便也可以将对称密钥也存储在第一路径,以便随时对加密的隐私数据进行解密。
另外,需要指出的是,所述第一终端向所述第二终端发送所述隐私数据和第一路径的标识之前,还要判断所述加密的隐私数据的大小,如果加密的隐私数据太大,而第二终端目前是移动流量,那么会给第二终端造成较大的消耗,安全起见,还是要提醒用户是否要发送那么的数据。
具体的,所述第一终端计算所述隐私数据的大小;若所述隐私数据的大小大于预设阈值时,所述第一终端获取所述第二终端的连网方式;若所述第二终端的连网方式为通过移动流量连网时,则向所述用户发出确认是否传输的提示;若接收到确认传输的提示,所述第一终端向所述第二终端发送所述隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储在所述第一路径的标识对应的路径下。
S106、当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。
可以看出,本发明实施例的方案中,第一终端确定用户选中的待传输的数据;所述第一终端对所述待传输的数据进行分析以确定隐私数据和非隐私数据;所述第一终端向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;接收所述第二终端反馈的第一路径标识和第二路径标识;所述第一终端向所述第二终端发送所述隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径下;当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第
二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。从而可知,通过实施本发明提供的技术方案,能够识别待传输数据中的隐私数据和非隐私数据,并将所述隐私数据和非隐私数据进行分别传输以使得所述隐私数据和非隐私数据存储于不同的路径,从而方便用户管理。
请参阅图2,图2是本发明一个实施例提供的一种数据迁移的方法。其中,如图2所示,本发明的一个实施例提供的一种数据迁移的方法包括以下内容:
S201、第一终端确定用户选中的待传输的数据;
其中,所述第一终端和所述第二终端可以为智能手机、平板电脑、智能穿戴式设备等电子设备。
S202、所述第一终端遍历所述待传输的数据以确定是否存在重复的数据;若存在重复的数据,则对所述待传输的数据进行去重处理;
S203、所述第一终端对所述待传输的数据进行分析以确定包含账号信息的数据;
S204、将包含所述账号信息的数据设置为隐私数据,以及将未包含所述账号信息的数据设置为非隐私数据;
S205、所述第一终端与所述第二终端进行交互以确定对称密钥,并利用所述对称密钥对所述隐私数据进行加密;
S206、所述第一终端计算所述加密的隐私数据的大小;
S207、若所述加密的隐私数据的大小大于预设阈值时,所述第一终端获取所述第二终端的连网方式;
S208、若所述第二终端的连网方式为通过移动流量连网时,则向所述用户发出确认是否传输的提示;
S209、若接收到确认传输的提示,所述第一终端向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;
S210、接收所述第二终端反馈的第一路径标识和第二路径标识;
S211、所述第一终端向所述第二终端发送所述加密的隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径下;
S212、当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。
可以看出,本发明实施例的方案中扩充了待传输数据的去重步骤,从而防止重复传输数据。本发明实施例的方案中还扩充了确认步骤,以防止对移动流量产生较大的消耗。
请参阅图3,图3是本发明的一个实施例提供的一种数据迁移装置的结构示意图。其中,如图3所示,本发明的一个实施例提供的一种数据迁移装置300,其中,该数据迁移装置300可以是为智能手机、平板电脑、智能穿戴式设备等电子设备。该数据迁移装置300包括确定单元301、分析单元302、发送单元303以及接收单元304。
确定单元301,用于接收用户选中的待传输的数据;
分析单元302,用于对所述待传输的数据进行分析以确定隐私数据和非隐私数据;
发送单元303,用于向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;
接收单元304,用于接收所述第二终端反馈的第一路径标识和第二路径标识;
发送单元303,还用于向所述第二终端发送所述隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径下;
发送单元303,还用于当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。
其中,确定单元301、分析单元302、发送单元303以及接收单元304可以用于执行实施例1中步骤S101至S106所述的方法,具体描述详见实施例1对所述方法的描述,在此不再赘述。
请参阅图4,图4是本发明的一个实施例提供的一种数据迁移装置的结构示意图。其中,如图4所示,本发明的一个实施例提供的另一种数据迁移装置
400,其中,该数据迁移装置可以是为智能手机、平板电脑、智能穿戴式设备等电子设备。该数据迁移装置400包括确定单元401、分析单元402、发送单元403、接收单元404、加密单元405、计算单元406、获取单元407、提示单元408、遍历单元409和去重单元410。
确定单元401,用于接收用户选中的待传输的数据;
遍历单元409,用于遍历所述待传输的数据以确定是否存在重复的数据;
去重单元410,用于若存在重复的数据,则对所述待传输的数据进行去重处理;
分析单元401,用于对所述待传输的数据进行分析以确定隐私数据和非隐私数据;
具体的,分析单元402包括分析子单元和设置子单元;
所述分析子单元,用于对所述待传输的数据进行分析以确定包含账号信息的数据;
所述设置子单元,用于将包含所述账号信息的数据设置为隐私数据,以及将未包含所述账号信息的数据设置为非隐私数据。
确定单元401,用于与所述第二终端进行交互以确定对称密钥;
加密单元405,用于利用所述对称密钥对所述隐私数据进行加密;
计算单元406,用于计算所述隐私数据的大小;
获取单元407,用于若所述加密的隐私数据的大小大于预设阈值时,获取所述第二终端的连网方式;
提示单元408,用于若所述第二终端的连网方式为通过移动流量连网时,则向所述用户发出确认是否传输的提示;
发送单元403,具体用于若接收到确认传输的提示,向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;
接收单元404,用于接收所述第二终端反馈的第一路径标识和第二路径标识;
发送单元403,还用于向所述第二终端发送所述加密的隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径下;
发送单元403,还用于当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。
其中,确定单元401、分析单元402、发送单元403、接收单元404、加密单元405、计算单元406、获取单元407、提示单元408、遍历单元409和去重单元410可以用于执行实施例2中步骤S201至S212所述的方法,具体描述详见实施例2对所述方法的描述,在此不再赘述。
请参阅图5,在本发明的另一个实施例中,提供一种。所述终端500包括CPU501、存储器502、总线503。其中,该终端500可以是智能手机、平板电脑、智能穿戴设备等具有通话功能的电子设备。
其中,CPU501执行预先存储在存储器502中的程序,该执行过程具体包括:
确定用户选中的待传输的数据;
对所述待传输的数据进行分析以确定隐私数据和非隐私数据;
向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;
接收所述第二终端反馈的第一路径标识和第二路径标识;
向所述第二终端发送所述隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径下;
当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。
可选的,所述第一终端对所述待传输的数据进行分析以确定隐私数据和非隐私数据,包括:
对所述待传输的数据进行分析以确定包含账号信息的数据;
将包含所述账号信息的数据设置为隐私数据,以及将未包含所述账号信息的数据设置为非隐私数据。
可选的,所述向所述第二终端发送所述隐私数据和第一路径的标识之前,
所述执行过程还包括:
与所述第二终端进行交互以确定对称密钥;
利用所述对称密钥对所述隐私数据进行加密;
向所述第二终端发送所述隐私数据和第一路径的标识,包括:
向所述第二终端发送加密的隐私数据和所述第一路径的标识。
可选的,所述第一终端向所述第二终端发送所述隐私数据和第一路径的标识之前,所述执行过程还包括:
计算所述加密的隐私数据的大小;
若所述隐私数据的大小大于预设阈值时,获取所述第二终端的连网方式;
若所述第二终端的连网方式为通过移动流量连网时,则向所述用户发出确认是否传输的提示;
若接收到确认传输的提示,向所述第二终端发送所述隐私数据和第一路径的标识。
可选的,所述第一终端对所述待传输的数据进行分析以确定隐私数据和非隐私数据之前,所述执行过程还包括:
遍历所述待传输的数据以确定是否存在重复的数据;
若存在重复的数据,则对所述待传输的数据进行去重处理。
可以看出,本发明实施例的方案中,第一终端确定用户选中的待传输的数据;所述第一终端对所述待传输的数据进行分析以确定隐私数据和非隐私数据;所述第一终端向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;接收所述第二终端反馈的第一路径标识和第二路径标识;所述第一终端向所述第二终端发送所述隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径下;当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。从而可知,通过实施本发明提供的技术方案,能够识别待传输数据中的隐私数据和非隐私数据,并将所述隐私数据和非隐私数据进行分别传输以使得所述隐私数据和非隐私数据存储于不同的路径,从而方便用户管理。
请参阅图6,图6是本发明的一个实施例提供的终端相关的手机的部分结构的框图。参考图6,手机包括:射频(Radio Frequency,RF)电路610、存储器620、输入单元630、显示单元640、传感器650、音频电路660、无线保真(Wireless Fidelity,WiFi)模块670、处理器680、以及电源690等部件。本领域技术人员可以理解,图6中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面结合图6对手机的各个构成部件进行具体的介绍:
RF电路610可用于信息的接收和发送。通常,RF电路610包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路610还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。
存储器620可用于存储软件程序以及模块,处理器680通过运行存储在存储器620的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器620可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如数据迁移功能、触控操作检测功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如数据存储列表数据等)等。此外,存储器620可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元630可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元630可包括指纹模组631以及其他输入设备632。指纹模组631,可采集用户在其上的指纹数据。可选的,指纹模组631可包括光学式指纹模块、电容式指纹模块以及射频式指纹模块。以指纹模组631为电容式指纹模组为例,具体包括感应电极(n1个
异常感应电极和n2个正常感应电极)和与所述感应电极连接的信号处理电路(如放大电路、噪声抑制电路、模数转化电路,等等)。除了指纹模组631,输入单元630还可以包括其他输入设备632。具体地,其他输入设备632可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元640可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元640可包括显示屏641,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏641。虽然在图6中,指纹模组631与显示屏641是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将指纹模组631与显示屏641集成而实现手机的输入和输出功能。
手机还可包括至少一种传感器650,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏641的亮度,接近传感器可在手机移动到耳边时,关闭显示屏641和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路660、扬声器661,传声器662可提供用户与手机之间的音频接口。音频电路660可将接收到的音频数据转换后的电信号,传输到扬声器761,由扬声器661转换为声音信号输出;另一方面,传声器662将收集的声音信号转换为电信号,由音频电路660接收后转换为音频数据,再将音频数据输出处理器680处理后,经RF电路610以发送给比如另一手机,或者将音频数据输出至存储器620以便进一步处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块670可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了WiFi模块670,但是可以理解的是,其并不属于手机
的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器680是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器620内的软件程序和/或模块,以及调用存储在存储器620内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器680可包括一个或多个处理单元;优选的,处理器680可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器680中。
手机还包括给各个部件供电的电源690(比如电池),优选的,电源可以通过电源管理系统与处理器680逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。
前述图1、图2所示的实施例中,各步骤方法流程可以基于该手机的结构实现。
前述图3、图4所示的实施例中,各单元功能可以基于该手机的结构实现。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,
也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。
Claims (20)
- 一种数据迁移的方法,其特征在于,所述方法包括:第一终端确定用户选中的待传输的数据;所述第一终端对所述待传输的数据进行分析以确定隐私数据和非隐私数据;所述第一终端向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;接收所述第二终端反馈的第一路径标识和第二路径标识;所述第一终端向所述第二终端发送所述隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径下;当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。
- 根据权利要求1所述的方法,其特征在于,所述第一终端对所述待传输的数据进行分析以确定隐私数据和非隐私数据,包括:所述第一终端对所述待传输的数据进行分析以确定包含账号信息的数据;将包含所述账号信息的数据设置为隐私数据,以及将未包含所述账号信息的数据设置为非隐私数据。
- 根据权利要求2所述的方法,其特征在于,所述第一终端向所述第二终端发送所述隐私数据和第一路径的标识之前,所述方法还包括:所述第一终端与所述第二终端进行交互以确定对称密钥;所述第一终端利用所述对称密钥对所述隐私数据进行加密;所述第一终端向所述第二终端发送所述隐私数据和第一路径的标识,包括:所述第一终端向所述第二终端发送加密的隐私数据和所述第一路径的标 识。
- 根据权利要求3所述的方法,其特征在于,所述第一终端向所述第二终端发送所述隐私数据和第一路径的标识之前,所述方法还包括:所述第一终端计算所述加密的隐私数据的大小;若所述隐私数据的大小大于预设阈值时,所述第一终端获取所述第二终端的连网方式;若所述第二终端的连网方式为通过移动流量连网时,则向所述用户发出确认是否传输的提示;若接收到确认传输的提示,所述第一终端向所述第二终端发送所述隐私数据和第一路径的标识。
- 根据权利要求1至4任一所述的方法,其特征在于,所述第一终端对所述待传输的数据进行分析以确定隐私数据和非隐私数据之前,所述方法还包括:所述第一终端遍历所述待传输的数据以确定是否存在重复的数据;若存在重复的数据,则对所述待传输的数据进行去重处理。
- 根据权利要求1所述的方法,其特征在于,所述第一路径和第二路径不是同一路径。
- 一种数据迁移装置,其特征在于,所述装置包括:确定单元,用于接收用户选中的待传输的数据;分析单元,用于对所述待传输的数据进行分析以确定隐私数据和非隐私数据;发送单元,用于向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;接收单元,用于接收所述第二终端反馈的第一路径标识和第二路径标识;所述发送单元,还用于向所述第二终端发送所述隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径 下;所述发送单元,还用于当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。
- 根据权利要求7所述的装置,其特征在于,所述分析单元包括分析子单元和设置子单元;所述分析子单元,用于对所述待传输的数据进行分析以确定包含账号信息的数据;所述设置子单元,用于将包含所述账号信息的数据设置为隐私数据,以及将未包含所述账号信息的数据设置为非隐私数据。
- 根据权利要求8所述的装置,其特征在于,所述终端还包括加密单元;所述确定单元,用于与所述第二终端进行交互以确定对称密钥;所述加密单元,用于利用所述对称密钥对所述隐私数据进行加密;所述发送单元,具体用于向所述第二终端发送加密的隐私数据和所述第一路径的标识。
- 根据权利要求9所述的装置,其特征在于,所述终端还包括计算单元、获取单元和提示单元;所述计算单元,用于计算所述隐私数据的大小;所述获取单元,用于若所述加密的隐私数据的大小大于预设阈值时,获取所述第二终端的连网方式;所述提示单元,用于若所述第二终端的连网方式为通过移动流量连网时,则向所述用户发出确认是否传输的提示;所述发送单元,具体用于若接收到确认传输的提示,所述第一终端向所述第二终端发送所述隐私数据和第一路径的标识。
- 根据权利要求7至10任一所述的装置,其特征在于,所述诊断还包 括遍历单元和去重单元;所述遍历单元,用于遍历所述待传输的数据以确定是否存在重复的数据;所述去重单元,用于若存在重复的数据,则对所述待传输的数据进行去重处理。
- 根据权利要求7所述的装置,其特征在于,所述第一路径和第二路径不是同一路径。
- 一种终端,其特征在于,包括:存储有可执行程序代码的存储器;与所述存储器耦合的处理器;所述处理器调用所述存储器中存储的所述可执行程序代码,执行如权利要求1至权利要求6任一项所述的方法。
- 一种存储介质,其特征在于,所述存储介质中存储有程序代码,当所述程序代码被处理器执行时,所述处理器执行以下操作:确定用户选中的待传输的数据;对所述待传输的数据进行分析以确定隐私数据和非隐私数据;向所述第二终端发送数据传输请求,所述数据传输请求中包括建立第一路径和第二路径的指示;接收所述第二终端反馈的第一路径标识和第二路径标识;向所述第二终端发送所述隐私数据和第一路径的标识以使得所述第二终端将所述隐私数据存储到所述第一路径标识对应的路径下;当所述隐私数据发送完毕时,向所述第二终端发送所述非隐私数据和第二路径的标识以使得所述第二终端将所述非隐私数据存储到所述第二路径标识对应的路径下。
- 根据权利要求14所述的介质,其特征在于,所述对所述待传输的数据进行分析以确定隐私数据和非隐私数据,包括:对所述待传输的数据进行分析以确定包含账号信息的数据;将包含所述账号信息的数据设置为隐私数据,以及将未包含所述账号信息的数据设置为非隐私数据。
- 根据权利要求15所述的介质,其特征在于,所述向所述第二终端发送所述隐私数据和第一路径的标识之前,所述操作还包括:与所述第二终端进行交互以确定对称密钥;利用所述对称密钥对所述隐私数据进行加密;向所述第二终端发送所述隐私数据和第一路径的标识,包括:向所述第二终端发送加密的隐私数据和所述第一路径的标识。
- 根据权利要求16所述的操作,其特征在于,所述向所述第二终端发送所述隐私数据和第一路径的标识之前,所述操作还包括:所述第一终端计算所述加密的隐私数据的大小;若所述隐私数据的大小大于预设阈值时,获取所述第二终端的连网方式;若所述第二终端的连网方式为通过移动流量连网时,则向所述用户发出确认是否传输的提示;若接收到确认传输的提示,向所述第二终端发送所述隐私数据和第一路径的标识。
- 根据权利要求14至17任一所述的介质,其特征在于,所述第一终端对所述待传输的数据进行分析以确定隐私数据和非隐私数据之前,所述操作还包括:所述第一终端遍历所述待传输的数据以确定是否存在重复的数据;若存在重复的数据,则对所述待传输的数据进行去重处理。
- 根据权利要求14所述的介质,其特征在于,所述第一路径和第二路径不是同一路径。
- 根据权利要求14所述的介质,其特征在于,向所述第二终端发送的隐私数据是经过加密的。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610826853.XA CN106487878B (zh) | 2016-09-14 | 2016-09-14 | 一种数据迁移的方法及终端 |
| CN201610826853.X | 2016-09-14 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018049937A1 true WO2018049937A1 (zh) | 2018-03-22 |
Family
ID=58267255
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/095056 Ceased WO2018049937A1 (zh) | 2016-09-14 | 2017-07-28 | 一种数据迁移的方法及终端 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106487878B (zh) |
| WO (1) | WO2018049937A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2022262468A1 (en) * | 2021-06-15 | 2022-12-22 | International Business Machines Corporation | Cloud data migration |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106487878B (zh) * | 2016-09-14 | 2019-08-20 | Oppo广东移动通信有限公司 | 一种数据迁移的方法及终端 |
| EP3547637A1 (en) * | 2018-03-30 | 2019-10-02 | AO Kaspersky Lab | System and method for routing data when executing queries |
| CN116303362A (zh) * | 2023-03-21 | 2023-06-23 | 上海探寻信息技术有限公司 | 一种智能穿戴设备迁移数据的方法及装置 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104408383A (zh) * | 2014-10-31 | 2015-03-11 | 东莞宇龙通信科技有限公司 | 一种私密数据处理系统及方法 |
| CN104540088A (zh) * | 2014-12-23 | 2015-04-22 | 小米科技有限责任公司 | 连接建立方法、终端及装置 |
| CN105577361A (zh) * | 2015-04-20 | 2016-05-11 | 宇龙计算机通信科技(深圳)有限公司 | 一种信息处理方法及其装置 |
| CN106487878A (zh) * | 2016-09-14 | 2017-03-08 | 广东欧珀移动通信有限公司 | 一种数据迁移的方法及终端 |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100620055B1 (ko) * | 2004-12-06 | 2006-09-08 | 엘지전자 주식회사 | 위치정보요청 취소방법 |
| CN109977086B (zh) * | 2013-11-29 | 2023-09-01 | 华为终端有限公司 | 终端间应用共享的方法和终端 |
| CN105188015A (zh) * | 2015-08-07 | 2015-12-23 | 上海斐讯数据通信技术有限公司 | 一种移动终端隐私数据迁移备份方法及移动终端 |
-
2016
- 2016-09-14 CN CN201610826853.XA patent/CN106487878B/zh not_active Expired - Fee Related
-
2017
- 2017-07-28 WO PCT/CN2017/095056 patent/WO2018049937A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104408383A (zh) * | 2014-10-31 | 2015-03-11 | 东莞宇龙通信科技有限公司 | 一种私密数据处理系统及方法 |
| CN104540088A (zh) * | 2014-12-23 | 2015-04-22 | 小米科技有限责任公司 | 连接建立方法、终端及装置 |
| CN105577361A (zh) * | 2015-04-20 | 2016-05-11 | 宇龙计算机通信科技(深圳)有限公司 | 一种信息处理方法及其装置 |
| CN106487878A (zh) * | 2016-09-14 | 2017-03-08 | 广东欧珀移动通信有限公司 | 一种数据迁移的方法及终端 |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2022262468A1 (en) * | 2021-06-15 | 2022-12-22 | International Business Machines Corporation | Cloud data migration |
| US11635903B2 (en) | 2021-06-15 | 2023-04-25 | International Business Machines Corporation | Cloud data migration |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106487878B (zh) | 2019-08-20 |
| CN106487878A (zh) | 2017-03-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2018049881A1 (zh) | 一种数据迁移方法及装置 | |
| CN107645551B (zh) | 文件传输方法及装置 | |
| CN107066229A (zh) | 录音的方法及终端 | |
| CN106203035A (zh) | 一种数据访问控制方法及移动终端 | |
| WO2020020126A1 (zh) | 信息处理方法及终端 | |
| CN106681860B (zh) | 一种数据备份方法及数据备份装置 | |
| WO2018049934A1 (zh) | 一种数据迁移的方法及终端 | |
| WO2018049935A1 (zh) | 一种数据迁移的方法及终端 | |
| WO2018049885A1 (zh) | 一种数据迁移方法及装置 | |
| WO2018049971A1 (zh) | 热点网络切换方法及终端 | |
| CN106534288B (zh) | 一种数据传输方法及移动终端 | |
| WO2018049884A1 (zh) | 一种数据迁移方法及装置 | |
| CN105389259A (zh) | 一种进行应用程序测试的方法、装置及系统 | |
| WO2018049937A1 (zh) | 一种数据迁移的方法及终端 | |
| CN106445743A (zh) | 数据备份传输方法及移动终端 | |
| CN106572163B (zh) | 一种数据迁移的方法及终端 | |
| WO2018049970A1 (zh) | 热点网络切换方法及终端 | |
| CN106569916A (zh) | 一种数据备份方法及移动终端 | |
| CN106453571A (zh) | 一种数据迁移的方法及终端 | |
| WO2018049936A2 (zh) | 一种数据迁移的方法及终端 | |
| CN106954211B (zh) | 一种密钥写入方法及移动终端 | |
| WO2018049968A1 (zh) | 热点建立方法及终端 | |
| WO2017215663A1 (zh) | 一种音效处理的方法及终端 | |
| CN107102913A (zh) | 数据备份方法、装置和计算机设备 | |
| CN107423595A (zh) | 一种指纹解锁方法及装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17850139 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17850139 Country of ref document: EP Kind code of ref document: A1 |