WO2018049904A1 - Data migration method and related devices - Google Patents

Data migration method and related devices Download PDF

Info

Publication number
WO2018049904A1
WO2018049904A1 PCT/CN2017/092871 CN2017092871W WO2018049904A1 WO 2018049904 A1 WO2018049904 A1 WO 2018049904A1 CN 2017092871 W CN2017092871 W CN 2017092871W WO 2018049904 A1 WO2018049904 A1 WO 2018049904A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
data
applications
terminal device
backs
Prior art date
Application number
PCT/CN2017/092871
Other languages
French (fr)
Chinese (zh)
Inventor
马志峰
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2018049904A1 publication Critical patent/WO2018049904A1/en

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

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a data migration method and related devices.
  • the data migration is the backup data of the old mobile phone, and then transmitted to the new mobile phone for data recovery to achieve the purpose of the replacement.
  • data migration is usually the old phone backs up all the data (such as contacts, text messages, applications, etc.), and then passes all the backed up data to the new phone for data recovery.
  • the embodiment of the invention provides a data migration method and related device, which can avoid unnecessary memory occupation problem for a new mobile phone.
  • an embodiment of the present invention provides a data migration method, including:
  • the first terminal device scans the hotspot established by the second terminal device by scanning the two-dimensional code of the second terminal device, and the two-dimensional code is generated based on the hotspot name and the hotspot connection password;
  • the first terminal device backs up data of the first application to obtain a first data set, and transmits the first data set to the second terminal device, where an important priority of the first application is greater than or equal to a pre- Set the priority.
  • an embodiment of the present invention provides a data migration apparatus, including:
  • a hotspot connection module configured to scan a hotspot established by the second terminal device by scanning a two-dimensional code of the second terminal device, where the two-dimensional code is generated based on the hotspot name and the hotspot connection password of;
  • a data backup module configured to back up data of the first application to obtain a first data set
  • a data transmission module configured to transmit the first data set to the second terminal device, where an important priority of the first application is greater than or equal to a preset priority.
  • an embodiment of the present invention provides a terminal device, including:
  • a processor coupled to the memory
  • the processor invokes the executable program code stored in the memory to perform some or all of the steps as described in the first aspect of the embodiments of the present invention.
  • the present invention provides a computer storage medium for storing computer software instructions for a terminal device provided by the second aspect of the embodiments of the present invention, comprising a program designed to perform the above aspects.
  • the first terminal device before the first terminal device performs data backup, the first terminal device first determines the first application whose important priority is greater than or equal to the preset priority, and then backs up the data of the first application, and finally backs up the data.
  • the data of the first application is transmitted to the second terminal device, so that the old device can prevent the data of the application that some users do not want to move to the new device from migrating to the new device, thereby causing unnecessary memory occupation problem for the new mobile phone. .
  • FIG. 1 is a schematic diagram of a communication system according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a data migration method according to a first embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a data migration method according to a second embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a data migration apparatus 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.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • a terminal device also called a User Equipment (UE) is a device that provides voice and/or data connectivity to a user, for example, a handheld device with a wireless connection function, an in-vehicle device, and the like.
  • UE User Equipment
  • Common terminals include, for example, mobile phones, tablets, notebook computers, PDAs, mobile internet devices (MIDs), wearable devices such as smart watches, smart bracelets, pedometers, and the like.
  • Hotspot refers to converting the receiving GPRS, 3G, 4G or 5G signals of the terminal device into WIFI signals and then sending them out, so that the terminal device becomes a WIFI hotspot.
  • a terminal device capable of establishing a hot spot requires a wireless access point (AP) function.
  • AP wireless access point
  • a data set also called a data set, a data set, or a data set, is a collection of data.
  • Threads sometimes referred to as Lightweight Processes (LWPs) are the smallest unit of program execution flow.
  • the serial execution designation is that the action A and the action B are executed in succession. For example, the action A is executed first and the action B is executed first, or the action B is executed first and then the action A is executed.
  • Parallel execution is to perform action A and action B on two threads respectively, for example, performing action A on the first thread and performing action B on the second thread, which may be performed simultaneously, or may be Perform another action while performing an action.
  • Multiple means two or more. "and/or”, describing the association relationship of the associated objects, indicating that there may be three relationships, for example, A and/or B, which may indicate that there are three cases where A exists separately, A and B exist at the same time, and B exists separately.
  • the character "/" generally indicates that the contextual object is an "or" relationship.
  • 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.
  • Data migration is usually the old device to back up all the data in the old device (such as contacts, text messages, applications, etc.), and then pass the backed up data to the new device for data recovery. Due to the long time of use of old equipment, the application time of the old equipment will increase with the use time of the mobile phone, and the size of each application will continue to increase. All the data of the old equipment will be transmitted to the new equipment, and there may be old Some of the data in the device is not what the user wants to move to the new device, which in turn gives the new device unnecessary memory usage.
  • the first terminal device 110 is the old device, and the first terminal device 120 is the new device, and the first terminal device 110 scans the two-dimensional code of the second terminal device 120 to connect the second device.
  • the hotspot established by the terminal device 120, the two-dimensional code is generated based on the hotspot name and the hotspot connection password; the first terminal device 110 backs up the data of the first application to obtain the first data set, and transmits the first data set to the first data set
  • the second terminal device 120 has an important priority of the first application greater than or equal to a preset priority.
  • the first terminal device before the first terminal device performs data backup, the first terminal device first determines the first application whose important priority is greater than or equal to the preset priority, and then backs up the number of the first application. Finally, the data of the backed up first application is finally transmitted to the second terminal device, so that the old device can prevent the data of the application that some users do not want to move to the new device from migrating to the new device, and bring the new mobile phone with the new mobile phone. Unnecessary memory usage issues.
  • FIG. 2 is a schematic flowchart of a data migration method according to an embodiment of the present invention, including the following steps:
  • the first terminal device scans the hotspot established by the second terminal device by scanning a two-dimensional code of 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 backs up data of the first application to obtain a first data set, and transmits the first data set to the second terminal device, where an important priority of the first application is greater than or Equal to the preset priority.
  • the two-dimensional code is generated by the second terminal device according to the hotspot name and the hotspot connection password after establishing the hotspot.
  • the preset priority may be priority 1, priority 2, priority 3, and the like. Among them, priority 1>priority 2>priority 3.
  • the important priority of the application is user-defined, or the first terminal device is customized, or the first terminal device determines based on the frequency of use of the application and/or the content of the data of the associated application. (For example, the higher the frequency of use, the greater the priority. For example, the frequency of use exceeds 80 times, the priority priority is priority 1, the frequency of use is 40-80, the priority priority is priority 2, and the frequency of use is less than 40.
  • the important priority is Priority 3, in addition, the data content of the associated application involves more important priorities in terms of work, itinerary, and notes.).
  • the first terminal device backs up data of the second application to obtain a second data set, and transmits the second data set to a network server,
  • the important priority of the second application is less than the preset priority.
  • the first terminal device Since the first terminal device only transmits data of a part of the application in the first terminal device to the second terminal device, in order to facilitate subsequent users to use the untransferred applications, the first terminal device will not transmit the applications to the second terminal device.
  • the data is backed up to the web server.
  • the method further includes:
  • the set duration may be, for example, 15 days, 1 month, 1 month and a half, or other values.
  • the first terminal device since the second data set may not be the data that the user wants to migrate to the new device, the first terminal device is temporarily migrated to the network server only to prevent subsequent users from needing the data. If the first terminal device has migrated the second data set to the network server for a long time but the user has no intention to download to the second terminal device, the network server may directly use the second data in order not to occupy the memory resources of the network server. Set to delete directly.
  • the method further includes:
  • the first terminal device sends a prompting instruction to the second terminal device, where the prompting instruction carries an important priority of the second application, where the prompting instruction is used to indicate that the second terminal device prompts the user that the priority is less than
  • the data of the preset priority application has been backed up to the network server, and the user is prompted to delete the second data if there is no operation on the second data set after the set duration set.
  • the first terminal device reminds the user that the second data set has been migrated to the network server, and reminds the second data set.
  • the length of time saved in the network device which in turn improves the user experience.
  • the transmitting of the first data set and the transmitting of the second data set are performed in parallel.
  • the first application and the second application are third-party applications installed in the terminal device, or the first application and the second application are system applications.
  • the N is an integer greater than 1, and the first terminal device backs up data of the first application, including:
  • the first terminal device backs up data of the M first applications in the N first applications in parallel, where the M is an integer greater than 1, and the M first applications
  • the frequency of use is higher than the frequency of use of any of the N first applications except the M first applications; after the data backup of the first application i is completed, the first terminal device Backing up data of the first application j on a thread that backs up the first application i, where the first application i is the M first One of the first applications in an application until the data backup of the N first applications is completed, the usage frequency of the first application j is higher than the first application j in the NM first applications The frequency of use of any of the first applications; if the N is smaller than the M, the first terminal device backs up the data of the N first applications in parallel.
  • the order of use frequency of the five first applications is: first application 1 usage frequency> usage frequency of the first application 2> usage frequency of the first application 3> first application Use frequency of 4> frequency of use of the first application 5, the first terminal device backs up the first application 1, the first application 2 and the first application 3 in parallel on three 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 that backs up the first application 1, and so on, until the data of the five first applications is backed up.
  • the N is an integer greater than 1, and the first terminal device backs up data of the first application, including:
  • the first terminal device backs up data of any w first applications in the N first applications in parallel, where w is an integer greater than 1; in the first application j After the data backup is completed, the first terminal device backs up the data of the first application k on the thread that backs up the first application j until the data backup of the N first applications is completed, and the first application j is One of the first applications in the first application, the first application k being any one of the N first applications except the w first applications; N is smaller than the w, and the first terminal device backs up data of the N first applications in parallel.
  • the first terminal device backs up data of any four first applications in the ten first applications in parallel on the four threads, one of the four first applications. After the data backup of the application is completed, the first terminal device backs up the data of any first application except the four first applications on the thread that backs up the one application, and so on, until the ten first applications The data is completely backed up.
  • the N is an integer greater than 1, and the first terminal device backs up data of the first application, including:
  • the first terminal device backs up data of the W first applications in the N first applications in parallel, where W is an integer greater than 1, and the W first applications The last use time is later than any of the N first applications except the W first applications The last use time of a first application;
  • the first terminal device After the data backup of the first application g is completed, the first terminal device backs up the data of the first application h on the thread that backs up the first application g, until the data backup of the N first applications is completed.
  • the first application g is one of the first applications, and the latest usage time of the first application h is later than the first application h in the NW first applications.
  • the last use time of any of the first applications is the same; if the N is smaller than the W, the first terminal device backs up the data of the N first applications in parallel.
  • the first time is 23:20 on September 10, 16 and the second time is 21:20 on September 10, 16th, then the first time is later than the second time.
  • the foregoing further defines a specific implementation process of backing up the first application data, and is also applicable to backing up data of the second application, which is not described herein.
  • the first application when the first application is N, the first data set corresponds to N, and the N first data sets are corresponding to the N first applications, and then the first terminal device is connected to the second terminal device.
  • the first data set transmitted corresponds to N.
  • the specific implementation manner of backing up the data of the first application is also applicable to backing up the data of the second application, and is not described herein.
  • the embodiment of the present invention further provides another more detailed method flow, as shown in FIG. 3, including:
  • the first terminal device is configured to connect the hotspot established by the second terminal device by scanning a two-dimensional code of 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 determines a first application, where an important priority of the first application is greater than or equal to a preset priority.
  • the N is an integer greater than 1.
  • the first terminal device determines whether the N is greater than M, and the M is an integer greater than 1.
  • step S304 is performed.
  • step S306 is performed.
  • the first terminal device backs up data of the M first applications in the N first applications in parallel, where the frequency of use of the M first applications is higher than that in the N first applications.
  • the first terminal device After the data backup of the first application i is completed, the first terminal device backs up data of the first application j on the thread that backs up the first application i, until the data backup of the N first applications is completed.
  • N first data sets where the first application i is one of the first applications, and the first application j is used at a higher frequency than the NM first applications. The frequency of use of any of the first applications except the first application j.
  • the first terminal device backs up data of the N first applications in parallel to obtain N first data sets.
  • the first terminal device transmits the N first data sets to the second terminal device.
  • the first terminal device backs up data of the second application to obtain a second data set.
  • the first terminal device transmits the second data set to a network server, where an important priority of the second application is smaller than the preset priority.
  • the embodiment of the invention further provides a data migration device 400, as shown in FIG. 4, comprising:
  • the hotspot connection module 401 is configured to scan a hotspot established by the second terminal device by scanning a two-dimensional code of the second terminal device, where the two-dimensional code is generated based on the hotspot name and the hotspot connection password;
  • the data backup module 402 is configured to back up data of the first application to obtain a first data set.
  • the data transmission module 403 is configured to transmit the first data set to the second terminal device, where an important priority of the first application is greater than or equal to a preset priority.
  • the data backup module 402 is further configured to: in the process of backing up data of the first application, the first terminal device backs up data of the second application 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 important priority of the second application is less than the preset priority.
  • the device further includes:
  • a sending module 404 configured to send a data deletion instruction to the network server, where the data is deleted
  • the instruction is used to instruct the network server to delete the second data set if the second terminal device does not detect any operation on the second data set after the set time period.
  • the sending module 404 is further configured to send a prompting instruction to the second terminal device, where the prompting instruction carries an important priority of the second application, and the prompting instruction is used to indicate the second
  • the terminal device prompts the user that the data of the application whose priority is less than the preset priority has been backed up to the network server, and prompts the user to have no operation on the second data set after the set time period, the network device The second data set will be deleted.
  • the transmitting of the first data set and the transmitting of the second data set are performed in parallel.
  • the important priority of the application is user-defined, or the first terminal device is customized, or the first terminal device determines based on the frequency of use of the application and/or the content of the data of the associated application. of.
  • the data backup module 402 is specifically configured to:
  • the data of the M first applications in the N first applications are backed up in parallel, and the M is an integer greater than 1, and the M first applications are used at a higher frequency than Describe the frequency of use of any of the first applications except the M first applications;
  • the first application i is One of the M first applications, the first application j is used at a higher frequency than any of the NM first applications except the first application j frequency;
  • the data of the N first applications are backed up in parallel.
  • the data backup module 402 is specifically configured to:
  • N is greater than or equal to w, back up data of any w first applications in the N first applications, where w is an integer greater than 1;
  • the data of the first application k is backed up on the thread that backs up the first application j until the data backup of the N first applications is completed, and the first application j is One of the first applications in the first application, the first application k being any one of the N first applications except the w first applications;
  • the data of the N first applications are backed up in parallel.
  • the data backup module 402 is specifically configured to:
  • the data of the W first applications in the N first applications are backed up in parallel, and the W is an integer greater than 1, and the latest usage time of the W first applications is late.
  • the data of the first application h is backed up on the thread that backs up the first application g until the data backup of the N first applications is completed, and the first application g is a first application of the first application h, the latest usage time of the first application h is later than any one of the NW first applications except the first application h Apply the most recent usage time;
  • the data of the N first applications are backed up in parallel.
  • each of the above modules (hotspot connection module 401, data backup module 402, data transfer module 403, and transmission module 404) is used to perform the relevant steps of the above method.
  • the data migration 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 executes one or more software or firmware programs, integrated logic circuits, and/or other devices that provide the above functionality.
  • ASIC application-specific integrated circuit
  • the above hotspot connection module 401, data backup module 402, and data transfer module 403 can be implemented by the processor 501 of the terminal device shown in FIG. 5.
  • the above sending module 404 can be implemented by the communication interface 503 of the terminal device shown in FIG. 5.
  • the terminal device 500 can be implemented in the structure of FIG. 5, which 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 by the communication bus and complete communication with each other.
  • the processor 501 can 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 the above program.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • the communication interface 503 is configured to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), and the like.
  • RAN Radio Access Network
  • WLAN Wireless Local Area Networks
  • the memory 502 can be 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 that can store information and instructions.
  • the dynamic storage device can also be an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical disc storage, and a disc storage device. (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be Any other media accessed, but not limited to this.
  • the memory can exist independently and be connected to the processor via a bus.
  • the memory can also be integrated with the processor.
  • the memory 502 is configured to store application code for executing the above solution, and is controlled by the processor 501 for execution.
  • the processor 501 is configured to execute application code stored in the memory 502.
  • the code stored in the memory 502 can perform the above data migration method performed by the terminal device provided by the foregoing terminal device, for example, the first terminal device scans the hotspot established by the second terminal device by scanning the two-dimensional code of the second terminal device, And generating, by the first terminal device, data of the first application to obtain a first data set, and transmitting the first data set to the
  • the second terminal device has an important priority of the first application that is greater than or equal to a preset priority.
  • the embodiment of the present invention further provides a more specific application scenario, as follows:
  • the terminal device is a mobile phone, and the following describes the components of the mobile phone in conjunction with FIG. 6:
  • the RF circuit 610 can be used for transmitting and receiving information or during a call, and receiving and transmitting the signal. Specifically, after receiving the downlink information of the base station, the processor 680 processes the data. In addition, the uplink data is designed to be sent to the base station.
  • RF circuit 610 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • LNA Low Noise Amplifier
  • RF circuitry 610 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication can be used Any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA) , Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Messaging Service
  • the memory 620 can be used to store software programs and modules, and the processor 680 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 620.
  • the memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a data backup function, a data set transmission function, a two-dimensional code scanning function), and the like;
  • the storage data area may store data created according to the use of the mobile phone (such as the first data set and the second data set of the backup, and the determined important priorities of the first application and the second application) and the like.
  • memory 620 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 630 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset.
  • the input unit 630 may include a touch panel 631 and other input devices 632.
  • the touch panel 631 also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 631 or near the touch panel 631. Operation), and drive the corresponding connecting device according to a preset program.
  • the touch panel 631 can include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 580 is provided and can receive commands from the processor 680 and execute them.
  • the touch panel 631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 630 may also include other input devices 632.
  • other input devices 632 may include, but are not limited to, a physical keyboard, at least one of a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, a joystick, and the like.
  • a function key such as a volume control button, a switch button, etc.
  • a trackball such as a mouse, a joystick, and the like.
  • the display unit 640 can be used to display information input by the user or information provided to the user as well as a hand Various menus of the machine.
  • the display unit 640 can include a display panel 641.
  • the display panel 641 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch panel 631 can cover the display panel 641. When the touch panel 631 detects a touch operation thereon or nearby, the touch panel 631 transmits to the processor 580 to determine the type of the touch event, and then the processor 680 according to the touch event. The type provides a corresponding visual output on display panel 641.
  • the touch panel 631 and the display panel 641 are two independent components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 631 may be integrated with the display panel 641. Realize the input and output functions of the phone.
  • the handset can also include at least one type of sensor 650, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 641 according to the brightness of the ambient light, and the proximity sensor may close the display panel 641 and/or when the mobile phone moves to the ear. Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the mobile phone can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration
  • vibration recognition related functions such as pedometer, tapping
  • the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • Audio circuit 660, speaker 661, and microphone 662 provide an audio interface between the user and the handset.
  • the audio circuit 660 can transmit the converted electrical data of the received audio data to the speaker 661 for conversion to the sound signal output by the speaker 661; on the other hand, the microphone 662 converts the collected sound signal into an electrical signal by the audio circuit 660. After receiving, it is converted into audio data, and then processed by the audio data output processor 680, sent to the other mobile phone via the RF circuit 610, or outputted to the memory 620 for further processing.
  • WiFi is a short-range wireless transmission technology
  • the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 670, which provides users with wireless broadband Internet access.
  • FIG. 6 shows the WiFi module 670, it can be understood that it does not belong to the essential configuration of the mobile phone, and can be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 680 is the control center of the handset, which connects various parts of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 620, and calling The data stored in the memory 620 performs various functions of the mobile phone and processes the data, thereby performing overall monitoring of the mobile phone.
  • the processor 680 may include one or more processing units; preferably, the processor 680 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 680.
  • the handset also includes a power source 690 (such as a battery) that supplies power to the various components.
  • a power source 690 such as a battery
  • the power source can be logically coupled to the processor 680 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • each step method flow may be implemented based on the structure of the terminal device shown in FIG. 6.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of any one of the data migration methods described in the foregoing method embodiments.
  • the disclosed apparatus may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a memory. A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing memory includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.
  • ROM Read-Only Memory
  • RAM Random Access Memory

Abstract

A data migration method, comprising: a first terminal device scans a two-dimensional code of a second terminal device to connect to a hotspot created by the second terminal device, the two-dimensional code being generated based on a name of the hotspot and a connection password of the hotspot (S201); the first terminal device backs up data of a first application to obtain a first data set, and transmits the first data set to the second terminal device, the important priority of the first application being greater than or equal to a preset priority (S202). Also provided are related device. The problem of unnecessary memory occupation in a new mobile phone can be avoided.

Description

数据迁移方法及相关设备Data migration method and related equipment
本发明要求2016年9月14日递交的发明名称为“一种数据迁移方法及终端设备”的申请号201610825482.3的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。The present invention claims the priority of the prior application of the application No. 201610825482.3, entitled "A Data Migration Method and Terminal Device", filed on September 14, 2016, the contents of which are incorporated herein by reference. .
技术领域Technical field
本发明涉及电子技术领域,尤其涉及一种数据迁移方法及相关设备。The present invention relates to the field of electronic technologies, and in particular, to a data migration method and related devices.
背景技术Background technique
目前人们换手机的频率越来越高,但是对于懒癌患者和科技小白来说,换机等于一切重新开始,日常使用的APP,重要的聊天记录、文档,连过的所有WiFi密码等这些旧机里的点滴习惯都没有了,每一次换机都是高兴10分钟,烦恼10小时。为了解决该问题,出现了数据迁移,数据迁移是旧手机备份数据,然后传给新手机进行数据恢复以达到换机的目的。At present, the frequency of people changing mobile phones is getting higher and higher, but for lazy cancer patients and technology white, changing the machine is equal to everything restarting, daily use of the app, important chat records, documents, all connected WiFi passwords, etc. There are no habits in the old machine. Every time you change the machine, you are happy for 10 minutes and trouble for 10 hours. In order to solve this problem, data migration has occurred. The data migration is the backup data of the old mobile phone, and then transmitted to the new mobile phone for data recovery to achieve the purpose of the replacement.
目前,数据迁移通常是旧手机将所有的数据进行备份(比如联系人、短信、应用程序等),然后将备份好的所有数据传给新手机进行数据恢复。Currently, data migration is usually the old phone backs up all the data (such as contacts, text messages, applications, etc.), and then passes all the backed up data to the new phone for data recovery.
发明内容Summary of the invention
本发明实施例提供一种数据迁移方法及相关设备,可以避免给新手机带来不必要的内存占用问题。The embodiment of the invention provides a data migration method and related device, which can avoid unnecessary memory occupation problem for a new mobile phone.
第一方面,本发明实施例提供一种数据迁移方法,包括:In a first aspect, an embodiment of the present invention provides a data migration method, including:
第一终端设备通过扫描第二终端设备的二维码,以连接所述第二终端设备建立的热点,所述二维码基于所述热点名称和所述热点连接密码生成的;The first terminal device scans the hotspot established by the second terminal device by scanning the two-dimensional code of the second terminal device, and the two-dimensional code is generated based on the hotspot name and the hotspot connection password;
所述第一终端设备备份第一应用的数据,以得到第一数据集,以及将所述第一数据集传送给所述第二终端设备,所述第一应用的重要优先级大于或等于预设优先级。The first terminal device backs up data of the first application to obtain a first data set, and transmits the first data set to the second terminal device, where an important priority of the first application is greater than or equal to a pre- Set the priority.
第二方面,本发明实施例提供了一种数据迁移装置,包括:In a second aspect, an embodiment of the present invention provides a data migration apparatus, including:
热点连接模块,用于通过扫描第二终端设备的二维码,以连接所述第二终端设备建立的热点,所述二维码是基于所述热点名称和所述热点连接密码生成 的;a hotspot connection module, configured to scan a hotspot established by the second terminal device by scanning a two-dimensional code of the second terminal device, where the two-dimensional code is generated based on the hotspot name and the hotspot connection password of;
数据备份模块,用于备份第一应用的数据,以得到第一数据集;a data backup module, configured to back up data of the first application to obtain a first data set;
数据传送模块,用于将所述第一数据集传送给所述第二终端设备,所述第一应用的重要优先级大于或等于预设优先级。And a data transmission module, configured to transmit the first data set to the second terminal device, where an important priority of the first application is greater than or equal to a 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 to the memory;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行如本发明实施例第一方面中所描述的部分或全部步骤。The processor invokes the executable program code stored in the memory to perform some or all of the steps as described in the first aspect of the embodiments of the present invention.
第四方面,本发明提供一种计算机存储介质,用于储存为本发明实施例第二方面提供的终端设备所用的计算机软件指令,其包含用于执行上述方面所设计的程序。In a fourth aspect, the present invention provides a computer storage medium for storing computer software instructions for a terminal device provided by the second aspect of the embodiments of the present invention, comprising a program designed to perform the above aspects.
在本方案中,在第一终端设备进行数据备份之前,第一终端设备先确定重要优先级大于或等于预设优先级的第一应用,然后再备份第一应用的数据,最后再将备份好的第一应用的数据传送给第二终端设备,这样可避免旧设备将某些用户不想搬到新设备上的应用的数据迁移到新设备上,而给新手机带来不必要的内存占用问题。In this solution, before the first terminal device performs data backup, the first terminal device first determines the first application whose important priority is greater than or equal to the preset priority, and then backs up the data of the first application, and finally backs up the data. The data of the first application is transmitted to the second terminal device, so that the old device can prevent the data of the application that some users do not want to move to the new device from migrating to the new device, thereby causing unnecessary memory occupation problem for the new mobile phone. .
本发明的这些方面或其他方面在以下实施例的描述中会更加简明易懂。These and other aspects of the invention will be more apparent from the following description of the embodiments.
附图说明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 embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1为本发明实施例提供的一种通信系统的示意图;FIG. 1 is a schematic diagram of a communication system according to an embodiment of the present invention;
图2为本发明第一实施例提供的一种数据迁移方法的流程示意图;2 is a schematic flowchart of a data migration method according to a first embodiment of the present invention;
图3为本发明第二实施例提供的一种数据迁移方法的流程示意图;3 is a schematic flowchart of a data migration method according to a second embodiment of the present invention;
图4为本发明第一实施例提供的一种数据迁移装置的结构示意图;4 is a schematic structural diagram of a data migration apparatus according to a first embodiment of the present invention;
图5为本发明第二实施例提供的一种终端设备的结构示意图; FIG. 5 is a schematic structural diagram of a terminal device according to a second embodiment of the present invention;
图6为本发明第三实施例提供的一种终端设备的结构示意图。FIG. 6 is a schematic structural diagram of a terminal device according to a third embodiment of the present invention.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is an embodiment of the invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
以下分别进行详细说明。The details are described below separately.
本发明的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", and "fourth" and the like in the specification and claims of the present invention are used to distinguish different objects, and are not intended to describe a specific order. . Furthermore, the terms "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or alternatively Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。References to "an embodiment" herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention. The appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
以下,对本申请中的部分用语进行解释说明,以便于本领域技术人员理解。Hereinafter, some of the terms in the present application will be explained to be understood by those skilled in the art.
1)、终端设备,又称之为用户设备(User Equipment,UE),是一种向用户提供语音和/或数据连通性的设备,例如,具有无线连接功能的手持式设备、车载设备等。常见的终端例如包括:手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(mobile internet device,MID)、可穿戴设备,例如智能手表、智能手环、计步器等。1) A terminal device, also called a User Equipment (UE), is a device that provides voice and/or data connectivity to a user, for example, a handheld device with a wireless connection function, an in-vehicle device, and the like. Common terminals include, for example, mobile phones, tablets, notebook computers, PDAs, mobile internet devices (MIDs), wearable devices such as smart watches, smart bracelets, pedometers, and the like.
2)热点是指把终端设备的接收GPRS、3G、4G或5G信号转化为WIFI信号再发出去,这样终端设备就成了一个WIFI热点。能够建立热点的终端设备要求必须具有无线接入点(Access point,AP)功能。 2) Hotspot refers to converting the receiving GPRS, 3G, 4G or 5G signals of the terminal device into WIFI signals and then sending them out, so that the terminal device becomes a WIFI hotspot. A terminal device capable of establishing a hot spot requires a wireless access point (AP) function.
3)数据集又称为资料集、数据集合或资料集合,是一种由数据所组成的集合。3) A data set, also called a data set, a data set, or a data set, is a collection of data.
4)线程,有时被称为轻量级进程(Lightweight Process,LWP),是程序执行流的最小单元。4) Threads, sometimes referred to as Lightweight Processes (LWPs), are the smallest unit of program execution flow.
5)串行执行指定是动作A与动作B是先后执行关系,比如,先执行动作A再执行动作B,或者,先执行动作B再执行动作A。5) The serial execution designation is that the action A and the action B are executed in succession. For example, the action A is executed first and the action B is executed first, or the action B is executed first and then the action A is executed.
6)并行执行是在两条线程上分别执行动作A与动作B,比如,在第一线程上执行动作A,在第二线程上执行动作B,二者可以是同时进行的,也可以是在执行一个动作的过程中执行另一动作。6) Parallel execution is to perform action A and action B on two threads respectively, for example, performing action A on the first thread and performing action B on the second thread, which may be performed simultaneously, or may be Perform another action while performing an action.
7)、“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。7) "Multiple" means two or more. "and/or", describing the association relationship of the associated objects, indicating that there may be three relationships, for example, A and/or B, which may indicate that there are three cases where A exists separately, A and B exist at the same time, and B exists separately. The character "/" generally indicates that the contextual object is an "or" relationship.
下面结合附图对本申请的实施例进行描述。Embodiments of the present application will be described below with reference to the accompanying drawings.
请参阅图1,图1是本发明实施例公开的一种通信系统的示意图。图1所示的通信系统包括第一终端设备110和第二终端设备120。数据迁移通常是旧设备将旧设备中的所有数据进行备份(比如联系人、短信、应用程序等),然后将备份好的数据传给新设备进行数据恢复。旧设备由于使用的时间比较长,旧设备中的各个应用的会随着手机的使用时间的不断增加,各个应用的大小不断增大,将旧设备的所有数据传给新设备,可能会存在旧设备中的某些数据不是用户想要搬到新设备上的,进而给新设备带来不必要的内存占用。Please refer 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. Data migration is usually the old device to back up all the data in the old device (such as contacts, text messages, applications, etc.), and then pass the backed up data to the new device for data recovery. Due to the long time of use of old equipment, the application time of the old equipment will increase with the use time of the mobile phone, and the size of each application will continue to increase. All the data of the old equipment will be transmitted to the new equipment, and there may be old Some of the data in the device is not what the user wants to move to the new device, which in turn gives the new device unnecessary memory usage.
为了解决上述问题,在本方案中,假设第一终端设备110为旧设备,第一终端设备120为新设备,第一终端设备110通过扫描第二终端设备120的二维码,以连接第二终端设备120建立的热点,上述二维码是基于热点名称和热点连接密码生成的;第一终端设备110备份第一应用的数据,以得到第一数据集,以及将第一数据集传送给第二终端设备120,第一应用的重要优先级大于或等于预设优先级。In order to solve the above problem, in the present solution, it is assumed that the first terminal device 110 is the old device, and the first terminal device 120 is the new device, and the first terminal device 110 scans the two-dimensional code of the second terminal device 120 to connect the second device. The hotspot established by the terminal device 120, the two-dimensional code is generated based on the hotspot name and the hotspot connection password; the first terminal device 110 backs up the data of the first application to obtain the first data set, and transmits the first data set to the first data set The second terminal device 120 has an important priority of the first application greater than or equal to a preset priority.
可见,在本方案中,在第一终端设备进行数据备份之前,第一终端设备先确定重要优先级大于或等于预设优先级的第一应用,然后再备份第一应用的数 据,最后再将备份好的第一应用的数据传送给第二终端设备,这样可避免旧设备将某些用户不想搬到新设备上的应用的数据迁移到新设备上,而给新手机带来不必要的内存占用问题。It can be seen that, in the solution, before the first terminal device performs data backup, the first terminal device first determines the first application whose important priority is greater than or equal to the preset priority, and then backs up the number of the first application. Finally, the data of the backed up first application is finally transmitted to the second terminal device, so that the old device can prevent the data of the application that some users do not want to move to the new device from migrating to the new device, and bring the new mobile phone with the new mobile phone. Unnecessary memory usage issues.
请参见图2,图2为本发明实施例提供的一种数据迁移方法的流程示意图,包括以下步骤:Referring to FIG. 2, FIG. 2 is a schematic flowchart of a data migration method according to an embodiment of the present invention, including the following steps:
S201、第一终端设备通过扫描第二终端设备的二维码,以连接所述第二终端设备建立的热点,所述二维码是基于所述热点名称和所述热点连接密码生成的。S201: The first terminal device scans the hotspot established by the second terminal device by scanning a two-dimensional code of the second terminal device, where the two-dimensional code is generated based on the hotspot name and the hotspot connection password.
S202、所述第一终端设备备份第一应用的数据,以得到第一数据集,以及将所述第一数据集传送给所述第二终端设备,所述第一应用的重要优先级大于或等于预设优先级。S202. The first terminal device backs up data of the first application to obtain a first data set, and transmits the first data set to the second terminal device, where an important priority of the first application is greater than or Equal to the preset priority.
其中,上述二维码是第二终端设备在建立热点之后,自行根据热点名称和热点连接密码生成的。The two-dimensional code is generated by the second terminal device according to the hotspot name and the hotspot connection password after establishing the hotspot.
其中,预设优先级可以是优先级1、优先级2、优先级3等等。其中,优先级1>优先级2>优先级3。The preset priority may be priority 1, priority 2, priority 3, and the like. Among them, priority 1>priority 2>priority 3.
可选地,应用的重要优先级是用户自定义的,或是所述第一终端设备自定义的,或是所述第一终端设备基于应用的使用频率和/或关联应用的数据的内容确定的(比如,使用频率越高重要优先级越大,比如使用频率超过80次重要优先级为优先级1,使用频率在40-80重要优先级为优先级2,使用频率小于40重要优先级为优先级3,另外,关联应用的数据内容涉及工作、行程、记事等方面的重要优先级越大。)。Optionally, the important priority of the application is user-defined, or the first terminal device is customized, or the first terminal device determines based on the frequency of use of the application and/or the content of the data of the associated application. (For example, the higher the frequency of use, the greater the priority. For example, the frequency of use exceeds 80 times, the priority priority is priority 1, the frequency of use is 40-80, the priority priority is priority 2, and the frequency of use is less than 40. The important priority is Priority 3, in addition, the data content of the associated application involves more important priorities in terms of work, itinerary, and notes.).
可选地,在备份所述第一应用的数据的过程中,所述第一终端设备备份第二应用的数据,以得到第二数据集,以及将所述第二数据集传送给网络服务器,所述第二应用的重要优先级小于所述预设优先级。Optionally, in the process of backing up data of the first application, the first terminal device backs up data of the second application to obtain a second data set, and transmits the second data set to a network server, The important priority of the second application is less than the preset priority.
由于第一终端设备只是将第一终端设备中的部分应用的数据传送给第二终端设备,为了方便后续用户使用未传送的这些应用,第一终端设备将未传送给第二终端设备的这些应用的数据备份到网络服务器中。Since the first terminal device only transmits data of a part of the application in the first terminal device to the second terminal device, in order to facilitate subsequent users to use the untransferred applications, the first terminal device will not transmit the applications to the second terminal device. The data is backed up to the web server.
可选地,所述第一终端设备将所述第二数据集传送给网络服务器之后,所述方法还包括: Optionally, after the first terminal device transmits the second data set to the network server, the method further includes:
所述第一终端设备向所述网络服务器发送数据删除指令,所述数据删除指令用于指示所述网络服务器在设定时长后若未检测到第二终端设备对所述第二数据集有任何操作,则删除所述第二数据集。Transmitting, by the first terminal device, a data deletion instruction to the network server, where the data deletion instruction is used to indicate that the network server does not detect any second data set in the second data set after detecting the length of time Operation, the second data set is deleted.
其中,所述设定时长例如可以是15天、1个月、1个半月或是其他值。The set duration may be, for example, 15 days, 1 month, 1 month and a half, or other values.
可见,由于第二数据集可能不是用户想要迁移到新设备上的数据,第一终端设备只是为了防止后续用户还需要这些数据而暂时迁移到网络服务器的。假如第一终端设备已经将第二数据集迁移到网络服务器较长时间但用户没有什么意愿下载到第二终端设备中,此时为了不占用网络服务器的内存资源,网络服务器可以直接将第二数据集直接删除。It can be seen that since the second data set may not be the data that the user wants to migrate to the new device, the first terminal device is temporarily migrated to the network server only to prevent subsequent users from needing the data. If the first terminal device has migrated the second data set to the network server for a long time but the user has no intention to download to the second terminal device, the network server may directly use the second data in order not to occupy the memory resources of the network server. Set to delete directly.
可选地,所述第一终端设备将所述第二数据集传送给网络服务器之后,所述方法还包括:Optionally, after the first terminal device transmits the second data set to the network server, the method further includes:
所述第一终端设备向所述第二终端设备发送提示指令,所述提示指令携带所述第二应用的重要优先级,所述提示指令用于指示所述第二终端设备提示用户优先级小于所述预设优先级的应用的数据已备份至所述网络服务器,以及提示用户若在所述设定时长后未对所述第二数据集有任何操作,网络设备将删除所述第二数据集。The first terminal device sends a prompting instruction to the second terminal device, where the prompting instruction carries an important priority of the second application, where the prompting instruction is used to indicate that the second terminal device prompts the user that the priority is less than The data of the preset priority application has been backed up to the network server, and the user is prompted to delete the second data if there is no operation on the second data set after the set duration set.
可见,在第二数据集已经迁移至网络服务器后,为了防止用户忘了还有第二数据集,第一终端设备通过提醒用户已将第二数据集迁移至网络服务器,同时提醒第二数据集在网络设备中保存的时长,进而提高了用户体验。It can be seen that, after the second data set has been migrated to the network server, in order to prevent the user from forgetting that there is a second data set, the first terminal device reminds the user that the second data set has been migrated to the network server, and reminds the second data set. The length of time saved in the network device, which in turn improves the user experience.
可选地,所述第一数据集的传送和第二数据集的传送是并行执行的。Optionally, the transmitting of the first data set and the transmitting of the second data set are performed in parallel.
其中,所述第一应用和所述第二应用为安装于终端设备中的第三方应用,或者,所述第一应用和所述第二应用为系统应用。The first application and the second application are third-party applications installed in the terminal device, or the first application and the second application are system applications.
可选地,所述第一应用的数量为N时,所述N为大于1的整数,所述第一终端设备备份所述第一应用的数据,包括:Optionally, when the number of the first application is N, the N is an integer greater than 1, and the first terminal device backs up data of the first application, including:
若所述N大于或等于M,所述第一终端设备并行备份所述N个第一应用中的M个第一应用的数据,所述M为大于1的整数,所述M个第一应用的使用频率高于所述N个第一应用中除了所述M个第一应用之外的任一第一应用的使用频率;在第一应用i的数据备份完成后,所述第一终端设备在备份所述第一应用i的线程上备份第一应用j的数据,所述第一应用i为所述M个第 一应用中的其中一个第一应用,直至所述N个第一应用的数据备份完成,所述第一应用j的使用频率高于所述N-M个第一应用中除了所述第一应用j之外的任一第一应用的使用频率;若所述N小于所述M,所述第一终端设备并行备份所述N个第一应用的数据。If the N is greater than or equal to M, the first terminal device backs up data of the M first applications in the N first applications in parallel, where the M is an integer greater than 1, and the M first applications The frequency of use is higher than the frequency of use of any of the N first applications except the M first applications; after the data backup of the first application i is completed, the first terminal device Backing up data of the first application j on a thread that backs up the first application i, where the first application i is the M first One of the first applications in an application until the data backup of the N first applications is completed, the usage frequency of the first application j is higher than the first application j in the NM first applications The frequency of use of any of the first applications; if the N is smaller than the M, the first terminal device backs up the data of the N first applications in parallel.
举例来说,假设N=5,M=3,5个第一应用的使用频率顺序有:第一应用1使用频率>第一应用2的使用频率>第一应用3的使用频率>第一应用4的使用频率>第一应用5的使用频率,第一终端设备在3条线程上并行备份第一应用1、第一应用2和第一应用3,在第一应用1的数据备份完成后,第一终端设备在备份第一应用1的线程上备份第一应用4,以此类推,直至这5个第一应用的数据都备份完成。For example, assuming N=5, M=3, the order of use frequency of the five first applications is: first application 1 usage frequency> usage frequency of the first application 2> usage frequency of the first application 3> first application Use frequency of 4> frequency of use of the first application 5, the first terminal device backs up the first application 1, the first application 2 and the first application 3 in parallel on three 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 that backs up the first application 1, and so on, until the data of the five first applications is backed up.
可选地,所述第一应用的数量为N时,所述N为大于1的整数,所述第一终端设备备份所述第一应用的数据,包括:Optionally, when the number of the first application is N, the N is an integer greater than 1, and the first terminal device backs up data of the first application, including:
若所述N大于或等于w,所述第一终端设备并行备份所述N个第一应用中的任意w个第一应用的数据,所述w为大于1的整数;在第一应用j的数据备份完成后,所述第一终端设备在备份所述第一应用j的线程上备份第一应用k的数据,直至所述N个第一应用的数据备份完成,所述第一应用j为所述w个第一应用中的其中一个第一应用,所述第一应用k为所述N个第一应用中除了所述w个第一应用之外的任一第一应用;若所述N小于所述w,所述第一终端设备并行备份所述N个第一应用的数据。If the N is greater than or equal to w, the first terminal device backs up data of any w first applications in the N first applications in parallel, where w is an integer greater than 1; in the first application j After the data backup is completed, the first terminal device backs up the data of the first application k on the thread that backs up the first application j until the data backup of the N first applications is completed, and the first application j is One of the first applications in the first application, the first application k being any one of the N first applications except the w first applications; N is smaller than the w, and the first terminal device backs up data of the N first applications in parallel.
举例来说,假设N=10,w=4,第一终端设备在4条线程上并行备份10个第一应用中的任意4个第一应用的数据,在这4个第一应用的其中一个应用的数据备份完成后,第一终端设备在备份这个其中一个应用的线程上备份除了这4个第一应用之外的任一第一应用的数据,以此类推,直到这10个第一应用的数据全部备份完成。For example, assuming that N=10, w=4, the first terminal device backs up data of any four first applications in the ten first applications in parallel on the four threads, one of the four first applications. After the data backup of the application is completed, the first terminal device backs up the data of any first application except the four first applications on the thread that backs up the one application, and so on, until the ten first applications The data is completely backed up.
可选地,所述第一应用的数量为N时,所述N为大于1的整数,所述第一终端设备备份所述第一应用的数据,包括:Optionally, when the number of the first application is N, the N is an integer greater than 1, and the first terminal device backs up data of the first application, including:
若所述N大于或等于W,所述第一终端设备并行备份所述N个第一应用中的W个第一应用的数据,所述W为大于1的整数,所述W个第一应用最近一次的使用时间晚于所述N个第一应用中除了所述W个第一应用之外的任 一第一应用最近一次的使用时间;If the N is greater than or equal to W, the first terminal device backs up data of the W first applications in the N first applications in parallel, where W is an integer greater than 1, and the W first applications The last use time is later than any of the N first applications except the W first applications The last use time of a first application;
在第一应用g的数据备份完成后,所述第一终端设备在备份所述第一应用g的线程上备份第一应用h的数据,直至所述N个第一应用的数据备份完成,所述第一应用g为所述W个第一应用中的其中一个第一应用,所述第一应用h最近一次的使用时间晚于所述N-W个第一应用中除了所述第一应用h之外的任一第一应用最近一次的使用时间;若所述N小于所述W,所述第一终端设备并行备份所述N个第一应用的数据。After the data backup of the first application g is completed, the first terminal device backs up the data of the first application h on the thread that backs up the first application g, until the data backup of the N first applications is completed. The first application g is one of the first applications, and the latest usage time of the first application h is later than the first application h in the NW first applications. The last use time of any of the first applications is the same; if the N is smaller than the W, the first terminal device backs up the data of the N first applications in parallel.
需要说明的是,假设第一时间为16年9月10日23:20,第二时间为16年9月10日21:20,那么第一时间晚于第二时间。另外,上述进一步限定备份第一应用数据的具体实现过程,同样也适用于备份第二应用的数据,在此不再叙述。It should be noted that the first time is 23:20 on September 10, 16 and the second time is 21:20 on September 10, 16th, then the first time is later than the second time. In addition, the foregoing further defines a specific implementation process of backing up the first application data, and is also applicable to backing up data of the second application, which is not described herein.
需要说明的是,当第一应用为N个时,上述第一数据集对应有N个,N个第一数据集与N个第一应用一一对应,那么第一终端设备向第二终端设备传送的第一数据集对应为N个。另外,上述备份第一应用的数据的具体实施方式,同样适用于备份第二应用的数据,在此不再叙述。It should be noted that, when the first application is N, the first data set corresponds to N, and the N first data sets are corresponding to the N first applications, and then the first terminal device is connected to the second terminal device. The first data set transmitted corresponds to N. In addition, the specific implementation manner of backing up the data of the first application is also applicable to backing up the data of the second application, and is not described herein.
本发明实施例还提供了另一更为详细的方法流程,如图3所示,包括:The embodiment of the present invention further provides another more detailed method flow, as shown in FIG. 3, including:
S301、第一终端设备通过扫描第二终端设备的二维码,以连接所述第二终端设备建立的热点,所述二维码是基于所述热点名称和所述热点连接密码生成的。S301. The first terminal device is configured to connect the hotspot established by the second terminal device by scanning a two-dimensional code of the second terminal device, where the two-dimensional code is generated based on the hotspot name and the hotspot connection password.
S302、所述第一终端设备确定第一应用,所述第一应用的重要优先级大于或等于预设优先级。S302. The first terminal device determines a first application, where an important priority of the first application is greater than or equal to a preset priority.
S303、若所述第一应用的数量为N时,所述N为大于1的整数,所述第一终端设备确定所述N是否大于M,所述M为大于1的整数。S303. If the number of the first application is N, the N is an integer greater than 1. The first terminal device determines whether the N is greater than M, and the M is an integer greater than 1.
若是,则执行步骤S304。If yes, step S304 is performed.
若否,则执行步骤S306。If no, step S306 is performed.
S304、所述第一终端设备并行备份所述N个第一应用中的M个第一应用的数据,所述M个第一应用的使用频率高于所述N个第一应用中除了所述M个第一应用之外的任一第一应用的使用频率。 S304, the first terminal device backs up data of the M first applications in the N first applications in parallel, where the frequency of use of the M first applications is higher than that in the N first applications. The frequency of use of any of the first applications other than the M first applications.
S305、在第一应用i的数据备份完成后,所述第一终端设备在备份所述第一应用i的线程上备份第一应用j的数据,直至所述N个第一应用的数据备份完成,以得到N个第一数据集,所述第一应用i为所述M个第一应用中的其中一个第一应用,所述第一应用j的使用频率高于所述N-M个第一应用中除了所述第一应用j之外的任一第一应用的使用频率。S305. After the data backup of the first application i is completed, the first terminal device backs up data of the first application j on the thread that backs up the first application i, until the data backup of the N first applications is completed. Obtaining N first data sets, where the first application i is one of the first applications, and the first application j is used at a higher frequency than the NM first applications. The frequency of use of any of the first applications except the first application j.
S306、所述第一终端设备并行备份所述N个第一应用的数据,以得到N个第一数据集。S306. The first terminal device backs up data of the N first applications in parallel to obtain N first data sets.
S307、所述第一终端设备将所述N个第一数据集传送给所述第二终端设备。S307. The first terminal device transmits the N first data sets to the second terminal device.
S308、在备份所述第一应用的数据的过程中,所述第一终端设备备份第二应用的数据,以得到第二数据集。S308. In the process of backing up data of the first application, the first terminal device backs up data of the second application to obtain a second data set.
S309、所述第一终端设备将所述第二数据集传送给网络服务器,所述第二应用的重要优先级小于所述预设优先级。S309. The first terminal device transmits the second data set to a network server, where an important priority of the second application is smaller than the preset priority.
需要说明的是,图3所示的方法的各个步骤的具体实现过程可参见上述方法所述的具体实现过程,在此不再叙述。It should be noted that the specific implementation process of each step of the method shown in FIG. 3 can be referred to the specific implementation process described in the foregoing method, and is not described herein.
本发明实施例还提供了一种数据迁移装置400,如图4所示,包括:The embodiment of the invention further provides a data migration device 400, as shown in FIG. 4, comprising:
热点连接模块401,用于通过扫描第二终端设备的二维码,以连接所述第二终端设备建立的热点,所述二维码是基于所述热点名称和所述热点连接密码生成的;The hotspot connection module 401 is configured to scan a hotspot established by the second terminal device by scanning a two-dimensional code of the second terminal device, where the two-dimensional code is generated based on the hotspot name and the hotspot connection password;
数据备份模块402,用于备份第一应用的数据,以得到第一数据集;The data backup module 402 is configured to back up data of the first application to obtain a first data set.
数据传送模块403,用于将所述第一数据集传送给所述第二终端设备,所述第一应用的重要优先级大于或等于预设优先级。The data transmission module 403 is configured to transmit the first data set to the second terminal device, where an important priority of the first application is greater than or equal to a preset priority.
可选地,所述数据备份模块402,还用于在备份所述第一应用的数据的过程中,所述第一终端设备备份第二应用的数据,以得到第二数据集;Optionally, the data backup module 402 is further configured to: in the process of backing up data of the first application, the first terminal device backs up data of the second application to obtain a second data set;
所述数据传送模块403,还用于将所述第二数据集传送给网络服务器,所述第二应用的重要优先级小于所述预设优先级。The data transmission module 403 is further configured to transmit the second data set to a network server, where an important priority of the second application is less than the preset priority.
可选地,所述装置还包括:Optionally, the device further includes:
发送模块404,用于向所述网络服务器发送数据删除指令,所述数据删除 指令用于指示所述网络服务器在设定时长后若未检测到第二终端设备对所述第二数据集有任何操作,则删除所述第二数据集。a sending module 404, configured to send a data deletion instruction to the network server, where the data is deleted The instruction is used to instruct the network server to delete the second data set if the second terminal device does not detect any operation on the second data set after the set time period.
可选地,所述发送模块404,还用于向所述第二终端设备发送提示指令,所述提示指令携带所述第二应用的重要优先级,所述提示指令用于指示所述第二终端设备提示用户优先级小于所述预设优先级的应用的数据已备份至所述网络服务器,以及提示用户若在所述设定时长后未对所述第二数据集有任何操作,网络设备将删除所述第二数据集。Optionally, the sending module 404 is further configured to send a prompting instruction to the second terminal device, where the prompting instruction carries an important priority of the second application, and the prompting instruction is used to indicate the second The terminal device prompts the user that the data of the application whose priority is less than the preset priority has been backed up to the network server, and prompts the user to have no operation on the second data set after the set time period, the network device The second data set will be deleted.
可选地,所述第一数据集的传送和第二数据集的传送是并行执行的。Optionally, the transmitting of the first data set and the transmitting of the second data set are performed in parallel.
可选地,应用的重要优先级是用户自定义的,或是所述第一终端设备自定义的,或是所述第一终端设备基于应用的使用频率和/或关联应用的数据的内容确定的。Optionally, the important priority of the application is user-defined, or the first terminal device is customized, or the first terminal device determines based on the frequency of use of the application and/or the content of the data of the associated application. of.
可选地,所述第一应用的数量为N时,所述N为大于1的整数,所述数据备份模块402具体用于:Optionally, when the quantity of the first application is N, the N is an integer greater than 1, and the data backup module 402 is specifically configured to:
若所述N大于或等于M,并行备份所述N个第一应用中的M个第一应用的数据,所述M为大于1的整数,所述M个第一应用的使用频率高于所述N个第一应用中除了所述M个第一应用之外的任一第一应用的使用频率;If the N is greater than or equal to M, the data of the M first applications in the N first applications are backed up in parallel, and the M is an integer greater than 1, and the M first applications are used at a higher frequency than Describe the frequency of use of any of the first applications except the M first applications;
在第一应用i的数据备份完成后,备份所述第一应用i的线程上备份第一应用j的数据,直至所述N个第一应用的数据备份完成,所述第一应用i为所述M个第一应用中的其中一个第一应用,所述第一应用j的使用频率高于所述N-M个第一应用中除了所述第一应用j之外的任一第一应用的使用频率;After the data backup of the first application i is completed, backing up the data of the first application j on the thread of the first application i until the data backup of the N first applications is completed, the first application i is One of the M first applications, the first application j is used at a higher frequency than any of the NM first applications except the first application j frequency;
若所述N小于所述M,并行备份所述N个第一应用的数据。If the N is smaller than the M, the data of the N first applications are backed up in parallel.
可选地,所述第一应用的数量为N时,所述N为大于1的整数,所述数据备份模块402具体用于:Optionally, when the quantity of the first application is N, the N is an integer greater than 1, and the data backup module 402 is specifically configured to:
若所述N大于或等于w,并行备份所述N个第一应用中的任意w个第一应用的数据,所述w为大于1的整数;If the N is greater than or equal to w, back up data of any w first applications in the N first applications, where w is an integer greater than 1;
在第一应用j的数据备份完成后,在备份所述第一应用j的线程上备份第一应用k的数据,直至所述N个第一应用的数据备份完成,所述第一应用j为所述w个第一应用中的其中一个第一应用,所述第一应用k为所述N个第一应用中除了所述w个第一应用之外的任一第一应用; After the data backup of the first application j is completed, the data of the first application k is backed up on the thread that backs up the first application j until the data backup of the N first applications is completed, and the first application j is One of the first applications in the first application, the first application k being any one of the N first applications except the w first applications;
若所述N小于所述w,并行备份所述N个第一应用的数据。If the N is smaller than the w, the data of the N first applications are backed up in parallel.
可选地,所述第一应用的数量为N时,所述N为大于1的整数,所述数据备份模块402具体用于:Optionally, when the quantity of the first application is N, the N is an integer greater than 1, and the data backup module 402 is specifically configured to:
若所述N大于或等于W,并行备份所述N个第一应用中的W个第一应用的数据,所述W为大于1的整数,所述W个第一应用最近一次的使用时间晚于所述N个第一应用中除了所述W个第一应用之外的任一第一应用最近一次的使用时间;If the N is greater than or equal to W, the data of the W first applications in the N first applications are backed up in parallel, and the W is an integer greater than 1, and the latest usage time of the W first applications is late. The latest usage time of any of the first applications except the W first applications in the N first applications;
在第一应用g的数据备份完成后,在备份所述第一应用g的线程上备份第一应用h的数据,直至所述N个第一应用的数据备份完成,所述第一应用g为所述W个第一应用中的其中一个第一应用,所述第一应用h最近一次的使用时间晚于所述N-W个第一应用中除了所述第一应用h之外的任一第一应用最近一次的使用时间;After the data backup of the first application g is completed, the data of the first application h is backed up on the thread that backs up the first application g until the data backup of the N first applications is completed, and the first application g is a first application of the first application h, the latest usage time of the first application h is later than any one of the NW first applications except the first application h Apply the most recent usage time;
若所述N小于所述W,并行备份所述N个第一应用的数据。If the N is smaller than the W, the data of the N first applications are backed up in parallel.
需要说明的是,上述各模块(热点连接模块401、数据备份模块402、数据传送模块403和发送模块404)用于执行上述方法的相关步骤。It should be noted that each of the above modules (hotspot connection module 401, data backup module 402, data transfer module 403, and transmission module 404) is used to perform the relevant steps of the above method.
在本实施例中,数据迁移装置400是以模块的形式来呈现。这里的“模块”可以指特定应用集成电路(application-specific integrated circuit,ASIC),执行一个或多个软件或固件程序的处理器和存储器,集成逻辑电路,和/或其他可以提供上述功能的器件。此外,以上热点连接模块401、数据备份模块402以及数据传送模块403可通过图5所示的终端设备的处理器501来实现。以上发送模块404可通过图5所示的终端设备的通信接口503来实现。In the present embodiment, the data migration 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 executes one or more software or firmware programs, integrated logic circuits, and/or other devices that provide the above functionality. . In addition, the above hotspot connection module 401, data backup module 402, and data transfer module 403 can be implemented by the processor 501 of the terminal device shown in FIG. 5. The above sending module 404 can be implemented by the communication interface 503 of the terminal device shown in FIG. 5.
如图5所示,终端设备500可以以图5中的结构来实现,该终端设备500包括至少一个处理器501,至少一个存储器502以及至少一个通信接口503。所述处理器501、所述存储器502和所述通信接口503通过所述通信总线连接并完成相互间的通信。As shown in FIG. 5, the terminal device 500 can be implemented in the structure of FIG. 5, which 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 by the communication bus and complete communication with each other.
处理器501可以是通用中央处理器(CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制以上方案程序执行的集成电路。 The processor 501 can 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 the above program.
通信接口503,用于与其他设备或通信网络通信,如以太网,无线接入网(RAN),无线局域网(Wireless Local Area Networks,WLAN)等。The communication interface 503 is configured to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), and the like.
存储器502可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。The memory 502 can be 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 that can store information and instructions. The dynamic storage device can also be an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical disc storage, and a disc storage device. (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be Any other media accessed, but not limited to this. The memory can exist independently and be connected to the processor via a bus. The memory can also be integrated with the processor.
其中,所述存储器502用于存储执行以上方案的应用程序代码,并由处理器501来控制执行。所述处理器501用于执行所述存储器502中存储的应用程序代码。The memory 502 is configured to store application code for executing the above solution, and is controlled by the processor 501 for execution. The processor 501 is configured to execute application code stored in the memory 502.
存储器502存储的代码可执行以上提供的终端设备执行的上述数据迁移方法,比如,第一终端设备通过扫描第二终端设备的二维码,以连接所述第二终端设备建立的热点,所述二维码是基于所述热点名称和所述热点连接密码生成的;所述第一终端设备备份第一应用的数据,以得到第一数据集,以及将所述第一数据集传送给所述第二终端设备,所述第一应用的重要优先级大于或等于预设优先级。The code stored in the memory 502 can perform the above data migration method performed by the terminal device provided by the foregoing terminal device, for example, the first terminal device scans the hotspot established by the second terminal device by scanning the two-dimensional code of the second terminal device, And generating, by the first terminal device, data of the first application to obtain a first data set, and transmitting the first data set to the The second terminal device has an important priority of the first application that is greater than or equal to a preset priority.
本发明实施例还提供了一个更为具体的应用场景,如下:上述终端设备为手机,下面结合图6对手机的各个构成部件进行具体的介绍:The embodiment of the present invention further provides a more specific application scenario, as follows: The terminal device is a mobile phone, and the following describes the components of the mobile phone in conjunction with FIG. 6:
RF电路610可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器680处理;另外,将设计上行的数据发送给基站。通常,RF电路610包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路610还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用 任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 610 can be used for transmitting and receiving information or during a call, and receiving and transmitting the signal. Specifically, after receiving the downlink information of the base station, the processor 680 processes the data. In addition, the uplink data is designed to be sent to the base station. Generally, RF circuit 610 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 610 can also communicate with the network and other devices via wireless communication. The above wireless communication can be used Any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA) , Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), and the like.
存储器620可用于存储软件程序以及模块,处理器680通过运行存储在存储器620的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器620可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如数据备份功能、数据集传送功能、二维码扫描功能)等;存储数据区可存储根据手机的使用所创建的数据(比如备份的第一数据集和第二数据集,以及确定的第一应用和第二应用的重要优先级)等。此外,存储器620可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 620 can be used to store software programs and modules, and the processor 680 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 620. The memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a data backup function, a data set transmission function, a two-dimensional code scanning function), and the like; The storage data area may store data created according to the use of the mobile phone (such as the first data set and the second data set of the backup, and the determined important priorities of the first application and the second application) and the like. Moreover, memory 620 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元630可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元630可包括触控面板631、其他输入设备632。触控面板631,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板631上或在触控面板631附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板631可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器580,并能接收处理器680发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板631。除以了触控面板631,输入单元630还可以包括其他输入设备632。具体地,其他输入设备632可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的至少一种。The input unit 630 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset. 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, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 631 or near the touch panel 631. Operation), and drive the corresponding connecting device according to a preset program. Optionally, the touch panel 631 can include two parts: a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 580 is provided and can receive commands from the processor 680 and execute them. In addition, the touch panel 631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 631, the input unit 630 may also include other input devices 632. Specifically, other input devices 632 may include, but are not limited to, a physical keyboard, at least one of a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, a joystick, and the like.
显示单元640可用于显示由用户输入的信息或提供给用户的信息以及手 机的各种菜单。显示单元640可包括显示面板641,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板641。进一步的,触控面板631可覆盖显示面板641,当触控面板631检测到在其上或附近的触摸操作后,传送给处理器580以确定触摸事件的类型,随后处理器680根据触摸事件的类型在显示面板641上提供相应的视觉输出。虽然在图6中,触控面板631与显示面板641是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板631与显示面板641集成而实现手机的输入和输出功能。The display unit 640 can be used to display information input by the user or information provided to the user as well as a hand Various menus of the machine. The display unit 640 can include a display panel 641. Alternatively, the display panel 641 can 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. When the touch panel 631 detects a touch operation thereon or nearby, the touch panel 631 transmits to the processor 580 to determine the type of the touch event, and then the processor 680 according to the touch event. The type provides a corresponding visual output on display panel 641. Although in FIG. 6, the touch panel 631 and the display panel 641 are two independent components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 631 may be integrated with the display panel 641. Realize the input and output functions of the phone.
手机还可包括至少一种传感器650,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板641的亮度,接近传感器可在手机移动到耳边时,关闭显示面板641和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset can also include at least one type of sensor 650, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 641 according to the brightness of the ambient light, and the proximity sensor may close the display panel 641 and/or when the mobile phone moves to the ear. Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
音频电路660、扬声器661,传声器662可提供用户与手机之间的音频接口。音频电路660可将接收到的音频数据转换后的电信号,传输到扬声器661,由扬声器661转换为声音信号输出;另一方面,传声器662将收集的声音信号转换为电信号,由音频电路660接收后转换为音频数据,再将音频数据输出处理器680处理后,经RF电路610以发送给比如另一手机,或者将音频数据输出至存储器620以便进一步处理。 Audio circuit 660, speaker 661, and microphone 662 provide an audio interface between the user and the handset. The audio circuit 660 can transmit the converted electrical data of the received audio data to the speaker 661 for conversion to the sound signal output by the speaker 661; on the other hand, the microphone 662 converts the collected sound signal into an electrical signal by the audio circuit 660. After receiving, it is converted into audio data, and then processed by the audio data output processor 680, sent to the other mobile phone via the RF circuit 610, or outputted to the memory 620 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块670可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了WiFi模块670,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-range wireless transmission technology, and the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 670, which provides users with wireless broadband Internet access. Although FIG. 6 shows the WiFi module 670, it can be understood that it does not belong to the essential configuration of the mobile phone, and can be omitted as needed within the scope of not changing the essence of the invention.
处理器680是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器620内的软件程序和/或模块,以及调用 存储在存储器620内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器680可包括一个或多个处理单元;优选的,处理器680可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器680中。The processor 680 is the control center of the handset, which connects various parts of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 620, and calling The data stored in the memory 620 performs various functions of the mobile phone and processes the data, thereby performing overall monitoring of the mobile phone. Optionally, the processor 680 may include one or more processing units; preferably, the processor 680 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 680.
手机还包括给各个部件供电的电源690(比如电池),优选的,电源可以通过电源管理系统与处理器680逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The handset also includes a power source 690 (such as a battery) that supplies power to the various components. Preferably, the power source can be logically coupled to the processor 680 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
前述实施例中,各步骤方法流程可以基于图6所示的终端设备的结构实现。In the foregoing embodiment, each step method flow may be implemented based on the structure of the terminal device shown in FIG. 6.
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种数据迁移方法的部分或全部步骤。The embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of any one of the data migration methods described in the foregoing method embodiments.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。 In the several embodiments provided herein, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a memory. A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing memory includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。A person skilled in the art can understand that all or part of the steps of the foregoing embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable memory, and the memory can include: a flash drive , read-only memory (English: Read-Only Memory, referred to as: ROM), random accessor (English: Random Access Memory, referred to as: RAM), disk or CD.
以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上上述,本说明书内容不应理解为对本发明的限制。 The embodiments of the present invention have been described in detail above, and the principles and implementations of the present invention are described in detail herein. The description of the above embodiments is only for helping to understand the method of the present invention and its core ideas; The present invention is not limited by the scope of the present invention, and the present invention is not limited by the scope of the present invention.

Claims (20)

  1. 一种数据迁移方法,其特征在于,包括:A data migration method, comprising:
    第一终端设备通过扫描第二终端设备的二维码,以连接所述第二终端设备建立的热点,所述二维码是基于所述热点名称和所述热点连接密码生成的;The first terminal device is configured to connect the hotspot established by the second terminal device by scanning a two-dimensional code of 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 backs up data of the first application to obtain a first data set, and transmits the first data set to the second terminal device, where an important priority of the first application is greater than or equal to a pre- Set the priority.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    在备份所述第一应用的数据的过程中,所述第一终端设备备份第二应用的数据,以得到第二数据集,以及将所述第二数据集传送给网络服务器,所述第二应用的重要优先级小于所述预设优先级。In the process of backing up data of the first application, the first terminal device backs up data of the second application to obtain a second data set, and transmits the second data set to a network server, where the second The important priority of the application is less than the preset priority.
  3. 根据权利要求2所述的方法,其特征在于,所述第一终端设备将所述第二数据集传送给网络服务器之后,所述方法还包括:The method according to claim 2, wherein after the first terminal device transmits the second data set to the network server, the method further includes:
    所述第一终端设备向所述网络服务器发送数据删除指令,所述数据删除指令用于指示所述网络服务器在设定时长后若未检测到第二终端设备对所述第二数据集有任何操作,则删除所述第二数据集。Transmitting, by the first terminal device, a data deletion instruction to the network server, where the data deletion instruction is used to indicate that the network server does not detect any second data set in the second data set after detecting the length of time Operation, the second data set is deleted.
  4. 根据权利要求2或3所述的方法,其特征在于,所述第一终端设备将所述第二数据集传送给网络服务器之后,所述方法还包括:The method according to claim 2 or 3, wherein after the first terminal device transmits the second data set to the network server, the method further includes:
    所述第一终端设备向所述第二终端设备发送提示指令,所述提示指令携带所述第二应用的重要优先级,所述提示指令用于指示所述第二终端设备提示用户优先级小于所述预设优先级的应用的数据已备份至所述网络服务器,以及提示用户若在所述设定时长后未对所述第二数据集有任何操作,网络设备将删除所述第二数据集。The first terminal device sends a prompting instruction to the second terminal device, where the prompting instruction carries an important priority of the second application, where the prompting instruction is used to indicate that the second terminal device prompts the user that the priority is less than The data of the preset priority application has been backed up to the network server, and the user is prompted to delete the second data if there is no operation on the second data set after the set duration set.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述第一数据集的传送和所述第二数据集的传送是并行执行的。A method according to any one of claims 1 to 4, wherein the transfer of the first data set and the transfer of the second data set are performed in parallel.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,应用的重要优先级是用户自定义的,或是所述第一终端设备自定义的,或是所述第一终端设备基于应用的使用频率和/或关联应用的数据的内容确定的。 The method according to any one of claims 1-5, wherein the important priority of the application is user-defined, or the first terminal device is customized, or the first terminal device is based on The frequency of use of the application and/or the content of the data associated with the application is determined.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述第一应用的数量为N时,所述N为大于1的整数,所述第一终端设备备份所述第一应用的数据,包括:The method according to any one of claims 1-6, wherein, when the number of the first application is N, the N is an integer greater than 1, and the first terminal device backs up the first application. Data, including:
    若所述N大于或等于M,所述第一终端设备并行备份所述N个第一应用中的M个第一应用的数据,所述M为大于1的整数,所述M个第一应用的使用频率高于所述N个第一应用中除了所述M个第一应用之外的任一第一应用的使用频率;If the N is greater than or equal to M, the first terminal device backs up data of the M first applications in the N first applications in parallel, where the M is an integer greater than 1, and the M first applications The frequency of use is higher than the frequency of use of any of the N first applications except the M first applications;
    在第一应用i的数据备份完成后,所述第一终端设备在备份所述第一应用i的线程上备份第一应用j的数据,直至所述N个第一应用的数据备份完成,所述第一应用i为所述M个第一应用中的其中一个第一应用,所述第一应用j的使用频率高于所述N-M个第一应用中除了所述第一应用j之外的任一第一应用的使用频率;After the data backup of the first application i is completed, the first terminal device backs up the data of the first application j on the thread that backs up the first application i, until the data backup of the N first applications is completed. The first application i is one of the M first applications, and the first application j is used at a higher frequency than the first application j except the first application j. The frequency of use of any first application;
    若所述N小于所述M,所述第一终端设备并行备份所述N个第一应用的数据。If the N is smaller than the M, the first terminal device backs up data of the N first applications in parallel.
  8. 根据权利要求1-6任一项所述的方法,其特征在于,所述第一应用的数量为N时,所述N为大于1的整数,所述第一终端设备备份所述第一应用的数据,包括:The method according to any one of claims 1-6, wherein, when the number of the first application is N, the N is an integer greater than 1, and the first terminal device backs up the first application. Data, including:
    若所述N大于或等于w,所述第一终端设备并行备份所述N个第一应用中的任意w个第一应用的数据,所述w为大于1的整数;If the N is greater than or equal to w, the first terminal device backs up data of any w first applications in the N first applications in parallel, where w is an integer greater than 1;
    在第一应用j的数据备份完成后,所述第一终端设备在备份所述第一应用j的线程上备份第一应用k的数据,直至所述N个第一应用的数据备份完成,所述第一应用j为所述w个第一应用中的其中一个第一应用,所述第一应用k为所述N个第一应用中除了所述w个第一应用之外的任一第一应用;After the data backup of the first application j is completed, the first terminal device backs up the data of the first application k on the thread that backs up the first application j, until the data backup of the N first applications is completed. The first application j is one of the first applications, and the first application k is any one of the N first applications except the w first applications. An application;
    若所述N小于所述w,所述第一终端设备并行备份所述N个第一应用的数据。If the N is smaller than the w, the first terminal device backs up data of the N first applications in parallel.
  9. 根据权利要求1-6任一项所述的方法,其特征在于,所述第一应用的数量为N时,所述N为大于1的整数,所述第一终端设备备份所述第一应用的数据,包括:The method according to any one of claims 1-6, wherein, when the number of the first application is N, the N is an integer greater than 1, and the first terminal device backs up the first application. Data, including:
    若所述N大于或等于W,所述第一终端设备并行备份所述N个第一应用 中的W个第一应用的数据,所述W为大于1的整数,所述W个第一应用最近一次的使用时间晚于所述N个第一应用中除了所述W个第一应用之外的任一第一应用最近一次的使用时间;If the N is greater than or equal to W, the first terminal device backs up the N first applications in parallel The data of the W first applications in the W, the W is an integer greater than 1, the latest usage time of the W first applications is later than the N first applications except the W first applications The last time the usage of any of the first applications is outside;
    在第一应用g的数据备份完成后,所述第一终端设备在备份所述第一应用g的线程上备份第一应用h的数据,直至所述N个第一应用的数据备份完成,所述第一应用g为所述W个第一应用中的其中一个第一应用,所述第一应用h最近一次的使用时间晚于所述N-W个第一应用中除了所述第一应用h之外的任一第一应用最近一次的使用时间;After the data backup of the first application g is completed, the first terminal device backs up the data of the first application h on the thread that backs up the first application g, until the data backup of the N first applications is completed. The first application g is one of the first applications, and the latest usage time of the first application h is later than the first application h in the NW first applications. The last time the usage of any of the first applications is outside;
    若所述N小于所述W,所述第一终端设备并行备份所述N个第一应用的数据。If the N is smaller than the W, the first terminal device backs up data of the N first applications in parallel.
  10. 一种数据迁移装置,其特征在于,包括:A data migration device, comprising:
    热点连接模块,用于通过扫描第二终端设备的二维码,以连接所述第二终端设备建立的热点,所述二维码是基于所述热点名称和所述热点连接密码生成的;a hotspot connection module, configured to scan a hotspot established by the second terminal device by scanning a two-dimensional code of 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, configured to back up data of the first application to obtain a first data set;
    数据传送模块,用于将所述第一数据集传送给所述第二终端设备,所述第一应用的重要优先级大于或等于预设优先级。And a data transmission module, configured to transmit the first data set to the second terminal device, where an important priority of the first application is greater than or equal to a preset priority.
  11. 根据权利要求10所述的装置,其特征在于,The device of claim 10 wherein:
    所述数据备份模块,还用于在备份所述第一应用的数据的过程中,所述第一终端设备备份第二应用的数据,以得到第二数据集;The data backup module is further configured to: in the process of backing up data of the first application, the first terminal device backs up 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 less than the preset priority.
  12. 根据权利要求11所述的装置,其特征在于,所述装置还包括:The device according to claim 11, wherein the device further comprises:
    发送模块,用于向所述网络服务器发送数据删除指令,所述数据删除指令用于指示所述网络服务器在设定时长后若未检测到第二终端设备对所述第二数据集有任何操作,则删除所述第二数据集。a sending module, configured to send a data deletion instruction to the network server, where the data deletion instruction is used to indicate that the network server does not detect any operation on the second data set by the second terminal device after the set time period And deleting the second data set.
  13. 根据权利要求11或12所述的装置,其特征在于,Device according to claim 11 or 12, characterized in that
    所述发送模块,还用于向所述第二终端设备发送提示指令,所述提示指令携带所述第二应用的重要优先级,所述提示指令用于指示所述第二终端设备提 示用户优先级小于所述预设优先级的应用的数据已备份至所述网络服务器,以及提示用户若在所述设定时长后未对所述第二数据集有任何操作,网络设备将删除所述第二数据集。The sending module is further configured to send a prompting instruction to the second terminal device, where the prompting instruction carries an important priority of the second application, where the prompting instruction is used to instruct the second terminal device to Data indicating that the user whose priority is less than the preset priority has been backed up to the network server, and prompting the user to delete the second data set after the set time period, the network device deletes The second data set.
  14. 根据权利要求10-13任一项所述的装置,其特征在于,所述第一数据集的传送和所述第二数据集的传送是并行执行的。Apparatus according to any of claims 10-13, wherein the transfer of the first data set and the transfer of the second data set are performed in parallel.
  15. 根据权利要求10-14任一项所述的装置,其特征在于,应用的重要优先级是用户自定义的,或是所述第一终端设备自定义的,或是所述第一终端设备基于应用的使用频率和/或关联应用的数据的内容确定的。The device according to any one of claims 10 to 14, wherein the important priority of the application is user-defined, or the first terminal device is customized, or the first terminal device is based on The frequency of use of the application and/or the content of the data associated with the application is determined.
  16. 根据权利要求10-15任一项所述的装置,其特征在于,所述第一应用的数量为N时,所述N为大于1的整数,所述数据备份模块具体用于:The device according to any one of claims 10-15, wherein when the number of the first application is N, the N is an integer greater than 1, and the data backup module is specifically configured to:
    若所述N大于或等于M,并行备份所述N个第一应用中的M个第一应用的数据,所述M为大于1的整数,所述M个第一应用的使用频率高于所述N个第一应用中除了所述M个第一应用之外的任一第一应用的使用频率;If the N is greater than or equal to M, the data of the M first applications in the N first applications are backed up in parallel, and the M is an integer greater than 1, and the M first applications are used at a higher frequency than Describe the frequency of use of any of the first applications except the M first applications;
    在第一应用i的数据备份完成后,备份所述第一应用i的线程上备份第一应用j的数据,直至所述N个第一应用的数据备份完成,所述第一应用i为所述M个第一应用中的其中一个第一应用,所述第一应用j的使用频率高于所述N-M个第一应用中除了所述第一应用j之外的任一第一应用的使用频率;After the data backup of the first application i is completed, backing up the data of the first application j on the thread of the first application i until the data backup of the N first applications is completed, the first application i is One of the M first applications, the first application j is used at a higher frequency than any of the NM first applications except the first application j frequency;
    若所述N小于所述M,并行备份所述N个第一应用的数据。If the N is smaller than the M, the data of the N first applications are backed up in parallel.
  17. 根据权利要求10-15任一项所述的装置,其特征在于,所述第一应用的数量为N时,所述N为大于1的整数,所述数据备份模块具体用于:The device according to any one of claims 10-15, wherein when the number of the first application is N, the N is an integer greater than 1, and the data backup module is specifically configured to:
    若所述N大于或等于w,并行备份所述N个第一应用中的任意w个第一应用的数据,所述w为大于1的整数;If the N is greater than or equal to w, back up data of any w first applications in the N first applications, where w is an integer greater than 1;
    在第一应用j的数据备份完成后,在备份所述第一应用j的线程上备份第一应用k的数据,直至所述N个第一应用的数据备份完成,所述第一应用j为所述w个第一应用中的其中一个第一应用,所述第一应用k为所述N个第一应用中除了所述w个第一应用之外的任一第一应用;After the data backup of the first application j is completed, the data of the first application k is backed up on the thread that backs up the first application j until the data backup of the N first applications is completed, and the first application j is One of the first applications in the first application, the first application k being any one of the N first applications except the w first applications;
    若所述N小于所述w,并行备份所述N个第一应用的数据。If the N is smaller than the w, the data of the N first applications are backed up in parallel.
  18. 根据权利要求10-15任一项所述的装置,其特征在于,所述第一应用的数量为N时,所述N为大于1的整数,所述数据备份模块具体用于: The device according to any one of claims 10-15, wherein when the number of the first application is N, the N is an integer greater than 1, and the data backup module is specifically configured to:
    若所述N大于或等于W,并行备份所述N个第一应用中的W个第一应用的数据,所述W为大于1的整数,所述W个第一应用最近一次的使用时间晚于所述N个第一应用中除了所述W个第一应用之外的任一第一应用最近一次的使用时间;If the N is greater than or equal to W, the data of the W first applications in the N first applications are backed up in parallel, and the W is an integer greater than 1, and the latest usage time of the W first applications is late. The latest usage time of any of the first applications except the W first applications in the N first applications;
    在第一应用g的数据备份完成后,在备份所述第一应用g的线程上备份第一应用h的数据,直至所述N个第一应用的数据备份完成,所述第一应用g为所述W个第一应用中的其中一个第一应用,所述第一应用h最近一次的使用时间晚于所述N-W个第一应用中除了所述第一应用h之外的任一第一应用最近一次的使用时间;After the data backup of the first application g is completed, the data of the first application h is backed up on the thread that backs up the first application g until the data backup of the N first applications is completed, and the first application g is a first application of the first application h, the latest usage time of the first application h is later than any one of the NW first applications except the first application h Apply the most recent usage time;
    若所述N小于所述W,并行备份所述N个第一应用的数据。If the N is smaller than the W, the data of the N first applications are backed up in parallel.
  19. 一种终端设备,其特征在于,包括:A terminal device, comprising:
    存储有可执行程序代码的存储器;a memory storing executable program code;
    与所述存储器耦合的处理器;a processor coupled to the memory;
    所述处理器调用所述存储器中存储的所述可执行程序代码,执行如权利要求1至9任一项所述的方法。The processor invokes the executable program code stored in the memory to perform the method of any one of claims 1 to 9.
  20. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有程序,所述程序执行时包括如权利要求1-9任一项所述的方法。 A computer storage medium, characterized in that the computer storage medium stores a program, the program being executed comprising the method according to any one of claims 1-9.
PCT/CN2017/092871 2016-09-14 2017-07-13 Data migration method and related devices WO2018049904A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2018049904A1 true WO2018049904A1 (en) 2018-03-22

Family

ID=58168330

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/092871 WO2018049904A1 (en) 2016-09-14 2017-07-13 Data migration method and related devices

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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764880A (en) * 2009-12-21 2010-06-30 宇龙计算机通信科技(深圳)有限公司 Information backup method and terminal
CN102110031A (en) * 2011-02-23 2011-06-29 宇龙计算机通信科技(深圳)有限公司 Android system-based application program backup and recovery method
US20140282703A1 (en) * 2013-03-14 2014-09-18 Comcast Cable Communications, Llc Delivery of content and priority messages
CN105138279A (en) * 2015-08-03 2015-12-09 深圳市美贝壳科技有限公司 Intelligent management method of household equipment data
CN106445739A (en) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 Data migration method and terminal device

Family Cites Families (6)

* 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
US20140068212A1 (en) * 2012-09-04 2014-03-06 Microsoft Corporation Device backups and updates in view of data usage statistics
CN104301344A (en) * 2013-07-17 2015-01-21 北京奇虎科技有限公司 File transfer method, terminal and system
CN105282824A (en) * 2014-06-03 2016-01-27 中兴通讯股份有限公司 File sharing method based on wireless communication and wireless communication terminal
CN105511985A (en) * 2015-12-01 2016-04-20 魅族科技(中国)有限公司 Data backup method and terminal
CN105893173A (en) * 2015-12-10 2016-08-24 乐视网信息技术(北京)股份有限公司 Caching data processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764880A (en) * 2009-12-21 2010-06-30 宇龙计算机通信科技(深圳)有限公司 Information backup method and terminal
CN102110031A (en) * 2011-02-23 2011-06-29 宇龙计算机通信科技(深圳)有限公司 Android system-based application program backup and recovery method
US20140282703A1 (en) * 2013-03-14 2014-09-18 Comcast Cable Communications, Llc Delivery of content and priority messages
CN105138279A (en) * 2015-08-03 2015-12-09 深圳市美贝壳科技有限公司 Intelligent management method of household equipment data
CN106445739A (en) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 Data migration method and terminal device

Also Published As

Publication number Publication date
CN106445739A (en) 2017-02-22
CN106445739B (en) 2020-01-14

Similar Documents

Publication Publication Date Title
US9344838B2 (en) Data transmission method and apparatus, and terminal with touch screen
WO2018049904A1 (en) Data migration method and related devices
WO2018049887A1 (en) Data transmission processing method and terminal device
WO2018049900A1 (en) Data migration method and related devices
WO2018049903A1 (en) Data migration method and related devices
WO2018049905A1 (en) Data migration method and related devices
WO2018049913A1 (en) Data transmission method and related devices
WO2018103443A1 (en) Network positioning method and terminal device
WO2018103439A1 (en) Information processing method and terminal device
WO2017206902A1 (en) Application control method and related device
WO2018103441A1 (en) Network positioning method and terminal device
US10687207B2 (en) Method for data migration and terminal
WO2018049912A1 (en) Data transmission method and related devices
WO2018049881A1 (en) Data migration method and device
CN108834132B (en) Data transmission method and equipment and related medium product
WO2018120905A1 (en) Message reminding method for terminal, and terminal
WO2018049971A1 (en) Hotspot network switching method and terminals
WO2018049934A1 (en) Data migration method and terminals
WO2018049894A1 (en) Data transmission method and device
WO2018049921A1 (en) Data transmission processing method and related device
WO2018049901A1 (en) Data migration method and related devices
WO2018209555A1 (en) Bluetooth device connection method and terminal device
WO2014190830A1 (en) Sound recording synchronization method, apparatus, and device
WO2019076250A1 (en) Push message management method and related products
WO2023246516A1 (en) Method and apparatus for generating visit report of clinical research project

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17850107

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17850107

Country of ref document: EP

Kind code of ref document: A1