CN107145386B - Data migration method, terminal device and computer readable storage medium - Google Patents

Data migration method, terminal device and computer readable storage medium Download PDF

Info

Publication number
CN107145386B
CN107145386B CN201710297258.6A CN201710297258A CN107145386B CN 107145386 B CN107145386 B CN 107145386B CN 201710297258 A CN201710297258 A CN 201710297258A CN 107145386 B CN107145386 B CN 107145386B
Authority
CN
China
Prior art keywords
data
terminal
migrated
priority
preset
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.)
Expired - Fee Related
Application number
CN201710297258.6A
Other languages
Chinese (zh)
Other versions
CN107145386A (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 CN201710297258.6A priority Critical patent/CN107145386B/en
Publication of CN107145386A publication Critical patent/CN107145386A/en
Application granted granted Critical
Publication of CN107145386B publication Critical patent/CN107145386B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • G06F9/4893Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues taking into account power or heat criteria
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/484Precedence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0647Migration mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention is applicable to the technical field of communication, and provides a data migration method, terminal equipment and a computer readable storage medium, wherein the data migration method comprises the following steps: the method comprises the steps that when a first terminal receives a data migration instruction, data to be migrated are determined; the first terminal acquires the priority of different data in the data to be migrated; the first terminal respectively acquires the current residual electric quantity of the first terminal and the current residual electric quantity of a second terminal connected with the first terminal; and if the current residual electric quantity of at least one of the first terminal and the second terminal is lower than a preset threshold value, the first terminal transmits the data with the priority higher than the preset priority in the data to be migrated to the second terminal. The method and the device can solve the problem that important data migration may fail when the current residual power of the terminal equipment is low in the prior art.

Description

Data migration method, terminal device and computer readable storage medium
Technical Field
The present invention belongs to the field of communication technologies, and in particular, to a data migration method, a terminal device, and a computer-readable storage medium.
Background
With the wide popularization of terminal devices such as smart phones and tablet computers, the frequency of replacing the terminal devices by users is faster and faster. In the process of replacing the terminal equipment, data on the old terminal equipment needs to be migrated to the new terminal equipment. However, in the prior art, data on an old terminal device is usually migrated to a new terminal device directly, which may result in failure of important data migration when the current remaining power of the terminal device is low.
Therefore, a new technical solution is needed to solve the above technical problems.
Disclosure of Invention
In view of this, embodiments of the present invention provide a data migration method, a terminal device, and a computer-readable storage medium, so as to solve the problem in the prior art that when the current remaining power of the terminal device is low, important data migration may fail.
A first aspect of an embodiment of the present invention provides a data migration method, where the data migration method includes:
the method comprises the steps that when a first terminal receives a data migration instruction, data to be migrated are determined;
the first terminal acquires the priority of different data in the data to be migrated;
the first terminal respectively acquires the current residual electric quantity of the first terminal and the current residual electric quantity of a second terminal connected with the first terminal;
and if the current residual electric quantity of at least one of the first terminal and the second terminal is lower than a preset threshold value, the first terminal transmits the data with the priority higher than the preset priority in the data to be migrated to the second terminal.
A second aspect of an embodiment of the present invention provides a terminal device, where the terminal device includes:
the data determining module is used for determining data to be migrated when a data migration instruction is received;
the priority acquisition module is used for acquiring the priority of different data in the data to be migrated;
the residual electric quantity obtaining module is used for respectively obtaining the current residual electric quantity of the terminal equipment and the current residual electric quantity of a second terminal connected with the terminal equipment;
and the data transmission module is used for transmitting the data with the priority higher than the preset priority in the data to be migrated to the second terminal if the current remaining power of at least one of the terminal device and the second terminal is lower than a preset threshold.
A third aspect of the embodiments of the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the following steps when executing the computer program:
when a data migration instruction is received, determining data to be migrated;
acquiring the priority of different data in the data to be migrated;
respectively acquiring the current residual electric quantity of the terminal equipment and the current residual electric quantity of a second terminal connected with the terminal equipment;
and if the current residual electric quantity of at least one of the terminal equipment and the second terminal is lower than a preset threshold value, transmitting the data with the priority higher than the preset priority in the to-be-migrated data to the second terminal.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of:
when a data migration instruction is received, determining data to be migrated;
acquiring the priority of different data in the data to be migrated;
respectively acquiring the current residual electric quantity of the terminal equipment and the current residual electric quantity of a second terminal connected with the terminal equipment;
and if the current residual electric quantity of at least one of the terminal equipment and the second terminal is lower than a preset threshold value, transmitting the data with the priority higher than the preset priority in the to-be-migrated data to the second terminal.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: in the embodiment of the present invention, before data migration, a first terminal obtains its own current remaining power and a current remaining power of a second terminal connected to the first terminal, and when the current remaining power of at least one of the first terminal and the second terminal is lower than a preset threshold, the first terminal transmits data with a priority higher than a preset priority in data to be migrated to the second terminal, so that when the current remaining power of a terminal device (i.e. at least one of the first terminal and the second terminal) is lower, important data in the data to be migrated (i.e. data with a priority higher than the preset priority in the data to be migrated) is preferentially transmitted, thereby ensuring successful transmission of the important data when the current remaining power of the terminal device is lower, that is, when the current remaining power of the terminal device is lower in the prior art, may cause a problem of failure in migration of important data.
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 or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating an implementation of a data migration method according to an embodiment of the present invention;
fig. 2 is a flowchart of an implementation of a data migration method according to a second embodiment of the present invention;
fig. 3 is a block diagram of a terminal device according to a third embodiment of the present invention;
fig. 4 is a block diagram of a terminal device according to a fourth embodiment of the present invention;
fig. 5 is a block diagram of a terminal device according to a fifth embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In particular implementations, the terminal devices described in embodiments of the invention include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).
In the discussion that follows, a terminal device that includes a display and a touch-sensitive surface is described. However, it should be understood that the terminal device may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The terminal device supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the terminal device may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal device may be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal device may support various applications with user interfaces that are intuitive and transparent to the user.
It should be noted that, in this embodiment, the first terminal refers to a certain terminal, and the "first" is only for convenience of expression and reference, and does not mean that there is a corresponding first terminal in the specific implementation manner of the present invention. Similarly, the term "second" in the second terminal is also used for convenience of expression and reference, and does not mean that there is necessarily a second terminal corresponding to the second terminal in the specific implementation of the present invention.
It should be understood that, the sequence numbers of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Referring to fig. 1, which is a flowchart illustrating an implementation of a data migration method according to an embodiment of the present invention, as shown in the figure, the data migration method may include the following steps:
step S101, when the first terminal receives a data migration instruction, determining data to be migrated.
In the embodiment of the present invention, when receiving a data migration instruction, the first terminal may determine, according to the data migration instruction, data to be migrated, which is to be migrated to another terminal, from data stored in the first terminal. The first terminal is a terminal device which migrates data stored by the first terminal to other terminals. The data migration instruction may be an instruction sent by a user through the first terminal or an instruction triggered by the first terminal according to a preset time interval, which is not limited herein.
The data to be migrated may refer to data of all applications in the first terminal, or may be data of an application selected by a user from all applications in the first terminal (for example, when the first terminal receives a data migration instruction, names and/or icons of all applications in the first terminal may be displayed in a list on a screen of the first terminal, so that the user may select the data to be migrated from all applications. Since many applications are generally installed in the first terminal, when all the installed applications are displayed on the first terminal, all the applications may be displayed on a plurality of pages of the first terminal. The data to be migrated includes but is not limited to characters, audio/video, pictures and the like.
It should be noted that, when determining that data is to be migrated, a user may not want to migrate all data of a certain application, but only want to migrate some data in the certain application, and then the embodiment of the present invention may display data included in all applications in the first terminal on a screen of the first terminal (i.e., display data of each application, for example, all cache files in the ericsson art), and determine that data selected by the user from the data included in all applications is data to be migrated (for example, at least one cache file selected from a plurality of cache files stored in the ericsson art). In an actual application scenario, an application may contain more data, and if the more data are all displayed on the screen of the first terminal, a larger space on the screen of the first terminal is occupied, so that fewer applications can be displayed on one page. In order to solve the problem, names and/or icons of the application programs may be displayed on the screen of the first terminal, and when a click operation on a certain application program or a click operation on a selection option corresponding to the certain application program is detected (when all the application programs are displayed on the screen of the first terminal, a corresponding selection option may be set for each application program to trigger display of data included in the application program), data included in the certain application program is displayed on a current page of the first terminal, and after the selection, the data included in the certain application program is hidden or only data that is not selected in the data included in the certain application program is hidden. The operation for triggering display of data included in one application may be not only a click operation (for example, a single click or a double click), but also a slide operation, a long-press operation, and the like, and is not limited herein.
Optionally, when the first terminal receives the data migration instruction, determining that the data to be migrated includes:
the first terminal determines whether communication connection is established with the second terminal or not when receiving a data migration instruction;
if so, the first terminal determines the data to be migrated according to the data migration instruction;
and if not, the first terminal establishes communication connection with the second terminal, and after the connection is successful, the data to be migrated is determined according to the data migration instruction.
In the embodiment of the present invention, when receiving a data migration instruction, the first terminal detects whether the first terminal has established a communication connection with the second terminal, so as to determine whether the first terminal has established a communication connection with the second terminal. The data migration instruction may include information of a second terminal that needs to establish a communication connection with the first terminal, so that the first terminal may know the second terminal that needs to establish a communication connection with the first terminal after receiving the data migration instruction, and thus when the first terminal detects that a terminal establishes a communication connection with the first terminal, it may detect whether the information of the terminal is the information of the second terminal in the data migration instruction by acquiring the information of the terminal, so as to ensure that the first terminal establishes a communication connection with the second terminal, and avoid transmitting the data to be migrated to a terminal other than the second terminal (i.e., not). The information of the second terminal refers to information that can uniquely characterize the second terminal, and includes, but is not limited to, a Mobile Equipment Identity (MEID) and an International Mobile Equipment Identity (IMEI).
In the embodiment of the present invention, the communication connection between the first terminal and the second terminal may be established in a hotspot, bluetooth, infrared, Wireless Fidelity (WiFi), wired, or other manner. After the communication connection between the first terminal and the second terminal is determined, the data to be migrated is determined, so that the data to be migrated can be prevented from being determined and the current residual electric quantity of the first terminal can be prevented from being acquired when the communication connection between the first terminal and the second terminal is not established, and the electric quantity consumption of the first terminal is reduced.
Step S102, the first terminal obtains the priority of different data in the data to be migrated.
In this embodiment of the present invention, after determining the data to be migrated in step S101, the first terminal obtains priorities corresponding to different data in the data to be migrated, respectively. At least two different data may correspond to the same priority, which is not limited herein. The different data may refer to data with different contents, or may refer to data belonging to different applications (that is, data belonging to the same application is the same data). The priority of different data in the data to be migrated may be set according to the size of the storage space occupied by each data in the different data or the reading frequency within a preset time, for example, the larger the storage space occupied by the data is, or the higher the reading frequency is, the higher the priority is, the smaller the storage space occupied by the data is, or the lower the reading frequency is, the lower the priority is.
Step S103, the first terminal respectively obtains the current residual capacity of the first terminal and the current residual capacity of a second terminal connected with the first terminal.
In the embodiment of the present invention, the first terminal may send an electric quantity obtaining instruction to a second terminal connected to the first terminal, and after receiving the electric quantity obtaining instruction, the second terminal obtains its current remaining electric quantity and sends the current remaining electric quantity to the first terminal.
Step S104, if the current remaining power of at least one of the first terminal and the second terminal is lower than a preset threshold, the first terminal transmits data of which the priority is higher than a preset priority in the data to be migrated to the second terminal.
In the embodiment of the present invention, if the current remaining power of at least one of the first terminal and the second terminal is lower than a preset threshold, the first terminal may transmit data of which priority is higher than a preset priority in the to-be-migrated data to the second terminal (to determine that important data can be successfully transmitted to the second terminal), and then transmit data of which priority is lower than the preset priority in the to-be-migrated data; or in order to save the electric quantity of the two terminals, after the first terminal transmits the data with the priority higher than the preset priority in the data to be migrated to the second terminal, the data transmission process is ended, and the remaining data in the data to be migrated is not transmitted any more. When the first terminal transmits the data with the priority higher than the preset priority in the to-be-migrated data to the second terminal, the data in the data with the priority higher than the preset priority may be transmitted according to the priority, that is, the higher the priority is, the data is transmitted earlier.
Optionally, before determining the data to be migrated, the method further includes:
the first terminal sets a corresponding relation between M preset thresholds and N preset priorities, wherein N is an integer larger than zero, and M is an integer larger than or equal to N;
if the current remaining power of at least one of the first terminal and the second terminal is lower than a preset threshold, the transmitting, by the first terminal, data with a priority higher than a preset priority in the to-be-migrated data to the second terminal includes:
and if the current residual electric quantity of at least one of the first terminal and the second terminal is lower than a preset threshold, the first terminal transmits data of which the priority is higher than a preset priority corresponding to the preset threshold in the data to be migrated to the second terminal.
In the embodiment of the present invention, a user may set a corresponding relationship between M preset thresholds and N preset priorities in a user-defined manner through the first terminal, and store the corresponding relationship in the first terminal, for example, in the first terminal in a manner of a mapping table, when a current remaining power of at least one of the first terminal and the second terminal is lower than a certain preset threshold, a preset priority corresponding to the certain preset threshold may be obtained from a storage mapping list, if the certain preset threshold corresponds to a plurality of preset priorities, a preset priority with a highest priority may be selected from the plurality of preset priorities, and data with a priority higher than the highest preset priority in the data to be migrated may be transmitted to the second terminal.
According to the embodiment of the invention, when the current residual electric quantity of the terminal equipment (namely at least one terminal of the first terminal and the second terminal) is lower, the important data in the data to be migrated (namely the data with the priority higher than the preset priority in the data to be migrated) can be preferentially transmitted, so that the important data can be successfully transmitted when the current residual electric quantity of the terminal equipment is lower, namely the problem that the important data migration is likely to fail when the current residual electric quantity of the terminal equipment is lower in the prior art is solved.
Referring to fig. 2, which is a flowchart illustrating an implementation of a data migration method according to a second embodiment of the present invention, as shown in the figure, the data migration method may include the following steps:
step S201, the first terminal sets a priority of an application program in the first terminal and/or a priority of preset keyword information.
In this embodiment of the present invention, a user may set, by using the first terminal, priorities of all applications installed in the first terminal or an application selected by the user, and/or priorities of preset keyword information, so as to determine priorities corresponding to different data in the data to be migrated, which are determined in step S202. The application selected by the user may refer to the application to which different data in the data to be migrated determined in step S202 belong respectively.
Step S202, when the first terminal receives the data migration instruction, determining data to be migrated.
The step is the same as step S101, and reference may be made to the related description of step S101, which is not repeated herein.
Step S203, the first terminal obtains an application program to which different data in the data to be migrated belongs and/or preset keyword information included in different data in the data to be migrated.
Step S204, the first terminal determines the priority of different data in the data to be migrated according to the priority of the application program to which the different data in the data to be migrated belong and/or the priority of preset keyword information contained in the different data in the data to be migrated.
In the embodiment of the present invention, when different data in the data to be migrated does not include preset keyword information, the priority of the application program to which the different data in the data to be migrated belongs may be used as the priority of the different data in the data to be migrated.
When the first terminal determines the priority of different data in the data to be migrated according to the application program to which the different data in the data to be migrated belong and the preset keyword information included in the different data in the data to be migrated, for one data, in order to prevent the priority corresponding to the application program to which the data belongs from being different from the priority corresponding to the preset keyword information included in the data, when the priority of the application program in the first terminal and the priority of the preset keyword information are set, the corresponding relationship between the application program in the first terminal and the preset keyword information may be established, and the same priority is set for the corresponding application program and the preset keyword information.
Step S205, the first terminal respectively obtains its current remaining power and the current remaining power of the second terminal connected to the first terminal.
The step is the same as step S103, and reference may be made to the related description of step S103, which is not described herein again.
Step S206, if the current remaining power of at least one of the first terminal and the second terminal is lower than a preset threshold, the first terminal transmits data of which the priority is higher than a preset priority in the to-be-migrated data to the second terminal.
The step is the same as step S104, and reference may be made to the related description of step S104, which is not repeated herein.
By the embodiment of the invention, the priority of the application program to which different data in the data to be migrated belong and/or the priority of the preset keyword information contained in the different data in the data to be migrated can be used as the priority of the different data in the data to be migrated, so that the priority of the different data in the data to be migrated is determined.
Referring to fig. 3, it is a block diagram of a terminal device according to a third embodiment of the present invention, and for convenience of description, only a part related to the third embodiment of the present invention is shown.
The terminal device includes:
the data determining module 31 is configured to determine data to be migrated when receiving the data migration instruction;
a priority obtaining module 32, configured to obtain priorities of different data in the data to be migrated;
a remaining power obtaining module 33, configured to obtain a current remaining power of the terminal device and a current remaining power of a second terminal connected to the terminal device, respectively;
and a data transmission module 34, configured to transmit, to the second terminal, data with a priority higher than a preset priority in the to-be-migrated data if a current remaining power of at least one of the terminal device and the second terminal is lower than a preset threshold.
Optionally, the priority obtaining module 32 includes:
an obtaining unit 321, configured to obtain an application program to which different data in the data to be migrated belongs and/or preset keyword information included in different data in the data to be migrated;
a priority determining unit 322, configured to determine priorities of different data in the data to be migrated according to an application program to which the different data in the data to be migrated belong and/or preset keyword information included in the different data in the data to be migrated.
Optionally, the terminal device further includes:
a priority setting module 35, configured to set a priority of an application program in the terminal device and/or a priority of the preset keyword information before determining the data to be migrated.
Optionally, the terminal device further includes:
a relationship setting module 36, configured to set a corresponding relationship between M preset thresholds and N preset priorities before determining data to be migrated, where N is an integer greater than zero, and M is an integer greater than or equal to N;
the data transmission module 34 is specifically configured to transmit, to the second terminal, data with a priority higher than a preset priority corresponding to a preset threshold in the to-be-migrated data if the current remaining power of at least one of the terminal device and the second terminal is lower than the preset threshold.
Optionally, the data determining module 31 includes:
a connection determining unit 311 configured to determine whether a communication connection has been established with the second terminal when a data migration instruction is received;
a first determining unit 312, configured to determine, when a determination result of the connection determining unit is yes, the data to be migrated according to the data migration instruction;
a second determining unit 313, configured to establish a communication connection with the second terminal if the determination result of the connection determining unit is negative, and determine the data to be migrated according to the data migration instruction after the connection is successful.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Fig. 4 is a block diagram of a terminal device according to a fourth embodiment of the present invention. The terminal device as shown in the figure may include: one or more processors 401 (only one shown); one or more input devices 402 (only one shown), one or more output devices 403 (only one shown), and memory 404. The processor 401, the input device 402, the output device 403, and the memory 404 are connected by a bus 405. The memory 404 is used for storing instructions and the processor 401 is used for executing the instructions stored by the memory 404. Wherein:
the processor 401 is configured to determine data to be migrated when receiving a data migration instruction; acquiring the priority of different data in the data to be migrated through the input device 402; respectively acquiring the current residual capacity of the terminal equipment and the current residual capacity of a second terminal connected with the terminal equipment through the input equipment 402; if the current remaining power of at least one of the terminal device and the second terminal is lower than a preset threshold, transmitting data with a priority higher than a preset priority in the to-be-migrated data to the second terminal through the output device 403.
Optionally, the processor 401 is specifically configured to obtain, through the input device 402, an application program to which different data in the data to be migrated belongs and/or preset keyword information included in different data in the data to be migrated; and determining the priority of different data in the data to be migrated according to the application program to which the different data in the data to be migrated belong and/or preset keyword information contained in the different data in the data to be migrated.
Optionally, before determining the data to be migrated, the processor 401 is further configured to set a priority of an application program in the terminal device and/or a priority of the preset keyword information.
Optionally, before determining the data to be migrated, the processor 401 is further configured to set a corresponding relationship between M preset thresholds and N preset priorities, where N is an integer greater than zero, and M is an integer greater than or equal to N.
The processor 401 is specifically configured to transmit, to the second terminal, data with a priority higher than a preset priority corresponding to a preset threshold in the data to be migrated through the output device 403 if the current remaining power of at least one of the terminal device and the second terminal is lower than the preset threshold.
Optionally, the processor 401 is specifically configured to determine, when receiving the data migration instruction, whether a communication connection has been established with the second terminal; when the judgment result of the connection determining unit is yes, determining the data to be migrated according to the data migration instruction; and when the judgment result of the connection determining unit is negative, establishing communication connection with the second terminal, and after the connection is successful, determining the data to be migrated according to the data migration instruction.
The memory 404 is used for storing software programs and modules. The processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 404, so as to transmit data with a priority higher than a preset priority among the data to be migrated to the second terminal.
It should be understood that, in the embodiment of the present invention, the Processor 401 may be a Central Processing Unit (CPU), and the Processor may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 402 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, a data receiving interface, and the like. The output devices 403 may include a display (LCD, etc.), speakers, a data transmission interface, and the like.
The memory 404 may include a read-only memory and a random access memory, and provides instructions and data to the processor 401. A portion of the memory 404 may also include non-volatile random access memory. For example, the memory 404 may also store device type information.
In a specific implementation, the processor 401, the input device 402, the output device 403, and the memory 404 described in this embodiment of the present invention may execute the implementation described in the embodiment of the data migration method provided in this embodiment of the present invention, or may execute the implementation described in the terminal device described in the third embodiment of the present invention, which is not described herein again.
Referring to fig. 5, a block diagram of a terminal device according to a fifth embodiment of the present invention is shown, where the terminal device may be configured to implement the implementation manner described in the embodiment of the data migration method according to the fifth embodiment of the present invention, and may also execute the implementation manner described in the terminal device according to the third embodiment.
As shown in fig. 5, the terminal device 1200 may include an RF (radio frequency) circuit 110, a memory 120 including one or more computer-readable storage media (only one shown in the figure), an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more processing cores (only one shown in the figure), and a power supply 190. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 5 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. Wherein:
the RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuitry 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), wideband Code division multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (WiFi) (e.g., IEEE802.11 a, IEEE802.11 b, IEEE802.1 g and/or IEEE802.1 n), Voice over internet protocol (VoIP), world wide mail Access (wimax), and other short message protocols, as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The memory 120 may be used to store software programs and modules, such as program instructions/modules corresponding to the terminal device in the data migration method/the data. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 may further include memory located remotely from the processor 180, which may be connected to the terminal device 1200 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 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 140 may be used to display information input by or provided to a user and various graphic user interfaces of the terminal apparatus 1200, which may be configured by graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141, and optionally, the display panel 141 may be configured in the form of an LCD (Liquid crystal display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 5, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The terminal device 1200 may also include at least one sensor 150, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the terminal device 1200 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the 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 may be further configured in the terminal device 1200, detailed descriptions thereof are omitted.
The audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between the user and the terminal device 1200. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the terminal device 1200.
The terminal device 1200, which can help the user send and receive e-mails, browse web pages, access streaming media, etc., through the transmission module 170 (e.g., WiFi module), provides the user with wireless broadband internet access. Although fig. 5 shows the transmission module 170, it is understood that it does not belong to the essential constitution of the terminal device 1200, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal device 1200, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the terminal device 1200 and processes data by running or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 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 the processor 180.
The terminal device 1200 further includes a power supply 190 (e.g., a battery) for supplying power to various components, which may preferably be logically connected to the processor 180 via a power management system, so as to manage charging, discharging, and power consumption via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 1200 may further include a camera, a bluetooth module, and the like, which are not described herein. Specifically, in this embodiment, the display unit of the terminal device is a touch screen display, the terminal device further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
when a data migration instruction is received, determining data to be migrated;
acquiring the priority of different data in the data to be migrated;
respectively acquiring the current residual electric quantity of the terminal equipment and the current residual electric quantity of a second terminal connected with the terminal equipment;
and if the current residual electric quantity of at least one of the terminal equipment and the second terminal is lower than a preset threshold value, transmitting the data with the priority higher than the preset priority in the to-be-migrated data to the second terminal.
Assuming that the foregoing is the first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, the memory of the terminal device further includes instructions for performing the following operations:
acquiring application programs to which different data in the data to be migrated belong and/or preset keyword information contained in different data in the data to be migrated;
and determining the priority of different data in the data to be migrated according to the application program to which the different data in the data to be migrated belong and/or preset keyword information contained in the different data in the data to be migrated.
Assuming that the foregoing is the second possible implementation manner, in a third possible implementation manner provided on the basis of the second possible implementation manner, the memory of the terminal device further includes instructions for performing the following operations:
and before determining the data to be migrated, setting the priority of an application program in the terminal equipment and/or the priority of the preset keyword information.
In a fourth possible implementation manner provided on the basis of the first possible implementation manner, the memory of the terminal device further includes instructions for performing the following operations:
before determining data to be migrated, setting a corresponding relation between M preset thresholds and N preset priorities, wherein N is an integer larger than zero, and M is an integer larger than or equal to N;
and if the current residual electric quantity of at least one of the terminal equipment and the second terminal is lower than a preset threshold value, transmitting data of which the priority is higher than a preset priority corresponding to the preset threshold value in the data to be migrated to the second terminal.
In a fifth possible implementation manner provided on the basis of the first possible implementation manner, the second possible implementation manner, the third possible implementation manner, or the fourth possible implementation manner, the memory of the terminal device further includes instructions for performing the following operations:
when a data migration instruction is received, determining whether communication connection is established with the second terminal;
when the judgment result of the connection determining unit is yes, determining the data to be migrated according to the data migration instruction;
and when the judgment result of the connection determining unit is negative, establishing communication connection with the second terminal, and after the connection is successful, determining the data to be migrated according to the data migration instruction.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, 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 executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical 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 solutions of the embodiments of the present invention may be implemented in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Specifically, as follows, still another embodiment of the present invention further provides a computer-readable storage medium, which may be the computer-readable storage medium contained in the memory in the above-described embodiment; or it may be a separate computer-readable storage medium not incorporated into the terminal device. The computer-readable storage medium stores one or more programs for use by one or more processors in performing a data migration method, the data migration method comprising:
when a data migration instruction is received, determining data to be migrated;
acquiring the priority of different data in the data to be migrated;
respectively acquiring the current residual electric quantity of the terminal equipment and the current residual electric quantity of a second terminal connected with the terminal equipment;
and if the current residual electric quantity of at least one of the terminal equipment and the second terminal is lower than a preset threshold value, transmitting the data with the priority higher than the preset priority in the to-be-migrated data to the second terminal.
Assuming that the foregoing is the first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, the memory of the terminal device further includes instructions for performing the following operations:
acquiring application programs to which different data in the data to be migrated belong and/or preset keyword information contained in different data in the data to be migrated;
and determining the priority of different data in the data to be migrated according to the application program to which the different data in the data to be migrated belong and/or preset keyword information contained in the different data in the data to be migrated.
Assuming that the foregoing is the second possible implementation manner, in a third possible implementation manner provided on the basis of the second possible implementation manner, the memory of the terminal device further includes instructions for performing the following operations:
and before determining the data to be migrated, setting the priority of an application program in the terminal equipment and/or the priority of the preset keyword information.
In a fourth possible implementation manner provided on the basis of the first possible implementation manner, the memory of the terminal device further includes instructions for performing the following operations:
before determining data to be migrated, setting a corresponding relation between M preset thresholds and N preset priorities, wherein N is an integer larger than zero, and M is an integer larger than or equal to N;
and if the current residual electric quantity of at least one of the terminal equipment and the second terminal is lower than a preset threshold value, transmitting data of which the priority is higher than a preset priority corresponding to the preset threshold value in the data to be migrated to the second terminal.
In a fifth possible implementation manner provided on the basis of the first possible implementation manner, the second possible implementation manner, the third possible implementation manner, or the fourth possible implementation manner, the memory of the terminal device further includes instructions for performing the following operations:
when a data migration instruction is received, determining whether communication connection is established with the second terminal;
when the judgment result of the connection determining unit is yes, determining the data to be migrated according to the data migration instruction;
and when the judgment result of the connection determining unit is negative, establishing communication connection with the second terminal, and after the connection is successful, determining the data to be migrated according to the data migration instruction.
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; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (8)

1. A data migration method, characterized in that the data migration method comprises:
the method comprises the steps that when a first terminal receives a data migration instruction, data to be migrated are determined; the data migration instruction is an instruction sent by a user through the first terminal; when the first terminal receives a data migration instruction, displaying names and/or icons of all the application programs in the first terminal in a list form on a screen of the first terminal so that the user can select the data to be migrated from all the application programs; the application programs in the first terminal are sorted in the list according to the access frequencies of the application programs, and the higher the access frequency is, the higher the sorting of the application programs in the list is;
displaying names and/or icons of application programs on a screen of the first terminal, displaying data contained in a certain application program on a current page of the first terminal when clicking operation on a selection option corresponding to the certain application program is detected, determining that data selected by a user from the data contained in all the application programs is to-be-migrated data, and only hiding unselected data in the data contained in the certain application program after selection;
the acquiring, by the first terminal, the priorities of different data in the data to be migrated includes:
a user sets the priority of an application program in the first terminal and/or the priority of preset keyword information through the first terminal;
the first terminal acquires an application program to which different data in the data to be migrated belong and/or preset keyword information contained in the different data in the data to be migrated;
the first terminal determines the priority of different data in the data to be migrated according to an application program to which the different data in the data to be migrated belong and/or preset keyword information contained in the different data in the data to be migrated;
the first terminal respectively acquires the current residual electric quantity of the first terminal and the current residual electric quantity of a second terminal connected with the first terminal;
and if the current residual electric quantity of at least one of the first terminal and the second terminal is lower than a preset threshold value, the first terminal transmits the data with the priority higher than the preset priority in the data to be migrated to the second terminal.
2. The data migration method of claim 1, prior to determining the data to be migrated, further comprising:
the first terminal sets a corresponding relation between M preset thresholds and N preset priorities, wherein N is an integer larger than zero, and M is an integer larger than or equal to N;
if the current remaining power of at least one of the first terminal and the second terminal is lower than a preset threshold, the transmitting, by the first terminal, data with a priority higher than a preset priority in the to-be-migrated data to the second terminal includes:
and if the current residual electric quantity of at least one of the first terminal and the second terminal is lower than any one of the M preset thresholds, the first terminal transmits the data of which the priority is higher than the preset priority corresponding to the preset threshold in the to-be-migrated data to the second terminal according to the corresponding relation.
3. The data migration method according to any one of claims 1 to 2, wherein when receiving the data migration instruction, the determining, by the first terminal, the data to be migrated includes:
the first terminal determines whether communication connection is established with the second terminal or not when receiving a data migration instruction;
if so, the first terminal determines the data to be migrated according to the data migration instruction;
and if not, the first terminal establishes communication connection with the second terminal, and after the connection is successful, the data to be migrated is determined according to the data migration instruction.
4. A terminal device, characterized in that the terminal device comprises:
the data determining module is used for determining data to be migrated when a data migration instruction is received; the data migration instruction is an instruction sent by a user through a first terminal; when the first terminal receives a data migration instruction, displaying names and/or icons of all the application programs in the first terminal in a list form on a screen of the first terminal so that the user can select the data to be migrated from all the application programs; the application programs in the first terminal are sorted in the list according to the access frequencies of the application programs, and the higher the access frequency is, the higher the sorting of the application programs in the list is;
displaying names and/or icons of application programs on a screen of the first terminal, displaying data contained in a certain application program on a current page of the first terminal when clicking operation on a selection option corresponding to the certain application program is detected, determining that data selected by a user from the data contained in all the application programs is to-be-migrated data, and only hiding unselected data in the data contained in the certain application program after selection;
the priority acquisition module is used for acquiring the priority of different data in the data to be migrated; wherein the priority acquisition module comprises:
the priority setting module is used for setting the priority of an application program in the terminal equipment and/or the priority of preset keyword information by a user before determining the data to be migrated;
the acquiring unit is used for acquiring the application program to which different data in the data to be migrated belong and/or preset keyword information contained in different data in the data to be migrated;
the priority determining unit is used for determining the priority of different data in the data to be migrated according to the application program to which the different data in the data to be migrated belong and/or preset keyword information contained in the different data in the data to be migrated;
the residual electric quantity obtaining module is used for respectively obtaining the current residual electric quantity of the terminal equipment and the current residual electric quantity of a second terminal connected with the terminal equipment;
and the data transmission module is used for transmitting the data with the priority higher than the preset priority in the data to be migrated to the second terminal if the current remaining power of at least one of the terminal device and the second terminal is lower than a preset threshold.
5. The terminal device of claim 4, wherein the terminal device further comprises:
the relationship setting module is used for setting the corresponding relationship between M preset thresholds and N preset priorities before determining the data to be migrated, wherein N is an integer larger than zero, and M is an integer larger than or equal to N;
the data transmission module is specifically configured to transmit, to the second terminal, data with a priority higher than a preset priority corresponding to a preset threshold in the to-be-migrated data if a current remaining power of at least one of the terminal device and the second terminal is lower than the preset threshold.
6. The terminal device of any of claims 4 to 5, wherein the data determination module comprises:
a connection determining unit configured to determine whether a communication connection has been established with the second terminal when a data migration instruction is received;
the first determining unit is used for determining the data to be migrated according to the data migration instruction when the judgment result of the connection determining unit is yes;
and the second determining unit is used for establishing communication connection with the second terminal when the judgment result of the connection determining unit is negative, and determining the data to be migrated according to the data migration instruction after the connection is successful.
7. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
when a data migration instruction is received, determining data to be migrated; the data migration instruction is an instruction sent by a user through a first terminal; when the first terminal receives a data migration instruction, displaying names and/or icons of all the application programs in the first terminal in a list form on a screen of the first terminal so that the user can select the data to be migrated from all the application programs; the application programs in the first terminal are sorted in the list according to the access frequencies of the application programs, and the higher the access frequency is, the higher the sorting of the application programs in the list is;
displaying names and/or icons of application programs on a screen of the first terminal, displaying data contained in a certain application program on a current page of the first terminal when clicking operation on a selection option corresponding to the certain application program is detected, determining that data selected by a user from the data contained in all the application programs is to-be-migrated data, and only hiding unselected data in the data contained in the certain application program after selection;
acquiring the priority of different data in the data to be migrated, including:
a user sets the priority of an application program in the first terminal and/or the priority of preset keyword information through the first terminal;
the first terminal acquires an application program to which different data in the data to be migrated belong and/or preset keyword information contained in the different data in the data to be migrated;
the first terminal determines the priority of different data in the data to be migrated according to an application program to which the different data in the data to be migrated belong and/or preset keyword information contained in the different data in the data to be migrated;
respectively acquiring the current residual electric quantity of the terminal equipment and the current residual electric quantity of a second terminal connected with the terminal equipment;
and if the current residual electric quantity of at least one of the terminal equipment and the second terminal is lower than a preset threshold value, transmitting the data with the priority higher than the preset priority in the to-be-migrated data to the second terminal.
8. A computer-readable storage medium storing a computer program, the computer program when executed by a processor implementing the steps of:
when a data migration instruction is received, determining data to be migrated; the data migration instruction is an instruction sent by a user through a first terminal; when the first terminal receives a data migration instruction, displaying names and/or icons of all the application programs in the first terminal in a list form on a screen of the first terminal so that the user can select the data to be migrated from all the application programs; the application programs in the first terminal are sorted in the list according to the access frequencies of the application programs, and the higher the access frequency is, the higher the sorting of the application programs in the list is;
displaying names and/or icons of application programs on a screen of the first terminal, displaying data contained in a certain application program on a current page of the first terminal when clicking operation on a selection option corresponding to the certain application program is detected, determining that data selected by a user from the data contained in all the application programs is to-be-migrated data, and only hiding unselected data in the data contained in the certain application program after selection;
acquiring the priority of different data in the data to be migrated, including:
a user sets the priority of an application program in the first terminal and/or the priority of preset keyword information through the first terminal;
the first terminal acquires an application program to which different data in the data to be migrated belong and/or preset keyword information contained in the different data in the data to be migrated;
the first terminal determines the priority of different data in the data to be migrated according to an application program to which the different data in the data to be migrated belong and/or preset keyword information contained in the different data in the data to be migrated;
respectively acquiring the current residual electric quantity of the terminal equipment and the current residual electric quantity of a second terminal connected with the terminal equipment;
and if the current residual electric quantity of at least one of the terminal equipment and the second terminal is lower than a preset threshold value, transmitting the data with the priority higher than the preset priority in the to-be-migrated data to the second terminal.
CN201710297258.6A 2017-04-28 2017-04-28 Data migration method, terminal device and computer readable storage medium Expired - Fee Related CN107145386B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710297258.6A CN107145386B (en) 2017-04-28 2017-04-28 Data migration method, terminal device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710297258.6A CN107145386B (en) 2017-04-28 2017-04-28 Data migration method, terminal device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107145386A CN107145386A (en) 2017-09-08
CN107145386B true CN107145386B (en) 2020-06-26

Family

ID=59774491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710297258.6A Expired - Fee Related CN107145386B (en) 2017-04-28 2017-04-28 Data migration method, terminal device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107145386B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109729108B (en) * 2017-10-27 2022-01-14 阿里巴巴集团控股有限公司 Method for preventing cache breakdown, related server and system
CN109302698A (en) * 2018-08-27 2019-02-01 优视科技新加坡有限公司 Near-field Data moving method and its device
CN112448429B (en) * 2019-08-30 2022-11-04 Oppo广东移动通信有限公司 Control method, terminal and computer storage medium
CN112749414A (en) * 2019-10-31 2021-05-04 七鑫易维(深圳)科技有限公司 Data storage method, device, equipment and storage medium
CN116089358B (en) * 2022-06-02 2023-11-24 荣耀终端有限公司 Data migration method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183379A (en) * 2015-09-01 2015-12-23 上海新储集成电路有限公司 Mixed memory data backup system and method
CN105511985A (en) * 2015-12-01 2016-04-20 魅族科技(中国)有限公司 Data backup method and terminal
CN105786647A (en) * 2016-02-25 2016-07-20 努比亚技术有限公司 Data backup device and method and terminal
CN105786654A (en) * 2016-03-01 2016-07-20 北京金山安全软件有限公司 Data backup method and device and electronic equipment
CN106331372A (en) * 2016-09-14 2017-01-11 广东欧珀移动通信有限公司 Data transmission method and mobile terminal
CN106502837A (en) * 2016-10-25 2017-03-15 广东欧珀移动通信有限公司 A kind of method of data backup, apparatus and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9910775B2 (en) * 2014-06-16 2018-03-06 Samsung Electronics Co., Ltd. Computing system with adaptive back-up mechanism and method of operation thereof
CN105893185B (en) * 2016-03-31 2019-10-25 Oppo广东移动通信有限公司 A kind of data back up method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183379A (en) * 2015-09-01 2015-12-23 上海新储集成电路有限公司 Mixed memory data backup system and method
CN105511985A (en) * 2015-12-01 2016-04-20 魅族科技(中国)有限公司 Data backup method and terminal
CN105786647A (en) * 2016-02-25 2016-07-20 努比亚技术有限公司 Data backup device and method and terminal
CN105786654A (en) * 2016-03-01 2016-07-20 北京金山安全软件有限公司 Data backup method and device and electronic equipment
CN106331372A (en) * 2016-09-14 2017-01-11 广东欧珀移动通信有限公司 Data transmission method and mobile terminal
CN106502837A (en) * 2016-10-25 2017-03-15 广东欧珀移动通信有限公司 A kind of method of data backup, apparatus and system

Also Published As

Publication number Publication date
CN107145386A (en) 2017-09-08

Similar Documents

Publication Publication Date Title
US10055220B2 (en) Method, apparatus, and system for processing desktop data of mobile terminal
CN105786878B (en) Display method and device of browsing object
CN107145386B (en) Data migration method, terminal device and computer readable storage medium
CN111984165B (en) Method and device for displaying message and terminal equipment
CN104852885B (en) Method, device and system for verifying verification code
US10956280B2 (en) Data backup method, electronic device, and storage medium
CN106786962B (en) Charging control method and device and terminal
WO2019015404A1 (en) Method and apparatus for switching applications in split screen mode, and related device thereof
CN107241784B (en) Internet of things access method and device
US20170199662A1 (en) Touch operation method and apparatus for terminal
CN108549519B (en) Split screen processing method and device, storage medium and electronic equipment
US20180348980A1 (en) Method and apparatus for switching screen interface and terminal
CN108984095A (en) gesture interaction method, device, storage medium and electronic equipment
JP6068660B2 (en) Character selection method, character selection device, terminal device, program, and recording medium
CN106502833B (en) Data backup method and device
EP2869604A1 (en) Method, apparatus and device for processing a mobile terminal resource
CN107045610B (en) Data migration method, terminal device and computer readable storage medium
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN107918517B (en) Screen rotation response method and device, mobile terminal and storage medium
US11147038B2 (en) Notification message processing method and terminal
US20210019401A1 (en) Method and apparatus for displaying keyboard, and terminal device
WO2018036337A1 (en) Method and device for displaying uninstall interface
US10599866B2 (en) Method and system for protecting personal information based on mobile terminal and the mobile terminal
WO2015067206A1 (en) File searching method and terminal
CN111083288B (en) Screen control method and device, terminal equipment and storage medium

Legal Events

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

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

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

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

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200626