CN106445739B - Data migration method and terminal equipment - Google Patents

Data migration method and terminal equipment Download PDF

Info

Publication number
CN106445739B
CN106445739B CN201610825482.3A CN201610825482A CN106445739B CN 106445739 B CN106445739 B CN 106445739B CN 201610825482 A CN201610825482 A CN 201610825482A CN 106445739 B CN106445739 B CN 106445739B
Authority
CN
China
Prior art keywords
application
data
terminal device
applications
data set
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610825482.3A
Other languages
Chinese (zh)
Other versions
CN106445739A (en
Inventor
马志峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610825482.3A priority Critical patent/CN106445739B/en
Publication of CN106445739A publication Critical patent/CN106445739A/en
Priority to PCT/CN2017/092871 priority patent/WO2018049904A1/en
Application granted granted Critical
Publication of CN106445739B publication Critical patent/CN106445739B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process

Abstract

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

Description

Data migration method and terminal equipment
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a data migration method and a terminal device.
Background
At present, the frequency of people changing mobile phones is higher and higher, but to lazy cancer patients and science and technology xiaobai, the machine changing is equal to the new start, daily APP, important chat records, documents, all wiFi passwords connected and other drip habits in these old machines do not exist, each time the machine changing is happy 10 minutes, and the trouble is 10 hours. In order to solve the problem, data migration occurs, wherein the data migration is backup data of an old mobile phone, and then the backup data is transmitted to a new mobile phone for data recovery so as to achieve the purpose of changing the mobile phone.
At present, data migration generally refers to an old mobile phone backing up all data (such as contacts, short messages, application programs, and the like), and then transmitting all backed-up data to a new mobile phone for data recovery. All data of the old mobile phone is transmitted to the new mobile phone, and some applications in the old mobile phone are not required to be moved to the new mobile phone by a user, so that unnecessary memory occupation is brought to the new mobile phone.
Disclosure of Invention
The embodiment of the invention provides a data migration method and terminal equipment, aiming to avoid the problem of unnecessary memory occupation brought to a new mobile phone.
In a first aspect, an embodiment of the present invention provides a data migration method, including:
the first terminal device is used for connecting a hotspot established by a second terminal device by scanning a two-dimensional code of the second terminal device, wherein the two-dimensional code is generated based on the hotspot name and the hotspot connection password;
the first terminal device backups data of a first application to obtain a first data set, and transmits the first data set to the second terminal device, wherein the importance priority of the first application is greater than or equal to a preset priority.
In a second aspect, an embodiment of the present invention provides a terminal device, including:
the hotspot connection module is used for connecting a hotspot established by a second terminal device by scanning a two-dimensional code of the second terminal device, wherein the two-dimensional code is generated based on the hotspot name and the hotspot connection password;
the data backup module is used for backing up data of the first application to obtain a first data set;
and the data transmission module is used for transmitting the first data set to the second terminal equipment, and the important priority of the first application is greater than or equal to the preset priority.
In a third aspect, an embodiment of the present invention provides a terminal device, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to perform some or all of the steps as described in the first aspect of an embodiment of the invention.
In a fourth aspect, the present invention provides a computer storage medium for storing computer software instructions for a terminal device provided in the second aspect of the embodiments of the present invention, which includes a program designed to execute the above aspects.
In the scheme, before the first terminal equipment performs data backup, the first terminal equipment determines the first application with the important priority greater than or equal to the preset priority, then backups the data of the first application, and finally transmits the backed-up data of the first application to the second terminal equipment, so that the problem that the old equipment transfers the data of the application which some users do not want to move to the new equipment, and unnecessary memory occupation is caused to the new mobile phone can be avoided.
These and other aspects of the invention are apparent from and will be elucidated with reference to the embodiments described hereinafter.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a communication system according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a data migration method according to a first embodiment of the present invention;
fig. 3 is a flowchart illustrating a data migration method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal device according to a first embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal device according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal device according to a third embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following are detailed below.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of the invention and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Hereinafter, some terms in the present application are explained to facilitate understanding by those skilled in the art.
1) A terminal device, also called a User Equipment (UE), is a device providing voice and/or data connectivity to a User, for example, a handheld device with a wireless connection function, a vehicle-mounted device, and so on. Common terminals include, for example: the mobile phone includes a mobile phone, a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), and a wearable device such as a smart watch, a smart bracelet, a pedometer, and the like.
2) The hot spot is that the received GPRS, 3G, 4G or 5G signal of the terminal equipment is converted into a WIFI signal and then sent out, so that the terminal equipment becomes a WIFI hot spot. A terminal device capable of establishing a hotspot is required to have an Access Point (AP) function.
3) A data set, also known as a data set, or a data set, is a collection of data.
4) Threads, sometimes referred to as Lightweight processes (LWP), are the smallest unit of program execution flow.
5) The serial execution designation is that the action a and the action B are executed in sequence, for example, the action a is executed first and then the action B is executed, or the action B is executed first and then the action a is executed.
6) Parallel execution is to perform action a and action B separately on two threads, for example, to perform action a on a first thread and perform action B on a second thread, which may be performed simultaneously or during the course of performing one action, perform the other action.
7) "plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Embodiments of the present application are described below with reference to the drawings.
Referring to fig. 1, fig. 1 is a schematic diagram of a communication system according to an embodiment of the present invention. The communication system shown in fig. 1 includes a first terminal device 110 and a second terminal device 120, where the first terminal device 110 connects to a hotspot established by the second terminal device 120 by scanning a two-dimensional code of the second terminal device 120, where the two-dimensional code is generated based on a hotspot name and a hotspot connection password; the first terminal device 110 backs up the data of the first application to obtain a first data set, and transmits the first data set to the second terminal device 120, wherein the importance priority of the first application is greater than or equal to the preset priority, so that the problem that the old device migrates the data of the application that some users do not want to move to the new device, which brings unnecessary memory occupation to the new mobile phone, can be avoided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a data migration method according to an embodiment of the present invention, including the following steps:
s201, the first terminal device scans a two-dimensional code of a second terminal device to connect with a hotspot established by the second terminal device, wherein the two-dimensional code is generated based on the hotspot name and the hotspot connection password.
S202, the first terminal device backups data of a first application to obtain a first data set, and transmits the first data set to the second terminal device, wherein the importance priority of the first application is greater than or equal to a preset priority.
The two-dimensional code is generated by the second terminal device according to the hotspot name and the hotspot connection password after the hotspot is established.
Wherein the preset priority may be priority 1, priority 2, priority 3, etc. Where priority 1 > priority 2 > priority 3.
Optionally, the importance priority of the application is user-defined, or is user-defined by the first terminal device, or is determined by the first terminal device based on the usage frequency of the application and/or the content of the data of the associated application (for example, the higher the usage frequency, the greater the importance priority, such as the usage frequency exceeding 80 times, the importance priority being priority 1, the usage frequency being priority 2 between 40 and 80, the usage frequency being priority 3 less than 40, and the data content of the associated application being the greater the importance priority related to work, travel, events, etc.).
Optionally, in the process of backing up the data of the first application, the first terminal device backs up the data of a second application to obtain a second data set, and transmits the second data set to a network server, where an importance priority of the second application is smaller than the preset priority.
Because the first terminal device only transmits the data of part of the applications in the first terminal device to the second terminal device, the first terminal device backs up the data of the applications which are not transmitted to the second terminal device to the network server in order to facilitate the use of the applications which are not transmitted by the subsequent user.
Optionally, the transferring of the first data set and the transferring of the second data set are performed in parallel.
Optionally, when the number of the first applications is N, where N is an integer greater than 1, the backing up, by the first terminal device, data of the first applications includes:
if the N is greater than or equal to M, the first terminal device parallelly backs up data of M first applications in the N first applications, wherein the M is an integer greater than 1, and the use frequency of the M first applications is higher than that of any one first application except the M first applications in the N first applications; after the data backup of a first application i is completed, the first terminal device backups data of a first application j on a thread for backing up the first application i, wherein the first application i is one of the M first applications until the data backup of the N first applications is completed, and the use frequency of the first application j is higher than that of any one of the N-M first applications except the first application j; and if the N is smaller than the M, the first terminal equipment backs up the data of the N first applications in parallel.
For example, suppose N-5, M-3, 5 first applications are used in the following order: the use frequency of the first application 1 is greater than the use frequency of the first application 2 is greater than the use frequency of the first application 3 is greater than the use frequency of the first application 4 is greater than the use frequency of the first application 5, the first application 1, the first application 2 and the first application 3 are backed up in parallel by the first terminal device on 3 threads, after the data backup of the first application 1 is completed, the first terminal device backs up the first application 4 on the thread for backing up the first application 1, and the like until the data backup of the 5 first applications is completed.
Optionally, when the number of the first applications is N, where N is an integer greater than 1, the backing up, by the first terminal device, data of the first applications includes:
if the N is larger than or equal to w, the first terminal equipment parallelly backs up data of any w first applications in the N first applications, wherein the w is an integer larger than 1; after the data backup of a first application j is completed, the first terminal device backups data of a first application k on a thread for backing up the first application j until the data backup of the N first applications is completed, wherein the first application j is one of the w first applications, and the first application k is any one of the N first applications except the w first applications; and if the N is smaller than the w, the first terminal equipment backs up the data of the N first applications in parallel.
For example, assuming that N is 10 and w is 4, the first terminal device backs up data of any 4 first applications in 10 first applications in parallel on 4 threads, and after the data backup of one of the 4 first applications is completed, the first terminal device backs up data of any one first application except the 4 first applications on the thread that backs up the one application, and so on until the data backup of all the 10 first applications is completed.
Optionally, when the number of the first applications is N, where N is an integer greater than 1, the backing up, by the first terminal device, data of the first applications includes:
if the N is larger than or equal to W, the first terminal device parallelly backs up data of W first applications in the N first applications, wherein the W is an integer larger than 1, and the latest use time of the W first applications is later than the latest use time of any first application except the W first applications in the N first applications;
after the data backup of a first application g is completed, the first terminal device backups data of a first application h on a thread for backing up the first application g until the data backup of the N first applications is completed, wherein the first application g is one of the W first applications, and the latest use time of the first application h is later than the latest use time of any one first application except the first application h in the N-W first applications; and if the N is smaller than the W, the first terminal equipment backs up the data of the N first applications in parallel.
It should be noted that, assuming that the first time is 23:20 at 9/10/16 years and the second time is 21:20 at 10/9/16 years, the first time is later than the second time. In addition, the above further defines the specific implementation process of backing up the data of the first application, and is also applicable to backing up the data of the second application, and will not be described herein.
It should be noted that, when the number of the first applications is N, the number of the first data sets corresponds to N, and the N first data sets correspond to the N first applications one to one, so that the number of the first data sets transmitted from the first terminal device to the second terminal device corresponds to N. In addition, the above-mentioned embodiment of backing up data of the first application is also applicable to backing up data of the second application, and will not be described herein.
The embodiment of the present invention further provides another more detailed method flow, as shown in fig. 3, including:
s301, the first terminal device scans a two-dimensional code of a second terminal device to connect with a hotspot established by the second terminal device, wherein the two-dimensional code is generated based on the hotspot name and the hotspot connection password.
S302, the first terminal device determines a first application, and the important priority of the first application is greater than or equal to a preset priority.
S303, if the number of the first applications is N, where N is an integer greater than 1, the first terminal device determines whether N is greater than M, and M is an integer greater than 1.
If yes, go to step S304.
If not, go to step S306.
S304, the first terminal device backups data of M first applications in the N first applications in parallel, and the use frequency of the M first applications is higher than that of any one first application except the M first applications in the N first applications.
S305, after the data backup of the first application i is completed, the first terminal device backups the data of the first application j on the thread for backing up the first application i until the data backup of the N first applications is completed to obtain N first data sets, where the first application i is one of the M first applications, and the frequency of use of the first application j is higher than that of any one of the N-M first applications except the first application j.
S306, the first terminal device backups the data of the N first applications in parallel to obtain N first data sets.
S307, the first terminal device transmits the N first data sets to the second terminal device.
S308, in the process of backing up the data of the first application, the first terminal device backs up the data of the second application to obtain a second data set.
S309, the first terminal device transmits the second data set to a network server, and the importance priority of the second application is smaller than the preset priority.
It should be noted that, the specific implementation of the steps of the method shown in fig. 3 can refer to the specific implementation described in the above method, and will not be described here.
An embodiment of the present invention further provides a terminal device 400, as shown in fig. 4, including:
the hotspot connection module 401 is configured to scan a two-dimensional code of a second terminal device to connect a hotspot established by the second terminal device, where the two-dimensional code is generated based on the hotspot name and the hotspot connection password;
a data backup module 402, configured to backup data of a first application to obtain a first data set;
a data transmission module 403, configured to transmit the first data set to the second terminal device, where an importance priority of the first application is greater than or equal to a preset priority.
Optionally, the data backup module 402 is further configured to, in the process of backing up the data of the first application, backup data of a second application by the first terminal device to obtain a second data set;
the data transmission module 403 is further configured to transmit the second data set to a network server, where an importance priority of the second application is smaller than the preset priority.
Optionally, the transferring of the first data set and the transferring of the second data set are performed in parallel.
Optionally, the importance priority of the application is user-defined, or is user-defined by the first terminal device, or is determined by the first terminal device based on the frequency of use of the application and/or the content of the data associated with the application.
Optionally, when the number of the first applications is N, where N is an integer greater than 1, the data backup module 402 is specifically configured to:
if the N is larger than or equal to M, backing up data of M first applications in the N first applications in parallel, wherein the M is an integer larger than 1, and the use frequency of the M first applications is higher than that of any one first application except the M first applications in the N first applications;
after the data backup of a first application i is completed, backing up the data of a first application j on a thread of the first application i until the data backup of the N first applications is completed, wherein the first application i is one of the M first applications, and the use frequency of the first application j is higher than that of any one of the N-M first applications except the first application j;
and if the N is smaller than the M, backing up the data of the N first applications in parallel.
It should be noted that the above modules (the hot spot connection module 401, the data backup module 402, and the data transmission module 403) are used to execute the relevant steps of the above method.
In the present embodiment, the terminal device 400 is presented in the form of a module. A "module" herein may refer to an application-specific integrated circuit (ASIC), a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other devices that may provide the described functionality. In addition, the hotspot connection module 401, the data backup module 402 and the data transmission module 403 can be implemented by the processor 501 of the terminal device shown in fig. 5.
As shown in fig. 5, the terminal device 500 may be implemented in the structure of fig. 5, and the terminal device 500 includes at least one processor 501, at least one memory 502 and at least one communication interface 503. The processor 501, the memory 502 and the communication interface 503 are connected through the communication bus and complete communication with each other.
The processor 501 may be a general purpose Central Processing Unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of programs according to the above schemes.
Communication interface 503 is used for communicating with other devices or communication Networks, such as ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), etc.
The Memory 502 may be, but is not limited to, a Read-Only Memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be self-contained and coupled to the processor via a bus. The memory may also be integral to the processor.
The memory 502 is used for storing application program codes for executing the above scheme, and is controlled by the processor 501 for execution. The processor 501 is used to execute application program code stored in the memory 502.
The code stored in the memory 502 may perform the above-mentioned data migration method executed by the terminal device, for example, the first terminal device scans the two-dimensional code of the second terminal device to connect to the hotspot established by the second terminal device, where the two-dimensional code is generated based on the hotspot name and the hotspot connection password; the first terminal device backups data of a first application to obtain a first data set, and transmits the first data set to the second terminal device, wherein the importance priority of the first application is greater than or equal to a preset priority.
The embodiment of the invention also provides a more specific application scenario, which is as follows: the above-mentioned terminal device is a mobile phone, and the following describes each component of the mobile phone specifically with reference to fig. 6:
the RF circuit 610 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 680; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit 610 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 610 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to global system for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 620 may be used to store software programs and modules, and the processor 680 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 620. The memory 620 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a data backup function, a data set transfer function, a two-dimensional code scanning function), and the like; the storage data area may store data created according to usage of the mobile phone (such as the backed up first data set and second data set, and the determined importance priority of the first application and the second application), and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 630 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 630 may include a touch panel 631 and other input devices 632. The touch panel 631, also referred to as a touch screen, may collect touch operations of a user (e.g., operations of the user on the touch panel 631 or near the touch panel 631 by using any suitable object or accessory such as a finger or a stylus) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 631 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 580, and can receive and execute commands sent by the processor 680. In addition, the touch panel 631 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 630 may include other input devices 632 in addition to the touch panel 631. In particular, other input devices 632 may include, but are not limited to, at least one of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 640 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 640 may include a display panel 641, and optionally, the display panel 641 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 631 can cover the display panel 641, and when the touch panel 631 detects a touch operation thereon or nearby, the touch panel is transmitted to the processor 580 to determine the type of the touch event, and then the processor 680 provides a corresponding visual output on the display panel 641 according to the type of the touch event. Although in fig. 6, the touch panel 631 and the display panel 641 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 631 and the display panel 641 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 650, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 641 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 641 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuit 660, speaker 661, and microphone 662 can provide an audio interface between a user and a cell phone. The audio circuit 660 may transmit the electrical signal converted from the received audio data to the speaker 661, and convert the electrical signal into an audio signal through the speaker 661 for output; on the other hand, the microphone 662 converts the collected sound signals into electrical signals, which are received by the audio circuit 660 and converted into audio data, which are processed by the audio data output processor 680 and then transmitted via the RF circuit 610 to, for example, another cellular phone, or output to the memory 620 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 670, and provides wireless broadband Internet access for the user. Although fig. 6 shows the WiFi module 670, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 680 is a control center of the mobile phone, and connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby performing overall monitoring of the mobile phone. Optionally, processor 680 may include one or more processing units; preferably, the processor 680 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
The handset also includes a power supply 690 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 680 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In the foregoing embodiment, the method flow of each step may be implemented based on the structure of the terminal device shown in fig. 6.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and when the program is executed, the program includes some or all of the steps of any one of the data migration methods described in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a 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 stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above embodiments of the present invention are described in detail, and the principle and the implementation of the present invention are explained by applying specific embodiments, and the above description of the embodiments is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in view of the above, the content of the present specification should not be construed as a limitation to the present invention.

Claims (7)

1. A method of data migration, comprising:
the method comprises the steps that a first terminal device is connected with a hotspot established by a second terminal device by scanning a two-dimensional code of the second terminal device, wherein the two-dimensional code is generated by the second terminal device based on a hotspot name and a hotspot connection password after the hotspot is established;
the first terminal device backups data of a first application to obtain a first data set, wherein when the number of the first applications is N, the N is an integer greater than 1; the backing up data of the first application includes: if the N is greater than or equal to M, the first terminal device parallelly backs up data of M first applications in the N first applications, wherein the M is an integer greater than 1, and the use frequency of the M first applications is higher than that of any one first application except the M first applications in the N first applications; after the data backup of a first application i is completed, the first terminal device backups the data of a first application j on a thread for backing up the first application i until the data backup of the N first applications is completed, wherein the first application i is one of the M first applications, and the use frequency of the first application j is higher than that of any one of the N-M first applications except the first application j; if the N is smaller than the M, the first terminal equipment parallelly backs up the data of the N first applications; transmitting the first data set to the second terminal equipment, wherein the importance priority of the first application is greater than or equal to a preset priority;
in the process of backing up the data of the first application, the first terminal device backs up the data of a second application to obtain a second data set, and transmits the second data set to a network server, wherein the importance priority of the second application is smaller than the preset priority.
2. The method of claim 1, wherein the transferring of the first data set and the transferring of the second data set are performed in parallel.
3. Method according to claim 1 or 2, characterized in that the importance priority of an application is user-defined or is defined by the first terminal device or is determined by the first terminal device based on the frequency of use of the application and/or the content of the data associated with the application.
4. A terminal device, which is used as a first terminal device, comprising:
the hotspot connection module is used for connecting a hotspot established by a second terminal device by scanning a two-dimensional code of the second terminal device, wherein the two-dimensional code is generated by the second terminal based on a hotspot name and a hotspot connection password after the hotspot is established;
the data backup module is used for backing up data of the first application to obtain a first data set; when the number of the first applications is N, the N is an integer greater than 1; the backing up data of the first application includes: if the N is greater than or equal to M, the first terminal device parallelly backs up data of M first applications in the N first applications, wherein the M is an integer greater than 1, and the use frequency of the M first applications is higher than that of any one first application except the M first applications in the N first applications; after the data backup of a first application i is completed, the first terminal device backups the data of a first application j on a thread for backing up the first application i until the data backup of the N first applications is completed, wherein the first application i is one of the M first applications, and the use frequency of the first application j is higher than that of any one of the N-M first applications except the first application j; if the N is smaller than the M, the first terminal equipment parallelly backs up the data of the N first applications;
the data transmission module is used for transmitting the first data set to the second terminal equipment, and the importance priority of the first application is greater than or equal to a preset priority;
the data backup module is further configured to, in the process of backing up the data of the first application, backup, by the first terminal device, the data of the second application to obtain a second data set;
the data transmission module is further configured to transmit the second data set to a network server, where an important priority of the second application is smaller than the preset priority.
5. The terminal device of claim 4, wherein the transmission of the first data set and the transmission of the second data set are performed in parallel.
6. A terminal device according to claim 4 or 5, wherein the importance priority of an application is user-defined, or is user-defined by the first terminal device, or is determined by the first terminal device based on the frequency of use of the application and/or the content of the data associated with the application.
7. A terminal device, comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to perform the method of any of claims 1 to 3.
CN201610825482.3A 2016-09-14 2016-09-14 Data migration method and terminal equipment Active CN106445739B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610825482.3A CN106445739B (en) 2016-09-14 2016-09-14 Data migration method and terminal equipment
PCT/CN2017/092871 WO2018049904A1 (en) 2016-09-14 2017-07-13 Data migration method and related devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610825482.3A CN106445739B (en) 2016-09-14 2016-09-14 Data migration method and terminal equipment

