[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN105491113B - Moving method, device and terminal - Google Patents

Moving method, device and terminal Download PDF

Info

Publication number
CN105491113B
CN105491113B CN201510828666.0A CN201510828666A CN105491113B CN 105491113 B CN105491113 B CN 105491113B CN 201510828666 A CN201510828666 A CN 201510828666A CN 105491113 B CN105491113 B CN 105491113B
Authority
CN
China
Prior art keywords
terminal
file
migrated
storage
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
Application number
CN201510828666.0A
Other languages
Chinese (zh)
Other versions
CN105491113A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510828666.0A priority Critical patent/CN105491113B/en
Publication of CN105491113A publication Critical patent/CN105491113A/en
Application granted granted Critical
Publication of CN105491113B publication Critical patent/CN105491113B/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
    • 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)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the present disclosure provides a kind of moving method, device and terminal, this method comprises: detecting whether to establish between second terminal has communication connection;When establishing between the second terminal has communication connection, the second terminal is received by described and communicates to connect the original storage path of the file to be migrated and the file to be migrated that send in the second terminal;By the file storage to be migrated into the first terminal in the storage region identical with the original storage path of path.The disclosure can not pass through third party device, directly the user file in the old mobile phone of user is moved at the same position of new cell-phone, the file that mobile phone new in this way can use after migration plays effect identical with old mobile phone, so that user still is able to according to new cell-phone accustomed to using before after replacing new cell-phone and finds the associated documents stored in old mobile phone, operating procedure is simple, user-friendly.

Description

