CN106446111B - Data migration method and terminal - Google Patents

Data migration method and terminal Download PDF

Info

Publication number
CN106446111B
CN106446111B CN201610826701.XA CN201610826701A CN106446111B CN 106446111 B CN106446111 B CN 106446111B CN 201610826701 A CN201610826701 A CN 201610826701A CN 106446111 B CN106446111 B CN 106446111B
Authority
CN
China
Prior art keywords
terminal
data
identifier
storage path
transmitted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610826701.XA
Other languages
Chinese (zh)
Other versions
CN106446111A (en
Inventor
陆天洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610826701.XA priority Critical patent/CN106446111B/en
Publication of CN106446111A publication Critical patent/CN106446111A/en
Priority to PCT/CN2017/095053 priority patent/WO2018049934A1/en
Application granted granted Critical
Publication of CN106446111B publication Critical patent/CN106446111B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/214Database migration support

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a data migration method and a terminal. The method comprises the following steps: a first terminal receives a data transmission request sent by a second terminal, wherein the data transmission request comprises an identifier of data to be transmitted; the first terminal determines a target storage path; the first terminal acquires the identifier of the stored data under the target storage path; the first terminal matches the identifier of the data to be transmitted with the identifier of the stored data to determine the successfully matched identifier; and the first terminal backs up the data under the target storage path corresponding to the successfully matched identifier to a preset area. Therefore, by implementing the technical scheme provided by the invention, the data with the same identifier can be prevented from being covered due to misoperation, so that the data security of the user is ensured, and the user experience is further improved.

Description

Data migration method and terminal
Technical Field
The invention relates to the field of terminals, in particular to a data migration method and a terminal.
Background
With the popularization of terminals (such as electronic devices like smart phones, wearable devices, tablet computers, etc.), the terminals gradually become an indispensable part of people's lives, so that people can carry the terminals wherever they go.
However, with the development of technology, the updating speed of the terminal is fast. When a user enters a new terminal, data in the old terminal needs to be imported into the new terminal for convenience.
It should be noted that, when data is imported from an old terminal to a new terminal, if the data to be imported has the same data as that in the target path, at this time, the user is reminded whether to perform coverage, and if the user does not intend to perform coverage, but the user mistakenly clicks a coverage button, the original data is covered, which brings loss to the user, thereby reducing user experience.
Disclosure of Invention
The embodiment of the invention provides a data migration method and a terminal, which can prevent data with the same identification from being covered due to misoperation, thereby ensuring the safety of user data and further improving the user experience.
The first aspect of the embodiment of the invention discloses a data migration method, which comprises the following steps:
a first terminal receives a data transmission request sent by a second terminal, wherein the data transmission request comprises an identifier of data to be transmitted;
the first terminal determines a target storage path;
the first terminal acquires the identifier of the stored data under the target storage path;
the first terminal matches the identifier of the data to be transmitted with the identifier of the stored data to determine the successfully matched identifier;
and the first terminal backs up the data under the target storage path corresponding to the successfully matched identifier to a preset area.
A second aspect of an embodiment of the present invention discloses a terminal, including:
the receiving unit is used for receiving a data transmission request sent by a second terminal, wherein the data transmission request comprises an identifier of data to be transmitted;
a determination unit configured to determine a target storage path;
the acquisition unit is used for acquiring the identification of the stored data under the target storage path;
the matching unit is used for matching the identifier of the data to be transmitted with the identifier of the stored data to determine the successfully matched identifier;
and the backup unit is used for backing up the data under the target storage path corresponding to the successfully matched identifier to a preset area.
A third aspect of the present invention discloses a terminal, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to perform the method according to the first aspect.
It can be seen that, in the scheme of the embodiment of the present invention, a first terminal receives a data transmission request sent by a second terminal, where the data transmission request includes an identifier of data to be transmitted; the first terminal determines a target storage path; the first terminal acquires the identifier of the stored data under the target storage path; the first terminal matches the identifier of the data to be transmitted with the identifier of the stored data to determine the successfully matched identifier; and the first terminal backs up the data under the target storage path corresponding to the successfully matched identifier to a preset area. Therefore, by implementing the technical scheme provided by the invention, the data with the same identifier can be prevented from being covered due to misoperation, so that the data security of the user is ensured, and the user experience is further improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1-a is a flow chart illustrating a method for data migration according to an embodiment of the present invention;
FIG. 1-b is a diagram of a network architecture of a data migration system according to an embodiment of the present invention;
1-c are schematic diagrams of a data migration storage path according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another data migration method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an entity apparatus of a terminal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an entity device of a mobile phone according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a data migration method and a terminal, which can prevent data with the same identification from being covered due to misoperation, thereby ensuring the safety of user data and further improving the user experience.
In order to make the technical solutions of the present invention better understood by those skilled in the art, the technical solutions in the embodiments of the present invention will be clearly described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The appearances of the phrases "first," "second," and "third," or the like, in the specification, claims, and figures are not necessarily all referring to the particular order in which they are presented. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
In one embodiment of the present invention, a method of data migration is disclosed, the method comprising: a first terminal receives a data transmission request sent by a second terminal, wherein the data transmission request comprises an identifier of data to be transmitted; the first terminal determines a target storage path; the first terminal acquires the identifier of the stored data under the target storage path; the first terminal matches the identifier of the data to be transmitted with the identifier of the stored data to determine the successfully matched identifier; and the first terminal backs up the data under the target storage path corresponding to the successfully matched identifier to a preset area.
Referring to fig. 1, fig. 1 is a block diagram illustrating a data migration method according to an embodiment of the present invention. As shown in fig. 1, a method for data migration according to an embodiment of the present invention includes the following steps:
s101, the first terminal receives a data transmission request sent by the second terminal.
The first terminal and the second terminal can be electronic equipment such as a smart phone, a tablet computer and intelligent wearable equipment.
It can be understood that the data transmission request may include an identifier of data to be transmitted and a size of the data to be transmitted.
It can be understood that, as shown in fig. 1-b, the network architecture is that the first terminal and the second terminal interact with each other through a local area network, or interact with each other through a wide area network.
It is to be understood that the data transmission request may be a voice request, a command request such as a key press, or the like.
In a specific implementation, the user may control the first terminal to complete the data transfer service through voice, for example, the first terminal may obtain a data transfer voice instruction input by the user through a microphone built in the first terminal, and then step S102 may be executed.
The first terminal can be connected with the second terminal through a mobile network, wifi, Bluetooth, infrared or other communication connection modes, and therefore the data transmission request sent by the second terminal is obtained.
S102, the first terminal determines a target storage path.
The first terminal determines a target storage path, including; the first terminal acquires storage operation in a preset time period; if the storage operation within the preset time period is successfully acquired, determining a storage path with the use frequency greater than a preset value in the storage operation; and setting the storage path with the use frequency larger than a preset value as a target storage path.
For example, whether a storage operation exists in a week may be obtained, if a storage operation exists in a week, the storage paths of all storage operations are further determined, and the frequency of use of which storage paths is higher is determined, and if the preset value is 3 times, a storage path with the frequency of use greater than 3 times may be set as the target storage path. As shown in fig. 1-c, the number of times of storage paths of the storage operation may be counted to form a storage path table, for example, the number of times of use corresponding to the path a is 5; the number of times of using the path b is 4; the number of times of using the path c is 3, etc., and it should be noted that the higher the frequency of use, the higher the probability that the storage path becomes the target storage path, and the higher the frequency of use, the higher the priority of the storage path. For example, the capacity of the disk in which the path a is located is insufficient, then whether the capacity of the disk in which the path b is located meets the storage requirement is considered.
Optionally, after the storage path with the usage frequency greater than the preset value is set as the target storage path, the method further includes: the first terminal judges the capacity of the area where the target storage path is located and the size of the data to be transmitted and judges whether the data to be transmitted can be completely stored; and if the data to be transmitted cannot be completely stored, the first terminal prompts a user to reselect a target path.
The target storage path may be a folder in a storage space built in the first terminal, or may be a folder in an external plug-in storage device.
The external plug-in storage device may be, for example, an external plug-in memory card, a mobile hard disk, or the like.
S103, the first terminal acquires the identifier of the stored data under the target storage path.
The identifier of the stored data may be, for example, the name of a document, an icon, a picture, or the like.
It is understood that each stored data corresponds to its data identifier one to one.
104. The first terminal matches the identifier of the data to be transmitted with the identifier of the stored data to determine the successfully matched identifier;
and S105, the first terminal backs up the data under the target storage path corresponding to the successfully matched identifier to a preset area.
The preset area may be a certain storage folder in the terminal or a certain folder in the extrapolated storage device, which is stored by the terminal by default.
Optionally, the preset area may also be a storage area set by a user.
Optionally, before the first terminal backs up the data in the target storage path corresponding to the successfully matched identifier to a preset area, the method further includes: the first terminal acquires the utilization rates of all partitions in the first terminal, and sets the partition with the utilization rate smaller than a preset threshold value as a target partition; and the first terminal sets the pre-storage area under the directory of the target partition.
Optionally, after the first terminal backs up the data in the target storage path corresponding to the successfully matched identifier to a preset area, the method further includes: the first terminal sends a prompt to a user, wherein the prompt is used for judging whether to store the data to be transmitted by the second terminal; and if the confirmation instruction is received, the first terminal sends a transmission instruction to the second terminal.
It can be seen that, in the scheme of the embodiment of the present invention, a first terminal receives a data transmission request sent by a second terminal, where the data transmission request includes an identifier of data to be transmitted; the first terminal determines a target storage path; the first terminal acquires the identifier of the stored data under the target storage path; the first terminal matches the identifier of the data to be transmitted with the identifier of the stored data to determine the successfully matched identifier; and the first terminal backs up the data under the target storage path corresponding to the successfully matched identifier to a preset area. Therefore, by implementing the technical scheme provided by the invention, the data with the same identifier can be prevented from being covered due to misoperation, so that the data security of the user is ensured, and the user experience is further improved.
Referring to fig. 2, fig. 2 is a block diagram illustrating a data migration method according to an embodiment of the present invention. As shown in fig. 2, a method for data migration according to an embodiment of the present invention includes the following steps:
s201, the first terminal receives a data transmission request sent by the second terminal.
The first terminal and the second terminal can be electronic equipment such as a smart phone, a tablet computer and intelligent wearable equipment.
It can be understood that the data transmission request may include an identifier of data to be transmitted and a size of the data to be transmitted.
It is to be understood that the data transmission request may be a voice request, a command request such as a key press, or the like.
In a specific implementation, the user may control the first terminal to complete the data transfer service through voice, for example, the first terminal may obtain a data transfer voice instruction input by the user through a microphone built in the first terminal, and then step S202 may be executed.
The first terminal can be connected with the second terminal through a mobile network, wifi, Bluetooth, infrared or other communication connection modes, and therefore the data transmission request sent by the second terminal is obtained.
S202, the first terminal obtains storage operation in a preset time period;
s203, if the storage operation in the preset time period is successfully acquired, determining a storage path with the use frequency greater than a preset value in the storage operation, and setting the storage path with the use frequency greater than the preset value as a target storage path;
the target storage path may be a folder in a storage space built in the first terminal, or may be a folder in an external plug-in storage device.
The external plug-in storage device may be, for example, an external plug-in memory card, a mobile hard disk, or the like.
S204, the first terminal judges whether the data to be transmitted can be completely stored according to the capacity of the area where the target storage path is located and the size of the data to be transmitted;
it can be understood that, when the remaining storage capacity of the area where the target storage path is located is smaller than the size of the data to be transmitted, it is determined that the data to be transmitted cannot be completely stored. Otherwise, when the residual storage capacity of the area where the target storage path is located is larger than the size of the data to be transmitted, it is determined that the data to be transmitted can be completely stored.
S205, if the data to be transmitted cannot be completely stored, the first terminal prompts a user to reselect a target path.
The prompt can be one or a combination of a plurality of picture frame prompts, signal lamp prompts, vibration prompts, voice prompts and ring tone prompts.
S206, the first terminal acquires the identifier of the stored data under the target storage path;
the identifier of the stored data may be, for example, the name of a document, an icon, a picture, or the like.
It is understood that each stored data corresponds to its data identifier one to one.
S207, the first terminal matches the identifier of the data to be transmitted with the identifier of the stored data to determine the successfully matched identifier;
s208, the first terminal obtains the utilization rates of all the partitions in the first terminal, and the partition with the utilization rate smaller than a preset threshold value is set as a target partition;
and the partition in the terminal is the partition of the terminal on the disk.
The utilization rate of the partition is the ratio of the occupied space in the partition to the total space of the partition.
S209, the first terminal sets the pre-storage area under the directory of the target partition.
Wherein, it can be understood that the pre-storage area can be one or more folders.
S210, the first terminal backs up the data under the target storage path corresponding to the successfully matched identifier to a preset area.
S211, the first terminal sends a prompt to a user, wherein the prompt is used for judging whether to store the data to be transmitted by the second terminal.
The prompt can be one or a combination of a plurality of picture frame prompts, signal lamp prompts, voice prompts and ring tone prompts.
S212, if the determination instruction is received, the first terminal sends a transmission instruction to the second terminal.
It can be seen that the scheme of the embodiment of the invention expands the steps of determining the pre-storage area and re-selecting the target storage path, thereby ensuring that the storage process can be smoothly performed and the balance of data storage.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in fig. 3, an embodiment of the present invention provides a terminal 300, where the terminal may be an electronic device such as a smart phone, a tablet computer, and a smart wearable device. The terminal 300 includes a receiving unit 301, a determining unit 302, an obtaining unit 303, a matching unit 304, and a backup unit 305.
A receiving unit 301, configured to receive a data transmission request sent by a second terminal, where the data transmission request includes an identifier of data to be transmitted;
a determining unit 302, configured to determine a target storage path;
an obtaining unit 303, configured to obtain an identifier of the stored data in the target storage path;
a matching unit 304, configured to match an identifier of the to-be-transmitted data with an identifier of stored data to determine an identifier that is successfully matched;
a backup unit 305, configured to backup data in the target storage path corresponding to the successfully matched identifier to a preset area.
The receiving unit 301, the determining unit 302, the obtaining unit 303, the matching unit 304, and the backup unit 305 may be configured to execute the methods described in steps S101 to S105 in embodiment 1, and details of the method are described in embodiment 1, and are not described herein again.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in fig. 4, another terminal 400 according to an embodiment of the present invention is provided, where the terminal may be an electronic device such as a smart phone, a tablet computer, and a smart wearable device. The terminal 400 includes a receiving unit 401, a determining unit 402, an obtaining unit 403, a matching unit 404, a backup unit 405, a setting unit 406, a judging unit 407, a first presenting unit 408, a second presenting unit 409, and a transmitting unit 410.
A receiving unit 401, configured to receive a data transmission request sent by a second terminal, where the data transmission request includes an identifier of data to be transmitted;
a determining unit 402, configured to determine a target storage path;
specifically, the determining unit 402 includes an acquiring subunit, a determining subunit, and a setting subunit;
the acquisition subunit is used for acquiring storage operation within a preset time period; the determining subunit is configured to determine, if the storage operation within the preset time period is successfully obtained, a storage path of which the use frequency is greater than a preset value in the storage operation; the setting subunit is further configured to set the storage path with the usage frequency greater than the preset value as a target storage path.
A determining unit 407, configured to determine the capacity of the area where the target storage path is located and the size of the data to be transmitted, and determine whether all the data to be transmitted can be stored;
a first prompting unit 408, configured to prompt the user to reselect the target path if the data to be transmitted cannot be completely stored.
An obtaining unit 403, configured to obtain an identifier of the stored data in the target storage path;
a matching unit 404, configured to match an identifier of the data to be transmitted with an identifier of stored data to determine an identifier that is successfully matched;
the obtaining unit 403 is further configured to obtain utilization rates of all partitions in the first terminal, and set a partition with a utilization rate smaller than a preset threshold as a target partition; a setting unit 406, configured to set the pre-storage area under the directory of the target partition.
A backup unit 405, configured to backup data in the target storage path corresponding to the successfully matched identifier to a preset area.
A second prompting unit 409, configured to send a prompt to a user, where the prompt is used to determine whether to store data to be transmitted by the second terminal;
a sending unit 410, configured to send a transmission instruction to the second terminal if the determination instruction is received.
The receiving unit 401, the determining unit 402, the obtaining unit 403, the matching unit 404, the backup unit 405, the setting unit 406, the determining unit 407, the first prompting unit 408, the second prompting unit 409, and the sending unit 410 may be configured to execute the methods described in steps S201 to S212 in embodiment 2, and the detailed description is given in embodiment 2 for the method, and is not repeated here.
Referring to fig. 5, in another embodiment of the present invention, a terminal is provided. The terminal 500 includes a CPU501, a memory 502, and a bus 503. The terminal 500 may be an electronic device with a communication function, such as a smart phone, a tablet computer, and an intelligent wearable device.
The CPU501 executes a program pre-stored in the memory 502, and the execution process specifically includes:
receiving a data transmission request sent by a second terminal, wherein the data transmission request comprises an identifier of data to be transmitted;
determining a target storage path;
acquiring the identifier of the stored data under the target storage path;
matching the identifier of the data to be transmitted with the identifier of the stored data to determine the successfully matched identifier;
and backing up the data under the target storage path corresponding to the successfully matched identifier to a preset area.
Optionally, before backing up the data in the target storage path corresponding to the successfully matched identifier to a preset area, the executing process further includes:
acquiring the utilization rates of all the partitions in the first terminal, and setting the partition with the utilization rate smaller than a preset threshold value as a target partition;
and setting the pre-storage area under the directory of the target partition.
Optionally, the first terminal determines a target storage path, including;
acquiring storage operation in a preset time period;
if the storage operation within the preset time period is successfully acquired, determining a storage path with the use frequency greater than a preset value in the storage operation;
and setting the storage path with the use frequency larger than a preset value as a target storage path.
Optionally, the data transmission request further includes a size of data to be transmitted;
after the storage path with the use frequency greater than the preset value is set as the target storage path, the executing process further includes:
judging the capacity of the area where the target storage path is located and the size of the data to be transmitted, and judging whether the data to be transmitted can be completely stored;
and if the data to be transmitted cannot be completely stored, prompting the user to reselect the target path.
Optionally, after the first terminal backs up the data in the target storage path corresponding to the successfully matched identifier to a preset area, the method further includes:
sending a prompt to a user, wherein the prompt is used for judging whether to store the data to be transmitted by the second terminal;
and if the confirmation instruction is received, sending a transmission instruction to the second terminal.
It can be seen that, in the scheme of the embodiment of the present invention, a first terminal receives a data transmission request sent by a second terminal, where the data transmission request includes an identifier of data to be transmitted; the first terminal determines a target storage path; the first terminal acquires the identifier of the stored data under the target storage path; the first terminal matches the identifier of the data to be transmitted with the identifier of the stored data to determine the successfully matched identifier; and the first terminal backs up the data under the target storage path corresponding to the successfully matched identifier to a preset area. Therefore, by implementing the technical scheme provided by the invention, the data with the same identifier can be prevented from being covered due to misoperation, so that the data security of the user is ensured, and the user experience is further improved.
Referring to fig. 6, fig. 6 is a block diagram of a part of a structure of a mobile phone related to a terminal according to an embodiment of the present invention. Referring to fig. 6, the handset includes: radio Frequency (RF) circuit 610, memory 620, input unit 630, display unit 640, sensor 650, audio circuit 660, Wireless Fidelity (WiFi) module 670, processor 680, and power supply 690. Those skilled in the art will appreciate that the handset configuration shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 6:
the RF circuitry 610 may be used for the reception and transmission of information. In general, RF circuit 610 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 610 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 620 may be used to store software programs and modules, and the processor 680 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 620. The memory 620 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a data migration function, a touch operation detection function, and the like), and the like; the storage data area may store data created according to the use of the mobile phone (such as storage path table data, etc.), and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 630 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 630 may include a fingerprint module 631 and other input devices 632. Fingerprint module 631, the fingerprint data of the user on it can be gathered. Optionally, the fingerprint module 631 may include an optical fingerprint module, a capacitive fingerprint module, and a radio frequency fingerprint module. Taking the fingerprint module 631 as an example of a capacitive fingerprint module, the fingerprint module specifically includes sensing electrodes (n1 abnormal sensing electrodes and n2 normal sensing electrodes) and a signal processing circuit (such as an amplifying circuit, a noise suppression circuit, an analog-to-digital conversion circuit, etc.) connected to the sensing electrodes. In addition to the fingerprint module 631, the input unit 630 may further include other input devices 632. In particular, other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 640 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 640 may include a display screen 641, and optionally, the display screen 641 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Although in fig. 6, the fingerprint module 631 and the display 641 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the fingerprint module 631 and the display 641 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 650, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display 641 according to the brightness of ambient light, and a proximity sensor that turns off the display 641 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuit 660, speaker 661, and microphone 662 can provide an audio interface between a user and a cell phone. The audio circuit 660 can transmit the electrical signal converted from the received audio data to the speaker 761, and convert the electrical signal into an audio signal by the speaker 661 for output; on the other hand, the microphone 662 converts the collected sound signals into electrical signals, which are received by the audio circuit 660 and converted into audio data, which are processed by the audio data output processor 680 and then transmitted via the RF circuit 610 to, for example, another cellular phone, or output to the memory 620 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 670, and provides wireless broadband Internet access for the user. Although fig. 6 shows the WiFi module 670, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 680 is a control center of the mobile phone, and connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby performing overall monitoring of the mobile phone. Optionally, processor 680 may include one or more processing units; preferably, the processor 680 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
The handset also includes a power supply 690 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 680 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In the embodiments shown in fig. 1 and fig. 2, the method flows of the steps may be implemented based on the structure of the mobile phone.
In the embodiments shown in fig. 3 and 4, the functions of the units may be implemented based on the structure of the mobile phone.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. A method for data migration, the method being configured to import at least part of data of a second terminal into a first terminal in bulk, the method comprising:
a first terminal receives a data transmission request sent by a second terminal, wherein the data transmission request comprises an identifier of data to be transmitted;
the first terminal determines a target storage path;
the first terminal acquires the identifier of the stored data under the target storage path;
the first terminal matches the identifier of the data to be transmitted with the identifier of the stored data to determine the successfully matched identifier;
the first terminal backs up the data under the target storage path corresponding to the successfully matched identifier to a preset area; before the first terminal backs up the data under the target storage path corresponding to the successfully matched identifier to a preset area, the method further includes:
the first terminal acquires the utilization rates of all partitions in the first terminal, and sets the partition with the utilization rate smaller than a preset threshold value as a target partition;
the first terminal sets the preset area under the directory of the target partition;
the first terminal determines a target storage path, including;
the first terminal acquires storage operation in a preset time period;
if the storage operation within the preset time period is successfully acquired, the first terminal determines a storage path with the use frequency greater than a preset value in the storage operation;
and the first terminal sets the storage path with the use frequency larger than a preset value as a target storage path.
2. The method according to claim 1, wherein the data transmission request further includes a size of data to be transmitted;
after the storage path with the use frequency greater than the preset value is set as the target storage path, the method further comprises the following steps:
the first terminal judges the capacity of the area where the target storage path is located and the size of the data to be transmitted and judges whether the data to be transmitted can be completely stored;
and if the data to be transmitted cannot be completely stored, the first terminal prompts a user to reselect a target path.
3. The method according to claim 1 or 2, wherein after the first terminal backs up the data in the target storage path corresponding to the successfully matched identifier to a preset area, the method further comprises:
the first terminal sends a prompt to a user, wherein the prompt is used for judging whether to store the data to be transmitted by the second terminal;
and if the confirmation instruction is received, the first terminal sends a transmission instruction to the second terminal.
4. A terminal, wherein the terminal imports at least part of data of a second terminal into the terminal in bulk, and wherein the terminal comprises:
the receiving unit is used for receiving a data transmission request sent by a second terminal, wherein the data transmission request comprises an identifier of data to be transmitted;
a determination unit configured to determine a target storage path;
the acquisition unit is used for acquiring the identification of the stored data under the target storage path;
the matching unit is used for matching the identifier of the data to be transmitted with the identifier of the stored data to determine the successfully matched identifier;
the backup unit is used for backing up the data under the target storage path corresponding to the successfully matched identifier to a preset area;
the terminal also comprises a setting unit;
the acquiring unit is further configured to acquire utilization rates of all partitions in the terminal, and set a partition with a utilization rate smaller than a preset threshold as a target partition;
the setting unit is used for setting the preset area under the directory of the target partition;
the determining unit comprises an acquiring subunit, a determining subunit and a setting subunit;
the acquisition subunit is used for acquiring storage operation within a preset time period;
the determining subunit is configured to determine, if the storage operation within the preset time period is successfully obtained, a storage path of which the use frequency is greater than a preset value in the storage operation;
the setting subunit is further configured to set the storage path with the usage frequency greater than the preset value as a target storage path.
5. The terminal according to claim 4, wherein the data transmission request further includes a size of data to be transmitted; the terminal also comprises a judging unit and a first prompting unit;
the judging unit is used for judging the capacity of the area where the target storage path is located and the size of the data to be transmitted and judging whether the data to be transmitted can be completely stored;
and the first prompting unit is used for prompting a user to reselect a target path if the data to be transmitted cannot be completely stored.
6. The terminal according to claim 4 or 5, characterized in that the terminal further comprises a second prompting unit and a sending unit;
the second prompting unit is used for sending a prompt to a user, wherein the prompt is used for judging whether to store the data to be transmitted by the second terminal;
and the sending unit is used for sending a transmission instruction to the second terminal if the determination instruction is received.
7. A terminal, comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to perform the method of any one of claims 1 to 3.
CN201610826701.XA 2016-09-14 2016-09-14 Data migration method and terminal Active CN106446111B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610826701.XA CN106446111B (en) 2016-09-14 2016-09-14 Data migration method and terminal
PCT/CN2017/095053 WO2018049934A1 (en) 2016-09-14 2017-07-28 Data migration method and terminals

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN106446111A CN106446111A (en) 2017-02-22
CN106446111B true CN106446111B (en) 2020-01-14