Publications (2)

Publication Number Publication Date
CN106445739A CN106445739A (en) 2017-02-22
CN106445739B true CN106445739B (en) 2020-01-14

Family

ID=58168330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610825482.3A Active CN106445739B (en) 2016-09-14 2016-09-14 Data migration method and terminal equipment

Country Status (2)

Country Link
CN (1) CN106445739B (en)
WO (1) WO2018049904A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445739B (en) * 2016-09-14 2020-01-14 Oppo广东移动通信有限公司 Data migration method and terminal equipment
CN109753255A (en) * 2017-11-08 2019-05-14 腾讯科技(深圳)有限公司 A kind of method, unit and storage medium transmitting data
CN109302698A (en) * 2018-08-27 2019-02-01 优视科技新加坡有限公司 Near-field Data moving method and its device
EP3885926A1 (en) 2020-03-25 2021-09-29 Carrier Corporation Fire protection system
CN117675783A (en) * 2022-09-08 2024-03-08 华为技术有限公司 Data transmission method, electronic device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282824A (en) * 2014-06-03 2016-01-27 中兴通讯股份有限公司 File sharing method based on wireless communication and wireless communication terminal
CN105893173A (en) * 2015-12-10 2016-08-24 乐视网信息技术(北京)股份有限公司 Caching data processing method and device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7356573B2 (en) * 2005-07-08 2008-04-08 Cisco Technology, Inc. Apparatus and methods for data tapping in a storage area network
CN101764880B (en) * 2009-12-21 2012-05-30 宇龙计算机通信科技(深圳)有限公司 Information backup method and terminal
CN102110031A (en) * 2011-02-23 2011-06-29 宇龙计算机通信科技(深圳)有限公司 Android system-based application program backup and recovery method
US20140068212A1 (en) * 2012-09-04 2014-03-06 Microsoft Corporation Device backups and updates in view of data usage statistics
US10368142B2 (en) * 2013-03-14 2019-07-30 Comcast Cable Communications, Llc Delivery of content and priority messages
CN104301344A (en) * 2013-07-17 2015-01-21 北京奇虎科技有限公司 File transfer method, terminal and system
CN105138279A (en) * 2015-08-03 2015-12-09 深圳市美贝壳科技有限公司 Intelligent management method of household equipment data
CN105511985A (en) * 2015-12-01 2016-04-20 魅族科技(中国)有限公司 Data backup method and terminal
CN106445739B (en) * 2016-09-14 2020-01-14 Oppo广东移动通信有限公司 Data migration method and terminal equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282824A (en) * 2014-06-03 2016-01-27 中兴通讯股份有限公司 File sharing method based on wireless communication and wireless communication terminal
CN105893173A (en) * 2015-12-10 2016-08-24 乐视网信息技术(北京)股份有限公司 Caching data processing method and device

Also Published As

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

Similar Documents

Publication Publication Date Title
CN106507269B (en) Data migration method and terminal equipment
CN106445739B (en) Data migration method and terminal equipment
CN106658753B (en) Data migration method and terminal equipment
EP2720135A1 (en) Data transmission method, data transmission device and terminal provided with touch screen
CN104519485A (en) Communication method between terminals, devices and system
CN108834132B (en) Data transmission method and equipment and related medium product
CN106446111B (en) Data migration method and terminal
CN104636047A (en) Method and device for operating objects in list and touch screen terminal
US10687207B2 (en) Method for data migration and terminal
CN106569910B (en) Data backup and transmission method and mobile terminal
CN106528638B (en) Method for deleting backup data and mobile terminal
CN107888768B (en) Unlocking control method, terminal and computer readable storage medium
CN106658353A (en) Data migration method and mobile equipment
WO2018049901A1 (en) Data migration method and related devices
CN104836717A (en) Data processing method and apparatus, and terminal equipment
CN106293407B (en) Picture display method and terminal equipment
CN110891262A (en) Bluetooth pairing method, system and terminal equipment
CN106815077B (en) Data processing method based on intelligent device architecture and intelligent device
CN111314900B (en) Wireless connection method, wireless connection device and mobile terminal
CN112367425B (en) Volume adjusting method and device and terminal
CN106550461B (en) Resource using method and terminal
CN106790361B (en) Data processing method and device
CN107632795B (en) Method, device, mobile terminal and computer storage medium for moving data
CN108307531B (en) Call control method, device, user terminal and computer readable storage medium
CN107204882B (en) Method and equipment for filtering data packet and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: OPPO Guangdong Mobile Communications Co., Ltd.

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

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

GR01 Patent grant
GR01 Patent grant