CN106572163A - Data migration method and terminal - Google Patents

Data migration method and terminal Download PDF

Info

Publication number
CN106572163A
CN106572163A CN201610949433.0A CN201610949433A CN106572163A CN 106572163 A CN106572163 A CN 106572163A CN 201610949433 A CN201610949433 A CN 201610949433A CN 106572163 A CN106572163 A CN 106572163A
Authority
CN
China
Prior art keywords
data
terminal
mark
receiving
application program
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.)
Granted
Application number
CN201610949433.0A
Other languages
Chinese (zh)
Other versions
CN106572163B (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 CN201610949433.0A priority Critical patent/CN106572163B/en
Publication of CN106572163A publication Critical patent/CN106572163A/en
Application granted granted Critical
Publication of CN106572163B publication Critical patent/CN106572163B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • 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/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (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: receiving a data transmission request sent by a first terminal, wherein the data transmission request includes the identifier of an application corresponding to data to be transmitted; determining a target storage path according to the identifier of the application; and receiving data sent by the first terminal, and storing the received data under the target storage path. By implementing the technical scheme provided by the invention, data of an application of a first terminal can be directly transmitted to a path of a corresponding application of a second terminal, so that the migrated data of the application can be used directly in the second terminal, and accurate data transmission is completed.

Description

A kind of method and terminal of Data Migration
Technical field
The present invention relates to field of terminal, and in particular to a kind of method and terminal of Data Migration.
Background technology
With the popularization of terminal (such as the electronic equipment such as smart mobile phone, Wearable, panel computer), terminal gradually into For an indispensable part in people's life so that people no matter go to everywhere can carried terminal.
But with the development of science and technology, the speed that terminal updates is quickly.When user starts with a new terminal, often for Convenient use, it is necessary to the data inside old terminal are imported in new terminal.
The content of the invention
The method and terminal of a kind of Data Migration are embodiments provided, can be by the number of first terminal application program According to being transmitted directly under the path of the corresponding application program of second terminal, so as to so that the data of the application program being migrated can Directly to use in second terminal, so as to lift the transport efficiency of terminal data.
Embodiment of the present invention first aspect discloses a kind of method of Data Migration, and methods described includes:
The data transfer request that first terminal sends is received, the data transfer request includes that data to be transmitted is corresponding The mark of application program;
Target store path is determined according to the mark of the application program;
The data that the first terminal sends are received, and by under target store path described in data Cun Chudao for receiving.
Second aspect present invention discloses a kind of terminal, and the terminal includes:
Receiving unit, for receiving the data transfer request of first terminal transmission, the data transfer request includes treating The mark of the corresponding application program of transmission data;
Determining unit, for determining target store path according to the mark of the application program;
The receiving unit, for receiving the data that the first terminal sends;
Memory element, for by under target store path described in data Cun Chudao for receiving.
Third aspect present invention discloses a kind of terminal, and the terminal includes:
Be stored with the memorizer of executable program code;
The processor coupled with the memorizer;
The executable program code that the processor is stored in calling the memorizer, performs as described in relation to the first aspect Method.
In the scheme of the embodiment of the present invention, the data transfer request that first terminal sends, the data transfer request are received Include the mark of the corresponding application program of data to be transmitted;Target store path is determined according to the mark of the application program; The data that the first terminal sends are received, and by under target store path described in data Cun Chudao for receiving.It is hereby understood that By implementing the technical scheme that the present invention is provided, the data of first terminal application program can be transmitted directly to second terminal pair Under the path of the application program answered, so as to directly make in second terminal in the data for alloing the application program being migrated With, and then complete the transmission of data precision.
Description of the drawings
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below by to be used needed for embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, can be with according to these other accompanying drawings of accompanying drawings acquisition.
Fig. 1 is a kind of schematic flow sheet of the method for Data Migration provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the method for another kind of Data Migration provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the method for another kind of Data Migration provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of terminal provided in an embodiment of the present invention;
Fig. 5 is the structural representation of another kind of terminal provided in an embodiment of the present invention;
Fig. 6 is the structural representation of another kind of terminal provided in an embodiment of the present invention;
Fig. 7 is a kind of entity apparatus structural representation of terminal provided in an embodiment of the present invention;
Fig. 8 is a kind of entity apparatus structural representation of mobile phone provided in an embodiment of the present invention.
Specific embodiment
The method and terminal of a kind of Data Migration are embodiments provided, can be by the number of first terminal application program According to being transmitted directly under the path of the corresponding application program of second terminal, so as to so that the data of the application program being migrated can Directly to use in second terminal, and then complete the transmission of data precision.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, is explicitly described to the technical scheme in the embodiment of the present invention, it is clear that described embodiment is the present invention one The embodiment divided, rather than the embodiment of whole.Based on the embodiment in the present invention, those of ordinary skill in the art are not doing The every other embodiment obtained under the premise of going out creative work, should all belong to the scope of protection of the invention.
Term " first ", " second " and " the 3rd " occurred in description of the invention, claims and accompanying drawing etc. is to use In the different objects of difference, and it is not intended to describe specific order.Additionally, term " comprising " and " having " and they are any Deformation, it is intended that cover non-exclusive including.The process of series of steps or unit, method, system, product are contained for example Or equipment is not limited to the step of listing or unit, but alternatively also include the step of not listing or unit, or can Selection of land also includes other intrinsic for these processes, method, product or equipment step or unit.
A kind of method of Data Migration is disclosed in one embodiment of the invention, and methods described includes:Receive first The data transfer request that terminal sends, the data transfer request include the mark of the corresponding application program of data to be transmitted; Target store path is determined according to the mark of the application program;The data that the first terminal sends are received, and will be received Data Cun Chudao described under target store path.
Fig. 1 is referred to, Fig. 1 is a kind of method of Data Migration that one embodiment of the invention is provided.Wherein, such as Fig. 1 institutes Show, a kind of method of Data Migration that one embodiment of the present of invention is provided includes herein below:
S101, the data transfer request for receiving first terminal transmission, the data transfer request include data to be transmitted The mark of corresponding application program;
, wherein it is desired to, it is noted that the executive agent of the method is second terminal.Second terminal includes but is not limited to intelligence Mobile phone, panel computer, computer and Wearable etc..First terminal includes but is not limited to smart mobile phone, panel computer, meter Calculation machine and Wearable etc..
It is understood that first terminal and second terminal can set up connection by modes such as Wi-Fi, bluetooths.Set up After connection, first terminal sends data transfer request to second terminal.
Wherein, the mark of the corresponding application program of data to be transmitted can include the corresponding application program of data to be transmitted Title.For example, the data transmitted by wechat, then " wechat " will be included in the data transfer request.For example, The data of transmission photographing unit, then " photographing unit " will be included in the data transfer request.For example, transmission communication record Data, then will wrap " address list " in the data transfer request.
S102, target store path is determined according to the mark of the application program;
Specifically, the mark according to the application program determines target store path, including:Traversal applications program is arranged Table is determining whether there is the mark of the application program;When there is the mark of the application program, the application journey is read The attribute of sequence is to determine the installation path of the application program, and the installation path is set to the target store path; When there is no the mark of the application program, preset path being set to into target store path, and described answering is sent to user With the still uninstalled prompting of program.
It is understood that after second terminal receives the data transfer request that first terminal sends, from the data transfer The mark of the corresponding application program of acquisition request data to be transmitted, the mark of the such as corresponding application program of the data to be transmitted is Wechat, then second terminal will first judge whether to be mounted with wechat this application, if being mounted with wechat this application, then can To read the attribute of wechat to determine the position (being generally defaulted as installation path) of the corresponding file of wechat;If be fitted without This path of wechat, then preset path is set to target store path, and sends the application program to user not yet pacify The prompting of dress.Wherein, preset path can be the path that default path, or user select.
S103, the data for receiving the first terminal transmission, and target described in data Cun Chudao for receiving is stored into road Under footpath.
Specifically, it is described by under target store path described in data Cun Chudao for receiving, including:The number that acquisition is received According to mark;Judge the mark with the presence or absence of the data for receiving under the target store path;If the target storage The mark of the data received described in existing under path, then become the mark of the data for receiving according to predetermined manner Stored more afterwards;If there is no the mark of the data for receiving under the target store path, receive described Data stored.
For example, such as receive a file, then the title of this document folder that just goes back, if destination path is The installation path of wechat, that is judged as under the installation path of lower wechat pressing from both sides file of the same name with the presence or absence of with this document, if If presence, (the title of the file for such as receiving after just modify the title of the file for receiving, is stored It is " landscape ", " landscape 1 " can be revised as and be stored);In addition, if being do not exist and this document under the installation path of wechat Folder file of the same name, then stored the data for receiving.
In addition, in order to save flow to user, before the data that the first terminal sends are received, needing judgement second The internetwork connection mode of terminal, specifically:Obtain current internetwork connection mode;It is true according to the current internetwork connection mode Constant flow threshold value;Judge the data waiting for transmission whether more than the flow threshold;When the data waiting for transmission are more than institute When stating flow threshold, user is pointed out to carry out the switching of internetwork connection mode., wherein it is desired to, it is noted that common network connection Mode includes Wi-Fi connection, mobile data cube computation etc..If being connected in mobile data mode, then flow threshold typically compared with Little, such as 300M or 500M, here are not limited.
Optionally, it should be pointed out that before the data that the first terminal sends are received, need to first terminal Identity verified, specifically:Authentication request is sent to the first terminal;Receive the numeral of the first terminal feedback Signature;The digital signature is verified using default public key;When the authentication succeeds, the data that first terminal sends are received.
Wherein, the data to be transmitted includes but is not limited to word, picture, audio frequency and video etc..
As can be seen that in the scheme of the embodiment of the present invention, receiving the data transfer request that first terminal sends, the data Transmission request includes the mark of the corresponding application program of data to be transmitted;Determine that target is deposited according to the mark of the application program Storage path;The data that the first terminal sends are received, and by under target store path described in data Cun Chudao for receiving.From And understand, by implementing the technical scheme that the present invention is provided, the data of first terminal application program can be transmitted directly to the Under the path of the corresponding application program of two terminals, so as to allow the data of the application program being migrated in second terminal Directly use, and then complete the transmission of data precision.
Fig. 2 is referred to, Fig. 2 is a kind of method of Data Migration that one embodiment of the invention is provided.Wherein, such as Fig. 2 institutes Show, a kind of method of Data Migration that one embodiment of the present of invention is provided includes herein below:
S201, the data transfer request for receiving first terminal transmission, the data transfer request include data to be transmitted The mark of corresponding application program;
, wherein it is desired to, it is noted that the executive agent of the method is second terminal.Second terminal includes but is not limited to intelligence Mobile phone, panel computer, computer and Wearable etc..First terminal includes but is not limited to smart mobile phone, panel computer, meter Calculation machine and Wearable etc..
It is understood that first terminal and second terminal can set up connection by modes such as Wi-Fi, bluetooths.Set up After connection, first terminal sends data transfer request to second terminal.
Wherein, the mark of the corresponding application program of data to be transmitted can include the corresponding application program of data to be transmitted Title.For example, the data transmitted by wechat, then " wechat " will be included in the data transfer request.For example, The data of transmission photographing unit, then " photographing unit " will be included in the data transfer request.For example, transmission communication record Data, then will wrap " address list " in the data transfer request.
S202, target store path is determined according to the mark of the application program;
Specifically, the mark according to the application program determines target store path, including:Traversal applications program is arranged Table is determining whether there is the mark of the application program;When there is the mark of the application program, the application journey is read The attribute of sequence is to determine the installation path of the application program, and the installation path is set to the target store path; When there is no the mark of the application program, preset path being set to into target store path, and described answering is sent to user With the still uninstalled prompting of program.
It is understood that after second terminal receives the data transfer request that first terminal sends, from the data transfer The mark of the corresponding application program of acquisition request data to be transmitted, the mark of the such as corresponding application program of the data to be transmitted is Wechat, then second terminal will first judge whether to be mounted with wechat this application, if being mounted with wechat this application, then can To read the attribute of wechat to determine the position (being generally defaulted as installation path) of the corresponding file of wechat;If be fitted without This path of wechat, then preset path is set to target store path, and sends the application program to user not yet pacify The prompting of dress.Wherein, preset path can be the path that default path, or user select.
Optionally, when the instruction that the agreement receiving data for receiving user input is transmitted, send to the first terminal Agree to the message of receiving data;
It is understood that after second terminal receives the data transfer request of first terminal transmission, can issue the user with Prompting, to prompt the user whether that receiving the transmission asks.
Wherein, the mode of prompting, can show dialog box, voice message, vibration prompting etc., and here is not limited.
The current internetwork connection mode of S203, acquisition;
, wherein it is desired to, it is noted that common internetwork connection mode includes Wi-Fi connection, mobile data cube computation etc..
S204, flow threshold is determined according to the current internetwork connection mode;
Wherein, if being connected in mobile data mode, then flow threshold is typically small, such as 300M or 500M, This is not limited.
S205, judge the data waiting for transmission whether more than the flow threshold;
S206, when the data waiting for transmission be more than the flow threshold when, point out user carry out internetwork connection mode Switching.
S207, the data for receiving the first terminal transmission, and target described in data Cun Chudao for receiving is stored into road Under footpath.
Specifically, it is described by under target store path described in data Cun Chudao for receiving, including:The number that acquisition is received According to mark;Judge the mark with the presence or absence of the data for receiving under the target store path;If the target storage The mark of the data received described in existing under path, then become the mark of the data for receiving according to predetermined manner Stored more afterwards;If there is no the mark of the data for receiving under the target store path, receive described Data stored.
For example, such as receive a file, then the title of this document folder that just goes back, if destination path is The installation path of wechat, that is judged as under the installation path of lower wechat pressing from both sides file of the same name with the presence or absence of with this document, if If presence, (the title of the file for such as receiving after just modify the title of the file for receiving, is stored It is " landscape ", " landscape 1 " can be revised as and be stored);In addition, if being do not exist and this document under the installation path of wechat Folder file of the same name, then stored the data for receiving.
As can be seen that expanded in the scheme of the embodiment of the present invention determining flow according to the current internetwork connection mode Threshold value, and the step of whether data waiting for transmission are more than the flow threshold judged, so as to ensure user not know again The mobile flow of user is wasted in the case of feelings, so as to lift Consumer's Experience.
Fig. 3 is referred to, Fig. 3 is a kind of method of Data Migration that one embodiment of the invention is provided.Wherein, such as Fig. 3 institutes Show, a kind of method of Data Migration that one embodiment of the present of invention is provided includes herein below:
S301, the data transfer request for receiving first terminal transmission, the data transfer request include data to be transmitted The mark of corresponding application program;
, wherein it is desired to, it is noted that the executive agent of the method is second terminal.Second terminal includes but is not limited to intelligence Mobile phone, panel computer, computer and Wearable etc..First terminal includes but is not limited to smart mobile phone, panel computer, meter Calculation machine and Wearable etc..
It is understood that first terminal and second terminal can set up connection by modes such as Wi-Fi, bluetooths.Set up After connection, first terminal sends data transfer request to second terminal.
Wherein, the mark of the corresponding application program of data to be transmitted can include the corresponding application program of data to be transmitted Title.For example, the data transmitted by wechat, then " wechat " will be included in the data transfer request.For example, The data of transmission photographing unit, then " photographing unit " will be included in the data transfer request.For example, transmission communication record Data, then will wrap " address list " in the data transfer request.
S302, target store path is determined according to the mark of the application program;
Specifically, the mark according to the application program determines target store path, including:Traversal applications program is arranged Table is determining whether there is the mark of the application program;When there is the mark of the application program, the application journey is read The attribute of sequence is to determine the installation path of the application program, and the installation path is set to the target store path; When there is no the mark of the application program, preset path being set to into target store path, and described answering is sent to user With the still uninstalled prompting of program.
It is understood that after second terminal receives the data transfer request that first terminal sends, from the data transfer The mark of the corresponding application program of acquisition request data to be transmitted, the mark of the such as corresponding application program of the data to be transmitted is Wechat, then second terminal will first judge whether to be mounted with wechat this application, if being mounted with wechat this application, then can To read the attribute of wechat to determine the position (being generally defaulted as installation path) of the corresponding file of wechat;If be fitted without This path of wechat, then preset path is set to target store path, and sends the application program to user not yet pacify The prompting of dress.Wherein, preset path can be the path that default path, or user select.
Optionally, when the instruction that the agreement receiving data for receiving user input is transmitted, send to the first terminal Agree to the message of receiving data;
It is understood that after second terminal receives the data transfer request of first terminal transmission, can issue the user with Prompting, to prompt the user whether that receiving the transmission asks.
Wherein, the mode of prompting, can show dialog box, voice message, vibration prompting etc., and here is not limited.
S303, to the first terminal send authentication request;
S304, the digital signature for receiving the first terminal feedback;
S305, the default public key of utilization are verified to the digital signature;
Wherein, the private key and default public key for being digitally signed is matching.
S306, when the authentication succeeds, by under target store path described in data Cun Chudao for receiving.
Specifically, it is described by under target store path described in data Cun Chudao for receiving, including:The number that acquisition is received According to mark;Judge the mark with the presence or absence of the data for receiving under the target store path;If the target storage The mark of the data received described in existing under path, then become the mark of the data for receiving according to predetermined manner Stored more afterwards;If there is no the mark of the data for receiving under the target store path, receive described Data stored.
For example, such as receive a file, then the title of this document folder that just goes back, if destination path is The installation path of wechat, that is judged as under the installation path of lower wechat pressing from both sides file of the same name with the presence or absence of with this document, if If presence, (the title of the file for such as receiving after just modify the title of the file for receiving, is stored It is " landscape ", " landscape 1 " can be revised as and be stored);In addition, if being do not exist and this document under the installation path of wechat Folder file of the same name, then stored the data for receiving.
As can be seen that before having expanded receiving data transmission in the scheme of the embodiment of the present invention, carrying out to first terminal identity The step of checking such that it is able to ensure data that user receives from trusted terminal.
Fig. 4 is referred to, Fig. 4 is a kind of structural representation of terminal that one embodiment of the present of invention is provided.Wherein, as schemed Shown in 4, a kind of terminal 400 that one embodiment of the present of invention is provided, wherein, the terminal can be for smart mobile phone, flat board electricity The electronic equipments such as brain, intelligent wearable equipment.The terminal 400 includes receiving unit 401, determining unit 402 and memory element 403。
Receiving unit 401, for receiving the data transfer request of first terminal transmission, the data transfer request includes The mark of the corresponding application program of data to be transmitted;
Determining unit 402, for determining target store path according to the mark of the application program;
Receiving unit 401, for receiving the data that the first terminal sends;
Memory element 403, for by under target store path described in data Cun Chudao for receiving.
Wherein, receiving unit 401, determining unit 402 and memory element 403 can be used for performing step in embodiment 1 Method described in S101 to S103, specifically describes description of the detailed in Example 1 to methods described, will not be described here.
Fig. 5 is referred to, Fig. 5 is a kind of structural representation of terminal that one embodiment of the present of invention is provided.Wherein, as schemed Shown in 5, another kind of terminal 500 that one embodiment of the present of invention is provided, wherein, the terminal can be for smart mobile phone, flat board The electronic equipments such as computer, intelligent wearable equipment.The terminal 500 includes receiving unit 501, determining unit 502, memory element 503rd, acquiring unit 504, judging unit 505 and Tip element 506.
Receiving unit 501, for receiving the data transfer request of first terminal transmission, the data transfer request includes The mark of the corresponding application program of data to be transmitted;
Determining unit 502, for determining target store path according to the mark of the application program;
Specifically, determining unit 502 includes:Traversal subelement, for traversal applications program listing determining whether there is The mark of the application program;Subelement is read, for when there is the mark of the application program, reading the application program Attribute determining the installation path of the application program;Subelement is set, for the installation path is set to the mesh Mark store path;The setting subelement, is additionally operable to, when there is no the mark of the application program, preset path is set to Target store path, and the still uninstalled prompting of the application program is sent to user.
Acquiring unit 504, for obtaining current internetwork connection mode;
Determining unit 502, is additionally operable to determine flow threshold according to the current internetwork connection mode;
Judging unit 505, for judging the data waiting for transmission whether more than the flow threshold;
Tip element 506, for when the data waiting for transmission are more than the flow threshold, pointing out user to carry out network The switching of connected mode.
Receiving unit 501, for receiving the data that the first terminal sends;
Memory element 503, for by under target store path described in data Cun Chudao for receiving.
Specifically, memory element 503 includes:Subelement is obtained, for obtaining the mark of the data for receiving;Judge that son is single Unit, for judging the mark under the target store path with the presence or absence of the data for receiving;Storing sub-units, if for The mark of the data received described in existing under the target store path, then by the mark of the data for receiving according to pre- If mode is stored after being changed;The storing sub-units, if being additionally operable to not exist under the target store path described The mark of the data for receiving, then stored the data for receiving.
Wherein, receiving unit 501, determining unit 502, memory element 503, acquiring unit 504, judging unit 505 and Tip element 506 can be used for the method in execution embodiment 2 described in step S201 to S207, specifically describe detailed in Example 2 Description to methods described, will not be described here.
Fig. 6 is referred to, Fig. 6 is a kind of structural representation of terminal that one embodiment of the present of invention is provided.Wherein, as schemed Shown in 6, another kind of terminal 600 that one embodiment of the present of invention is provided, wherein, the terminal can be for smart mobile phone, flat board The electronic equipments such as computer, intelligent wearable equipment.The terminal 600 includes receiving unit 601, determining unit 602, transmitting element 603rd, memory element 604 and authentication unit 605.
Receiving unit 601, for receiving the data transfer request of first terminal transmission, the data transfer request includes The mark of the corresponding application program of data to be transmitted;
Determining unit 602, for determining target store path according to the mark of the application program;
Specifically, determining unit 602 includes:Traversal subelement, for traversal applications program listing determining whether there is The mark of the application program;Subelement is read, for when there is the mark of the application program, reading the application program Attribute determining the installation path of the application program;Subelement is set, for the installation path is set to the mesh Mark store path;The setting subelement, is additionally operable to, when there is no the mark of the application program, preset path is set to Target store path, and the still uninstalled prompting of the application program is sent to user.
Transmitting element 603, for sending authentication request to the first terminal;
Receiving unit 601, for receiving the digital signature of the first terminal feedback;
Authentication unit 605, for utilizing default public key to verify the digital signature;
Receiving unit 601, for when the authentication succeeds, receiving the data that first terminal sends.
Memory element 604, for by under target store path described in data Cun Chudao for receiving.
Specifically, memory element 604 includes:Subelement is obtained, for obtaining the mark of the data for receiving;Judge that son is single Unit, for judging the mark under the target store path with the presence or absence of the data for receiving;Storing sub-units, if for The mark of the data received described in existing under the target store path, then by the mark of the data for receiving according to pre- If mode is stored after being changed;The storing sub-units, if being additionally operable to not exist under the target store path described The mark of the data for receiving, then stored the data for receiving.
Wherein, receiving unit 601, determining unit 602, transmitting element 603, memory element 604 and authentication unit 605 can For performing the method in embodiment 3 described in step S301 to S306, specifically describe detailed in Example 3 and methods described is retouched State, will not be described here.
Fig. 7 is referred to, in another embodiment of the present invention, there is provided a kind of second terminal.The second terminal 700 is wrapped Include CPU701, memorizer 702, bus 703.Wherein, the terminal 700 can be smart mobile phone, panel computer, Intelligent worn device Deng the electronic equipment with call function.
Wherein, CPU701 performs the program being stored in advance in memorizer 702, and the implementation procedure is specifically included:
The data transfer request that first terminal sends is received, the data transfer request includes that data to be transmitted is corresponding The mark of application program;
Target store path is determined according to the mark of the application program;
The data that the first terminal sends are received, and by under target store path described in data Cun Chudao for receiving.
Optionally, the mark according to the application program determines target store path, including:
Traversal applications program listing is determining whether there is the mark of the application program;
When there is the mark of the application program, the attribute of the application program is read to determine the application program Installation path, and the installation path is set to into the target store path.
Optionally, it is described by under target store path described in data Cun Chudao for receiving, including:
The mark of the data that acquisition is received;
Judge the mark with the presence or absence of the data for receiving under the target store path;
If the mark of the data received described in existing under the target store path, by the data for receiving Mark is stored after being changed according to predetermined manner;
If there is no the mark of the data for receiving under the target store path, by the data for receiving Stored.
Optionally, before the data for receiving the first terminal transmission, the implementation procedure also includes:
Obtain current internetwork connection mode;
Flow threshold is determined according to the current internetwork connection mode;
Judge the data waiting for transmission whether more than the flow threshold;
When the data waiting for transmission are more than the flow threshold, user is pointed out to carry out the switching of internetwork connection mode.
Optionally, before the data for receiving the first terminal transmission, the implementation procedure also includes:
Authentication request is sent to the first terminal;
Receive the digital signature of the first terminal feedback;
The digital signature is verified using default public key;
When the authentication succeeds, the data that first terminal sends are received.
In the scheme of the embodiment of the present invention, the data transfer request that first terminal sends, the data transfer request are received Include the mark of the corresponding application program of data to be transmitted;Target store path is determined according to the mark of the application program; The data that the first terminal sends are received, and by under target store path described in data Cun Chudao for receiving.It is hereby understood that By implementing the technical scheme that the present invention is provided, the data of first terminal application program can be transmitted directly to second terminal pair Under the path of the application program answered, so as to directly make in second terminal in the data for alloing the application program being migrated With, and then complete the transmission of data precision.
Fig. 8 is referred to, Fig. 8 is the frame of the part-structure of the mobile phone of the terminal correlation that one embodiment of the present of invention is provided Figure.With reference to Fig. 8, mobile phone includes:It is radio frequency (Radio Frequency, RF) circuit 810, memorizer 820, input block 830, aobvious Show unit 840, sensor 850, voicefrequency circuit 860, Wireless Fidelity (Wireless Fidelity, WiFi) module 870, process Device 880, and the part such as power supply 890.It will be understood by those skilled in the art that the handset structure illustrated in Fig. 8 do not constitute it is right The restriction of mobile phone, can include than illustrating more or less of part, or combine some parts, or different part cloth Put.
Each component parts of mobile phone are specifically introduced with reference to Fig. 8:
RF circuits 810 can be used for the reception and transmission of information.Generally, RF circuits 810 include but is not limited to antenna, at least one Individual amplifier, transceiver, bonder, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..Additionally, RF circuits 810 can also be communicated with network and other equipment by radio communication.Above-mentioned radio communication can use arbitrary communication Standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile Communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division it is many Location (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memorizer 820 can be used to store software program and module, and processor 880 is stored in memorizer 820 by operation Software program and module, so as to perform various function application and the data processing of mobile phone.Memorizer 820 mainly can include Storing program area and storage data field, wherein, storing program area can storage program area, the application journey needed at least one function Sequence (such as Data Migration function, touch control operation detection function etc.) etc.;Storage data field can be stored to be created according to using for mobile phone Data (such as store path table data etc.) built etc..Additionally, memorizer 820 can include high-speed random access memory, also Nonvolatile memory can be included, for example, at least one disk memory, flush memory device or other volatile solid-states are stored Device.
Input block 830 can be used for the numeral or character information of receives input, and produce with the user of mobile phone arrange with And the key signals input that function control is relevant.Specifically, input block 830 may include that fingerprint module 831 and other inputs set Standby 832.Fingerprint module 831, can gather user's finger print data thereon.Optionally, fingerprint module 831 may include that optical profile type refers to Stricture of vagina module, capacitance type fingerprint module and RF-type fingerprint module.So that fingerprint module 831 is capacitance type fingerprint module as an example, tool Body includes induction electrode (n1 abnormal induction electrode and n2 normal induction electrode) and the signal being connected with the induction electrode Process circuit (such as amplifying circuit, noise suppression circuit, analog-to-digital conversion circuit, etc.).Except fingerprint module 831, input block 830 can also include other input equipments 832.Specifically, other input equipments 832 can include but is not limited to physical keyboard, One or more in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Display unit 840 can be used for show by user input information or be supplied to user information and mobile phone it is various Menu.Display unit 840 may include display screen 841, optionally, can adopt liquid crystal display (Liquid Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure Display screen 841.Although in fig. 8, fingerprint module 831 and display screen 841 are realizing the defeated of mobile phone as two independent parts Enter and input function, but in some embodiments it is possible to will be fingerprint module 831 integrated with display screen 841 and realize mobile phone Input and output function.
Mobile phone may also include at least one sensor 850, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light Light and shade adjusting the brightness of display screen 841, proximity transducer can when mobile phone is moved in one's ear, close display screen 841 and/or Backlight.Used as one kind of motion sensor, in the detectable all directions of accelerometer sensor, (generally three axles) acceleration is big It is little, size and the direction of gravity is can detect that when static, can be used to recognize application (such as horizontal/vertical screen switching, the phase of mobile phone attitude Close game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Can also configure as mobile phone The other sensors such as gyroscope, barometer, drimeter, thermometer, infrared ray sensor, will not be described here.
Voicefrequency circuit 860, speaker 881, microphone 882 can provide the audio interface between user and mobile phone.Audio-frequency electric The signal of telecommunication after the voice data for receiving conversion can be transferred to speaker 881, is converted to sound by speaker 881 by road 860 Signal output;On the other hand, the acoustical signal of collection is converted to the signal of telecommunication by microphone 882, is turned after being received by voicefrequency circuit 860 Be changed to voice data, then after voice data output processor 880 is processed, Jing RF circuits 810 to be sent to such as another mobile phone, Or voice data is exported to memorizer 820 further to process.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses postal by WiFi module 870 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although Fig. 8 shows WiFi module 870, but it is understood that, which is simultaneously not belonging to must be configured into for mobile phone, can not change as needed completely Omit in the scope of the essence for becoming invention.
Processor 880 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, is led to Cross operation or perform the software program and/or module that are stored in memorizer 820, and call and be stored in memorizer 820 Data, perform the various functions and processing data of mobile phone, so as to carry out integral monitoring to mobile phone.Optionally, processor 880 can be wrapped Include one or more processing units;Preferably, processor 880 can integrated application processor and modem processor, wherein, should Operating system, user interface and application program etc. are processed mainly with processor, modem processor mainly processes radio communication. It is understood that above-mentioned modem processor can not also be integrated in processor 880.
Mobile phone also includes the power supply 890 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe Reason system is logically contiguous with processor 880, so as to realize management charging, electric discharge and power managed by power-supply management system Etc. function.
Although not shown, mobile phone can also include photographic head, bluetooth module etc., will not be described here.
In embodiment shown in aforementioned Fig. 1, Fig. 2 and Fig. 3, each step method flow process can be based on the structure reality of the mobile phone It is existing.
In embodiment shown in aforementioned Fig. 4, Fig. 5 and Fig. 6, each unit function can be realized based on the structure of the mobile phone.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion described in detail in certain embodiment Point, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, can be by another way Realize.For example, device embodiment described above is only schematic, such as division of described unit, is only one kind Division of logic function, can have when actually realizing other dividing mode, such as multiple units or component can with reference to or can To be integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed each other Coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication connection by some interfaces, device or unit, Can be electrical or other forms.
The unit as separating component explanation can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can local to be located at one, or can also be distributed to multiple On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list Unit both can be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized and as independent production marketing or use using in the form of SFU software functional unit When, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part for contributing to prior art in other words or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, use so that a computer including some instructions Equipment (can be personal computer, server or network equipment etc.) perform the whole of each embodiment methods described of the invention or Part steps.And aforesaid storage medium includes:USB flash disk, read only memory (ROM, Read-Only Memory), random access memory are deposited Reservoir (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. are various can be with store program codes Medium.
The above, above example only to illustrate technical scheme, rather than a limitation;Although with reference to front State embodiment to be described in detail the present invention, it will be understood by those within the art that:Which still can be to front State the technical scheme described in each embodiment to modify, or equivalent is carried out to which part technical characteristic;And these Modification is replaced, and does not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a kind of method that inter-terminal data is migrated, it is characterised in that methods described includes:
The data transfer request that first terminal sends is received, the data transfer request includes the corresponding application of data to be transmitted The mark of program;
Target store path is determined according to the mark of the application program;
The data that the first terminal sends are received, and by under target store path described in data Cun Chudao for receiving.
2. method according to claim 1, it is characterised in that the mark according to the application program determines that target is deposited Storage path, including:
Traversal applications program listing is determining whether there is the mark of the application program;
When there is the mark of the application program, the attribute of the application program is read to determine the installation of the application program Path, and the installation path is set to into the target store path;
When there is no the mark of the application program, preset path being set to into target store path, and institute is sent to user State the still uninstalled prompting of application program.
3. method according to claim 2, it is characterised in that described that target described in data Cun Chudao for receiving is stored Under path, including:
The mark of the data that acquisition is received;
Judge the mark with the presence or absence of the data for receiving under the target store path;
If the mark of the data received described in existing under the target store path, by the mark of the data for receiving Stored after being changed according to predetermined manner.
4. method according to claim 3, it is characterised in that before the data that the reception first terminal sends, Methods described also includes:
Obtain current internetwork connection mode;
Flow threshold is determined according to the current internetwork connection mode;
Judge the data waiting for transmission whether more than the flow threshold;
When the data waiting for transmission are more than the flow threshold, user is pointed out to carry out the switching of internetwork connection mode.
5. according to the arbitrary described method of Claims 1-4, it is characterised in that the number that the reception first terminal sends According to before, methods described also includes:
Authentication request is sent to the first terminal;
Receive the digital signature of the first terminal feedback;
The digital signature is verified using default public key;
When the authentication succeeds, the data that first terminal sends are received.
6. a kind of terminal, it is characterised in that the terminal includes:
Receiving unit, for receiving the data transfer request of first terminal transmission, the data transfer request includes to be transmitted The mark of the corresponding application program of data;
Determining unit, for determining target store path according to the mark of the application program;
The receiving unit, for receiving the data that the first terminal sends;
Memory element, for by under target store path described in data Cun Chudao for receiving.
7. terminal according to claim 6, it is characterised in that the determining unit includes:
Traversal subelement, for traversal applications program listing determining whether there is the mark of the application program;
Subelement is read, for the attribute of the application program when there is the mark of the application program, being read to determine State the installation path of application program;
Subelement is set, for the installation path is set to the target store path;
The setting subelement, is additionally operable to, when there is no the mark of the application program, preset path is set to target and is deposited Storage path, and the still uninstalled prompting of the application program is sent to user.
8. terminal according to claim 7, it is characterised in that the memory element includes:
Subelement is obtained, for obtaining the mark of the data for receiving;
Judgment sub-unit, for judging the mark under the target store path with the presence or absence of the data for receiving;
Storing sub-units, if the mark of the data for receiving described in presence under the target store path, connects described The mark of the data for receiving is stored after being changed according to predetermined manner.
9. terminal according to claim 8, it is characterised in that the terminal also includes acquiring unit, judging unit and carries Show unit;
The acquiring unit, for obtaining current internetwork connection mode;
The determining unit, for determining flow threshold according to the current internetwork connection mode;
The judging unit, for judging the data waiting for transmission whether more than the flow threshold;
The Tip element, for when the data waiting for transmission are more than the flow threshold, pointing out user to carry out network company Connect the switching of mode.
10. according to the arbitrary described terminal of claim 6 to 9, it is characterised in that the terminal also includes transmitting element and checking Unit;
The transmitting element, for sending authentication request to the first terminal;
The receiving unit, for receiving the digital signature of the first terminal feedback;
The authentication unit, for utilizing default public key to verify the digital signature;
The receiving unit, for when the authentication succeeds, receiving the data that first terminal sends.
CN201610949433.0A 2016-11-02 2016-11-02 A kind of method and terminal of Data Migration Active CN106572163B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610949433.0A CN106572163B (en) 2016-11-02 2016-11-02 A kind of method and terminal of Data Migration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610949433.0A CN106572163B (en) 2016-11-02 2016-11-02 A kind of method and terminal of Data Migration

Publications (2)

Publication Number Publication Date
CN106572163A true CN106572163A (en) 2017-04-19
CN106572163B CN106572163B (en) 2019-08-27

Family

ID=58534919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610949433.0A Active CN106572163B (en) 2016-11-02 2016-11-02 A kind of method and terminal of Data Migration

Country Status (1)

Country Link
CN (1) CN106572163B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022206676A1 (en) * 2021-03-31 2022-10-06 华为技术有限公司 Function transfer method and apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120303913A1 (en) * 2011-05-26 2012-11-29 International Business Machines Corporation Transparent file system migration to a new physical location
CN104683409A (en) * 2013-11-29 2015-06-03 华为终端有限公司 Method for sharing applications between terminals and terminal
CN104965884A (en) * 2015-06-15 2015-10-07 广东欧珀移动通信有限公司 File collection method and related terminal
CN105100195A (en) * 2015-05-29 2015-11-25 努比亚技术有限公司 Data transmission method and device thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120303913A1 (en) * 2011-05-26 2012-11-29 International Business Machines Corporation Transparent file system migration to a new physical location
CN104683409A (en) * 2013-11-29 2015-06-03 华为终端有限公司 Method for sharing applications between terminals and terminal
CN105100195A (en) * 2015-05-29 2015-11-25 努比亚技术有限公司 Data transmission method and device thereof
CN104965884A (en) * 2015-06-15 2015-10-07 广东欧珀移动通信有限公司 File collection method and related terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022206676A1 (en) * 2021-03-31 2022-10-06 华为技术有限公司 Function transfer method and apparatus

Also Published As

Publication number Publication date
CN106572163B (en) 2019-08-27

Similar Documents

Publication Publication Date Title
CN107219976A (en) Application display method and related product
CN107734616A (en) Closing application program method, apparatus, storage medium and electronic equipment
CN106096361A (en) A kind of unlocked by fingerprint method and mobile terminal
CN108494957A (en) Antenna switching method, device, storage medium and electronic equipment
CN106155557B (en) A kind of virtual key display methods and mobile terminal
CN106412033A (en) Data migration method and terminal
CN103631580B (en) Method and device for generating theme icon
CN106446111A (en) Data migration method and terminal
CN106714333A (en) Data migration method and terminal
CN107422962A (en) A kind of bright screen control method and equipment
CN104954159A (en) Network information statistics method and device
CN106200970A (en) A kind of method of split screen display available and terminal
CN107153576A (en) The distribution method and terminal device of a kind of memory source
CN105912919A (en) Fingerprint unlocking method and terminal
CN106469028A (en) A kind of data migration method and mobile terminal
CN106569916A (en) Data backup method and mobile terminal
CN106569815A (en) Message display method and terminal
CN106453571A (en) Data migration method and terminal
CN103631592B (en) A kind of configuration, call method, device and equipment that shows resource
CN106254488A (en) Method, the method for broadcasting and the relevant apparatus that screen locking picture pushes
CN106487878A (en) A kind of method of Data Migration and terminal
CN106951223A (en) Method and terminal that a kind of desktop is shown
CN106792434A (en) A kind of focus method for building up and terminal device
CN106657214A (en) Data migration method and terminal
CN106374988A (en) Downlink inter-band carrier aggregation configuration method and apparatus, and terminal

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: OPPO Guangdong Mobile Communications Co., Ltd.

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

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

GR01 Patent grant
GR01 Patent grant