Family

ID=58169087

Family Applications (1)

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

Country Status (2)

Country Link
CN (1) CN106446111B (en)
WO (1) WO2018049934A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106446111B (en) * 2016-09-14 2020-01-14 Oppo广东移动通信有限公司 Data migration method and terminal
CN108184223A (en) * 2017-12-28 2018-06-19 上海传英信息技术有限公司 A kind of data transfering method and data transferring system based on Bluetooth communication
CN110069474A (en) * 2019-04-03 2019-07-30 平安普惠企业管理有限公司 A kind of data transfering method and relevant device
CN112332947B (en) * 2020-07-30 2024-04-02 深圳Tcl新技术有限公司 Data transmission method, mobile terminal and computer storage medium
CN113342269A (en) * 2021-05-31 2021-09-03 上海蓝色帛缔智能工程有限公司 Multi-channel data storage method, device, equipment and medium based on cloud statistics
CN113515364B (en) * 2021-09-14 2022-03-01 腾讯科技(深圳)有限公司 Data migration method and device, computer equipment and storage medium
CN116049095A (en) * 2022-05-05 2023-05-02 荣耀终端有限公司 Data migration method, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866854A (en) * 2005-05-19 2006-11-22 华为技术有限公司 Method for updating and recovering terminal device data in device management
CN102103629A (en) * 2010-12-14 2011-06-22 西北工业大学 Online data migration method
CN102999537A (en) * 2011-09-19 2013-03-27 阿里巴巴集团控股有限公司 System and method for data migration
US8468180B1 (en) * 2010-12-31 2013-06-18 Emc Corporation Porting storage metadata
CN105491113A (en) * 2015-11-25 2016-04-13 小米科技有限责任公司 Migrating method, device and terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4438582B2 (en) * 2004-09-22 2010-03-24 株式会社日立製作所 Data migration method
CN101714391B (en) * 2009-11-12 2011-09-28 东方网力科技股份有限公司 Data storage method and device
CN103164340B (en) * 2011-12-16 2017-07-18 上海博泰悦臻电子设备制造有限公司 The storage method and device of object, terminal
CN104915299B (en) * 2015-05-28 2018-07-13 努比亚技术有限公司 The date storage method and device of multi-memory card
CN106446111B (en) * 2016-09-14 2020-01-14 Oppo广东移动通信有限公司 Data migration method and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866854A (en) * 2005-05-19 2006-11-22 华为技术有限公司 Method for updating and recovering terminal device data in device management
CN102103629A (en) * 2010-12-14 2011-06-22 西北工业大学 Online data migration method
US8468180B1 (en) * 2010-12-31 2013-06-18 Emc Corporation Porting storage metadata
CN102999537A (en) * 2011-09-19 2013-03-27 阿里巴巴集团控股有限公司 System and method for data migration
CN105491113A (en) * 2015-11-25 2016-04-13 小米科技有限责任公司 Migrating method, device and terminal

Also Published As

Publication number Publication date
WO2018049934A1 (en) 2018-03-22
CN106446111A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN106446111B (en) Data migration method and terminal
CN106302653B (en) Control authority sharing method of access control terminal and related equipment
CN106888495B (en) Network access method and terminal
CN110430592B (en) Network control method and related product
CN107645551B (en) File transmission method and device
CN107071147B (en) Parameter adjusting method and device
CN106658753B (en) Data migration method and terminal equipment
CN106681860B (en) A kind of data back up method and data backup device
CN106507269B (en) Data migration method and terminal equipment
CN107172267B (en) Fingerprint identification control method and related product
CN106569910B (en) Data backup and transmission method and mobile terminal
CN107634952B (en) Method and device for determining brushing amount resource, service equipment, mobile terminal and storage medium
CN108834132B (en) Data transmission method and equipment and related medium product
CN106534288B (en) A kind of data transmission method and mobile terminal
CN106528638B (en) Method for deleting backup data and mobile terminal
WO2018049935A1 (en) Data migration method and terminals
CN110169091B (en) Communication method, wearable device, mobile terminal and system
CN107317918B (en) Parameter setting method and related product
CN111611027A (en) Method for starting application program, terminal equipment and readable storage medium
CN106445739B (en) Data migration method and terminal equipment
CN106484563B (en) Data migration method and terminal equipment
CN106569916A (en) Data backup method and mobile terminal
CN106095566B (en) Response control method and mobile terminal
CN106792583B (en) Multimedia message sending method, terminal and computer readable storage medium
CN107862190B (en) Reminding method and related product

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

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

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

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

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

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant