CN106572163B - A kind of method and terminal of Data Migration - Google Patents
A kind of method and terminal of Data Migration Download PDFInfo
- Publication number
- CN106572163B CN106572163B CN201610949433.0A CN201610949433A CN106572163B CN 106572163 B CN106572163 B CN 106572163B CN 201610949433 A CN201610949433 A CN 201610949433A CN 106572163 B CN106572163 B CN 106572163B
- Authority
- CN
- China
- Prior art keywords
- data
- terminal
- application program
- mark
- path
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/563—Data 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 present invention provides a kind of method of Data Migration and terminals.It include the mark of the corresponding application program of data to be transmitted in the data transfer request the described method includes: receiving the data transfer request that first terminal is sent;Target store path is determined according to the mark of the application program;The data that the first terminal is sent are received, and will be under the data that received storage to the target store path.To known to, by implementing technical solution provided by the invention, the data of first terminal application program can be transmitted directly under the path of the corresponding application program of second terminal, to allow the data for the application program being migrated directly to use in second terminal, and then complete data precision transmission.
Description
Technical field
The present invention relates to field of terminal, and in particular to the method and terminal of a kind of Data Migration.
Background technique
It is universal with terminal (such as the electronic equipments such as smart phone, wearable device, tablet computer), terminal gradually at
Indispensable a part in for people's lives, so that no matter go to everywhere can carried terminal by people.
But with the development of science and technology, terminal update speed quickly.When user starts with a new terminal, often for
It is convenient to use, it is necessary to which that the data inside old terminal imported into new terminal.
Summary of the invention
The embodiment of the invention provides a kind of method of Data Migration and terminals, 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, to make the data for the application program being migrated can
Directly to be used in second terminal, to promote the transport efficiency of terminal data.
First aspect of the embodiment of the present invention discloses a kind of method of Data Migration, which comprises
The data transfer request that first terminal is sent is received, includes that data to be transmitted is corresponding in the data transfer request
The mark of application program;
Target store path is determined according to the mark of the application program;
The data that the first terminal is sent are received, and will be under the data that received storage to the target store path.
Second aspect of the present invention discloses a kind of terminal, and the terminal includes:
Receiving unit, include for receiving the data transfer request of first terminal transmission, in the data transfer request to
Transmit the mark of the corresponding application program of data;
Determination unit, for determining target store path according to the mark of the application program;
The receiving unit, the data sent for receiving the first terminal;
Storage unit, for storing the data received under the target store path.
Third aspect present invention discloses a kind of terminal, and the terminal includes:
It is stored with the memory of executable program code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, executes 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 is sent, the data transfer request are received
In include the corresponding application program of data to be transmitted mark;Target store path is determined according to the mark of the application program;
The data that the first terminal is sent are received, and will be under the data that received storage to the target store path.It is hereby understood that
By implementing technical solution provided by the invention, the data of first terminal application program can be transmitted directly to second terminal pair
Under the path for the application program answered, thus making the data for the application program being migrated directly in second terminal
With, and then complete data precision transmission.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field
For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of the method for Data Migration provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of the method for another Data Migration provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of the method for another Data Migration provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another terminal provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another terminal provided in an embodiment of the present invention;
Fig. 7 is a kind of entity apparatus structural schematic diagram of terminal provided in an embodiment of the present invention;
Fig. 8 is a kind of entity apparatus structural schematic diagram of mobile phone provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the invention provides a kind of method of Data Migration and terminals, 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, to make the data for the application program being migrated can
Directly to use in second terminal, and then complete data precision transmission.
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical solution in the embodiment of the present invention are explicitly described, it is clear that described embodiment is the present invention one
The embodiment divided, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, should fall within the scope of the present invention.
The term " first " that occurs in description of the invention, claims and attached drawing, " second " and " third " etc. are to use
In the different object of difference, and it is not intended to describe specific sequence.In addition, term " includes " and " having " and they are any
Deformation, it is intended that cover and non-exclusive include.Such as contain the process, method, system, product of a series of steps or units
Or equipment is not limited to listed step or unit, but optionally further comprising the step of not listing or unit, or can
Selection of land further includes the other step or units intrinsic for these process, methods, product or equipment.
A kind of method of Data Migration is disclosed in one embodiment of the invention, which comprises receives first
The data transfer request that terminal is sent includes the mark of the corresponding application program of data to be transmitted in the data transfer request;
Target store path is determined according to the mark of the application program;The data that the first terminal is sent are received, and will be received
Data storage under the target store path.
Referring to Fig. 1, Fig. 1 is a kind of method of Data Migration provided by one embodiment of the present invention.Wherein, such as Fig. 1 institute
Show, a kind of method for Data Migration that one embodiment of the present of invention provides includes the following contents:
S101, the data transfer request that first terminal is sent is received, includes data to be transmitted in the data transfer request
The mark of corresponding application program;
Wherein, it should be pointed out that the executing subject of this method is second terminal.Second terminal includes but is not limited to intelligence
Mobile phone, tablet computer, computer and wearable device etc..First terminal includes but is not limited to smart phone, tablet computer, meter
Calculation machine and wearable device etc..
It is understood that first terminal and second terminal can establish connection by modes such as Wi-Fi, bluetooths.It establishes
After connection, first terminal sends data transfer request to second terminal.
Wherein, the mark of the corresponding application program of data to be transmitted may include the corresponding application program of data to be transmitted
Title.For example, the data of wechat are transmitted, then will include " wechat " in the data transfer request.For example, it
The data for transmitting camera, then will include " camera " in the data transfer request.For example, transmission communication to record
Data, then " address list " will be wrapped 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, comprising: traversal applications program column
Table is to determine whether there is the mark of the application program;When there are the mark of the application program, read described using journey
The attribute of sequence sets the target store path for the installation path with the installation path of the determination application program;
When the mark of the application program is not present, target store path is set by preset path, and answer to described in user's transmission
With the still uninstalled prompt of program.
It is understood that being transmitted after second terminal receives the data transfer request that first terminal is sent from the data
The mark of the corresponding application program of request data to be transmitted, for example the mark of the corresponding application program of the data to be transmitted is
Wechat, then second terminal will first judge whether to be mounted with this application of wechat, it, can if being mounted with this application of wechat
With the position (being usually defaulted as installation path) for reading the attribute of wechat to determine the corresponding file of wechat;If be fitted without
This path of wechat then setting target store path for preset path, and sends the application program to user and not yet pacifies
The prompt of dress.Wherein, preset path can be default path, be also possible to the path of user's selection.
S103, the data that the first terminal is sent are received, and the data received storage is stored into road to the target
Under diameter.
Specifically, under the storage to the target store path by the data received, comprising: obtain the number received
According to mark;Judge under the target store path with the presence or absence of the mark of the data received;If the target storage
There is the mark of the data received under path, then becomes the mark of the data received according to predetermined manner
It is stored more afterwards;If being received there is no the mark of the data received by described under the target store path
Data stored.
For example, as soon as such as receive a file, then go back this document folder title, if destination path is
The installation path of wechat, that, which is judged as whether there is under the installation path of lower wechat, presss from both sides file of the same name with this document, if
In the presence of if, stored after just the title of the file received is modified (such as the title of the file received
It is " landscape ", " landscape 1 " can be revised as and stored);In addition, if being to be not present and this document under the installation path of wechat
File of the same name is pressed from both sides, then is stored the data received.
In addition, before receiving the data that the first terminal is sent, needing to judge second to save flow to user
The internetwork connection mode of terminal, it is specific: to obtain current internetwork connection mode;It is true according to the current internetwork connection mode
Constant flow threshold value;Judge whether the data to be transmitted are greater than the flow threshold;When the data to be transmitted are greater than institute
When stating flow threshold, user is prompted to carry out the switching of internetwork connection mode.Wherein, it should be pointed out that common network connection
Mode includes Wi-Fi connection, mobile data cube computation etc..Connected if it is in a manner of mobile data, then flow threshold generally compared with
It is small, such as 300M or 500M, herein with no restrictions.
Optionally, it should be pointed out that before receiving the data that the first terminal is sent, need to first terminal
Identity is verified, specific: Xiang Suoshu first terminal sends authentication request;Receive the number of the first terminal feedback
Signature;The digital signature is verified using default public key;When the authentication succeeds, the data that first terminal is sent are received.
Wherein, which includes but is not limited to text, picture, audio-video etc..
As can be seen that receiving the data transfer request that first terminal is sent, the data in the scheme of the embodiment of the present invention
It include the mark of the corresponding application program of data to be transmitted in transmission request;Determine that target is deposited according to the mark of the application program
Store up path;The data that the first terminal is sent are received, and will be under the data that received storage to the target store path.From
And it is found that by implementing technical solution provided by the invention, the data of first terminal application program can be transmitted directly to the
Under the path of the corresponding application program of two terminals, thus allow the data for the application program being migrated in second terminal
It directly uses, and then completes data precision transmission.
Referring to Fig. 2, Fig. 2 is a kind of method of Data Migration provided by one embodiment of the present invention.Wherein, such as Fig. 2 institute
Show, a kind of method for Data Migration that one embodiment of the present of invention provides includes the following contents:
S201, the data transfer request that first terminal is sent is received, includes data to be transmitted in the data transfer request
The mark of corresponding application program;
Wherein, it should be pointed out that the executing subject of this method is second terminal.Second terminal includes but is not limited to intelligence
Mobile phone, tablet computer, computer and wearable device etc..First terminal includes but is not limited to smart phone, tablet computer, meter
Calculation machine and wearable device etc..
It is understood that first terminal and second terminal can establish connection by modes such as Wi-Fi, bluetooths.It establishes
After connection, first terminal sends data transfer request to second terminal.
Wherein, the mark of the corresponding application program of data to be transmitted may include the corresponding application program of data to be transmitted
Title.For example, the data of wechat are transmitted, then will include " wechat " in the data transfer request.For example, it
The data for transmitting camera, then will include " camera " in the data transfer request.For example, transmission communication to record
Data, then " address list " will be wrapped 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, comprising: traversal applications program column
Table is to determine whether there is the mark of the application program;When there are the mark of the application program, read described using journey
The attribute of sequence sets the target store path for the installation path with the installation path of the determination application program;
When the mark of the application program is not present, target store path is set by preset path, and answer to described in user's transmission
With the still uninstalled prompt of program.
It is understood that being transmitted after second terminal receives the data transfer request that first terminal is sent from the data
The mark of the corresponding application program of request data to be transmitted, for example the mark of the corresponding application program of the data to be transmitted is
Wechat, then second terminal will first judge whether to be mounted with this application of wechat, it, can if being mounted with this application of wechat
With the position (being usually defaulted as installation path) for reading the attribute of wechat to determine the corresponding file of wechat;If be fitted without
This path of wechat then setting target store path for preset path, and sends the application program to user and not yet pacifies
The prompt of dress.Wherein, preset path can be default path, be also possible to the path of user's selection.
Optionally, when the agreement for receiving user's input receives the instruction of data transmission, Xiang Suoshu first terminal is sent
Agree to receive the message of data;
It is understood that can be issued the user with after second terminal receives the data transfer request that first terminal is sent
Prompt, to prompt the user whether to receive transmission request.
Wherein, the mode of prompting can be display dialog box, voice prompting, vibration prompting etc., herein with no restrictions.
S203, current internetwork connection mode is obtained;
Wherein, it should be pointed out 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, it is connected if it is in a manner of mobile data, then flow threshold is typically small, such as 300M or 500M,
This is with no restrictions.
S205, judge whether the data to be transmitted are greater than the flow threshold;
S206, when the data to be transmitted are greater than the flow threshold, prompt user to carry out internetwork connection mode
Switching.
S207, the data that the first terminal is sent are received, and the data received storage is stored into road to the target
Under diameter.
Specifically, under the storage to the target store path by the data received, comprising: obtain the number received
According to mark;Judge under the target store path with the presence or absence of the mark of the data received;If the target storage
There is the mark of the data received under path, then becomes the mark of the data received according to predetermined manner
It is stored more afterwards;If being received there is no the mark of the data received by described under the target store path
Data stored.
For example, as soon as such as receive a file, then go back this document folder title, if destination path is
The installation path of wechat, that, which is judged as whether there is under the installation path of lower wechat, presss from both sides file of the same name with this document, if
In the presence of if, stored after just the title of the file received is modified (such as the title of the file received
It is " landscape ", " landscape 1 " can be revised as and stored);In addition, if being to be not present and this document under the installation path of wechat
File of the same name is pressed from both sides, then is stored the data received.
Flow is determined according to the current internetwork connection mode as can be seen that having expanded in the scheme of the embodiment of the present invention
Threshold value, and the step of whether data to be transmitted are greater than the flow threshold judged, to guarantee user not knowing again
The mobile flow that user is wasted in the case where feelings, to promote user experience.
Referring to Fig. 3, Fig. 3 is a kind of method of Data Migration provided by one embodiment of the present invention.Wherein, such as Fig. 3 institute
Show, a kind of method for Data Migration that one embodiment of the present of invention provides includes the following contents:
S301, the data transfer request that first terminal is sent is received, includes data to be transmitted in the data transfer request
The mark of corresponding application program;
Wherein, it should be pointed out that the executing subject of this method is second terminal.Second terminal includes but is not limited to intelligence
Mobile phone, tablet computer, computer and wearable device etc..First terminal includes but is not limited to smart phone, tablet computer, meter
Calculation machine and wearable device etc..
It is understood that first terminal and second terminal can establish connection by modes such as Wi-Fi, bluetooths.It establishes
After connection, first terminal sends data transfer request to second terminal.
Wherein, the mark of the corresponding application program of data to be transmitted may include the corresponding application program of data to be transmitted
Title.For example, the data of wechat are transmitted, then will include " wechat " in the data transfer request.For example, it
The data for transmitting camera, then will include " camera " in the data transfer request.For example, transmission communication to record
Data, then " address list " will be wrapped 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, comprising: traversal applications program column
Table is to determine whether there is the mark of the application program;When there are the mark of the application program, read described using journey
The attribute of sequence sets the target store path for the installation path with the installation path of the determination application program;
When the mark of the application program is not present, target store path is set by preset path, and answer to described in user's transmission
With the still uninstalled prompt of program.
It is understood that being transmitted after second terminal receives the data transfer request that first terminal is sent from the data
The mark of the corresponding application program of request data to be transmitted, for example the mark of the corresponding application program of the data to be transmitted is
Wechat, then second terminal will first judge whether to be mounted with this application of wechat, it, can if being mounted with this application of wechat
With the position (being usually defaulted as installation path) for reading the attribute of wechat to determine the corresponding file of wechat;If be fitted without
This path of wechat then setting target store path for preset path, and sends the application program to user and not yet pacifies
The prompt of dress.Wherein, preset path can be default path, be also possible to the path of user's selection.
Optionally, when the agreement for receiving user's input receives the instruction of data transmission, Xiang Suoshu first terminal is sent
Agree to receive the message of data;
It is understood that can be issued the user with after second terminal receives the data transfer request that first terminal is sent
Prompt, to prompt the user whether to receive transmission request.
Wherein, the mode of prompting can be display dialog box, voice prompting, vibration prompting etc., herein with no restrictions.
S303, Xiang Suoshu first terminal send authentication request;
S304, the digital signature for receiving the first terminal feedback;
S305, the digital signature is verified using default public key;
Wherein, the private key for being digitally signed and default public key are matched.
S306, when the authentication succeeds, will be under the data that received storage to the target store path.
Specifically, under the storage to the target store path by the data received, comprising: obtain the number received
According to mark;Judge under the target store path with the presence or absence of the mark of the data received;If the target storage
There is the mark of the data received under path, then becomes the mark of the data received according to predetermined manner
It is stored more afterwards;If being received there is no the mark of the data received by described under the target store path
Data stored.
For example, as soon as such as receive a file, then go back this document folder title, if destination path is
The installation path of wechat, that, which is judged as whether there is under the installation path of lower wechat, presss from both sides file of the same name with this document, if
In the presence of if, stored after just the title of the file received is modified (such as the title of the file received
It is " landscape ", " landscape 1 " can be revised as and stored);In addition, if being to be not present and this document under the installation path of wechat
File of the same name is pressed from both sides, then is stored the data received.
As can be seen that being carried out before having expanded the transmission of reception data in the scheme of the embodiment of the present invention to first terminal identity
The step of verifying, so as to guarantee that the data that user receives come from trusted terminal.
Referring to Fig. 4, Fig. 4 is a kind of structural schematic diagram for terminal that one embodiment of the present of invention provides.Wherein, as schemed
Shown in 4, a kind of terminal 400 of one embodiment of the present of invention offer, wherein the terminal can be as smart phone, plate electricity
The electronic equipments such as brain, intelligent wearable equipment.The terminal 400 includes receiving unit 401, determination unit 402 and storage unit
403。
Receiving unit 401 includes for receiving the data transfer request of first terminal transmission, in the data transfer request
The mark of the corresponding application program of data to be transmitted;
Determination unit 402, for determining target store path according to the mark of the application program;
Receiving unit 401, the data sent for receiving the first terminal;
Storage unit 403, for storing the data received under the target store path.
Wherein, receiving unit 401, determination unit 402 and storage unit 403 can be used for executing step in embodiment 1
Method described in S101 to S103 specifically describes description of the detailed in Example 1 to the method, and details are not described herein.
Referring to Fig. 5, Fig. 5 is a kind of structural schematic diagram for terminal that one embodiment of the present of invention provides.Wherein, as schemed
Shown in 5, another terminal 500 of one embodiment of the present of invention offer, wherein the terminal can be as smart phone, plate
The electronic equipments such as computer, intelligent wearable equipment.The terminal 500 includes receiving unit 501, determination unit 502, storage unit
503, acquiring unit 504, judging unit 505 and prompt unit 506.
Receiving unit 501 includes for receiving the data transfer request of first terminal transmission, in the data transfer request
The mark of the corresponding application program of data to be transmitted;
Determination unit 502, for determining target store path according to the mark of the application program;
Specifically, determination unit 502 includes: traversal subelement, for traversal applications program listing to determine whether there is
The mark of the application program;Reading subunit, for reading the application program when there are the mark of the application program
Attribute with the installation path of the determination application program;Subelement is set, for setting the mesh for the installation path
Mark store path;The setting subelement is also used to set preset path to when the mark of the application program is not present
Target store path, and the still uninstalled prompt of application program is sent to user.
Acquiring unit 504, for obtaining current internetwork connection mode;
Determination unit 502 is also used to determine flow threshold according to the current internetwork connection mode;
Judging unit 505, for judging whether the data to be transmitted are greater than the flow threshold;
Prompt unit 506, for prompting user to carry out network when the data to be transmitted are greater than the flow threshold
The switching of connection type.
Receiving unit 501, the data sent for receiving the first terminal;
Storage unit 503, for storing the data received under the target store path.
Specifically, storage unit 503 includes: acquisition subelement, for obtaining the mark of the data received;Judgement is single
Member, for judging under the target store path with the presence or absence of the mark of the data received;Storing sub-units, if for
There is the mark of the data received under the target store path, then by the mark of the data received according to pre-
If mode is stored after changing;The storing sub-units, if being also used under the target store path, there is no described
The mark of the data received then stores the data received.
Wherein, receiving unit 501, determination unit 502, storage unit 503, acquiring unit 504, judging unit 505 and
Prompt unit 506 can be used for executing method described in step S201 to S207 in embodiment 2, specifically describe detailed in Example 2
Description to the method, details are not described herein.
Referring to Fig. 6, Fig. 6 is a kind of structural schematic diagram for terminal that one embodiment of the present of invention provides.Wherein, as schemed
Shown in 6, another terminal 600 of one embodiment of the present of invention offer, wherein the terminal can be as smart phone, plate
The electronic equipments such as computer, intelligent wearable equipment.The terminal 600 includes receiving unit 601, determination unit 602, transmission unit
603, storage unit 604 and authentication unit 605.
Receiving unit 601 includes for receiving the data transfer request of first terminal transmission, in the data transfer request
The mark of the corresponding application program of data to be transmitted;
Determination unit 602, for determining target store path according to the mark of the application program;
Specifically, determination unit 602 includes: traversal subelement, for traversal applications program listing to determine whether there is
The mark of the application program;Reading subunit, for reading the application program when there are the mark of the application program
Attribute with the installation path of the determination application program;Subelement is set, for setting the mesh for the installation path
Mark store path;The setting subelement is also used to set preset path to when the mark of the application program is not present
Target store path, and the still uninstalled prompt of application program is sent to user.
Transmission unit 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 being verified using default public key to the digital signature;
Receiving unit 601, for when the authentication succeeds, receiving the data that first terminal is sent.
Storage unit 604, for storing the data received under the target store path.
Specifically, storage unit 604 includes: acquisition subelement, for obtaining the mark of the data received;Judgement is single
Member, for judging under the target store path with the presence or absence of the mark of the data received;Storing sub-units, if for
There is the mark of the data received under the target store path, then by the mark of the data received according to pre-
If mode is stored after changing;The storing sub-units, if being also used under the target store path, there is no described
The mark of the data received then stores the data received.
Wherein, receiving unit 601, determination unit 602, transmission unit 603, storage unit 604 and authentication unit 605 can
To specifically describe detailed in Example 3 and be retouched to the method for executing method described in step S301 to S306 in embodiment 3
It states, details are not described herein.
Referring to Fig. 7, in another embodiment of the present invention, providing a kind of second terminal.The second terminal 700 is wrapped
Include CPU701, memory 702, bus 703.Wherein, which can be smart phone, tablet computer, intelligent wearable device
Deng the electronic equipment with call function.
Wherein, CPU701 executes the program being stored in advance in memory 702, which specifically includes:
The data transfer request that first terminal is sent is received, includes that data to be transmitted is corresponding in the data transfer request
The mark of application program;
Target store path is determined according to the mark of the application program;
The data that the first terminal is sent are received, and will be under the data that received storage to the target store path.
Optionally, the mark according to the application program determines target store path, comprising:
Traversal applications program listing is to determine whether there is the mark of the application program;
When there are the mark of the application program, the attribute of the application program is read with the determination application program
Installation path, and the target store path is set by the installation path.
Optionally, under the storage to the target store path by the data received, comprising:
Obtain the mark of the data received;
Judge under the target store path with the presence or absence of the mark of the data received;
If there is the mark of the data received under the target store path, by the data received
Mark is stored after changing according to predetermined manner;
If there is no the marks of the data received under the target store path, by the data received
It is stored.
Optionally, before the data for receiving the first terminal transmission, the implementation procedure further include:
Obtain current internetwork connection mode;
Flow threshold is determined according to the current internetwork connection mode;
Judge whether the data to be transmitted are greater than the flow threshold;
When the data to be transmitted are greater than the flow threshold, user is prompted to carry out the switching of internetwork connection mode.
Optionally, before the data for receiving the first terminal transmission, the implementation procedure further include:
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 is sent are received.
In the scheme of the embodiment of the present invention, the data transfer request that first terminal is sent, the data transfer request are received
In include the corresponding application program of data to be transmitted mark;Target store path is determined according to the mark of the application program;
The data that the first terminal is sent are received, and will be under the data that received storage to the target store path.It is hereby understood that
By implementing technical solution provided by the invention, the data of first terminal application program can be transmitted directly to second terminal pair
Under the path for the application program answered, thus making the data for the application program being migrated directly in second terminal
With, and then complete data precision transmission.
Referring to Fig. 8, Fig. 8 is the frame of the part-structure for the relevant mobile phone of terminal that one embodiment of the present of invention provides
Figure.With reference to Fig. 8, mobile phone includes: radio frequency (Radio Frequency, RF) circuit 810, memory 820, input unit 830, shows
Show unit 840, sensor 850, voicefrequency circuit 860, Wireless Fidelity (Wireless Fidelity, WiFi) module 870, processing
The components such as device 880 and power supply 890.It will be understood by those skilled in the art that handset structure shown in Fig. 8 is not constituted pair
The restriction of mobile phone may include perhaps combining certain components or different component cloth than illustrating more or fewer components
It sets.
It is specifically introduced below with reference to each component parts of the Fig. 8 to mobile phone:
RF circuit 810 can be used for sending and receiving for information.In general, RF circuit 810 includes but is not limited to antenna, at least one
A amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition,
RF circuit 810 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless 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 it is point more
Location (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division
Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), Email, short message service
(Short Messaging Service, SMS) etc..
Memory 820 can be used for storing software program and module, and processor 880 is stored in memory 820 by operation
Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 820 can mainly include
Storing program area and storage data area, wherein storing program area can application journey needed for storage program area, at least one function
Sequence (such as Data Migration function, touch control operation detection function etc.) etc.;Storage data area can be stored is created according to using for mobile phone
Data (such as store path table data etc.) built etc..In addition, memory 820 may include high-speed random access memory, also
It may include nonvolatile memory, a for example, at least disk memory, flush memory device or the storage of other volatile solid-states
Device.
Input unit 830 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with
And the related key signals input of function control.Specifically, input unit 830 may include that fingerprint mould group 831 and other inputs are set
Standby 832.Fingerprint mould group 831 can acquire the finger print data of user on it.Optionally, fingerprint mould group 831 may include that optical profile type refers to
Line module, capacitance type fingerprint module and RF type fingerprint module.By taking fingerprint mould group 831 is capacitance type fingerprint mould group as an example, tool
Body includes induction electrode (n1 abnormal induction electrode and n2 normal induction electrode) and the signal that connect with the induction electrode
Processing circuit (such as amplifying circuit, noise suppression circuit, analog-to-digital conversion circuit, etc.).In addition to fingerprint mould group 831, input unit
830 can also include other input equipments 832.Specifically, other input equipments 832 can include but is not limited to physical keyboard,
One of function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Display unit 840 can be used for showing information input by user or be supplied to user information and mobile phone it is various
Menu.Display unit 840 may include display screen 841, optionally, can use liquid crystal display (Liquid Crystal
Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure
Display screen 841.Although in fig. 8, fingerprint mould group 831 and display screen 841 are to realize the defeated of mobile phone as two independent components
Enter and input function, but in some embodiments it is possible to it is fingerprint mould group 831 and display screen 841 is integrated and realize mobile phone
Output and input 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 sensor, wherein ambient light sensor can be according to ambient light
Light and shade adjust the brightness of display screen 841, proximity sensor can when mobile phone is moved in one's ear, close display screen 841 and/or
Backlight.As a kind of motion sensor, accelerometer sensor can detect all directions on (generally three axis) acceleration it is big
It is small, can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (such as horizontal/vertical screen switching, phase
Close game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as mobile phone
The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 860, loudspeaker 881, microphone 882 can provide the audio interface between user and mobile phone.Audio-frequency electric
Electric signal after the audio data received conversion can be transferred to loudspeaker 881, be converted to sound by loudspeaker 881 by road 860
Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 882, is turned after being received by voicefrequency circuit 860
It is changed to audio data, then by after the processing of audio data output processor 880, such as another mobile phone is sent to through RF circuit 810,
Or audio data is exported to memory 820 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 870
Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 8 is shown
WiFi module 870, but it is understood that, and it is not belonging to must be configured into for mobile phone, it can according to need do not changing completely
Become in the range of the essence of invention and omits.
Processor 880 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to
It crosses operation or executes the software program and/or module being stored in memory 820, and call and be stored in memory 820
Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor 880 can wrap
Include one or more processing units;Preferably, processor 880 can integrate application processor and modem processor, wherein answer
With the main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication.
It is understood that above-mentioned modem processor can not also be integrated into processor 880.
Mobile phone further 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 and processor 880 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system
Etc. functions.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
In earlier figures 1, Fig. 2 and embodiment shown in Fig. 3, each step method process can be based on the structure reality of the mobile phone
It is existing.
In earlier figures 4, Fig. 5 and embodiment shown in fig. 6, each unit function can be realized based on the structure of the mobile phone.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way
It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of the unit, it is only a kind of
Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit,
It can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code
Medium.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before
Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the range for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of method of inter-terminal data migration, which is characterized in that the described method includes:
The data transfer request that first terminal is sent is received, includes the corresponding application of data to be transmitted in the data transfer request
The mark of program, wherein the data to be transmitted is at least one of text, picture and audio-video;
Determine whether itself is equipped with the application program according to the mark of the application program;
If there is installing the application program, then target store path is set by the installation path of the application program;
If being fitted without the application program, target store path is set by a preset path;
The data that the first terminal is sent are received, and will be under the data that received storage to the target store path.
2. the method according to claim 1, wherein the mark according to the application program determines that target is deposited
Store up path, comprising:
Traversal applications program listing is to determine whether there is the mark of the application program;
When there are the mark of the application program, the attribute of the application program is read with the installation of the determination application program
Path, and the target store path is set by the installation path;
When the mark of the application program is not present, target store path is set by preset path, and send institute to user
State the still uninstalled prompt of application program.
3. according to the method described in claim 2, it is characterized in that, described store the data received storage to the target
Under path, comprising:
Obtain the mark of the data received;
Judge under the target store path with the presence or absence of the mark of the data received;
If there is the mark of the data received under the target store path, by the mark of the data received
It is stored after being changed according to predetermined manner.
4. according to the method described in claim 3, it is characterized in that, it is described receive the data that the first terminal is sent before,
The method also includes:
Obtain current internetwork connection mode;
Flow threshold is determined according to the current internetwork connection mode;
Judge whether the data to be transmitted are greater than the flow threshold;
When the data to be transmitted are greater than the flow threshold, user is prompted to carry out the switching of internetwork connection mode.
5. method according to any one of claims 1 to 4, which is characterized in that the number for receiving the first terminal and sending
According to before, the method 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 is sent are received.
6. a kind of terminal, which is characterized in that the terminal includes:
Receiving unit includes to be transmitted in the data transfer request for receiving the data transfer request of first terminal transmission
The mark of the corresponding application program of data, wherein the data to be transmitted is at least one of text, picture and audio-video;
Determination unit, for determining whether itself is equipped with the application program according to the mark of the application program;If there is
The application program is installed, then sets target store path for the installation path of the application program;If being fitted without institute
Application program is stated, then sets target store path for a preset path;
The receiving unit, the data sent for receiving the first terminal;
Storage unit, for storing the data received under the target store path.
7. terminal according to claim 6, which is characterized in that the determination unit includes:
Subelement is traversed, the mark of the application program is determined whether there is for traversal applications program listing;
Reading subunit, for when there are the mark of the application program, reading the attribute of the application program to determine
State the installation path of application program;
Subelement is set, for setting the target store path for the installation path;
The setting subelement is also used to set target when the mark of the application program is not present for preset path and deposit
Path is stored up, and sends the still uninstalled prompt of application program to user.
8. terminal according to claim 7, which is characterized in that the storage unit includes:
Subelement is obtained, for obtaining the mark of the data received;
Judgment sub-unit, for judging under the target store path with the presence or absence of the mark of the data received;
Storing sub-units, if the mark for there are the data received under the target store path, connects described
The mark of the data received is stored after changing according to predetermined manner.
9. terminal according to claim 8, which is characterized in that the terminal further includes acquiring unit, judging unit and mentions
Show unit;
The acquiring unit, for obtaining current internetwork connection mode;
The determination unit, for determining flow threshold according to the current internetwork connection mode;
The judging unit, for judging whether the data to be transmitted are greater than the flow threshold;
The prompt unit, for prompting user to carry out network company when the data to be transmitted are greater than the flow threshold
Connect the switching of mode.
10. according to any terminal of claim 6 to 9, which is characterized in that the terminal further includes transmission unit and verifying
Unit;
The transmission unit, 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 being verified using default public key to the digital signature;
The receiving unit, for when the authentication succeeds, receiving the data that first terminal is sent.
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 CN106572163A (en) | 2017-04-19 |
CN106572163B true 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) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115145474A (en) * | 2021-03-31 | 2022-10-04 | 华为技术有限公司 | Function migration method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9003149B2 (en) * | 2011-05-26 | 2015-04-07 | International Business Machines Corporation | Transparent file system migration to a new physical location |
CN104683409B (en) * | 2013-11-29 | 2019-03-01 | 华为终端(东莞)有限公司 | The method and terminal of terminal room Application share |
-
2016
- 2016-11-02 CN CN201610949433.0A patent/CN106572163B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN106572163A (en) | 2017-04-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10069818B2 (en) | Method, system, device, and terminal for network initialization of multimedia playback device | |
US11023296B2 (en) | Method for managing multiple operating systems in a terminal | |
CN104142868B (en) | Establish the method and device of connection | |
CN106681860B (en) | A kind of data back up method and data backup device | |
CN107040610B (en) | Method of data synchronization, device, storage medium, terminal and server | |
CN108834132B (en) | Data transmission method and equipment and related medium product | |
CN106534288B (en) | A kind of data transmission method and mobile terminal | |
CN106484326B (en) | A kind of data transmission processing method and mobile terminal | |
CN108932093A (en) | Split screen application switching method, device, storage medium and electronic equipment | |
WO2019011324A1 (en) | Method for determining access method of mobile terminal, storage medium, and mobile terminal | |
CN103631592B (en) | A kind of configuration, call method, device and equipment that shows resource | |
CN107317828B (en) | File downloading method and device | |
CN106487878B (en) | A kind of method and terminal of Data Migration | |
CN104142994A (en) | Data list acquisition method, terminal and system | |
CN104133693A (en) | Installation state detection method, device and terminal | |
CN106453571A (en) | Data migration method and terminal | |
CN106303616B (en) | Play control method, device and terminal | |
CN106572163B (en) | A kind of method and terminal of Data Migration | |
CN106330684B (en) | A kind of method and terminal of synchronizing information | |
CN106817370B (en) | Method and device for transmitting network data | |
CN106254630B (en) | A kind of method and terminal to receive calls | |
CN106506623B (en) | A kind of data transmission method and equipment | |
CN105813013A (en) | Information prompting method, device and system | |
CN109451295A (en) | A kind of method and system obtaining virtual information | |
CN106657584A (en) | Method and device for determining position information of 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 |
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. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |