CN106507269B - Data migration method and terminal equipment - Google Patents

Data migration method and terminal equipment Download PDF

Info

Publication number
CN106507269B
CN106507269B CN201610825384.XA CN201610825384A CN106507269B CN 106507269 B CN106507269 B CN 106507269B CN 201610825384 A CN201610825384 A CN 201610825384A CN 106507269 B CN106507269 B CN 106507269B
Authority
CN
China
Prior art keywords
migrated
data
application
terminal device
applications
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
CN201610825384.XA
Other languages
Chinese (zh)
Other versions
CN106507269A (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 CN201610825384.XA priority Critical patent/CN106507269B/en
Publication of CN106507269A publication Critical patent/CN106507269A/en
Priority to PCT/CN2017/092862 priority patent/WO2018049900A1/en
Application granted granted Critical
Publication of CN106507269B publication Critical patent/CN106507269B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/64Details of telephonic subscriber devices file transfer between terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

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 equipment classifies all data of the application to be migrated; the first terminal device backups the first data of the application to be migrated to obtain a first data set, and transmits the first data set to the second terminal device, wherein the data type of the first data is a preset type. 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 equipment classifies all data of the application to be migrated;
the first terminal device backups the first data of the application to be migrated to obtain a first data set, and transmits the first data set to the second terminal device, wherein the data type of the first data is a preset type.
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 classification module is used for classifying all data of the application to be migrated;
the data backup module is used for backing up the first data of the application to be migrated 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 data type of the first data is a preset type.
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 device performs data backup, the first terminal device classifies all data of the application to be migrated, and then the first terminal device migrates data of the preset type only to the second terminal device, so that the problem that the old device migrates the data of the application which some users do not want to move to the new device and unnecessary memory occupation is brought 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, and the first terminal device 110 classifies all data of an application to be migrated; the first terminal device 110 backs up the first data of the application to be migrated to obtain a first data set, and transmits the first data set to the second terminal device 120, where the data type of the first data is a preset type. Therefore, the problem that the old equipment migrates the data of the application which some users do not want to move to the new equipment and unnecessary memory occupation is brought 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 classifies all data of the application to be migrated.
S203, the first terminal device backups the first data of the application to be migrated to obtain a first data set, and transmits the first data set to the second terminal device, wherein the data type of the first data is a preset type.
Optionally, since the audio/video files and the image files are large in size relative to the text files, most occupied amount of the terminal devices may be occupied by the files, and in order to prevent the files from occupying the memory of the new device, the preset type may be set as the audio/video data type and/or the image data type.
Optionally, the application to be migrated includes at least one of: the using times exceed the preset times, the time length of the installation time from the current system time exceeds the preset time length, the audio/video application, the download application and the time length of the last using time from the current system time are less than a second preset time length.
The number of the use times is the total number of the use times of the application to be migrated from the installation time to the current time. That is, how many times the application to be migrated is used in total.
The predetermined number of times may be, for example, 50 times, 65 times, 78 times, 100 times, 200 times, or other values.
The preset time period may be, for example, 1 month, 2 months, 5 months, 1 year, or other values.
The audio/video application may be, for example, lovely-curio, cool dog, QQ music, Tencent video, fox search video, etc.
The download application may be, for example, a thunderbolt, a PP assistant, a video and audio pioneer, etc.
The preset time period may be, for example, 1 hour, 2 hours, 4 hours, 5 hours, or other values.
In the scheme, before the first terminal device performs data backup, the first terminal device classifies all data of the application to be migrated, and then the first terminal device migrates data of the preset type only to the second terminal device, so that the problem that the old device migrates the data of the application which some users do not want to move to the new device and unnecessary memory occupation is brought to the new mobile phone can be avoided.
Optionally, in the process of backing up the first data of the application to be migrated, the first terminal device backs up the second data of the application to be migrated to obtain a second data set, where a data type of the second data is not the preset type; in the process of transmitting the first data set to the second terminal device, the first terminal device transmits the second data set to a network server.
Optionally, when the number of the applications to be migrated is N, where N is an integer greater than 1, the backing up, by the first terminal device, the first data of the applications to be migrated includes:
if the N is larger than or equal to W, the first terminal device parallelly backs up first data of W applications to be migrated in the N applications to be migrated, wherein the W is an integer larger than 1, and the latest use time of the W migrated applications is later than the latest use time of any application to be migrated except the W applications to be migrated in the N applications to be migrated;
after the data backup of an application i to be migrated is completed, the first terminal device backups data of an application j to be migrated on a thread backing up the application i to be migrated, wherein the application i to be migrated is one of the W applications to be migrated until the data backup of the N applications to be migrated is completed, and the latest use time of the application j to be migrated is later than the latest use time of any application to be migrated except the application j to be migrated in the N-W applications to be migrated;
and if the N is smaller than the W, the first terminal equipment parallelly backs up the N data of the applications to be migrated.
For example, assuming that N is 5 and W is 3, the 5 applications to be migrated have the latest usage time in the early-late order: the method comprises the steps that an application 1 to be migrated, an application 2 to be migrated, an application 3 to be migrated, an application 4 to be migrated and an application 5 to be migrated are executed, first data of the application 1 to be migrated, the application 2 to be migrated and the application 3 to be migrated are backed up by a first terminal device in parallel, and if the backup of the first data of the application 1 to be migrated is completed, the first data of the application 4 to be migrated is backed up by the first terminal device on a thread for backing up the application 1 to be migrated, and the like until all the first data of the 5 applications to be migrated are backed up.
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.
Optionally, when the number of the applications to be migrated is N, where N is an integer greater than 1, the backing up, by the first terminal device, the first data of the applications to be migrated includes:
if the N is greater than or equal to w, the first terminal device parallelly backs up data of any w applications to be migrated in the N applications to be migrated, wherein the w is an integer greater than 1; after the data backup of the application j to be migrated is completed, the first terminal device backups data of an application k to be migrated on a thread for backing up the application j to be migrated until the data backup of the N applications to be migrated is completed, where the application j to be migrated is one of the w applications to be migrated, and the application k to be migrated is any one of the N applications to be migrated except the w applications to be migrated; and if the N is smaller than the w, the first terminal equipment parallelly backs up the N data of the applications to be migrated.
For example, assuming that N is 10 and w is 4, the first terminal device backs up data of any 4 applications to be migrated in parallel among 10 applications to be migrated on 4 threads, and after the data backup of one application of the 4 applications to be migrated is completed, the first terminal device backs up data of any application to be migrated except the 4 applications to be migrated on the thread backing up the one application, and so on until the data backup of all the 10 applications to be migrated is completed.
It should be noted that, when the number of the applications to be migrated is N, the number of the first data sets corresponds to N, where the N first data sets correspond to the N applications to be migrated one to one, and then 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 the first data of the application to be migrated is also applicable to backing up the second data of the application to be migrated, 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 classifies all data of the application to be migrated.
S303, when the number of the applications to be migrated is N, the N is an integer larger than 1, and the first terminal device determines whether the N is larger than W.
If yes, go to step S304.
If not, go to step S306.
S304, the first terminal device backups first data of W applications to be migrated in the N applications to be migrated in parallel, wherein W is an integer larger than 1, and the latest use time of the W migrated applications is later than the latest use time of any application to be migrated except the W applications to be migrated in the N applications to be migrated.
S305, after the data backup of the application i to be migrated is completed, the first terminal device backups the data of the application j to be migrated on the thread for backing up the application i to be migrated until the data backup of the N applications to be migrated is completed to obtain N first data sets, wherein the N first data sets correspond to the N first applications one to one, the application i to be migrated is one of the W applications to be migrated, and the latest use time of the application j to be migrated is later than the latest use time of any application to be migrated except the application j to be migrated in the N-W applications to be migrated.
S306, the first terminal device backups the data of the N applications to be migrated in parallel to obtain N first data sets, wherein the N first data sets correspond to the N first applications one to one.
S307, the first terminal device transmits the N first data sets to the second terminal device.
S308, in the process of backing up the first data of the application to be migrated, the first terminal device backs up the second data of the application to be migrated to obtain a second data set, wherein the data type of the second data is not the preset type.
S309, in the process of transmitting the first data set to the second terminal device, the first terminal device transmits the second data set to a network server.
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 classification module 402, configured to classify all data of the application to be migrated;
a data backup module 403, configured to backup the first data of the application to be migrated to obtain a first data set;
a data transmitting module 404, configured to transmit the first data set to the second terminal device, where a data type of the first data is a preset type.
Optionally, the data backup module 403 is further configured to, in a process of backing up the first data of the application to be migrated, back up second data of the application to be migrated to obtain a second data set, where a data type of the second data is not the preset type;
the data transmission module 404 is further configured to transmit the second data set to a network server in the process of transmitting the first data set to the second terminal device.
Optionally, the application to be migrated includes at least one of: the use times exceed the preset times, the time length of the installation time from the current system time exceeds the preset time length, audio/video application and downloading application.
Optionally, the preset type includes an audio/video data type and/or an image data type.
Optionally, when the number of the applications to be migrated is N, where N is an integer greater than 1, the data backup module 403 is specifically configured to:
if the N is larger than or equal to W, parallelly backing up first data of W applications to be migrated in the N applications to be migrated, wherein the W is an integer larger than 1, and the latest use time of the W migrated applications is later than the latest use time of any application to be migrated except the W applications to be migrated in the N applications to be migrated;
after data backup of an application i to be migrated is completed, backing up data of an application j to be migrated on a thread backing up the application i to be migrated, wherein the application i to be migrated is one of the W applications to be migrated until the data backup of the N applications to be migrated is completed, and the latest use time of the application j to be migrated is later than the latest use time of any application to be migrated except the application j to be migrated in the N-W applications to be migrated;
and if the N is smaller than the W, the data of the N applications to be migrated are backed up in parallel.
It should be noted that the above modules (the hot spot connection module 401, the data classification module 402, the data backup module 403, and the data transmission module 404) 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. Further, the above hot spot connection module 401, data classification module 402, data backup module 403 and data transmission module 404 may 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 provided above, for example, by scanning a two-dimensional code of a second terminal device to connect to a hotspot established by the second terminal device, where the two-dimensional code is generated based on the hotspot name and the hotspot connection password; classifying all data of the application to be migrated; the first data of the application to be migrated are backed up to obtain a first data set, and the first data set is transmitted to the second terminal device, wherein the data type of the first data is a preset type.
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 for at least one function (such as a data sorting function, a data backup function, a data set transfer function), and the like; the storage data area may store data created according to the usage of the mobile phone (such as the first data set and the second data set obtained by backup), 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, sends the touch point coordinates to the processor 680, 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 680 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 (5)

1. A method of data migration, comprising:
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 equipment classifies all data of the application to be migrated;
the first terminal device backups the first data of the application to be migrated to obtain a first data set, and transmits the first data set to the second terminal device, wherein the data type of the first data is a preset type; the preset type comprises an audio/video data type and/or an image data type; when the number of the applications to be migrated is N, where N is an integer greater than 1, and the backing up, by the first terminal device, the first data of the applications to be migrated includes: if the N is larger than or equal to W, the first terminal device parallelly backs up first data of W applications to be migrated in the N applications to be migrated, wherein the W is an integer larger than 1, and the latest use time of the W migrated applications is later than the latest use time of any application to be migrated except the W applications to be migrated in the N applications to be migrated; after the data backup of an application i to be migrated is completed, the first terminal device backups data of an application j to be migrated on a thread backing up the application i to be migrated, wherein the application i to be migrated is one of the W applications to be migrated until the data backup of the N applications to be migrated is completed, and the latest use time of the application j to be migrated is later than the latest use time of any application to be migrated except the application j to be migrated in the N-W applications to be migrated; if the N is smaller than the W, the first terminal equipment parallelly backs up the data of the N applications to be migrated;
in the process of backing up the first data of the application to be migrated, the first terminal device backs up the second data of the application to be migrated to obtain a second data set, wherein the data type of the second data is not the preset type;
in the process of transmitting the first data set to the second terminal device, the first terminal device transmits the second data set to a network server.
2. The method of claim 1, wherein the application to be migrated comprises at least one of: the use times exceed the preset times, the time length of the installation time from the current system time exceeds the preset time length, audio/video application and downloading application.
3. A 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 based on the hotspot name and the hotspot connection password;
the data classification module is used for classifying all data of the application to be migrated;
the data backup module is used for backing up the first data of the application to be migrated to obtain a first data set;
the data transmission module is used for transmitting the first data set to the second terminal equipment, and the data type of the first data is a preset type; the preset type comprises an audio/video data type and/or an image data type;
when the number of the applications to be migrated is N, where N is an integer greater than 1, the data backup module is specifically configured to: if the N is larger than or equal to W, parallelly backing up first data of W applications to be migrated in the N applications to be migrated, wherein the W is an integer larger than 1, and the latest use time of the W migrated applications is later than the latest use time of any application to be migrated except the W applications to be migrated in the N applications to be migrated; after data backup of an application i to be migrated is completed, backing up data of an application j to be migrated on a thread backing up the application i to be migrated, wherein the application i to be migrated is one of the W applications to be migrated until the data backup of the N applications to be migrated is completed, and the latest use time of the application j to be migrated is later than the latest use time of any application to be migrated except the application j to be migrated in the N-W applications to be migrated; if the N is smaller than the W, the data of the N applications to be migrated are backed up in parallel;
the data backup module is further configured to backup second data of the application to be migrated to obtain a second data set in a process of backing up the first data of the application to be migrated, where a data type of the second data is not the preset type;
the data transmission module is further configured to transmit the second data set to a network server in the process of transmitting the first data set to the second terminal device.
4. The terminal device according to claim 3, wherein the application to be migrated comprises at least one of: the use times exceed the preset times, the time length of the installation time from the current system time exceeds the preset time length, audio/video application and downloading application.
5. 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 2.
CN201610825384.XA 2016-09-14 2016-09-14 Data migration method and terminal equipment Active CN106507269B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610825384.XA CN106507269B (en) 2016-09-14 2016-09-14 Data migration method and terminal equipment
PCT/CN2017/092862 WO2018049900A1 (en) 2016-09-14 2017-07-13 Data migration method and related devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610825384.XA CN106507269B (en) 2016-09-14 2016-09-14 Data migration method and terminal equipment

Publications (2)

Publication Number Publication Date
CN106507269A CN106507269A (en) 2017-03-15
CN106507269B true CN106507269B (en) 2020-02-07

Family

ID=58291406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610825384.XA Active CN106507269B (en) 2016-09-14 2016-09-14 Data migration method and terminal equipment

Country Status (2)

Country Link
CN (1) CN106507269B (en)
WO (1) WO2018049900A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106507269B (en) * 2016-09-14 2020-02-07 Oppo广东移动通信有限公司 Data migration method and terminal equipment
CN109635153B (en) * 2018-11-22 2023-01-13 腾讯音乐娱乐科技(深圳)有限公司 Migration path generation method, device and storage medium
CN110989940B (en) * 2019-12-17 2022-05-31 联想(北京)有限公司 Migration method and migration device
CN114640706B (en) * 2020-11-30 2023-09-12 华为技术有限公司 Data transmission method, electronic device and computer readable storage medium
CN113259523B (en) * 2021-05-31 2023-09-29 Oppo广东移动通信有限公司 Connection method, equipment to be migrated, system and medium
CN116049096B (en) * 2022-05-05 2024-04-16 荣耀终端有限公司 Data migration method, electronic equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146285A (en) * 2007-08-30 2008-03-19 Tcl天一移动通信(深圳)有限公司 A data backup method for mobile terminal
CN101364232A (en) * 2008-10-06 2009-02-11 深圳华为通信技术有限公司 Method, terminal and system fro backing-up non-volatile data
CN101720084A (en) * 2009-12-18 2010-06-02 中兴通讯股份有限公司 Method for processing terminal data, terminal and system
CN102591747A (en) * 2011-12-29 2012-07-18 中兴通讯股份有限公司 Data backup method and device
CN102769660A (en) * 2012-04-18 2012-11-07 中兴通讯股份有限公司 Cloud server, terminal and data backing up method thereof
CN103577280A (en) * 2012-07-30 2014-02-12 北京网秦天下科技有限公司 Method and system for duplicating data
CN104572349A (en) * 2014-12-03 2015-04-29 深圳市金立通信设备有限公司 Data backup method
CN104602238A (en) * 2014-05-29 2015-05-06 腾讯科技(深圳)有限公司 Wireless network connecting method, device and system
CN104978151A (en) * 2015-06-19 2015-10-14 浪潮电子信息产业股份有限公司 Application awareness based data reconstruction method in repeated data deletion and storage system
CN105022680A (en) * 2015-08-05 2015-11-04 浪潮(北京)电子信息产业有限公司 Data backup method and device
CN105282824A (en) * 2014-06-03 2016-01-27 中兴通讯股份有限公司 File sharing method based on wireless communication and wireless communication terminal
CN105373447A (en) * 2015-10-23 2016-03-02 北京金山安全软件有限公司 Data backup method and device and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070255662A1 (en) * 2006-03-30 2007-11-01 Obopay Inc. Authenticating Wireless Person-to-Person Money Transfers
CN103077127B (en) * 2012-12-29 2016-05-11 深圳先进技术研究院 A kind of method and apparatus of specified data migrating objects
CN105912421A (en) * 2016-04-06 2016-08-31 广东欧珀移动通信有限公司 Backup method and device for storing data in mobile terminals, mobile terminals and terminals
CN106507269B (en) * 2016-09-14 2020-02-07 Oppo广东移动通信有限公司 Data migration method and terminal equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146285A (en) * 2007-08-30 2008-03-19 Tcl天一移动通信(深圳)有限公司 A data backup method for mobile terminal
CN101364232A (en) * 2008-10-06 2009-02-11 深圳华为通信技术有限公司 Method, terminal and system fro backing-up non-volatile data
CN101720084A (en) * 2009-12-18 2010-06-02 中兴通讯股份有限公司 Method for processing terminal data, terminal and system
CN102591747A (en) * 2011-12-29 2012-07-18 中兴通讯股份有限公司 Data backup method and device
CN102769660A (en) * 2012-04-18 2012-11-07 中兴通讯股份有限公司 Cloud server, terminal and data backing up method thereof
CN103577280A (en) * 2012-07-30 2014-02-12 北京网秦天下科技有限公司 Method and system for duplicating data
CN104602238A (en) * 2014-05-29 2015-05-06 腾讯科技(深圳)有限公司 Wireless network connecting method, device and system
CN105282824A (en) * 2014-06-03 2016-01-27 中兴通讯股份有限公司 File sharing method based on wireless communication and wireless communication terminal
CN104572349A (en) * 2014-12-03 2015-04-29 深圳市金立通信设备有限公司 Data backup method
CN104978151A (en) * 2015-06-19 2015-10-14 浪潮电子信息产业股份有限公司 Application awareness based data reconstruction method in repeated data deletion and storage system
CN105022680A (en) * 2015-08-05 2015-11-04 浪潮(北京)电子信息产业有限公司 Data backup method and device
CN105373447A (en) * 2015-10-23 2016-03-02 北京金山安全软件有限公司 Data backup method and device and electronic equipment

Also Published As

Publication number Publication date
WO2018049900A1 (en) 2018-03-22
CN106507269A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
CN106507269B (en) Data migration method and terminal equipment
US9344838B2 (en) Data transmission method and apparatus, and terminal with touch screen
CN106658753B (en) Data migration method and terminal equipment
CN106445739B (en) Data migration method and terminal equipment
CN106446111B (en) Data migration method and terminal
CN108834132B (en) Data transmission method and equipment and related medium product
CN104978176A (en) Application program interface calling method and device
CN106528638B (en) Method for deleting backup data and mobile terminal
CN106569910B (en) Data backup and transmission method and mobile terminal
CN106302808A (en) Data transmission method and mobile terminal
CN104636047A (en) Method and device for operating objects in list and touch screen terminal
CN106484563B (en) Data migration method and terminal equipment
WO2018049905A1 (en) Data migration method and related devices
WO2018049901A1 (en) Data migration method and related devices
CN106209608A (en) The method and device that the difference of a kind of chat message synchronizes
CN104836717A (en) Data processing method and apparatus, and terminal equipment
CN106413032B (en) Hotspot establishing method and terminal equipment
CN108803961B (en) Data processing method and device and mobile terminal
CN106293407B (en) Picture display method and terminal equipment
CN106792434B (en) Hotspot establishing method and terminal equipment
CN106934003B (en) File processing method and mobile terminal
CN110891262A (en) Bluetooth pairing method, system and terminal equipment
CN106792583B (en) Multimedia message sending method, terminal and computer readable storage medium
CN106777383B (en) File sorting method and intelligent terminal
CN106790361B (en) Data processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
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