Moving method, device and terminal
Technical field
This disclosure relates to technical field of intelligent equipment more particularly to a kind of moving method, device and terminal.
Background technique
Currently since smart phone updates very fast, the frequency that user replaces mobile phone is also correspondinglyd increase, when user is more hand-off After machine, the thing for first having to do be exactly by old mobile phone user data and file etc. move on new cell-phone, user one at present As using cloud is synchronous or modes migrated users data and the file such as PC mobile phone assistant backup.
However in cloud synchronizing process, need to need to log in cloud account before user replaces mobile phone, it will be in old mobile phone User data and file synchronization to cloud, after replacing mobile phone, need to log in cloud account again, from the user in cloud Data and file synchronization are limited the application program and text for being likely present big data quantity by cloud storage space into new cell-phone The situation about can not synchronize of part, synchronizing process is very cumbersome, time-consuming and laborious.
And PC mobile phone assistant backup is then needed with migration by this intermediate equipment of PC, and needs to install on PC corresponding Mobile phone assistant's client, after the completion of all running environment are built, the user data and file for first backing up old mobile phone are into PC, so New cell-phone is linked on PC again afterwards, from PC by user data and file synchronization into new cell-phone, this process is still cumbersome With it is time-consuming.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides a kind of moving method, device and terminal.
According to the first aspect of the embodiments of the present disclosure, a kind of moving method is provided, first terminal is applied to, comprising:
It detects whether to establish between second terminal and has communication connection;
When establishing between the second terminal has communication connection, receives the second terminal and pass through the communication connection The original storage path of the file to be migrated and the file to be migrated sent in the second terminal;
The file to be migrated is stored into the path storage identical with the original storage path into the first terminal In region.
This method that the disclosure provides, can not be by third party device, directly by the user file in the old mobile phone of user It moves at the same position of new cell-phone, the file that mobile phone new in this way can use after migration plays identical with old mobile phone Effect, such as: identical configuration, the setting of identical system, and photo, audio and address list for being stored in same position etc. Deng so that user still is able to store according to new cell-phone accustomed to using before and finding in old mobile phone after replacing new cell-phone Associated documents, operating procedure is simple, user-friendly.
Optionally, described by file storage path and original storage path into the first terminal to be migrated In identical storage region, comprising:
When the first terminal is initializing, the file to be migrated is written in the storage region;
Or;After first terminal initialization is completed, the file to be migrated is stored indirectly to default working area Domain;After the first terminal is restarted, the file to be migrated is moved in the storage region by the default staging area.
This method that the embodiment of the present disclosure provides, can either carry out file migration in new cell-phone no initializtion, also can Temporary file migration again is first carried out after the completion of new cell-phone initialization, operating process is simple, user-friendly.
Optionally, file storage to be migrated path into the first terminal is identical as the original storage path Storage region in include:
Judge whether the storage region is stored with data file;
When the storage region is not stored data file, the file to be migrated is written to the storage region In.
This method that the disclosure provides, can write direct file to be migrated to the new cell-phone of blank, easy to operate, be convenient for User uses.
Optionally, described by file storage path and original storage path into the first terminal to be migrated Identical storage region further include:
When the storage region is stored with data file, the file to be migrated is covered into the data file, so that The file storage to be migrated is into the storage region.
The disclosure provide this method, can in the new cell-phone after replacement when the data file of existing other users, Directly override already present all data files in same storage region using file to be migrated, can be realized new cell-phone with it is old Data file in mobile phone is identical, user-friendly.
Optionally, file storage to be migrated path into the first terminal is identical as the original storage path Storage region further include:
When the storage region is stored with data file, judge the file to be migrated whether with the data file phase Together;
When the file to be migrated and the data file be not identical, the file to be migrated is written to described by execution Step in storage region.
This method that the embodiment of the present disclosure provides can only be synchronized and be stored in storage region there are when data file The different file to be migrated in region is realized and is only migrated to new data, so that the time of Data Migration is reduced, while also saving Save memory space.
It is optionally, described to detect whether that foundation has communication connection between second terminal, comprising:
When the first terminal is initializing, detect whether to be connected by wired mode with the second terminal;
When being connected by data line with the second terminal, determining establish between the second terminal has communication link It connects.
Since first terminal also no initializtion is completed, and then can only be connected by data line with first terminal.So this This method that open embodiment provides, can use the side of detection data line when first terminal is being initialized Formula determines whether first terminal and second terminal have established communication connection.
It is optionally, described to detect whether that foundation has communication connection between second terminal, comprising:
After the completion of first terminal initialization, detect whether through wirelessly or non-wirelessly mode and the second terminal phase Connection;
When being wirelessly connected with the second terminal, determining establish between the second terminal has communication Connection.
This method that the embodiment of the present disclosure provides it is wireless can to can use detection after the completion of first terminal initializes The mode of connection determines whether first terminal and second terminal have established communication connection.
According to the second aspect of the disclosure, a kind of moving method is provided, is applied to second terminal, comprising:
It detects whether to establish between first terminal and has communication connection;
When establishing between the first terminal has communication connection, sends file to be migrated and the file to be migrated exists The first terminal is given in original storage path in the second terminal.
This method that the disclosure provides, second terminal can be by the communication connections between other terminals, directly will be to Migrated file is sent to other side, and while sending file to be migrated, also sends the file to be migrated described second Original storage path in terminal, so that can the file to be migrated be written in same storage area automatically in first terminal, operation Simply, user time conveniently, is saved.
Optionally, the method also includes:
When establishing between the first terminal has communication connection, the operating system identifies of the first terminal are obtained;
Whether the operating system identifies for judging the first terminal are identical as the operating system identifies of the second terminal;
When the operating system identifies of the first terminal are identical as the operating system identifies of the second terminal, institute is executed It states and sends the original storage path of file to be migrated and the file to be migrated in the second terminal to the first terminal The step of.
This method that the disclosure provides, the new cell-phone only after replacement are identical as the old mobile phone operating system before replacement When, Data Migration is just carried out, avoids carrying out system mistake occur when Data Migration between different system mobile phones, is influencing mobile phone just It is often used.
Optionally, the method also includes:
Obtain the account identification in the first terminal;
Whether the account identification for judging the first terminal is identical as the account identification of the second terminal;
When the account identification of the first terminal is identical as the account identification of the second terminal, execute it is described send to The step of first terminal, is given in the original storage path of migrated file and the file to be migrated in the second terminal.
This method that the disclosure provides, the old mobile phone after old mobile phone and replacement only before replacement use same user's account When family, Data Migration is just carried out, by permissions such as setting user accounts, can maliciously will from user mobile phone to avoid illegal person Data Migration is gone out, and the safety of data is improved, furthermore it is also possible to avoid illegal person malice that data are migrated into the hand of user In machine, and then the files such as virus are implanted into mobile phone, influence the normal use of mobile phone.
According to the third aspect of the disclosure, a kind of moving apparatus is provided, is applied to first terminal, comprising:
First detection unit, for detecting whether establishing between second terminal has communication connection;
Receiving unit, for it is logical to receive the second terminal when establishing between the second terminal has communication connection Cross the original storage path of the file to be migrated and the file to be migrated of the communication connection transmission in the second terminal;
Storage unit, for the file to be migrated to be stored into the first terminal path and the original storage road In the identical storage region of diameter.
Optionally, the storage unit, comprising:
First writing module, for when the first terminal is initializing, the file to be migrated to be written to institute It states in storage region;
Or;Indirect writing module, for when the first terminal initialization be completed after, the file to be migrated is indirect It deposits and is written to default staging area;Mobile module, after the first terminal is restarted, by the file to be migrated by described default Staging area moves in the storage region.
Optionally, the storage unit, comprising:
First file judgment module, for judging whether the storage region is stored with data file;
Second writing module, for when the storage region is not stored data file, the file to be migrated to be write Enter into the storage region.
Optionally, the storage unit, further includes:
Overlay module will be described in the file covering to be migrated for when the storage region is stored with data file Data file, so that the file storage to be migrated is into the storage region.
Optionally, the storage unit, further includes:
Second file judgment module, for judging the text to be migrated when the storage region is stored with data file Whether part is identical as the data file;
The overlay module is also used to when the file to be migrated and the data file be not identical, by described wait move Text move part covers the data file.
Optionally, the first detection unit, comprising:
First detection module, for detecting whether through wired mode and institute when the first terminal is initializing Second terminal is stated to be connected;
First determining module, for when being connected by data line with the second terminal, determination to be whole with described second Establishing between end has communication connection.
Optionally, the first detection unit, comprising:
Second detection module, for detecting whether through wirelessly or non-wirelessly side after the completion of first terminal initialization Formula is connected with the second terminal;
Second determining module, for determining and described second when being wirelessly connected with the second terminal Establishing between terminal has communication connection.
According to the fourth aspect of the disclosure, a kind of moving apparatus is provided, is applied to second terminal, comprising:
Second detection unit, for detecting whether establishing between first terminal has communication connection;
Transmission unit, for sending file to be migrated and institute when establishing between the first terminal has communication connection The original storage path of file to be migrated in the second terminal is stated to the first terminal.
Optionally, described device further include:
System banner acquiring unit, for obtaining described the when establishing between the first terminal has communication connection The operating system identifies of one terminal;
System banner judging unit, for judging the operating system identifies of the first terminal and the behaviour of the second terminal Whether identical make system banner;
Transmission unit is also used to the operating system mark of the operating system identifies and the second terminal when the first terminal It is sensible simultaneously, execute and described send file to be migrated and the file to be migrated original storage path in the second terminal The step of to the first terminal.
Optionally, described device further include:
Account identification acquiring unit, for obtaining the account identification in the first terminal;
Account identification judging unit, for judging the account identification of the first terminal and the account mark of the second terminal Whether identical know;
Transmission unit is also used to when the account identification of the first terminal is identical as the account identification of the second terminal When, the original storage path of file to be migrated and the file to be migrated in the second terminal that sends is executed to described The step of first terminal.
According to the 5th of the disclosure the aspect, a kind of migration terminal is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
It detects whether to establish between second terminal and has communication connection;
When establishing between the second terminal has communication connection, receives the second terminal and pass through the communication connection The original storage path of the file to be migrated and the file to be migrated sent in the second terminal;
The file to be migrated is stored into the path storage identical with the original storage path into the first terminal In region.
According to the 6th of the disclosure the aspect, a kind of migration terminal is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
It detects whether to establish between first terminal and has communication connection;
When establishing between the first terminal has communication connection, sends file to be migrated and the file to be migrated exists The first terminal is given in original storage path in the second terminal.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The disclosure has communication connection by detecting whether to establish between second terminal, builds when between the second terminal It is vertical when having communication connection, receive file to be migrated and the text to be migrated that the second terminal is sent by the communication connection The original storage path of part in the second terminal, can be by file storage to be migrated path into the first terminal In storage region identical with the original storage path.
This method that the embodiment of the present disclosure provides, can not be by third party device, directly by the use in the old mobile phone of user Family file migration is at the same position of new cell-phone, so that user still is able to make according to habit before after replacing new cell-phone With new cell-phone and the associated documents stored in old mobile phone are found, operating procedure is simple, user-friendly.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of schematic diagram of a scenario shown in one exemplary embodiment of the disclosure;
Fig. 2 is a kind of flow chart of moving method shown according to an exemplary embodiment;
Fig. 3 is a kind of flow chart of step S203 in Fig. 2;
Fig. 4 is another flow chart of step S203 in Fig. 2;
Fig. 5 is another flow chart of step S203 in Fig. 2;
Fig. 6 is another flow chart of step S203 in Fig. 2;
Fig. 7 is a kind of flow chart of step S201 in Fig. 2;
Fig. 8 is another flow chart of step S201 in Fig. 2;
Fig. 9 is a kind of flow chart of another moving method shown according to an exemplary embodiment;
Figure 10 is a kind of another flow chart of moving method shown according to an exemplary embodiment;
Figure 11 is a kind of another flow chart of moving method shown according to an exemplary embodiment;
Figure 12 is a kind of structure chart of moving apparatus shown according to an exemplary embodiment;
Figure 13 is a kind of structure chart of storage unit 1203 in Figure 12;
Figure 14 is another structure chart of storage unit 1203 in Figure 12;
Figure 15 is another structure chart of storage unit 1203 in Figure 12;
Figure 16 is another structure chart of storage unit 1203 in Figure 12;
Figure 17 is a kind of structure chart of first detection unit 1201 in Figure 12;
Figure 18 is another structure chart of first detection unit 1201 in Figure 12;
Figure 19 is a kind of structure chart of another moving apparatus shown according to an exemplary embodiment;
Figure 20 is another structure chart of another moving apparatus shown according to an exemplary embodiment;
Figure 21 is another structure chart of another moving apparatus shown according to an exemplary embodiment;
Figure 22 is the block diagram of equipment shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Fig. 1 is a kind of schematic diagram of a scenario shown according to an exemplary embodiment.It include that first terminal 1 and second are whole in figure End 2.
First terminal 1 and second terminal 2 all can be the electronic equipments such as mobile phone, tablet computer or PDA, wherein second eventually End 2 refers to the old electronic equipment before user's replacement, in general, some data of user can be stored in old electronic equipment, such as: hand The files such as address list, photo, video and the audio that configuration file, system data and the user of machine are generated when using mobile phone.
First terminal 1 refers to that the new electronic equipment after user's replacement, the usual first terminal 1 can carry out for user The electronic equipment of no initializtion before individual's configuration, or user has carried out the initialized electricity after personal configuration Sub- equipment.
In addition, be only a kind of schematic diagram of a scenario of the disclosure shown in Fig. 1, the number of first terminal 1 and second terminal 2 in figure Amount, the detailed construction of first terminal 1 and second terminal 2 and position between the two, relativeness are all not construed as limiting, this field Technical staff can need free surface jet each section position and relativeness according to design or scene.
Since in the related technology, user is when moving to new cell-phone for the user file of old mobile phone after replacing mobile phone, behaviour Work is excessively cumbersome, time-consuming and laborious, for this purpose, as shown in Fig. 2, in one embodiment of the present disclosure, providing a kind of moving method, answering For first terminal, this approach includes the following steps.
In step s 201, it detects whether to establish between second terminal and has communication connection.
In the embodiments of the present disclosure, communication connection refers to is directly connected to without third-party, such as: first terminal and second It is connected between terminal by modes such as such as data lines or wireless connection.
When being connected between first terminal and second terminal using data line, in this step, first terminal can be examined Survey USB interface, HDMI (High Definition Multimedia Interface, high-definition multimedia interface) interface is No to have data-signal access, when USB interface has signal access, confirmly detecting to establish between second terminal has communication link It connects.When first terminal and second terminal are using being wirelessly connected, in this step, first terminal can detecte whether bluetooth matches Whether success or the Wi-Fi hotspot of first terminal access the modes such as other terminals, when bluetooth is successfully matched or first terminal When Wi-Fi hotspot accesses other terminals, establishing between determining and second terminal has communication connection.
When establishing between the second terminal has communication connection, in step S202, it is logical to receive the second terminal Cross the original storage path of the file to be migrated and the file to be migrated of the communication connection transmission in the second terminal.
In the embodiments of the present disclosure, original storage path refers to unique storage road with file to be migrated in second terminal Diameter when first terminal receives, can individually receive original storage path, and individually receive text to be migrated in this step Part, it is of course also possible to directly receive the file to be migrated for carrying original storage path.
In this step, first terminal receive second terminal by the communication connections mode such as bluetooth, data line send to Migrated file, and with the unique corresponding original storage path of file to be migrated.
In the embodiments of the present disclosure, the original storage path of file to be migrated is received, its purpose is to what will be received File to be migrated is possibly stored to identical position in new mobile phone, such as: some configuration files and system file, so as to new For mobile phone when using the file after these migrations, user can enjoy configuration identical with old mobile phone and system setting.
In step S203, by file storage path and original storage road into the first terminal to be migrated In the identical storage region of diameter.
In this step, storage region can be the memory space in any file, first terminal receive it is original After store path, can according to storage region identical with original storage path in original storage path searching first terminal, and By file to be migrated storage into the storage region.
The disclosure has communication connection by detecting whether to establish between second terminal, builds when between the second terminal It is vertical when having communication connection, receive file to be migrated and the text to be migrated that the second terminal is sent by the communication connection The original storage path of part in the second terminal, can be by file storage to be migrated path into the first terminal In storage region identical with the original storage path.
This method that the embodiment of the present disclosure provides, can not be by third party device, directly by the use in the old mobile phone of user To at the same position of new cell-phone, the file that mobile phone new in this way can use after migration plays and old mobile phone family file migration Identical effect, such as: identical configuration, the setting of identical system, and it is stored in the photo of same position, audio and logical News record etc., so that user still is able to according to new cell-phone accustomed to using before after replacing new cell-phone and finds old mobile phone The associated documents of middle storage, operating procedure is simple, user-friendly.
In the related technology, it after old mobile phone is changed to new cell-phone, generally requires user and first new cell-phone is carried out initially Change and configure, after the completion of initial configuration, logs in cloud account, the user file of cloud account could be synchronized in new cell-phone, That is, the process is not suitable for the mobile phone of no initializtion, though and be suitable for initialized mobile phone, however this was synchronized Journey is relatively complicated, wastes user time, for this purpose, as shown in figure 3, in the another embodiment of the disclosure, the step S203 packet Include following steps.
In step S301, when the first terminal is initializing, the file to be migrated is written to described deposit In storage area domain.
In the embodiments of the present disclosure, it is rear in user's booting to enter welcome when the mobile phone after user replaces is new cell-phone When the page, it generally is initially configured as selection language firstly the need of progress, at this moment file to be migrated can be written to storage In region.
Or;In step s 302, after first terminal initialization is completed, the file to be migrated is stored indirectly To default staging area;After the first terminal is restarted, the file to be migrated is moved into institute by the default staging area It states in storage region.
The disclosure is by being written to the memory block for the file to be migrated when the first terminal is being initialized In domain, or;After first terminal initialization is completed, the file to be migrated is stored indirectly to default staging area; After the first terminal is restarted, the file to be migrated is moved in the storage region by the default staging area.
This method that the embodiment of the present disclosure provides, can either carry out file migration in new cell-phone no initializtion, also can Temporary file migration again is first carried out after the completion of new cell-phone initialization, operating process is simple, user-friendly.
As shown in figure 4, the step S203 includes the following steps in the another embodiment of the disclosure.
In step S401, judge whether the storage region is stored with data file.
When the storage region is not stored data file, in step S402, the file to be migrated is written to In the storage region.
The disclosure has number when the storage region is not stored by judging whether the storage region is stored with data file When according to file, the file to be migrated can be written in the storage region.
This method that the embodiment of the present disclosure provides can write direct file to be migrated, operation letter to the new cell-phone of blank It is single, it is user-friendly.
In the aforementioned embodiment, although file to be migrated can be written in the new cell-phone of blank, when user replaces When new cell-phone afterwards uses mobile phone after a period of time for someone, this is if user starts to migrate file to be migrated, due to certain Some data files may be stored in a little storage regions, it is multiple to may result in same storage region storage when migrating again The data file of user can occupy many memory spaces, for this purpose, as shown in figure 5, in the another embodiment of the disclosure, it is described Step S203 is further comprising the steps of.
It, will be described in the file covering to be migrated in step S501 when the storage region is stored with data file Data file, so that the file storage to be migrated is into the storage region.
The disclosure is by the file to be migrated can directly be covered when the storage region is stored with data file The data file is covered, so that the file storage to be migrated is into the storage region.
The embodiment of the present disclosure provide this method, can in the new cell-phone after replacement existing other users data text When part, already present all data files in same storage region are directly override using file to be migrated, can be realized new hand Machine is identical as the data file in old mobile phone, user-friendly.
In the aforementioned embodiment, although can be covered to the data file in the new cell-phone after user's replacement, When user is during migrated file, accident occurs for mobile phone when restarting, migration being caused to stop, and needs to migrate text to be migrated again Part, at this moment, since part migrated file may be stored in certain storage regions, if migrating again, the Data Migration time It is longer, and may result in file repetition after migrating, unnecessary memory space is occupied, for this purpose, as shown in fig. 6, in this public affairs In the another embodiment opened, the step S203 is further comprising the steps of.
When the storage region is stored with data file, in step s 601, judge the file to be migrated whether with The data file is identical.
When the file to be migrated and the data file be not identical, the step S402 is executed.
The disclosure by when the storage region is stored with data file, judge the file to be migrated whether with it is described Data file is identical, when the file to be migrated and the data file be not identical, the file to be migrated can be covered The data file, so that the file storage to be migrated is into the storage region.
This method that the embodiment of the present disclosure provides can only be synchronized and be stored in storage region there are when data file The different file to be migrated in region is realized and is only migrated to new data, so that the time of Data Migration is reduced, while also saving Save memory space.
In previous embodiment, when first terminal is initializing, at this time since first terminal is also not configured, so nothing Method is connected using wireless mode with second terminal, for this purpose, as shown in fig. 7, in the another embodiment of the disclosure, the step S201 includes the following steps.
When the first terminal is initializing, in step s 701, detect whether through wired mode and described the Two terminals are connected.
When being connected by data line with the second terminal, in step S702, it is determining with the second terminal it Between establish have communication connection.
The disclosure is by when the first terminal is initializing, detecting whether through wired mode and described second eventually End is connected, and when being connected by data line with the second terminal, can determine to establish between the second terminal has Communication connection.
Since first terminal also no initializtion is completed, and then can only be connected by data line with first terminal.So this This method that open embodiment provides, can use the side of detection data line when first terminal is being initialized Formula determines whether first terminal and second terminal have established communication connection.
As shown in figure 8, the step S201 includes the following steps in the another embodiment of the disclosure.
When the first terminal initialization after the completion of, in step S801, detect whether by wirelessly or non-wirelessly mode with The second terminal is connected.
When being wirelessly connected with the second terminal, in step S802, the determining and second terminal Between establish have communication connection.
In the embodiments of the present disclosure, since first terminal initialization has been completed, so mould relevant to bluetooth or WiFi Block has been configured to complete, in turn, so that it may it detects whether to be connected by wirelessly or non-wirelessly mode with the second terminal, when When being wirelessly connected with the second terminal, determining establish between the second terminal has communication connection.
This method that the embodiment of the present disclosure provides it is wireless can to can use detection after the completion of first terminal initializes The mode of connection determines whether first terminal and second terminal have established communication connection.
In the related technology, new after the data file in old mobile phone used before user needs replacement is synchronized to replacement When in mobile phone, file to be migrated is generally only transmitted, user at this moment may be needed to search the file to be migrated manually after replacement Storage location in new cell-phone, it is cumbersome, easily there is operation error, user time is wasted, as shown in figure 9, in the disclosure In another embodiment, a kind of moving method is provided, is applied to second terminal, this approach includes the following steps.
In step S901, detecting whether to establish between first terminal has communication connection.
When establishing between the first terminal has communication connection, in step S902, file to be migrated and institute are sent The original storage path of file to be migrated in the second terminal is stated to the first terminal.
The embodiment of the present disclosure by detects whether between first terminal establish have communication connection, when with the first terminal Between establish when having communication connection, file to be migrated and the file to be migrated in the second terminal original can be sent Store path gives the first terminal.
This method that the embodiment of the present disclosure provides, second terminal can be by the communication connection between other terminals, directly It connects and file to be migrated is sent to other side, and while sending file to be migrated, also send the file to be migrated in institute The original storage path in second terminal is stated, so that can the text to be migrated be written in same storage area automatically in first terminal Part, it is simple, convenient, save user time.
The operating system on mobile phone is applied mainly to have Android system, apple iOS system etc. at present, due to different operations The division and configuration of storage region are different between system, if still searching the storage region of identical store path at this time, It may search less than or will appear and find, but the storage region function of the storage region and another operating system is not Together, the case where, for this purpose, as shown in Figure 10, in the another embodiment of the disclosure, the method also includes following steps.
When establishing between the first terminal has communication connection, in step S1001, the first terminal is obtained Operating system identifies.
In step S1002, the operating system identifies of the first terminal and the operating system of the second terminal are judged It identifies whether identical.
When the operating system identifies of the first terminal are identical as the operating system identifies of the second terminal, institute is executed State step S902.
The disclosure is by obtaining the behaviour of the first terminal when establishing between the first terminal has communication connection Make system banner, judge the operating system identifies of the first terminal and the second terminal operating system identifies whether phase Together, it when the operating system identifies of the first terminal are identical as the operating system identifies of the second terminal, sends to be migrated The first terminal is given in the original storage path of file and the file to be migrated in the second terminal.
This method that the embodiment of the present disclosure provides, the old mobile phone operating system before new cell-phone and replacement only after replacement When identical, Data Migration is just carried out, avoids carrying out system mistake occur when Data Migration between different system mobile phones, influences mobile phone Normal use.
As shown in figure 11, in the another embodiment of the disclosure, the method also includes following steps.
In step S1101, the account identification in the first terminal is obtained.
In step S1102, judge the first terminal account identification and the second terminal account identification whether It is identical.
When the account identification of the first terminal is identical as the account identification of the second terminal, the step is executed S902。
The disclosure judges account identification and the institute of the first terminal by obtaining the account identification in the first terminal Whether the account identification for stating second terminal is identical, when the account identification of the first terminal and the account identification of the second terminal When identical, the original storage path of file to be migrated and the file to be migrated in the second terminal can be sent to described First terminal.
This method that the embodiment of the present disclosure provides, the old mobile phone after old mobile phone and replacement only before replacement use same When user account, Data Migration is just carried out, it, can be to avoid illegal person from user mobile phone by permissions such as setting user accounts Malice goes out Data Migration, improves the safety of data, furthermore it is also possible to avoid illegal person malice that data are migrated into use In the mobile phone at family, and then the files such as virus are implanted into mobile phone, influence the normal use of mobile phone.
As shown in figure 12, in the another embodiment of the disclosure, a kind of moving apparatus is provided, is applied to first terminal, It include: first detection unit 1201, receiving unit 1202 and storage unit 1203.
First detection unit 1201, being configured as detecting whether establishing between second terminal has communication connection;
Receiving unit 1202 is configured as receiving described the when establishing between the second terminal has communication connection The file to be migrated and the file to be migrated in the second terminal original that two terminals are sent by the communication connection Store path;
Storage unit 1203 is configured as file storage path and original into the first terminal to be migrated In the identical storage region of beginning store path.
The disclosure has communication connection by detecting whether to establish between second terminal, builds when between the second terminal It is vertical when having communication connection, receive file to be migrated and the text to be migrated that the second terminal is sent by the communication connection The original storage path of part in the second terminal, can be by file storage to be migrated path into the first terminal In storage region identical with the original storage path.
The device that the embodiment of the present disclosure provides, can not be by third party device, directly by the use in the old mobile phone of user To at the same position of new cell-phone, the file that mobile phone new in this way can use after migration plays and old mobile phone family file migration Identical effect, such as: identical configuration, the setting of identical system, and it is stored in the photo of same position, audio and logical News record etc., so that user still is able to according to new cell-phone accustomed to using before after replacing new cell-phone and finds old mobile phone The associated documents of middle storage, operating procedure is simple, user-friendly.
As shown in figure 13, in the another embodiment of the disclosure, the storage unit 1203 includes: the first writing module 1301 or indirectly writing module 1302.
First writing module 1301 is configured as when the first terminal is initializing, by the file to be migrated It is written in the storage region;
Or;Indirect writing module 1302, for after the first terminal is initialized and is completed, by the file to be migrated It deposits indirectly and is written to default staging area;Mobile module 1303, after the first terminal is restarted, by the file to be migrated by The default staging area moves in the storage region.
The disclosure is by being written to the memory block for the file to be migrated when the first terminal is being initialized In domain, or;After first terminal initialization is completed, the file to be migrated is stored indirectly to default staging area; After the first terminal is restarted, the file to be migrated is moved in the storage region by the default staging area.
The device that the embodiment of the present disclosure uses, can either carry out file migration in new cell-phone no initializtion, also can Temporary file migration again is first carried out after the completion of new cell-phone initialization, operating process is simple, user-friendly.
As shown in figure 14, in the another embodiment of the disclosure, the storage unit 1203 includes: that the first file judges mould Block 1401 and the second writing module 1402.
First file judgment module 1401 is configured as judging whether the storage region is stored with data file;
Second writing module 1402 is configured as when the storage region is not stored data file, by described wait move Text move part is written in the storage region.
The disclosure has number when the storage region is not stored by judging whether the storage region is stored with data file When according to file, the file to be migrated can be written in the storage region.
The device that the embodiment of the present disclosure provides can write direct file to be migrated, operation letter to the new cell-phone of blank It is single, it is user-friendly.
As shown in figure 15, in the another embodiment of the disclosure, the storage unit 1203 further include: overlay module 1501。
Overlay module 1501 is configured as when the storage region is stored with data file, by the file to be migrated The data file is covered, so that the file storage to be migrated is into the storage region.
The disclosure is by the file to be migrated can directly be covered when the storage region is stored with data file The data file is covered, so that the file storage to be migrated is into the storage region.
The disclosure be embodiment provide the device, can in the new cell-phone after replacement existing other users data When file, already present all data files in same storage region are directly override using file to be migrated, can be realized new Mobile phone is identical as the data file in old mobile phone, user-friendly.
As shown in figure 16, in the another embodiment of the disclosure, the storage unit 1203 further include: the second file judgement Module 1601.
Second file judgment module 1601, for when the storage region is stored with data file, judgement to be described wait move Whether text move part is identical as the data file;
The overlay module 1501 is additionally configured to when the file to be migrated and the data file be not identical, by institute It states file to be migrated and covers the data file.
The disclosure by when the storage region is stored with data file, judge the file to be migrated whether with it is described Data file is identical, when the file to be migrated and the data file be not identical, the file to be migrated can be covered The data file, so that the file storage to be migrated is into the storage region.
The device that the embodiment of the present disclosure provides can only be synchronized and be stored in storage region there are when data file The different file to be migrated in region is realized and is only migrated to new data, so that the time of Data Migration is reduced, while also saving Save memory space.
As shown in figure 17, in the another embodiment of the disclosure, the first detection unit 1201 includes: the first detection mould Block 1701 and the first determining module 1702.
First detection module 1701 is configured as detecting whether when the first terminal is initializing by wired Mode is connected with the second terminal;
First determining module 1702 is configured as when being connected by data line with the second terminal, determining and institute It states to establish between second terminal and has communication connection.
The disclosure is by when the first terminal is initializing, detecting whether through wired mode and described second eventually End is connected, and when being connected by data line with the second terminal, can determine to establish between the second terminal has Communication connection.
Since first terminal also no initializtion is completed, and then can only be connected by data line with first terminal.So this The device that open embodiment provides, can use the side of detection data line when first terminal is being initialized Formula determines whether first terminal and second terminal have established communication connection.
As shown in figure 18, in the another embodiment of the disclosure, the first detection unit 1201 includes: the second detection mould Block 1801 and the second determining module 1802.
Second detection module 1801 is configured as after the completion of first terminal initialization, detects whether by wireless Or wired mode is connected with the second terminal;
Second determining module 1802 is configured as when being wirelessly connected with the second terminal, determine with Establishing between the second terminal has communication connection.
In the embodiments of the present disclosure, since first terminal initialization has been completed, so mould relevant to bluetooth or WiFi Block has been configured to complete, in turn, so that it may it detects whether to be connected by wirelessly or non-wirelessly mode with the second terminal, when When being wirelessly connected with the second terminal, determining establish between the second terminal has communication connection.
The device that the embodiment of the present disclosure provides it is wireless can to can use detection after the completion of first terminal initializes The mode of connection determines whether first terminal and second terminal have established communication connection.
As shown in figure 19, in the another embodiment of the disclosure, a kind of moving apparatus is provided, is applied to second terminal, Described device includes: second detection unit 1901 and transmission unit 1902.
Second detection unit 1901, being configured as detecting whether establishing between first terminal has communication connection.
Transmission unit 1902 is configured as sending to be migrated when establishing between the first terminal has communication connection The first terminal is given in the original storage path of file and the file to be migrated in the second terminal.
The embodiment of the present disclosure by detects whether between first terminal establish have communication connection, when with the first terminal Between establish when having communication connection, file to be migrated and the file to be migrated in the second terminal original can be sent Store path gives the first terminal.
The device that the embodiment of the present disclosure provides, second terminal can be by the communication connection between other terminals, directly It connects and file to be migrated is sent to other side, and while sending file to be migrated, also send the file to be migrated in institute The original storage path in second terminal is stated, so that can the text to be migrated be written in same storage area automatically in first terminal Part, it is simple, convenient, save user time.
As shown in figure 20, in the another embodiment of the disclosure, described device further include: system banner acquiring unit 2001 With system banner judging unit 2002.
System banner acquiring unit 2001 is configured as obtaining when establishing between the first terminal has communication connection Take the operating system identifies of the first terminal.
System banner judging unit 2002 is configured as judging the operating system identifies and described second of the first terminal Whether the operating system identifies of terminal are identical.
Transmission unit 1902 is additionally configured to the behaviour of the operating system identifies and the second terminal when the first terminal Make system banner it is identical when, send the original storage path of file to be migrated and the file to be migrated in the second terminal To the first terminal.
The disclosure is by obtaining the behaviour of the first terminal when establishing between the first terminal has communication connection Make system banner, judge the operating system identifies of the first terminal and the second terminal operating system identifies whether phase Together, it when the operating system identifies of the first terminal are identical as the operating system identifies of the second terminal, sends to be migrated The first terminal is given in the original storage path of file and the file to be migrated in the second terminal.
The device that the embodiment of the present disclosure provides, only new cell-phone after only when replacement and the old mobile phone operation before replacement When system is identical, Data Migration is just carried out, avoids carrying out system mistake occur when Data Migration between different system mobile phones, influences The normal use of mobile phone.
As shown in figure 21, in the another embodiment of the disclosure, described device further include: account identification acquiring unit 2101 With account identification judging unit 2102.
Account identification acquiring unit 2101 is configured as obtaining the account identification in the first terminal.
Account identification judging unit 2102 is configured as judging the account identification of the first terminal and the second terminal Account identification it is whether identical.
Transmission unit 1902 is additionally configured to the account mark of the account identification and the second terminal when the first terminal It is sensible simultaneously, send the original storage path of file to be migrated and the file to be migrated in the second terminal to described One terminal.
The disclosure judges account identification and the institute of the first terminal by obtaining the account identification in the first terminal Whether the account identification for stating second terminal is identical, when the account identification of the first terminal and the account identification of the second terminal When identical, the original storage path of file to be migrated and the file to be migrated in the second terminal can be sent to described First terminal.
The device that the embodiment of the present disclosure provides, the old mobile phone after old mobile phone and replacement only before replacement use same When user account, Data Migration is just carried out, it, can be to avoid illegal person from user mobile phone by permissions such as setting user accounts Malice goes out Data Migration, improves the safety of data, furthermore it is also possible to avoid illegal person malice that data are migrated into use In the mobile phone at family, and then the files such as virus are implanted into mobile phone, influence the normal use of mobile phone.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Figure 22 is a kind of block diagram of terminal for migration shown according to an exemplary embodiment.For example, the terminal 2200 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical treatment Equipment, body-building equipment, personal digital assistant etc..
Referring to Figure 22, terminal 2200 may include following one or more components: processing component 2202, memory 2204, Power supply module 2206, multimedia component 2208, audio component 2210, the interface 2212 of input/output (I/O), sensor module 2214 and communication component 2216.
The integrated operation of the usual controlling terminal 2200 of processing component 2202, such as with display, telephone call, data communication, Camera operation and record operate associated operation.Processing component 2202 may include one or more processors 2220 to execute Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 2202 may include one or more moulds Block, convenient for the interaction between processing component 2202 and other assemblies.For example, processing component 2202 may include multi-media module, To facilitate the interaction between multimedia component 2208 and processing component 2202.
Memory 2204 is configured as storing various types of data to support the operation in equipment 2200.These data Example includes being configured as the instruction of any application or method operated in terminal 2200, contact data, telephone directory Data, message, picture, video etc..Memory 2204 can by any kind of volatibility or non-volatile memory device or Their combination realizes that, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) can Erasable programmable read-only memory (EPROM) (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, Flash memory, disk or CD.
Power supply module 2206 provides electric power for the various assemblies of terminal 2200.Power supply module 2206 may include power management System, one or more power supplys and other with for terminal 2200 generate, manage, and distribute the associated component of electric power.
Multimedia component 2208 includes the screen of one output interface of offer between the terminal 2200 and user.? In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more Media component 2208 includes a front camera and/or rear camera.When terminal 2200 is in operation mode, as shot mould When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 2210 is configured as output and/or input audio signal.For example, audio component 2210 includes a wheat Gram wind (MIC), when terminal 2200 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt It is configured to receive external audio signal.The received audio signal can be further stored in memory 2204 or via communication Component 2216 is sent.In some embodiments, audio component 2210 further includes a loudspeaker, is configured as output audio letter Number.
I/O interface 2212 provides interface, above-mentioned peripheral interface module between processing component 2202 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 2214 includes one or more sensors, is configured as providing the shape of various aspects for terminal 2200 State assessment.For example, sensor module 2214 can detecte the state that opens/closes of equipment 2200, the relative positioning of component, example Such as the display and keypad that the component is terminal 2200, sensor module 2214 can also detect terminal 2200 or terminal The position change of 2200 1 components, the existence or non-existence that user contacts with terminal 2200,2200 orientation of terminal or acceleration/subtract The temperature change of speed and terminal 2200.Sensor module 2214 may include proximity sensor, be configured to not any Physical contact when detect the presence of nearby objects.Sensor module 2214 can also include optical sensor, as CMOS or CCD schemes As sensor, it is configured as using in imaging applications.In some embodiments, which can also include adding Velocity sensor, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 2216 is configured to facilitate the communication of wired or wireless way between terminal 2200 and other equipment.Eventually End 2200 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.It is exemplary at one In embodiment, communication component 2216 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 2216 further includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal 2200 can be by one or more application specific integrated circuit (ASIC), number Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, are configured as executing the above-mentioned side of terminal side Method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 2204 of instruction, above-metioned instruction can be executed by the processor 2220 of terminal 2200 to complete the above method.Example Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
The disclosure also discloses a kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium by When the processor of terminal executes, enable the terminal to execute a kind of moving method, which comprises
It detects whether to establish between second terminal and has communication connection;
When establishing between the second terminal has communication connection, receives the second terminal and pass through the communication connection The original storage path of the file to be migrated and the file to be migrated sent in the second terminal;
The file to be migrated is stored into the path storage identical with the original storage path into the first terminal In region.
The disclosure also discloses a kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium by When the processor of terminal executes, enable the terminal to execute a kind of moving method, which comprises
It detects whether to establish between first terminal and has communication connection;
When establishing between the first terminal has communication connection, sends file to be migrated and the file to be migrated exists The first terminal is given in original storage path in the second terminal.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by appended Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (20)

1. a kind of moving method is applied to first terminal characterized by comprising
It detects whether to establish between second terminal and has communication connection;
When establishing between the second terminal has communication connection, receives the second terminal and sent by the communication connection File to be migrated and the file to be migrated original storage path in the second terminal;
By file storage path storage region identical with the original storage path into the first terminal to be migrated In;
It is described that the file to be migrated is stored into the path storage identical with the original storage path into the first terminal In region, comprising:
When the first terminal is initializing, the file to be migrated is written in the storage region;
Or,
After first terminal initialization is completed, the file to be migrated is stored indirectly to default staging area;Work as institute It states after first terminal restarts, the file to be migrated is moved in the storage region by the default staging area.
2. moving method according to claim 1, which is characterized in that eventually to described first by the file storage to be migrated Include: in the storage region identical with the original storage path of path in end
Judge whether the storage region is stored with data file;
When the storage region is not stored data file, the file to be migrated is written in the storage region.
3. according to the method described in claim 2, it is characterized in that, described that the file storage to be migrated is whole to described first Path storage region identical with the original storage path in end further include:
When the storage region is stored with data file, the file to be migrated is covered into the data file, so that described File storage to be migrated is into the storage region.
4. moving method according to claim 3, which is characterized in that eventually to described first by the file storage to be migrated Path storage region identical with the original storage path in end further include:
When the storage region is stored with data file, judge whether the file to be migrated is identical as the data file;
When the file to be migrated and the data file be not identical, execute and the file to be migrated is written to the storage Step in region.
5. moving method according to claim 1, which is characterized in that it is described detect whether to establish between second terminal have Communication connection, comprising:
When the first terminal is initializing, detect whether to be connected by wired mode with the second terminal;
When being connected by data line with the second terminal, determining establish between the second terminal has communication connection.
6. moving method according to claim 1, which is characterized in that it is described detect whether to establish between second terminal have Communication connection, comprising:
After the completion of first terminal initialization, detect whether to be connected by wirelessly or non-wirelessly mode with the second terminal It connects;
When being wirelessly connected with the second terminal, determining establish between the second terminal has communication link It connects.
7. a kind of moving method is applied to second terminal characterized by comprising
It detects whether to establish between first terminal and has communication connection;
When establishing between the first terminal has communication connection, file to be migrated and the file to be migrated are sent described The first terminal is given in original storage path in second terminal, so that first terminal stores the file to be migrated to described In first terminal in the storage region identical with the original storage path of path;
It is described that the file to be migrated is stored into the path storage identical with the original storage path into the first terminal In region, comprising:
When the first terminal is initializing, the file to be migrated is written in the storage region;
Or,
After first terminal initialization is completed, the file to be migrated is stored indirectly to default staging area;Work as institute It states after first terminal restarts, the file to be migrated is moved in the storage region by the default staging area.
8. moving method according to claim 7, which is characterized in that the method also includes:
When establishing between the first terminal has communication connection, the operating system identifies of the first terminal are obtained;
Whether the operating system identifies for judging the first terminal are identical as the operating system identifies of the second terminal;
When the operating system identifies of the first terminal are identical as the operating system identifies of the second terminal, the hair is executed Send the original storage path of file to be migrated and the file to be migrated in the second terminal to the step of the first terminal Suddenly.
9. according to moving method described in any one of claim 7 and 8, which is characterized in that the method also includes:
Obtain the account identification in the first terminal;
Whether the account identification for judging the first terminal is identical as the account identification of the second terminal;
When the account identification of the first terminal is identical as the account identification of the second terminal, it is to be migrated to execute the transmission The step of first terminal, is given in the original storage path of file and the file to be migrated in the second terminal.
10. a kind of moving apparatus is applied to first terminal characterized by comprising
First detection unit, for detecting whether establishing between second terminal has communication connection;
Receiving unit, for receiving the second terminal and passing through institute when establishing between the second terminal has communication connection State the original storage path of the file to be migrated and the file to be migrated of communication connection transmission in the second terminal;
Storage unit, for the file to be migrated to be stored path and original storage path phase into the first terminal In same storage region;
First writing module, for when the first terminal is initializing, the file to be migrated to be written to described deposit In storage area domain;
Or,
Indirect writing module, for after first terminal initialization is completed, the file to be migrated to be deposited write-in indirectly To default staging area;Mobile module, after the first terminal is restarted, by the file to be migrated by the default working area Domain moves in the storage region.
11. moving apparatus according to claim 10, which is characterized in that the storage unit, comprising:
First file judgment module, for judging whether the storage region is stored with data file;
Second writing module, for when the storage region is not stored data file, the file to be migrated to be written to In the storage region.
12. moving apparatus according to claim 11, which is characterized in that the storage unit, further includes:
Overlay module, for when the storage region is stored with data file, the file to be migrated to be covered the data File, so that the file storage to be migrated is into the storage region.
13. moving apparatus according to claim 12, which is characterized in that the storage unit, further includes:
Second file judgment module, for when the storage region is stored with data file, judging that the file to be migrated is It is no identical as the data file;
The overlay module is also used to when the file to be migrated and the data file be not identical, by the text to be migrated Part covers the data file.
14. moving apparatus according to claim 10, which is characterized in that the first detection unit, comprising:
First detection module, for when the first terminal is initializing, detecting whether through wired mode and described the Two terminals are connected;
First determining module, for when being connected by data line with the second terminal, it is determining with the second terminal it Between establish have communication connection.
15. moving apparatus according to claim 10, which is characterized in that the first detection unit, comprising:
Second detection module, for when the first terminal initialization after the completion of, detect whether by wirelessly or non-wirelessly mode with The second terminal is connected;
Second determining module, for determining and the second terminal when being wirelessly connected with the second terminal Between establish have communication connection.
16. a kind of moving apparatus is applied to second terminal characterized by comprising
Second detection unit, for detecting whether establishing between first terminal has communication connection;
Transmission unit, for when between the first terminal establish have communication connection when, send file to be migrated and it is described to The first terminal is given in the original storage path of migrated file in the second terminal, so that first terminal will be described to be migrated File storage is into the first terminal in the storage region identical with the original storage path of path;
It is described that the file to be migrated is stored into the path storage identical with the original storage path into the first terminal In region, comprising:
When the first terminal is initializing, the file to be migrated is written in the storage region;
Or,
After first terminal initialization is completed, the file to be migrated is stored indirectly to default staging area;Work as institute It states after first terminal restarts, the file to be migrated is moved in the storage region by the default staging area.
17. moving apparatus according to claim 16, which is characterized in that described device further include:
System banner acquiring unit, for when establishing between the first terminal has communication connection, obtaining described first eventually The operating system identifies at end;
System banner judging unit, for judging the operating system identifies of the first terminal and the operation system of the second terminal System identifies whether identical;
Transmission unit is also used to the operating system identifies phase when the operating system identifies and the second terminal of the first terminal Meanwhile it is whole to described first to send the original storage path of file to be migrated and the file to be migrated in the second terminal End.
18. moving apparatus described in 6 and 17 any one according to claim 1, which is characterized in that described device further include:
Account identification acquiring unit, for obtaining the account identification in the first terminal;
Account identification judging unit, for judging that the account identification of account identification and the second terminal of the first terminal is It is no identical;
Transmission unit is also used to when the account identification of the first terminal is identical as the account identification of the second terminal, hair Send the original storage path of file to be migrated and the file to be migrated in the second terminal to the first terminal.
19. a kind of migration terminal characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
It detects whether to establish between second terminal and has communication connection;
When establishing between the second terminal has communication connection, receives the second terminal and sent by the communication connection File to be migrated and the file to be migrated original storage path in the second terminal;
By the file storage to be migrated into first terminal in the storage region identical with the original storage path of path;
It is described that the file to be migrated is stored into the path storage identical with the original storage path into the first terminal In region, comprising:
When the first terminal is initializing, the file to be migrated is written in the storage region;
Or,
After first terminal initialization is completed, the file to be migrated is stored indirectly to default staging area;Work as institute It states after first terminal restarts, the file to be migrated is moved in the storage region by the default staging area.
20. a kind of migration terminal characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
It detects whether to establish between first terminal and has communication connection;
When establishing between the first terminal has communication connection, file to be migrated and the file to be migrated are sent second The first terminal is given in original storage path in terminal, so that first terminal stores the file to be migrated to described first In terminal in the storage region identical with the original storage path of path;
It is described that the file to be migrated is stored into the path storage identical with the original storage path into the first terminal In region, comprising:
When the first terminal is initializing, the file to be migrated is written in the storage region;
Or,
After first terminal initialization is completed, the file to be migrated is stored indirectly to default staging area;Work as institute It states after first terminal restarts, the file to be migrated is moved in the storage region by the default staging area.
CN201510828666.0A 2015-11-25 2015-11-25 Moving method, device and terminal Active CN105491113B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510828666.0A CN105491113B (en) 2015-11-25 2015-11-25 Moving method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510828666.0A CN105491113B (en) 2015-11-25 2015-11-25 Moving method, device and terminal

Publications (2)

Publication Number Publication Date
CN105491113A CN105491113A (en) 2016-04-13
CN105491113B true CN105491113B (en) 2019-03-12

Family

ID=55677823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510828666.0A Active CN105491113B (en) 2015-11-25 2015-11-25 Moving method, device and terminal

Country Status (1)

Country Link
CN (1) CN105491113B (en)

Families Citing this family (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105979610A (en) * 2016-05-09 2016-09-28 腾讯科技(深圳)有限公司 Terminal control method and device
CN106294604A (en) * 2016-07-28 2017-01-04 努比亚技术有限公司 A kind of mobile terminal and information processing method
CN106326169A (en) * 2016-08-17 2017-01-11 陈银芳 Method and system for replacing mobile phone
CN106469028B (en) * 2016-09-14 2019-04-16 Oppo广东移动通信有限公司 A kind of data migration method and mobile terminal
CN106487782A (en) * 2016-09-14 2017-03-08 广东欧珀移动通信有限公司 A kind of data migration method and mobile terminal
CN106383731B (en) * 2016-09-14 2019-08-27 Oppo广东移动通信有限公司 A kind of data migration method and mobile terminal
CN106446111B (en) * 2016-09-14 2020-01-14 Oppo广东移动通信有限公司 Data migration method and terminal
CN106445663A (en) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 Application data migration method and device
CN106254527B (en) * 2016-09-14 2017-10-31 广东欧珀移动通信有限公司 A kind of data migration method and mobile terminal
CN106446110B (en) * 2016-09-14 2020-07-28 Oppo广东移动通信有限公司 Method and device for realizing connection security of terminal moving
CN106658353A (en) * 2016-09-14 2017-05-10 广东欧珀移动通信有限公司 Data migration method and mobile equipment
CN106446114B (en) * 2016-09-14 2019-09-17 Oppo广东移动通信有限公司 Data migration method and device
CN106484506B (en) * 2016-09-14 2020-01-14 Oppo广东移动通信有限公司 File storage path selection method and device in terminal moving
CN106454805A (en) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 Data migration method and mobile terminal
CN106413032B (en) * 2016-09-14 2020-03-24 Oppo广东移动通信有限公司 Hotspot establishing method and terminal equipment
CN106488391B (en) * 2016-09-14 2019-10-25 Oppo广东移动通信有限公司 A kind of data migration method and terminal device
CN106231544B (en) * 2016-09-14 2020-01-14 Oppo广东移动通信有限公司 Method and device for storage and selection of transmission path in terminal moving process
CN106648455A (en) * 2016-09-14 2017-05-10 广东欧珀移动通信有限公司 Data migration method and mobile terminal
CN106412033A (en) * 2016-09-14 2017-02-15 广东欧珀移动通信有限公司 Data migration method and terminal
CN106648844B (en) * 2016-09-14 2020-04-21 Oppo广东移动通信有限公司 Method and terminal for improving data migration speed
CN106775445B (en) * 2016-09-14 2019-12-06 Oppo广东移动通信有限公司 Data migration method and device
CN106453571A (en) * 2016-10-19 2017-02-22 广东欧珀移动通信有限公司 Data migration method and terminal
CN106775815B (en) * 2016-11-16 2020-02-18 Oppo广东移动通信有限公司 Application data migration method and device
CN107018188A (en) * 2017-03-31 2017-08-04 青岛海信移动通信技术股份有限公司 Migrate the method and device of application data and the application data of storage migration
CN107016425B (en) * 2017-04-27 2020-06-19 北京小米移动软件有限公司 Method and equipment for transferring traffic card
CN110706380A (en) * 2019-09-27 2020-01-17 广东汇泰龙科技股份有限公司 Method and system for quickly cloning intelligent lock
CN110806951A (en) * 2019-10-11 2020-02-18 青岛海信移动通信技术股份有限公司 Data transmission method of terminal
CN115080505B (en) * 2021-09-08 2023-07-14 荣耀终端有限公司 Data migration method, terminal, storage medium, and program product
CN114143328B (en) * 2021-11-19 2024-07-09 北京百度网讯科技有限公司 Data migration method, device, equipment and medium of cloud mobile phone
CN113905357B (en) * 2021-12-09 2022-03-25 深圳软牛科技有限公司 Data migration method, device, equipment and storage medium based on WiFi direct connection
CN115017096B (en) * 2021-12-30 2023-10-31 荣耀终端有限公司 Data migration method, readable medium and electronic device
CN116028433B (en) * 2022-05-16 2023-10-20 荣耀终端有限公司 Data migration method and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364232A (en) * 2008-10-06 2009-02-11 深圳华为通信技术有限公司 Method, terminal and system fro backing-up non-volatile data
US9917881B2 (en) * 2012-10-22 2018-03-13 Samsung Electronics Co., Ltd. Apparatus, system, and method for transferring data across mobile terminals paired using near field communication (NFC)
CN104468947B (en) * 2013-09-16 2017-12-29 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN104168536B (en) * 2014-08-29 2017-11-07 广东欧珀移动通信有限公司 Data copy method and system between a kind of mobile terminal

Also Published As

Publication number Publication date
CN105491113A (en) 2016-04-13

Similar Documents

Publication Publication Date Title
CN105491113B (en) Moving method, device and terminal
WO2021018274A1 (en) Screen projection method and electronic device
CN107750466B (en) Pairing nearby devices using synchronized alert signals
CA2843627C (en) Device, system and method for generating application data
CN105930147B (en) Application function starting method and device
KR102415870B1 (en) Apparatus and method for adaptively changing subject performing operation
JP6228676B2 (en) Connection state prompting method and apparatus
US20140244738A1 (en) Device, System and Method for Generating Data
CN104838352A (en) Action initiatiation in multi-face device
KR20160133781A (en) Mobile terminal and method for controlling the same
CN103944963A (en) Data synchronization method, device and system and equipment
JP2017530493A (en) External device connection method and apparatus, program, and recording medium
WO2017177595A1 (en) Data migration method and device
CN105208177B (en) Address book updating method and device
KR20170038178A (en) Method, apparatus, and mobile terminal for identificating fingerprint
CN104503690A (en) Arrangement method and device for application icons
CN105389113A (en) Gesture-based application control method and apparatus and terminal
CN104199726B (en) Functions of the equipments extended method and device
CN104503786B (en) Firmware refreshing method and device
CN105550213A (en) Picture browsing method and device
CN107632835A (en) Using installation method and device
RU2632396C2 (en) Method and device to control router plug-in module
JP2017520877A (en) SEARCH METHOD, SEARCH DEVICE, PROGRAM, AND RECORDING MEDIUM
CN105335088A (en) File sharing method and device
CN103870544A (en) Method and device for virtually operating file, and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant