WO2018049885A1 - Data migration method and device - Google Patents

Data migration method and device Download PDF

Info

Publication number
WO2018049885A1
WO2018049885A1 PCT/CN2017/092273 CN2017092273W WO2018049885A1 WO 2018049885 A1 WO2018049885 A1 WO 2018049885A1 CN 2017092273 W CN2017092273 W CN 2017092273W WO 2018049885 A1 WO2018049885 A1 WO 2018049885A1
Authority
WO
WIPO (PCT)
Prior art keywords
target application
terminal
identifier
application data
storage location
Prior art date
Application number
PCT/CN2017/092273
Other languages
French (fr)
Chinese (zh)
Inventor
陆天洋
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2018049885A1 publication Critical patent/WO2018049885A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0647Migration mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces

Definitions

  • the present invention relates to the field of mobile terminal technologies, and in particular, to a data migration method and apparatus.
  • the embodiment of the invention provides a data migration method and device, which does not require the user to manually select the data in the SD card directory corresponding to the application, automatically implements data migration of the application, and improves the intelligence of data migration.
  • an embodiment of the present invention provides a data migration method, including:
  • the first terminal acquires a target application identifier of the target application to be migrated selected by the user;
  • the first terminal is configured to query a pre-stored database based on the target application identifier, and obtain a storage location of the first target application data associated with the target application identifier in an SD card directory, where the database stores an application identifier and a mapping relationship between the storage location of the first application data associated with the application identifier in the SD card directory;
  • the first terminal extracts the second target application data associated with the target application identifier, and extracts the first target application data based on the obtained storage location of the first target application data in the SD card directory, where The second target application data is stored in a data directory;
  • the first terminal sends the first target application data and the second target application data to a second terminal that establishes a communication connection with the first terminal.
  • an embodiment of the present invention provides a data migration apparatus, including:
  • An obtaining unit configured to acquire a target application identifier of a target application to be migrated selected by a user
  • a querying unit configured to acquire a storage location of the first target application data associated with the target application identifier in an SD card directory, where the database is stored with an application identifier and a mapping relationship between the storage location of the first application data associated with the application identifier in the SD card directory;
  • An extracting unit configured to extract second target application data associated with the target application identifier, and extract the first target application data based on the obtained storage location of the first target application data in an SD card directory, where The second target application data is stored in a data directory;
  • a sending unit configured to send the first target application data and the second target application data to a second terminal that establishes a communication connection with the first terminal.
  • an embodiment of the present invention provides a mobile terminal, including:
  • the memory stores executable program code
  • the processor is configured to invoke the executable program code in the memory to perform the method as described in the first aspect.
  • an embodiment of the present invention provides a storage medium, where the storage medium stores a program, and the program is used to execute the method as described in the first aspect.
  • FIG. 1 is a schematic structural diagram of a network architecture according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a data migration method according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of another data migration method according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of another data migration method according to an embodiment of the present invention.
  • FIG. 5 is a block diagram showing the unit composition of a data migration apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • the first terminal first acquires the target application identifier of the target application to be migrated selected by the user, and secondly, queries the pre-stored number based on the target application identifier. Obtaining a storage location of the first target application data associated with the target application identifier in the SD card directory, and then extracting second target application data stored in the data directory associated with the target application identifier, and Extracting the first target application data based on the obtained storage location of the first target application data in the SD card directory, and finally sending the first target application data and the second target application data to the The first terminal establishes a second terminal of the communication connection.
  • the mobile terminal can realize the associative storage of the application identifier and the storage location of the application data associated with the application identifier in the SD card directory, thereby eliminating the need for the user to manually select the data in the SD card directory corresponding to the application, and automatically implementing the application data. Migrate and improve the intelligence of data migration.
  • FIG. 1 is a schematic structural diagram of a network architecture according to an embodiment of the present invention.
  • the network architecture diagram may include a first terminal and a second terminal, where the first terminal and the second terminal may include a mobile phone, a tablet, a personal digital assistant (PDA), Any terminal equipment such as point of sales (POS), on-board computer.
  • the first terminal may be in communication connection with the second terminal through a network.
  • FIG. 2 is a data migration method according to an embodiment of the present invention.
  • the data migration method in the embodiment of the present invention includes:
  • the first terminal acquires a target application identifier of the target application to be migrated selected by the user.
  • the first terminal may migrate data stored in the first terminal, for example, including calendar, browser history, browser tab, weather, settings, desktop layout, application, call history, and address book.
  • the first terminal acquires a target application identifier of the target application to be migrated selected by the user through a button or a touch screen.
  • the first terminal queries a pre-stored database based on the target application identifier, and acquires a storage location of the first target application data associated with the target application identifier in an SD card directory, where the database stores an application. And mapping a mapping relationship between the first application data associated with the application identifier and a storage location under the SD card directory.
  • the first terminal extracts second target application data that is associated with the target application identifier, and extracts the first target application data based on the obtained storage location of the first target application data in an SD card directory.
  • the second target application data is stored in the data directory.
  • the first target application data stored in the SD card directory may be modified or set by the user.
  • the corresponding storage location in the SD card directory may be set by the user according to specific conditions, and stored.
  • the second target application data in the data directory is data stored in the system partition, and the user does not change the permissions.
  • the corresponding storage location in the data directory is fixed, and therefore, no association is required.
  • the first terminal sends the first target application data and the second target application data to a second terminal that establishes a communication connection with the first terminal.
  • the specific implementation manner that the first terminal sends the first target application data and the second target application data to the second terminal that establishes a communication connection with the first terminal may be:
  • the first terminal first acquires the target application identifier of the target application to be migrated selected by the user, and secondly, searches the pre-stored database based on the target application identifier to obtain the association with the target application identifier. a first target application data storage location in the SD card directory, and then extracting second target application data stored in the data directory associated with the target application identifier, and based on the acquired first target application data The storage location under the SD card directory extracts the first target application data, and finally sends the first target application data and the second target application data to a second terminal that establishes a communication connection with the first terminal.
  • the mobile terminal can realize the associative storage of the application identifier and the storage location of the application data associated with the application identifier in the SD card directory, thereby eliminating the need for the user to manually select the data in the SD card directory corresponding to the application, and automatically implementing the application data. Migrate and improve the intelligence of data migration.
  • the first terminal may also perform the following operations:
  • the first terminal detects that the target application stores new application data in an SD card directory. And acquiring a target application identifier of the target application and a storage location of the new application data to update the database;
  • the first terminal performs a query on the pre-stored database based on the target application identifier, and obtains the storage location of the first target application data associated with the target application identifier in the SD card directory, and may also perform the following operations:
  • the first terminal detects whether a mapping relationship between the target application identifier stored by the server and the storage location of the first target application data in the SD card directory associated with the target application identifier is related to the target application stored in the database
  • the mapping relationship between the identifier and the storage location of the first target application data associated with the target application identifier in the SD card directory is the same;
  • the first terminal is configured to obtain a storage location of the first target application data associated with the target application identifier in the SD card directory according to the database stored in the target application identifier query;
  • mapping relationship between the target application identifier and the storage location of the first target application data associated with the target application identifier in the SD card directory is downloaded from the server to update the database.
  • the following operations may also be performed:
  • the first terminal displays a two-dimensional code on the display interface, where the two-dimensional code is used to obtain the hotspot identifier of the wireless hotspot created by the first terminal and the hotspot identifier corresponding to the second terminal a password information, and establishing a communication connection with the first terminal based on the hotspot identifier and the password information, where the two-dimensional code includes a hotspot identifier of the wireless hotspot created by the first terminal, and the hotspot identifier Corresponding password information;
  • the short-range wireless communication technology includes one or a combination of NFC communication technology, ZigBee communication technology, and Bluetooth communication technology.
  • FIG. 3 is a schematic flowchart of another data migration method according to an embodiment of the present invention.
  • the data migration method in the embodiment of the present invention includes:
  • the first terminal when detecting that the target application stores new application data in an SD card directory, acquiring a target application identifier of the target application and a storage location of the new application data, to update the location. Database.
  • the first terminal sends a target application identifier of the target application and a storage location of the new application data to a server that establishes a communication connection with the first terminal, so that the server updates the storage. And a mapping relationship between the target application identifier and the storage location of the first target application data associated with the target application identifier in the SD card directory.
  • the first terminal displays a two-dimensional code on the display interface, where the two-dimensional code is used to obtain the hotspot identifier and the hotspot identifier of the wireless hotspot created by the first terminal after the second terminal scans Corresponding cryptographic information, and establishing a communication connection with the first terminal based on the hotspot identifier and the password information, where the two-dimensional code includes a hotspot identifier of the wireless hotspot created by the first terminal, and the The password information corresponding to the hotspot identifier.
  • the first terminal acquires a target application identifier of the target application to be migrated selected by the user.
  • the first terminal detects whether a mapping relationship between the target application identifier stored by the server and the storage location of the first target application data in the SD card directory associated with the target application identifier is stored in the database.
  • the mapping relationship between the target application identifier and the storage location of the first target application data associated with the target application identifier in the SD card directory is the same.
  • steps S206 to S209 are performed.
  • the first terminal downloads a mapping relationship between the target application identifier and a storage location of the first target application data in the SD card directory associated with the target application identifier from the server to update the database.
  • the first terminal queries a pre-stored database based on the target application identifier, and acquires a storage location of the first target application data associated with the target application identifier in an SD card directory, where the database stores an application. And mapping a mapping relationship between the first application data associated with the application identifier and a storage location under the SD card directory.
  • the first terminal extracts second target application data that is associated with the target application identifier, and extracts the first target application data based on the obtained storage location of the first target application data in the SD card directory.
  • the second target application data is stored in the data directory.
  • the first terminal sends, to the first target application data, a storage location of the first target application data, and a storage location of the second target application data and the second target application data to the first location. And the second terminal, so that the first target application data and the second target application data that are received by the second terminal are stored in the second terminal according to a corresponding storage location.
  • the first terminal first acquires the target application identifier of the target application to be migrated selected by the user, and secondly, searches the pre-stored database based on the target application identifier to obtain the association with the target application identifier. a first target application data storage location in the SD card directory, and then extracting second target application data stored in the data directory associated with the target application identifier, and based on the acquired first target application data The storage location under the SD card directory extracts the first target application data, and finally sends the first target application data and the second target application data to a second terminal that establishes a communication connection with the first terminal.
  • the mobile terminal can realize the associative storage of the application identifier and the storage location of the application data associated with the application identifier in the SD card directory, thereby eliminating the need for the user to manually select the data in the SD card directory corresponding to the application, and automatically implementing the application data. Migrate and improve the intelligence of data migration.
  • FIG. 4 is a schematic flowchart of another data migration method according to an embodiment of the present invention.
  • the data migration method in the embodiment of the present invention includes:
  • the first terminal when detecting that the target application stores new application data in an SD card directory, acquiring a target application identifier of the target application and a storage location of the new application data, to update the location. Database.
  • the first terminal sends a target application identifier of the target application and a storage location of the new application data to a server that establishes a communication connection with the first terminal, so that the server updates the storage. And a mapping relationship between the target application identifier and the storage location of the first target application data associated with the target application identifier in the SD card directory.
  • the first terminal establishes a communication connection with the second terminal according to a short-range wireless communication technology, where the short-range wireless communication technology includes one of NFC communication technology, ZigBee communication technology, and Bluetooth communication technology, or combination.
  • the first terminal acquires a target application identifier of the target application to be migrated selected by the user.
  • the first terminal detects whether a mapping relationship between the target application identifier stored by the server and the storage location of the first target application data in the SD card directory associated with the target application identifier is stored in the database.
  • the mapping relationship between the target application identifier and the storage location of the first target application data associated with the target application identifier in the SD card directory is the same.
  • steps S306 to S309 are performed.
  • the first terminal downloads, from the server, a mapping relationship between the target application identifier and a storage location of the first target application data in the SD card directory associated with the target application identifier, to update the database.
  • the first terminal queries a pre-stored database based on the target application identifier, and acquires a storage location of the first target application data associated with the target application identifier in an SD card directory, where the database stores an application. And mapping a mapping relationship between the first application data associated with the application identifier and a storage location under the SD card directory.
  • the first terminal extracts second target application data that is associated with the target application identifier, and extracts the first target application data based on the obtained storage location of the first target application data in the SD card directory.
  • the second target application data is stored in the data directory.
  • the first terminal sends, to the first target application data, a storage location of the first target application data, and a storage location of the second target application data and the second target application data to the first And the second terminal, so that the first target application data and the second target application data that are received by the second terminal are stored in the second terminal according to a corresponding storage location.
  • the first terminal first acquires the target application identifier of the target application to be migrated selected by the user, and secondly, searches the pre-stored database based on the target application identifier to obtain the association with the target application identifier. a first target application data storage location in the SD card directory, and then extracting second target application data stored in the data directory associated with the target application identifier, and based on the acquired first target application data The storage location under the SD card directory extracts the first target application data, and finally sends the first target application data and the second target application data to a second terminal that establishes a communication connection with the first terminal.
  • the mobile terminal can realize the associative storage of the application identifier and the storage location of the application data associated with the application identifier in the SD card directory, thereby eliminating the need for the user to manually select the data in the SD card directory corresponding to the application, and automatically implementing the application data. Migrate and improve the intelligence of data migration.
  • the data migration apparatus may include an obtaining unit 401, a query unit 402, an extracting unit 403, and a sending unit 404, where:
  • the obtaining unit 401 is configured to acquire a target application identifier of the target application to be migrated selected by the user;
  • the querying unit 402 is configured to obtain a storage location of the first target application data associated with the target application identifier in the SD card directory, where the database is stored in the database. a mapping relationship between the application identifier and the storage location of the first application data associated with the application identifier in the SD card directory;
  • the extracting unit 403 is configured to extract second target application data associated with the target application identifier, and extract the first target application based on the obtained storage location of the first target application data in the SD card directory. Data, wherein the second target application data is stored in a data directory;
  • the sending unit 404 is configured to send the first target application data and the second target application data to a second terminal that establishes a communication connection with the first terminal.
  • the data migration device may further include:
  • a first detecting unit 405, configured to acquire a target application identifier of the target application and the new application data when detecting that the target application stores new application data in an SD card directory Storing a location to update the database;
  • the updating unit 406 is configured to send a target application identifier of the target application and a storage location of the new application data to a server that establishes a communication connection with the first terminal, so that the server updates the stored A mapping relationship between the target application identifier and the storage location of the first target application data associated with the target application identifier in the SD card directory.
  • the data migration device may further include:
  • the second detecting unit 407 after the query unit 402 queries the pre-stored database based on the target application identifier, and acquires the storage location of the first target application data associated with the target application identifier in the SD card directory, for detecting Whether the mapping relationship between the target application identifier stored by the server and the storage location of the first target application data associated with the target application identifier in the SD card directory is related to the target application identifier and the target stored in the database
  • the mapping relationship of the storage location of the first target application data associated with the application identifier in the SD card directory is the same;
  • the triggering unit 408 is configured to: if the second detecting unit 407 detects the mapping relationship between the target application identifier stored by the server and the storage location of the first target application data associated with the target application identifier in the SD card directory The mapping relationship between the target application identifier stored in the database and the storage location of the first target application data associated with the target application identifier in the SD card directory is the same, triggering the query unit 402 to execute the first terminal based on The target application identifier queries a pre-stored database, and acquires a storage location of the first target application data associated with the target application identifier in an SD card directory;
  • the downloading unit 409 is configured to: if the second detecting unit 407 detects the mapping relationship between the target application identifier stored by the server and the storage location of the first target application data associated with the target application identifier in the SD card directory The mapping relationship between the target application identifier stored in the database and the storage location of the first target application data associated with the target application identifier in the SD card directory is different, and the target application identifier is downloaded from the server. A mapping relationship of storage locations of the first target application data associated with the target application identifier in the SD card directory to update the database.
  • the sending unit 404 is specifically configured to store the first target application data and the storage location of the first target application data and the second target application data and the second target application data. Sending a location to the second terminal such that the second terminal will receive the first The target application data and the second target application data are stored in the second terminal according to a corresponding storage location.
  • the data migration device may further include:
  • the first communication unit 410 is configured to display a two-dimensional code on the display interface before the acquiring unit acquires the target application identifier of the target application to be migrated selected by the user, where the two-dimensional code is used for the first
  • the hot spot identifier of the wireless hotspot created by the first terminal and the password information corresponding to the hot spot identifier are obtained, and a communication connection with the first terminal is established based on the hot spot identifier and the password information, where
  • the two-dimensional code includes a hot spot identifier of the wireless hotspot created by the first terminal and password information corresponding to the hot spot identifier;
  • the data migration device may further include:
  • the second communication unit 411 is configured to establish a communication connection with the second terminal based on a short-range wireless communication technology, where the short-range wireless communication technology includes NFC communication technology, ZigBee communication technology, and Bluetooth communication technology. One or a combination.
  • the data migration device described in the device embodiment of the present invention is presented in the form of a functional unit.
  • the term "unit” as used herein shall be understood to mean the broadest possible meaning, and the object for implementing the functions described for each "unit” may be, for example, an integrated circuit ASIC, a single circuit for executing one or more software or firmware.
  • a processor shared, dedicated or chipset
  • memory of the program combinatorial logic, and/or other suitable components that perform the functions described above.
  • the function of the above-mentioned instruction acquisition unit 401 to obtain the target application identifier of the target application to be migrated by the user may be implemented by the mobile terminal shown in FIG. 6, and may be specifically invoked by the processor 101 by calling the memory 102. Execute the program code to obtain the target application identifier of the target application to be migrated selected by the user.
  • the first terminal first acquires the target application identifier of the target application to be migrated selected by the user, and secondly, searches the pre-stored database based on the target application identifier to obtain the association with the target application identifier. a first target application data storage location in the SD card directory, and then extracting second target application data stored in the data directory associated with the target application identifier, and based on the acquired first target application data a storage location under the SD card directory, extracting the first target application data, and finally, the first target application data and the second target should The data is sent to a second terminal that establishes a communication connection with the first terminal.
  • the mobile terminal can realize the associative storage of the application identifier and the storage location of the application data associated with the application identifier in the SD card directory, thereby eliminating the need for the user to manually select the data in the SD card directory corresponding to the application, and automatically implementing the application data. Migrate and improve the intelligence of data migration.
  • the embodiment of the invention further provides a mobile terminal, as shown in FIG. 6, comprising: a processor 101, a memory 102, a communication interface 103 and a communication bus 104; wherein the processor 101, the memory 102 and the communication interface 103 pass through a communication bus 104 connects and completes communication with each other; the processor 101 controls wireless communication with an external cellular network through the communication interface 103; the communication interface 103 includes but is not limited to an antenna, an amplifier, a transceiver, a coupler, and a low noise amplifier (low noise amplifier) , LNA), duplexer, etc.
  • LNA low noise amplifier
  • the memory 102 includes at least one of: a random access memory, a nonvolatile memory, and an external memory, the memory 102 storing executable program code capable of directing the processor 101 to perform the method embodiment of the present invention
  • the data migration method specifically disclosed in the following includes the following steps:
  • the processor 101 acquires a target application identifier of a target application to be migrated selected by a user;
  • the processor 101 is configured to query a pre-stored database based on the target application identifier, and obtain a storage location of the first target application data associated with the target application identifier in an SD card directory, where the database stores an application identifier and a mapping relationship between the storage location of the first application data associated with the application identifier in the SD card directory;
  • the processor 101 extracts second target application data associated with the target application identifier, and extracts the first target application data based on the obtained storage location of the first target application data in the SD card directory, where The second target application data is stored in a data directory;
  • the processor 101 sends the first target application data and the second target application data to a second terminal that establishes a communication connection with the first terminal.
  • the first terminal first acquires the target application identifier of the target application to be migrated selected by the user, and secondly, searches the pre-stored database based on the target application identifier to obtain the association with the target application identifier. a first target application data storage location in the SD card directory, and then extracting a second directory stored in the data directory associated with the target application identifier Marking the application data, and extracting the first target application data based on the obtained storage location of the first target application data in the SD card directory, and finally the first target application data and the second target application data Sending to a second terminal establishing a communication connection with the first terminal.
  • the mobile terminal can realize the associative storage of the application identifier and the storage location of the application data associated with the application identifier in the SD card directory, thereby eliminating the need for the user to manually select the data in the SD card directory corresponding to the application, and automatically implementing the application data. Migrate and improve the intelligence of data migration.
  • the executable program code stored in the above memory 102 is also used to perform the relevant steps of the data migration method shown in FIGS. 2, 3, and 4 described above. And obtaining, according to the database pre-stored by the target application identifier query, a step of acquiring a storage location of the first target application data associated with the target application identifier in an SD card directory, and the like.
  • the embodiment of the present invention further provides another mobile terminal.
  • the mobile terminal may be any terminal device including a mobile phone, a tablet computer, a personal digital assistant (PDA), a point of sales (POS), a car computer, and the like, and the mobile terminal is used as a mobile phone as an example:
  • PDA personal digital assistant
  • POS point of sales
  • FIG. 7 is a block diagram showing a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present invention.
  • the mobile phone includes: a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (Wi-Fi) module 970, and processing.
  • Device 980 and components such as power supply 990.
  • the structure of the handset shown in FIG. 7 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.
  • the RF circuit 910 can be used for receiving and transmitting information.
  • RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like.
  • LNA low noise amplifier
  • RF circuitry 910 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to global system of mobile communication (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), e-mail, Short messaging service (SMS), etc.
  • GSM global system of mobile communication
  • GPRS general packet radio service
  • CDMA code division multiple access
  • WCDMA wideband code division multiple access
  • LTE long term evolution
  • SMS Short messaging service
  • the memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 920.
  • the memory 920 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function, and the like; the storage data area may store data created according to usage of the mobile phone, and the like.
  • memory 920 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 930 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset.
  • the input unit 930 can include a fingerprint identification module 931 and other input devices 932.
  • the fingerprint identification module 931 can collect fingerprint data of the user.
  • the fingerprint identification module 931 can include an optical fingerprint module, a capacitive fingerprint module, and a radio frequency fingerprint module.
  • the fingerprint identification module 931 is an example of a capacitive fingerprint recognition module, and specifically includes a sensing electrode (an abnormal sensing electrode and a normal sensing electrode) and a signal processing circuit (such as an amplifying circuit, a noise suppression circuit, and a mode) connected to the sensing electrode. Number conversion circuit, etc.).
  • the input unit 930 may also include other input devices 932.
  • other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 940 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
  • the display unit 940 can include a display screen 941.
  • the display screen 941 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the fingerprint recognition module 931 and the display screen 941 function as two separate components to implement the input and input functions of the mobile phone, in some embodiments, the fingerprint recognition module 931 and the display screen 941 may be Integrated to achieve the input and output functions of the phone.
  • the handset may also include at least one type of sensor 950, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen 941 according to the brightness of the ambient light, and the proximity sensor may turn off the display screen 941 and/or when the mobile phone moves to the ear. Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the mobile phone can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration
  • vibration recognition related functions such as pedometer, tapping
  • the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • An audio circuit 960, a speaker 961, and a microphone 962 can provide an audio interface between the user and the handset.
  • the audio circuit 960 can transmit the converted electrical data of the received audio data to the speaker 961, and convert it into a sound signal output by the speaker 961.
  • the microphone 962 converts the collected sound signal into an electrical signal, and the audio circuit 960 After receiving, it is converted into audio data, and then processed by the audio data output processor 980, sent to the other mobile phone via the RF circuit 910, or outputted to the memory 920 for further processing.
  • Wi-Fi is a short-range wireless transmission technology.
  • the mobile phone can help users to send and receive e-mail, browse web pages and access streaming media through the Wi-Fi module 970, which provides users with wireless broadband Internet access.
  • FIG. 7 shows the Wi-Fi module 970, it can be understood that it does not belong to the essential configuration of the mobile phone, and can be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 980 is the control center of the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 920, and invoking data stored in the memory 920, executing The phone's various functions and processing data, so that the overall monitoring of the phone.
  • the processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 980.
  • the mobile phone also includes a power source 990 (such as a battery) for supplying power to various components.
  • a power source 990 such as a battery
  • the power source can be logically connected to the processor 980 through a power management system to implement management charging through the power management system. Electrical, electrical, and power management functions.
  • the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • each step method flow can be implemented based on the structure of the mobile phone.
  • each unit function can be implemented based on the structure of the mobile phone.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of any one of the data migration methods described in the foregoing method embodiments.
  • the disclosed apparatus may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in various embodiments of the present invention may be integrated in one processing unit. It is also possible that each unit physically exists alone, or two or more units may be integrated in one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a memory. A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing memory includes: a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

A data migration method and device. The method comprises: obtaining a target application identifier of a target application to be migrated that is selected by a user; searching a pre-stored database according to the target application identifier so as to obtain a storage location of first target application data associated with the target application identifier in an SD card directory; extracting second target application data associated with the target application identifier, and extracting the first target application data according to the obtained storage location of the first target application data in the SD card directory, the second target application data being stored in a data directory; sending the first target application data and the second target application data to a second terminal which establishes a communication connection to the first terminal. Also provided are a data migration device and a mobile terminal.

Description

一种数据迁移方法及装置Data migration method and device
本发明要求2016年9月14日递交的发明名称为“一种数据迁移方法及移动终端”的申请号201610825678.2的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。The present invention claims the priority of the prior application filed on September 14, 2016, entitled "A Data Migration Method and Mobile Terminal", No. 201610825678.2, the contents of which are incorporated herein by reference. .
技术领域Technical field
本发明涉及移动终端技术领域,具体涉及一种数据迁移方法及装置。The present invention relates to the field of mobile terminal technologies, and in particular, to a data migration method and apparatus.
背景技术Background technique
随着移动终端技术的发展,手机已经成为人们生活中必不可少的一部分。而且随着人们换手机的频率越来越快,如何将旧手机中的用户数据(例如日常使用的应用程序,重要的聊天记录和文档,连过的所有Wi-Fi密码等)快捷高效的转移到新手机中已成为亟待解决的热点问题。With the development of mobile terminal technology, mobile phones have become an indispensable part of people's lives. And as people change their mobile phones faster and faster, how to quickly and efficiently transfer user data from old phones (such as daily-used apps, important chats and documents, all Wi-Fi passwords, etc.) It has become a hot issue to be solved in the new mobile phone.
发明内容Summary of the invention
本发明实施例提供了一种数据迁移方法及装置,无需用户手动选择应用程序对应的SD卡目录下的数据,自动实现应用程序的数据迁移,提升数据迁移的智能性。The embodiment of the invention provides a data migration method and device, which does not require the user to manually select the data in the SD card directory corresponding to the application, automatically implements data migration of the application, and improves the intelligence of data migration.
第一方面,本发明实施例提供一种数据迁移方法,包括:In a first aspect, an embodiment of the present invention provides a data migration method, including:
第一终端获取用户选择的待迁移的目标应用程序的目标应用标识;The first terminal acquires a target application identifier of the target application to be migrated selected by the user;
所述第一终端基于所述目标应用标识查询预存的数据库,获取与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置,其中,所述数据库中存储有应用标识和与所述应用标识关联的第一应用数据在SD卡目录下的存储位置的映射关系; The first terminal is configured to query a pre-stored database based on the target application identifier, and obtain a storage location of the first target application data associated with the target application identifier in an SD card directory, where the database stores an application identifier and a mapping relationship between the storage location of the first application data associated with the application identifier in the SD card directory;
所述第一终端提取与所述目标应用标识关联的第二目标应用数据,并基于获取的所述第一目标应用数据在SD卡目录下的存储位置,提取所述第一目标应用数据,其中,所述第二目标应用数据存储于data目录下;The first terminal extracts the second target application data associated with the target application identifier, and extracts the first target application data based on the obtained storage location of the first target application data in the SD card directory, where The second target application data is stored in a data directory;
所述第一终端将所述第一目标应用数据和所述第二目标应用数据发送至与所述第一终端建立通信连接的第二终端。The first terminal sends the first target application data and the second target application data to a second terminal that establishes a communication connection with the first terminal.
第二方面,本发明实施例提供一种数据迁移装置,包括:In a second aspect, an embodiment of the present invention provides a data migration apparatus, including:
获取单元,用于获取用户选择的待迁移的目标应用程序的目标应用标识;An obtaining unit, configured to acquire a target application identifier of a target application to be migrated selected by a user;
查询单元,用于基于所述目标应用标识查询预存的数据库,获取与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置,其中,所述数据库中存储有应用标识和与所述应用标识关联的第一应用数据在SD卡目录下的存储位置的映射关系;a querying unit, configured to acquire a storage location of the first target application data associated with the target application identifier in an SD card directory, where the database is stored with an application identifier and a mapping relationship between the storage location of the first application data associated with the application identifier in the SD card directory;
提取单元,用于提取与所述目标应用标识关联的第二目标应用数据,并基于获取的所述第一目标应用数据在SD卡目录下的存储位置,提取所述第一目标应用数据,其中,所述第二目标应用数据存储于data目录下;An extracting unit, configured to extract second target application data associated with the target application identifier, and extract the first target application data based on the obtained storage location of the first target application data in an SD card directory, where The second target application data is stored in a data directory;
发送单元,用于将所述第一目标应用数据和所述第二目标应用数据发送至与所述第一终端建立通信连接的第二终端。And a sending unit, configured to send the first target application data and the second target application data to a second terminal that establishes a communication connection with the first terminal.
第三方面,本发明实施例提供一种移动终端,包括:In a third aspect, an embodiment of the present invention provides a mobile terminal, including:
处理器和存储器;Processor and memory;
所述存储器存储有可执行程序代码;The memory stores executable program code;
所述处理器用于调用所述存储器中的所述可执行程序代码,执行如第一方面所描述的方法。The processor is configured to invoke the executable program code in the memory to perform the method as described in the first aspect.
第四方面,本发明实施例提供一种存储介质,所述存储介质存储有程序,所述程序用于执行如第一方面所描述的方法。In a fourth aspect, an embodiment of the present invention provides a storage medium, where the storage medium stores a program, and the program is used to execute the method as described in the first aspect.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments or the prior art description will be briefly described below, and the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, Other drawings can also be obtained from these figures.
图1是本发明实施例公开的一种网络架构的结构示意图;1 is a schematic structural diagram of a network architecture according to an embodiment of the present invention;
图2是本发明实施例公开的一种数据迁移方法的流程示意图;2 is a schematic flowchart of a data migration method according to an embodiment of the present invention;
图3是本发明实施例公开的另一种数据迁移方法的流程示意图;3 is a schematic flowchart of another data migration method according to an embodiment of the present invention;
图4是本发明实施例公开的另一种数据迁移方法的流程示意图;4 is a schematic flowchart of another data migration method according to an embodiment of the present invention;
图5是本发明实施例公开的一种数据迁移装置的单元组成框图;FIG. 5 is a block diagram showing the unit composition of a data migration apparatus according to an embodiment of the present invention; FIG.
图6是本发明实施例公开的一种移动终端的结构示意图;FIG. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure;
图7是本发明实施例公开的另一种移动终端的结构示意图。FIG. 7 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the specification and claims of the present invention and the above drawings are used to distinguish different objects, and are not intended to describe a specific order. Furthermore, the terms "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or alternatively Other steps or units inherent to these processes, methods, products, or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。References to "an embodiment" herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention. The appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
本发明实施例提供的数据迁移方法,第一终端首先获取用户选择的待迁移的目标应用程序的目标应用标识,其次,基于所述目标应用标识查询预存的数 据库,获取与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置,然后,提取与所述目标应用标识关联的存储于data目录下的第二目标应用数据,并基于获取的所述第一目标应用数据在SD卡目录下的存储位置,提取所述第一目标应用数据,最后将所述第一目标应用数据和所述第二目标应用数据发送至与所述第一终端建立通信连接的第二终端。可见,移动终端能够实现应用标识和与应用标识关联的应用数据在SD卡目录下的存储位置的关联存储,从而无需用户手动选择应用程序对应的SD卡目录下的数据,自动实现应用程序的数据迁移,提升数据迁移的智能性。In the data migration method provided by the embodiment of the present invention, the first terminal first acquires the target application identifier of the target application to be migrated selected by the user, and secondly, queries the pre-stored number based on the target application identifier. Obtaining a storage location of the first target application data associated with the target application identifier in the SD card directory, and then extracting second target application data stored in the data directory associated with the target application identifier, and Extracting the first target application data based on the obtained storage location of the first target application data in the SD card directory, and finally sending the first target application data and the second target application data to the The first terminal establishes a second terminal of the communication connection. It can be seen that the mobile terminal can realize the associative storage of the application identifier and the storage location of the application data associated with the application identifier in the SD card directory, thereby eliminating the need for the user to manually select the data in the SD card directory corresponding to the application, and automatically implementing the application data. Migrate and improve the intelligence of data migration.
下面对本发明实施例进行详细介绍。The embodiments of the present invention are described in detail below.
为了更好理解本发明实施例公开的一种数据迁移方法及移动终端,下面先对本发明实施例适用的网络构架进行描述。请参阅图1,图1是本发明实施例公开的一种网络构架的结构示意图。如图1所示,该网络构架示意图可以包括第一终端和第二终端,其中,所述第一终端和第二终端可以为包括手机、平板电脑、个人数字助理(personal digital assistant,PDA)、销售终端(point of sales,POS)、车载电脑等任意终端设备。其中,第一终端可以通过网络与第二终端进行通信连接。In order to better understand a data migration method and a mobile terminal disclosed in the embodiments of the present invention, a network architecture to which the embodiments of the present invention are applied will be described below. Please refer to FIG. 1. FIG. 1 is a schematic structural diagram of a network architecture according to an embodiment of the present invention. As shown in FIG. 1 , the network architecture diagram may include a first terminal and a second terminal, where the first terminal and the second terminal may include a mobile phone, a tablet, a personal digital assistant (PDA), Any terminal equipment such as point of sales (POS), on-board computer. The first terminal may be in communication connection with the second terminal through a network.
基于图1所示的网络构架,本发明实施例公开了的一种数据迁移方法。请参阅图2,图2是本发明实施例提供了一种数据迁移方法,如图2所示,本发明实施例中的数据迁移方法包括:Based on the network architecture shown in FIG. 1, a data migration method is disclosed in the embodiment of the present invention. Referring to FIG. 2, FIG. 2 is a data migration method according to an embodiment of the present invention. As shown in FIG. 2, the data migration method in the embodiment of the present invention includes:
S101、第一终端获取用户选择的待迁移的目标应用程序的目标应用标识。S101. The first terminal acquires a target application identifier of the target application to be migrated selected by the user.
具体地,第一终端可以针对存储于第一终端的数据进行迁移,例如,包括,日历、浏览器历史、浏览器标签、天气、设置、桌面布局、应用程序、通话记录以及通讯录等数据。第一终端获取用户通过按键或者触摸屏选择的待迁移的目标应用程序的目标应用标识。Specifically, the first terminal may migrate data stored in the first terminal, for example, including calendar, browser history, browser tab, weather, settings, desktop layout, application, call history, and address book. The first terminal acquires a target application identifier of the target application to be migrated selected by the user through a button or a touch screen.
S102、所述第一终端基于所述目标应用标识查询预存的数据库,获取与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置,其中,所述数据库中存储有应用标识和与所述应用标识关联的第一应用数据在SD卡目录下的存储位置的映射关系。 S102. The first terminal queries a pre-stored database based on the target application identifier, and acquires a storage location of the first target application data associated with the target application identifier in an SD card directory, where the database stores an application. And mapping a mapping relationship between the first application data associated with the application identifier and a storage location under the SD card directory.
S103、所述第一终端提取与所述目标应用标识关联的第二目标应用数据,并基于获取的所述第一目标应用数据在SD卡目录下的存储位置,提取所述第一目标应用数据,其中,所述第二目标应用数据存储于data目录下。S103. The first terminal extracts second target application data that is associated with the target application identifier, and extracts the first target application data based on the obtained storage location of the first target application data in an SD card directory. The second target application data is stored in the data directory.
具体地,存储于SD卡目录下的第一目标应用数据可以由用户进行改动或者设置,对于一个目标应用程序,对应的在SD卡目录下的存储位置可以由用户根据具体情况进行设置,而存储于data目录下的第二目标应用数据是存储于系统分区内的数据,用户没有改动权限,对于一个目标应用程序,对应的在data目录下的存储位置是固定的,因此,无需进行关联。Specifically, the first target application data stored in the SD card directory may be modified or set by the user. For a target application, the corresponding storage location in the SD card directory may be set by the user according to specific conditions, and stored. The second target application data in the data directory is data stored in the system partition, and the user does not change the permissions. For a target application, the corresponding storage location in the data directory is fixed, and therefore, no association is required.
S104、所述第一终端将所述第一目标应用数据和所述第二目标应用数据发送至与所述第一终端建立通信连接的第二终端。S104. The first terminal sends the first target application data and the second target application data to a second terminal that establishes a communication connection with the first terminal.
可选的,所述第一终端将所述第一目标应用数据和所述第二目标应用数据发送至与所述第一终端建立通信连接的第二终端的具体实现方式可以是:Optionally, the specific implementation manner that the first terminal sends the first target application data and the second target application data to the second terminal that establishes a communication connection with the first terminal may be:
所述第一终端将所述第一目标应用数据以及所述第一目标应用数据的存储位置和所述第二目标应用数据以及所述第二目标应用数据的存储位置发送至所述第二终端,以使所述第二终端将接收的所述第一目标应用数据和所述第二目标应用数据按照对应的存储位置存储于所述第二终端。Transmitting, by the first terminal, the storage location of the first target application data and the first target application data, and the storage location of the second target application data and the second target application data to the second terminal And causing, by the second terminal, the received first target application data and the second target application data to be stored in the second terminal according to a corresponding storage location.
本发明实施例提供的数据迁移方法,第一终端首先获取用户选择的待迁移的目标应用程序的目标应用标识,其次,基于所述目标应用标识查询预存的数据库,获取与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置,然后,提取与所述目标应用标识关联的存储于data目录下的第二目标应用数据,并基于获取的所述第一目标应用数据在SD卡目录下的存储位置,提取所述第一目标应用数据,最后将所述第一目标应用数据和所述第二目标应用数据发送至与所述第一终端建立通信连接的第二终端。可见,移动终端能够实现应用标识和与应用标识关联的应用数据在SD卡目录下的存储位置的关联存储,从而无需用户手动选择应用程序对应的SD卡目录下的数据,自动实现应用程序的数据迁移,提升数据迁移的智能性。According to the data migration method provided by the embodiment of the present invention, the first terminal first acquires the target application identifier of the target application to be migrated selected by the user, and secondly, searches the pre-stored database based on the target application identifier to obtain the association with the target application identifier. a first target application data storage location in the SD card directory, and then extracting second target application data stored in the data directory associated with the target application identifier, and based on the acquired first target application data The storage location under the SD card directory extracts the first target application data, and finally sends the first target application data and the second target application data to a second terminal that establishes a communication connection with the first terminal. It can be seen that the mobile terminal can realize the associative storage of the application identifier and the storage location of the application data associated with the application identifier in the SD card directory, thereby eliminating the need for the user to manually select the data in the SD card directory corresponding to the application, and automatically implementing the application data. Migrate and improve the intelligence of data migration.
可选的,所述第一终端还可以执行以下操作:Optionally, the first terminal may also perform the following operations:
所述第一终端在检测所述目标应用程序在SD卡目录下存储新的应用数据 时,获取所述目标应用程序的目标应用标识和所述新的应用数据的存储位置,以更新所述数据库;The first terminal detects that the target application stores new application data in an SD card directory. And acquiring a target application identifier of the target application and a storage location of the new application data to update the database;
所述第一终端将所述目标应用程序的目标应用标识和所述新的应用数据的存储位置发送至与所述第一终端建立通信连接的服务端,以使所述服务端更新存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系。Transmitting, by the first terminal, a target application identifier of the target application and a storage location of the new application data to a server that establishes a communication connection with the first terminal, so that the server updates the stored target And a mapping relationship between the application identifier and the storage location of the first target application data associated with the target application identifier in the SD card directory.
可选的,所述第一终端基于所述目标应用标识查询预存的数据库,获取与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置之前,还可以执行以下操作:Optionally, the first terminal performs a query on the pre-stored database based on the target application identifier, and obtains the storage location of the first target application data associated with the target application identifier in the SD card directory, and may also perform the following operations:
所述第一终端检测所述服务端存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系是否与所述数据库中存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系相同;The first terminal detects whether a mapping relationship between the target application identifier stored by the server and the storage location of the first target application data in the SD card directory associated with the target application identifier is related to the target application stored in the database The mapping relationship between the identifier and the storage location of the first target application data associated with the target application identifier in the SD card directory is the same;
若相同,则执行所述第一终端基于所述目标应用标识查询预存的数据库,获取与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的步骤;If the same, the first terminal is configured to obtain a storage location of the first target application data associated with the target application identifier in the SD card directory according to the database stored in the target application identifier query;
若不相同,从所述服务端下载所述目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系,以更新所述数据库。If not, the mapping relationship between the target application identifier and the storage location of the first target application data associated with the target application identifier in the SD card directory is downloaded from the server to update the database.
可选的,所述第一终端获取用户选择的待迁移的目标应用程序的目标应用标识之前,还可以执行以下操作:Optionally, before the first terminal acquires the target application identifier of the target application to be migrated selected by the user, the following operations may also be performed:
所述第一终端在所述显示界面上显示二维码,所述二维码用于所述第二终端扫描后获取所述第一终端创建的无线热点的热点标识和所述热点标识对应的密码信息,并基于所述热点标识和所述密码信息建立与所述第一终端的通信连接,其中,所述二维码包括所述第一终端创建的无线热点的热点标识和所述热点标识对应的密码信息;The first terminal displays a two-dimensional code on the display interface, where the two-dimensional code is used to obtain the hotspot identifier of the wireless hotspot created by the first terminal and the hotspot identifier corresponding to the second terminal a password information, and establishing a communication connection with the first terminal based on the hotspot identifier and the password information, where the two-dimensional code includes a hotspot identifier of the wireless hotspot created by the first terminal, and the hotspot identifier Corresponding password information;
或者,or,
所述第一终端基于短距离无线通信技术建立与所述第二终端的通信连接, 其中,所述短距离无线通信技术包括NFC通讯技术、ZigBee通讯技术和蓝牙通讯技术中的一种或者组合。Establishing, by the first terminal, a communication connection with the second terminal based on a short-range wireless communication technology, The short-range wireless communication technology includes one or a combination of NFC communication technology, ZigBee communication technology, and Bluetooth communication technology.
与上述图2所示的实施例一致的,请参阅图3,图3是本发明实施例提供的另一种数据迁移方法的流程示意图。如图3所示,本发明实施例中的数据迁移方法包括:For the same as the embodiment shown in FIG. 2, please refer to FIG. 3. FIG. 3 is a schematic flowchart of another data migration method according to an embodiment of the present invention. As shown in FIG. 3, the data migration method in the embodiment of the present invention includes:
S201、所述第一终端在检测所述目标应用程序在SD卡目录下存储新的应用数据时,获取所述目标应用程序的目标应用标识和所述新的应用数据的存储位置,以更新所述数据库。S201. The first terminal, when detecting that the target application stores new application data in an SD card directory, acquiring a target application identifier of the target application and a storage location of the new application data, to update the location. Database.
S202、所述第一终端将所述目标应用程序的目标应用标识和所述新的应用数据的存储位置发送至与所述第一终端建立通信连接的服务端,以使所述服务端更新存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系。S202. The first terminal sends a target application identifier of the target application and a storage location of the new application data to a server that establishes a communication connection with the first terminal, so that the server updates the storage. And a mapping relationship between the target application identifier and the storage location of the first target application data associated with the target application identifier in the SD card directory.
S203、所述第一终端在所述显示界面上显示二维码,所述二维码用于所述第二终端扫描后获取所述第一终端创建的无线热点的热点标识和所述热点标识对应的密码信息,并基于所述热点标识和所述密码信息建立与所述第一终端的通信连接,其中,所述二维码包括所述第一终端创建的无线热点的热点标识和所述热点标识对应的密码信息。S203: The first terminal displays a two-dimensional code on the display interface, where the two-dimensional code is used to obtain the hotspot identifier and the hotspot identifier of the wireless hotspot created by the first terminal after the second terminal scans Corresponding cryptographic information, and establishing a communication connection with the first terminal based on the hotspot identifier and the password information, where the two-dimensional code includes a hotspot identifier of the wireless hotspot created by the first terminal, and the The password information corresponding to the hotspot identifier.
S204、第一终端获取用户选择的待迁移的目标应用程序的目标应用标识。S204. The first terminal acquires a target application identifier of the target application to be migrated selected by the user.
S205、所述第一终端检测所述服务端存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系是否与所述数据库中存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系相同。S205. The first terminal detects whether a mapping relationship between the target application identifier stored by the server and the storage location of the first target application data in the SD card directory associated with the target application identifier is stored in the database. The mapping relationship between the target application identifier and the storage location of the first target application data associated with the target application identifier in the SD card directory is the same.
其中,若相同,则执行步骤S207至S209;Wherein, if the same, then steps S207 to S209;
若不相同,则执行步骤S206至S209。If not, steps S206 to S209 are performed.
S206、所述第一终端从所述服务端下载所述目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系,以更新所述数据库。 S206. The first terminal downloads a mapping relationship between the target application identifier and a storage location of the first target application data in the SD card directory associated with the target application identifier from the server to update the database.
S207、所述第一终端基于所述目标应用标识查询预存的数据库,获取与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置,其中,所述数据库中存储有应用标识和与所述应用标识关联的第一应用数据在SD卡目录下的存储位置的映射关系。S207. The first terminal queries a pre-stored database based on the target application identifier, and acquires a storage location of the first target application data associated with the target application identifier in an SD card directory, where the database stores an application. And mapping a mapping relationship between the first application data associated with the application identifier and a storage location under the SD card directory.
S208、所述第一终端提取与所述目标应用标识关联的第二目标应用数据,并基于获取的所述第一目标应用数据在SD卡目录下的存储位置,提取所述第一目标应用数据,其中,所述第二目标应用数据存储于data目录下。S208. The first terminal extracts second target application data that is associated with the target application identifier, and extracts the first target application data based on the obtained storage location of the first target application data in the SD card directory. The second target application data is stored in the data directory.
S209、所述第一终端将所述第一目标应用数据以及所述第一目标应用数据的存储位置和所述第二目标应用数据以及所述第二目标应用数据的存储位置发送至所述第二终端,以使所述第二终端将接收的所述第一目标应用数据和所述第二目标应用数据按照对应的存储位置存储于所述第二终端。S209. The first terminal sends, to the first target application data, a storage location of the first target application data, and a storage location of the second target application data and the second target application data to the first location. And the second terminal, so that the first target application data and the second target application data that are received by the second terminal are stored in the second terminal according to a corresponding storage location.
本发明实施例提供的数据迁移方法,第一终端首先获取用户选择的待迁移的目标应用程序的目标应用标识,其次,基于所述目标应用标识查询预存的数据库,获取与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置,然后,提取与所述目标应用标识关联的存储于data目录下的第二目标应用数据,并基于获取的所述第一目标应用数据在SD卡目录下的存储位置,提取所述第一目标应用数据,最后将所述第一目标应用数据和所述第二目标应用数据发送至与所述第一终端建立通信连接的第二终端。可见,移动终端能够实现应用标识和与应用标识关联的应用数据在SD卡目录下的存储位置的关联存储,从而无需用户手动选择应用程序对应的SD卡目录下的数据,自动实现应用程序的数据迁移,提升数据迁移的智能性。According to the data migration method provided by the embodiment of the present invention, the first terminal first acquires the target application identifier of the target application to be migrated selected by the user, and secondly, searches the pre-stored database based on the target application identifier to obtain the association with the target application identifier. a first target application data storage location in the SD card directory, and then extracting second target application data stored in the data directory associated with the target application identifier, and based on the acquired first target application data The storage location under the SD card directory extracts the first target application data, and finally sends the first target application data and the second target application data to a second terminal that establishes a communication connection with the first terminal. It can be seen that the mobile terminal can realize the associative storage of the application identifier and the storage location of the application data associated with the application identifier in the SD card directory, thereby eliminating the need for the user to manually select the data in the SD card directory corresponding to the application, and automatically implementing the application data. Migrate and improve the intelligence of data migration.
与上述图2和图3所示的实施例一致的,请参阅图4,图4是本发明实施例提供的另一种数据迁移方法的流程示意图。如图4所示,本发明实施例中的数据迁移方法包括:Referring to FIG. 4 and FIG. 3, FIG. 4 is a schematic flowchart of another data migration method according to an embodiment of the present invention. As shown in FIG. 4, the data migration method in the embodiment of the present invention includes:
S301、所述第一终端在检测所述目标应用程序在SD卡目录下存储新的应用数据时,获取所述目标应用程序的目标应用标识和所述新的应用数据的存储位置,以更新所述数据库。 S301. The first terminal, when detecting that the target application stores new application data in an SD card directory, acquiring a target application identifier of the target application and a storage location of the new application data, to update the location. Database.
S302、所述第一终端将所述目标应用程序的目标应用标识和所述新的应用数据的存储位置发送至与所述第一终端建立通信连接的服务端,以使所述服务端更新存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系。S302. The first terminal sends a target application identifier of the target application and a storage location of the new application data to a server that establishes a communication connection with the first terminal, so that the server updates the storage. And a mapping relationship between the target application identifier and the storage location of the first target application data associated with the target application identifier in the SD card directory.
S303、所述第一终端基于短距离无线通信技术建立与所述第二终端的通信连接,其中,所述短距离无线通信技术包括NFC通讯技术、ZigBee通讯技术和蓝牙通讯技术中的一种或者组合。S303. The first terminal establishes a communication connection with the second terminal according to a short-range wireless communication technology, where the short-range wireless communication technology includes one of NFC communication technology, ZigBee communication technology, and Bluetooth communication technology, or combination.
S304、第一终端获取用户选择的待迁移的目标应用程序的目标应用标识。S304. The first terminal acquires a target application identifier of the target application to be migrated selected by the user.
S305、所述第一终端检测所述服务端存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系是否与所述数据库中存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系相同。S305. The first terminal detects whether a mapping relationship between the target application identifier stored by the server and the storage location of the first target application data in the SD card directory associated with the target application identifier is stored in the database. The mapping relationship between the target application identifier and the storage location of the first target application data associated with the target application identifier in the SD card directory is the same.
其中,若相同,则执行步骤S307至S309;Wherein, if the same, then steps S307 to S309;
若不相同,则执行步骤S306至S309。If they are not the same, steps S306 to S309 are performed.
S306、所述第一终端从所述服务端下载所述目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系,以更新所述数据库。S306. The first terminal downloads, from the server, a mapping relationship between the target application identifier and a storage location of the first target application data in the SD card directory associated with the target application identifier, to update the database.
S307、所述第一终端基于所述目标应用标识查询预存的数据库,获取与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置,其中,所述数据库中存储有应用标识和与所述应用标识关联的第一应用数据在SD卡目录下的存储位置的映射关系。S307. The first terminal queries a pre-stored database based on the target application identifier, and acquires a storage location of the first target application data associated with the target application identifier in an SD card directory, where the database stores an application. And mapping a mapping relationship between the first application data associated with the application identifier and a storage location under the SD card directory.
S308、所述第一终端提取与所述目标应用标识关联的第二目标应用数据,并基于获取的所述第一目标应用数据在SD卡目录下的存储位置,提取所述第一目标应用数据,其中,所述第二目标应用数据存储于data目录下。S308. The first terminal extracts second target application data that is associated with the target application identifier, and extracts the first target application data based on the obtained storage location of the first target application data in the SD card directory. The second target application data is stored in the data directory.
S309、所述第一终端将所述第一目标应用数据以及所述第一目标应用数据的存储位置和所述第二目标应用数据以及所述第二目标应用数据的存储位置发送至所述第二终端,以使所述第二终端将接收的所述第一目标应用数据和所述第二目标应用数据按照对应的存储位置存储于所述第二终端。 S309. The first terminal sends, to the first target application data, a storage location of the first target application data, and a storage location of the second target application data and the second target application data to the first And the second terminal, so that the first target application data and the second target application data that are received by the second terminal are stored in the second terminal according to a corresponding storage location.
本发明实施例提供的数据迁移方法,第一终端首先获取用户选择的待迁移的目标应用程序的目标应用标识,其次,基于所述目标应用标识查询预存的数据库,获取与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置,然后,提取与所述目标应用标识关联的存储于data目录下的第二目标应用数据,并基于获取的所述第一目标应用数据在SD卡目录下的存储位置,提取所述第一目标应用数据,最后将所述第一目标应用数据和所述第二目标应用数据发送至与所述第一终端建立通信连接的第二终端。可见,移动终端能够实现应用标识和与应用标识关联的应用数据在SD卡目录下的存储位置的关联存储,从而无需用户手动选择应用程序对应的SD卡目录下的数据,自动实现应用程序的数据迁移,提升数据迁移的智能性。According to the data migration method provided by the embodiment of the present invention, the first terminal first acquires the target application identifier of the target application to be migrated selected by the user, and secondly, searches the pre-stored database based on the target application identifier to obtain the association with the target application identifier. a first target application data storage location in the SD card directory, and then extracting second target application data stored in the data directory associated with the target application identifier, and based on the acquired first target application data The storage location under the SD card directory extracts the first target application data, and finally sends the first target application data and the second target application data to a second terminal that establishes a communication connection with the first terminal. It can be seen that the mobile terminal can realize the associative storage of the application identifier and the storage location of the application data associated with the application identifier in the SD card directory, thereby eliminating the need for the user to manually select the data in the SD card directory corresponding to the application, and automatically implementing the application data. Migrate and improve the intelligence of data migration.
下面为本发明又一实施例,如图5所示,本发明一实施例的数据迁移装置可以包括获取单元401、查询单元402、提取单元403以及发送单元404,其中:The following is a further embodiment of the present invention. As shown in FIG. 5, the data migration apparatus according to an embodiment of the present invention may include an obtaining unit 401, a query unit 402, an extracting unit 403, and a sending unit 404, where:
所述获取单元401,用于获取用户选择的待迁移的目标应用程序的目标应用标识;The obtaining unit 401 is configured to acquire a target application identifier of the target application to be migrated selected by the user;
所述查询单元402,用于基于所述目标应用标识查询预存的数据库,获取与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置,其中,所述数据库中存储有应用标识和与所述应用标识关联的第一应用数据在SD卡目录下的存储位置的映射关系;The querying unit 402 is configured to obtain a storage location of the first target application data associated with the target application identifier in the SD card directory, where the database is stored in the database. a mapping relationship between the application identifier and the storage location of the first application data associated with the application identifier in the SD card directory;
所述提取单元403,用于提取与所述目标应用标识关联的第二目标应用数据,并基于获取的所述第一目标应用数据在SD卡目录下的存储位置,提取所述第一目标应用数据,其中,所述第二目标应用数据存储于data目录下;The extracting unit 403 is configured to extract second target application data associated with the target application identifier, and extract the first target application based on the obtained storage location of the first target application data in the SD card directory. Data, wherein the second target application data is stored in a data directory;
所述发送单元404,用于将所述第一目标应用数据和所述第二目标应用数据发送至与所述第一终端建立通信连接的第二终端。The sending unit 404 is configured to send the first target application data and the second target application data to a second terminal that establishes a communication connection with the first terminal.
可选的,所述数据迁移装置还可以包括:Optionally, the data migration device may further include:
第一检测单元405,用于在检测所述目标应用程序在SD卡目录下存储新的应用数据时,获取所述目标应用程序的目标应用标识和所述新的应用数据的 存储位置,以更新所述数据库;a first detecting unit 405, configured to acquire a target application identifier of the target application and the new application data when detecting that the target application stores new application data in an SD card directory Storing a location to update the database;
更新单元406,用于将所述目标应用程序的目标应用标识和所述新的应用数据的存储位置发送至与所述第一终端建立通信连接的服务端,以使所述服务端更新存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系。The updating unit 406 is configured to send a target application identifier of the target application and a storage location of the new application data to a server that establishes a communication connection with the first terminal, so that the server updates the stored A mapping relationship between the target application identifier and the storage location of the first target application data associated with the target application identifier in the SD card directory.
可选的,所述数据迁移装置还可以包括:Optionally, the data migration device may further include:
第二检测单元407,在所述查询单元402基于所述目标应用标识查询预存的数据库,获取与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置之前,用于检测所述服务端存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系是否与所述数据库中存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系相同;The second detecting unit 407, after the query unit 402 queries the pre-stored database based on the target application identifier, and acquires the storage location of the first target application data associated with the target application identifier in the SD card directory, for detecting Whether the mapping relationship between the target application identifier stored by the server and the storage location of the first target application data associated with the target application identifier in the SD card directory is related to the target application identifier and the target stored in the database The mapping relationship of the storage location of the first target application data associated with the application identifier in the SD card directory is the same;
触发单元408,用于若所述第二检测单元407检测到所述服务端存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系与所述数据库中存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系相同,触发所述查询单元402执行所述第一终端基于所述目标应用标识查询预存的数据库,获取与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的操作;The triggering unit 408 is configured to: if the second detecting unit 407 detects the mapping relationship between the target application identifier stored by the server and the storage location of the first target application data associated with the target application identifier in the SD card directory The mapping relationship between the target application identifier stored in the database and the storage location of the first target application data associated with the target application identifier in the SD card directory is the same, triggering the query unit 402 to execute the first terminal based on The target application identifier queries a pre-stored database, and acquires a storage location of the first target application data associated with the target application identifier in an SD card directory;
下载单元409,用于若所述第二检测单元407检测到所述服务端存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系与所述数据库中存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系不相同,从所述服务端下载所述目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系,以更新所述数据库。The downloading unit 409 is configured to: if the second detecting unit 407 detects the mapping relationship between the target application identifier stored by the server and the storage location of the first target application data associated with the target application identifier in the SD card directory The mapping relationship between the target application identifier stored in the database and the storage location of the first target application data associated with the target application identifier in the SD card directory is different, and the target application identifier is downloaded from the server. A mapping relationship of storage locations of the first target application data associated with the target application identifier in the SD card directory to update the database.
可选的,所述发送单元404,具体用于将所述第一目标应用数据以及所述第一目标应用数据的存储位置和所述第二目标应用数据以及所述第二目标应用数据的存储位置发送至所述第二终端,以使所述第二终端将接收的所述第一 目标应用数据和所述第二目标应用数据按照对应的存储位置存储于所述第二终端。Optionally, the sending unit 404 is specifically configured to store the first target application data and the storage location of the first target application data and the second target application data and the second target application data. Sending a location to the second terminal such that the second terminal will receive the first The target application data and the second target application data are stored in the second terminal according to a corresponding storage location.
可选的,所述数据迁移装置还可以包括:Optionally, the data migration device may further include:
第一通信单元410,在所述获取单元获取用户选择的待迁移的目标应用程序的目标应用标识之前,用于在所述显示界面上显示二维码,所述二维码用于所述第二终端扫描后获取所述第一终端创建的无线热点的热点标识和所述热点标识对应的密码信息,并基于所述热点标识和所述密码信息建立与所述第一终端的通信连接,其中,所述二维码包括所述第一终端创建的无线热点的热点标识和所述热点标识对应的密码信息;The first communication unit 410 is configured to display a two-dimensional code on the display interface before the acquiring unit acquires the target application identifier of the target application to be migrated selected by the user, where the two-dimensional code is used for the first After the second terminal scans, the hot spot identifier of the wireless hotspot created by the first terminal and the password information corresponding to the hot spot identifier are obtained, and a communication connection with the first terminal is established based on the hot spot identifier and the password information, where The two-dimensional code includes a hot spot identifier of the wireless hotspot created by the first terminal and password information corresponding to the hot spot identifier;
可选的,所述数据迁移装置还可以包括:Optionally, the data migration device may further include:
第二所述通信单元411,用于基于短距离无线通信技术建立与所述第二终端的通信连接,其中,所述短距离无线通信技术包括NFC通讯技术、ZigBee通讯技术和蓝牙通讯技术中的一种或者组合。The second communication unit 411 is configured to establish a communication connection with the second terminal based on a short-range wireless communication technology, where the short-range wireless communication technology includes NFC communication technology, ZigBee communication technology, and Bluetooth communication technology. One or a combination.
需要注意的是,本发明装置实施例所描述的数据迁移装置是以功能单元的形式呈现。这里所使用的术语“单元”应当理解为尽可能最宽的含义,用于实现各个“单元”所描述功能的对象例如可以是集成电路ASIC,单个电路,用于执行一个或多个软件或固件程序的处理器(共享的、专用的或芯片组)和存储器,组合逻辑电路,和/或提供实现上述功能的其他合适的组件。It should be noted that the data migration device described in the device embodiment of the present invention is presented in the form of a functional unit. The term "unit" as used herein shall be understood to mean the broadest possible meaning, and the object for implementing the functions described for each "unit" may be, for example, an integrated circuit ASIC, a single circuit for executing one or more software or firmware. A processor (shared, dedicated or chipset) and memory of the program, combinatorial logic, and/or other suitable components that perform the functions described above.
举例来说,上述指令获取单元401获取用户选择的待迁移的目标应用程序的目标应用标识的功能可以由图6所示的移动终端来实现,具体可以通过处理器101通过调用存储器102中的可执行程序代码,获取用户选择的待迁移的目标应用程序的目标应用标识。For example, the function of the above-mentioned instruction acquisition unit 401 to obtain the target application identifier of the target application to be migrated by the user may be implemented by the mobile terminal shown in FIG. 6, and may be specifically invoked by the processor 101 by calling the memory 102. Execute the program code to obtain the target application identifier of the target application to be migrated selected by the user.
本发明实施例提供的数据迁移方法,第一终端首先获取用户选择的待迁移的目标应用程序的目标应用标识,其次,基于所述目标应用标识查询预存的数据库,获取与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置,然后,提取与所述目标应用标识关联的存储于data目录下的第二目标应用数据,并基于获取的所述第一目标应用数据在SD卡目录下的存储位置,提取所述第一目标应用数据,最后将所述第一目标应用数据和所述第二目标应 用数据发送至与所述第一终端建立通信连接的第二终端。可见,移动终端能够实现应用标识和与应用标识关联的应用数据在SD卡目录下的存储位置的关联存储,从而无需用户手动选择应用程序对应的SD卡目录下的数据,自动实现应用程序的数据迁移,提升数据迁移的智能性。According to the data migration method provided by the embodiment of the present invention, the first terminal first acquires the target application identifier of the target application to be migrated selected by the user, and secondly, searches the pre-stored database based on the target application identifier to obtain the association with the target application identifier. a first target application data storage location in the SD card directory, and then extracting second target application data stored in the data directory associated with the target application identifier, and based on the acquired first target application data a storage location under the SD card directory, extracting the first target application data, and finally, the first target application data and the second target should The data is sent to a second terminal that establishes a communication connection with the first terminal. It can be seen that the mobile terminal can realize the associative storage of the application identifier and the storage location of the application data associated with the application identifier in the SD card directory, thereby eliminating the need for the user to manually select the data in the SD card directory corresponding to the application, and automatically implementing the application data. Migrate and improve the intelligence of data migration.
本发明实施例还提供了一种移动终端,如图6所示,包括:处理器101,存储器102,通信接口103和通信总线104;其中,处理器101、存储器102和通信接口103通过通信总线104连接并完成相互间的通信;处理器101通过通信接口103控制与外部蜂窝网的无线通信;通信接口103包括但不限于天线、放大器、收发信机、耦合器、低噪声放大器(low noise amplifier,LNA)、双工器等。存储器102包括以下至少一种:随机存取存贮器、非易失性存储器以及外部存储器,存储器102中存储有可执行程序代码,该可执行程序代码能够引导处理器101执行本发明方法实施例中具体披露的数据迁移方法,包括以下步骤:The embodiment of the invention further provides a mobile terminal, as shown in FIG. 6, comprising: a processor 101, a memory 102, a communication interface 103 and a communication bus 104; wherein the processor 101, the memory 102 and the communication interface 103 pass through a communication bus 104 connects and completes communication with each other; the processor 101 controls wireless communication with an external cellular network through the communication interface 103; the communication interface 103 includes but is not limited to an antenna, an amplifier, a transceiver, a coupler, and a low noise amplifier (low noise amplifier) , LNA), duplexer, etc. The memory 102 includes at least one of: a random access memory, a nonvolatile memory, and an external memory, the memory 102 storing executable program code capable of directing the processor 101 to perform the method embodiment of the present invention The data migration method specifically disclosed in the following includes the following steps:
所述处理器101获取用户选择的待迁移的目标应用程序的目标应用标识;The processor 101 acquires a target application identifier of a target application to be migrated selected by a user;
所述处理器101基于所述目标应用标识查询预存的数据库,获取与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置,其中,所述数据库中存储有应用标识和与所述应用标识关联的第一应用数据在SD卡目录下的存储位置的映射关系;The processor 101 is configured to query a pre-stored database based on the target application identifier, and obtain a storage location of the first target application data associated with the target application identifier in an SD card directory, where the database stores an application identifier and a mapping relationship between the storage location of the first application data associated with the application identifier in the SD card directory;
所述处理器101提取与所述目标应用标识关联的第二目标应用数据,并基于获取的所述第一目标应用数据在SD卡目录下的存储位置,提取所述第一目标应用数据,其中,所述第二目标应用数据存储于data目录下;The processor 101 extracts second target application data associated with the target application identifier, and extracts the first target application data based on the obtained storage location of the first target application data in the SD card directory, where The second target application data is stored in a data directory;
所述处理器101将所述第一目标应用数据和所述第二目标应用数据发送至与所述第一终端建立通信连接的第二终端。The processor 101 sends the first target application data and the second target application data to a second terminal that establishes a communication connection with the first terminal.
本发明实施例提供的数据迁移方法,第一终端首先获取用户选择的待迁移的目标应用程序的目标应用标识,其次,基于所述目标应用标识查询预存的数据库,获取与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置,然后,提取与所述目标应用标识关联的存储于data目录下的第二目 标应用数据,并基于获取的所述第一目标应用数据在SD卡目录下的存储位置,提取所述第一目标应用数据,最后将所述第一目标应用数据和所述第二目标应用数据发送至与所述第一终端建立通信连接的第二终端。可见,移动终端能够实现应用标识和与应用标识关联的应用数据在SD卡目录下的存储位置的关联存储,从而无需用户手动选择应用程序对应的SD卡目录下的数据,自动实现应用程序的数据迁移,提升数据迁移的智能性。According to the data migration method provided by the embodiment of the present invention, the first terminal first acquires the target application identifier of the target application to be migrated selected by the user, and secondly, searches the pre-stored database based on the target application identifier to obtain the association with the target application identifier. a first target application data storage location in the SD card directory, and then extracting a second directory stored in the data directory associated with the target application identifier Marking the application data, and extracting the first target application data based on the obtained storage location of the first target application data in the SD card directory, and finally the first target application data and the second target application data Sending to a second terminal establishing a communication connection with the first terminal. It can be seen that the mobile terminal can realize the associative storage of the application identifier and the storage location of the application data associated with the application identifier in the SD card directory, thereby eliminating the need for the user to manually select the data in the SD card directory corresponding to the application, and automatically implementing the application data. Migrate and improve the intelligence of data migration.
此外,上述存储器102中存储的可执行程序代码还用于执行上述图2、图3和图4所示的数据迁移方法的相关步骤。如执行基于所述目标应用标识查询预存的数据库,获取与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的步骤,等。Furthermore, the executable program code stored in the above memory 102 is also used to perform the relevant steps of the data migration method shown in FIGS. 2, 3, and 4 described above. And obtaining, according to the database pre-stored by the target application identifier query, a step of acquiring a storage location of the first target application data associated with the target application identifier in an SD card directory, and the like.
本发明实施例还提供了另一种移动终端,如图7所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该移动终端可以为包括手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、销售终端(Point of Sales,POS)、车载电脑等任意终端设备,以移动终端为手机为例:The embodiment of the present invention further provides another mobile terminal. As shown in FIG. 7 , for the convenience of description, only the parts related to the embodiment of the present invention are shown. If the specific technical details are not disclosed, refer to the method of the embodiment of the present invention. section. The mobile terminal may be any terminal device including a mobile phone, a tablet computer, a personal digital assistant (PDA), a point of sales (POS), a car computer, and the like, and the mobile terminal is used as a mobile phone as an example:
图7示出的是与本发明实施例提供的移动终端相关的手机的部分结构的框图。参考图7,手机包括:射频(radio frequency,RF)电路910、存储器920、输入单元930、显示单元940、传感器950、音频电路960、无线保真(wireless fidelity,Wi-Fi)模块970、处理器980、以及电源990等部件。本领域技术人员可以理解,图7中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 7 is a block diagram showing a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present invention. Referring to FIG. 7, the mobile phone includes: a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (Wi-Fi) module 970, and processing. Device 980, and components such as power supply 990. It will be understood by those skilled in the art that the structure of the handset shown in FIG. 7 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.
下面结合图7对手机的各个构成部件进行具体的介绍:The following describes the components of the mobile phone in detail with reference to FIG. 7:
RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(low noise amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(global system of mobile communication,GSM)、通用分组无线服务 (general packet radio service,GPRS)、码分多址(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、长期演进(long term evolution,LTE)、电子邮件、短消息服务(short messaging service,SMS)等。The RF circuit 910 can be used for receiving and transmitting information. Generally, RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 910 can also communicate with the network and other devices via wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to global system of mobile communication (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), e-mail, Short messaging service (SMS), etc.
存储器920可用于存储软件程序以及模块,处理器980通过运行存储在存储器920的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器920可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据手机的使用所创建的数据等。此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 920. The memory 920 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function, and the like; the storage data area may store data created according to usage of the mobile phone, and the like. Moreover, memory 920 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元930可用于接收输入的数字或字符信息,以及生成与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括指纹识别模组931以及其他输入设备932。指纹识别模组931,可采集用户在其上的指纹数据。可选的,指纹识别模组931可包括光学式指纹模块、电容式指纹模块以及射频式指纹模块。以指纹识别模组931为电容式指纹识别模组为例,具体包括感应电极(异常感应电极和正常感应电极)和与所述感应电极连接的信号处理电路(如放大电路、噪声抑制电路、模数转化电路,等等)。除了指纹识别模组931,输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 930 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset. Specifically, the input unit 930 can include a fingerprint identification module 931 and other input devices 932. The fingerprint identification module 931 can collect fingerprint data of the user. Optionally, the fingerprint identification module 931 can include an optical fingerprint module, a capacitive fingerprint module, and a radio frequency fingerprint module. The fingerprint identification module 931 is an example of a capacitive fingerprint recognition module, and specifically includes a sensing electrode (an abnormal sensing electrode and a normal sensing electrode) and a signal processing circuit (such as an amplifying circuit, a noise suppression circuit, and a mode) connected to the sensing electrode. Number conversion circuit, etc.). In addition to the fingerprint recognition module 931, the input unit 930 may also include other input devices 932. Specifically, other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元940可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元940可包括显示屏941,可选的,可以采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)等形式来配置显示屏941。虽然在图7中,指纹识别模组931与显示屏941是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将指纹识别模组931与显示屏941集成而实现手机的输入和输出功能。 The display unit 940 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone. The display unit 940 can include a display screen 941. Alternatively, the display screen 941 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Although in FIG. 7, the fingerprint recognition module 931 and the display screen 941 function as two separate components to implement the input and input functions of the mobile phone, in some embodiments, the fingerprint recognition module 931 and the display screen 941 may be Integrated to achieve the input and output functions of the phone.
手机还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏941的亮度,接近传感器可在手机移动到耳边时,关闭显示屏941和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one type of sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen 941 according to the brightness of the ambient light, and the proximity sensor may turn off the display screen 941 and/or when the mobile phone moves to the ear. Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号输出;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据输出处理器980处理后,经RF电路910以发送给比如另一手机,或者将音频数据输出至存储器920以便进一步处理。An audio circuit 960, a speaker 961, and a microphone 962 can provide an audio interface between the user and the handset. The audio circuit 960 can transmit the converted electrical data of the received audio data to the speaker 961, and convert it into a sound signal output by the speaker 961. On the other hand, the microphone 962 converts the collected sound signal into an electrical signal, and the audio circuit 960 After receiving, it is converted into audio data, and then processed by the audio data output processor 980, sent to the other mobile phone via the RF circuit 910, or outputted to the memory 920 for further processing.
Wi-Fi属于短距离无线传输技术,手机通过Wi-Fi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图7示出了Wi-Fi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。Wi-Fi is a short-range wireless transmission technology. The mobile phone can help users to send and receive e-mail, browse web pages and access streaming media through the Wi-Fi module 970, which provides users with wireless broadband Internet access. Although FIG. 7 shows the Wi-Fi module 970, it can be understood that it does not belong to the essential configuration of the mobile phone, and can be omitted as needed within the scope of not changing the essence of the invention.
处理器980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器980可包括一个或多个处理单元;优选的,处理器980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器980中。The processor 980 is the control center of the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 920, and invoking data stored in the memory 920, executing The phone's various functions and processing data, so that the overall monitoring of the phone. Optionally, the processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 980.
手机还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理系统与处理器980逻辑相连,从而通过电源管理系统实现管理充 电、放电、以及功耗管理等功能。The mobile phone also includes a power source 990 (such as a battery) for supplying power to various components. Preferably, the power source can be logically connected to the processor 980 through a power management system to implement management charging through the power management system. Electrical, electrical, and power management functions.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
前述图2、图3和图4所示的实施例中,各步骤方法流程可以基于该手机的结构实现。In the foregoing embodiments shown in FIG. 2, FIG. 3 and FIG. 4, each step method flow can be implemented based on the structure of the mobile phone.
前述图5所示的实施例中,各单元功能可以基于该手机的结构实现。In the foregoing embodiment shown in FIG. 5, each unit function can be implemented based on the structure of the mobile phone.
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种数据迁移方法的部分或全部步骤。The embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of any one of the data migration methods described in the foregoing method embodiments.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided herein, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in various embodiments of the present invention may be integrated in one processing unit. It is also possible that each unit physically exists alone, or two or more units may be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a memory. A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing memory includes: a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、ROM、RAM、磁盘或光盘等。A person skilled in the art can understand that all or part of the steps of the foregoing embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable memory, and the memory can include: a flash drive , ROM, RAM, disk or CD.
以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 The embodiments of the present invention have been described in detail above, and the principles and implementations of the present invention are described in detail herein. The description of the above embodiments is only for helping to understand the method of the present invention and its core ideas; It should be understood by those skilled in the art that the present invention is not limited by the scope of the present invention.

Claims (20)

  1. 一种数据迁移方法,其特征在于,包括:A data migration method, comprising:
    第一终端获取用户选择的待迁移的目标应用程序的目标应用标识;The first terminal acquires a target application identifier of the target application to be migrated selected by the user;
    所述第一终端基于所述目标应用标识查询预存的数据库,获取与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置;The first terminal queries the pre-stored database based on the target application identifier, and acquires a storage location of the first target application data associated with the target application identifier in the SD card directory;
    所述第一终端提取与所述目标应用标识关联的第二目标应用数据,并基于获取的所述第一目标应用数据在SD卡目录下的存储位置,提取所述第一目标应用数据,其中,所述第二目标应用数据存储于data目录下;The first terminal extracts the second target application data associated with the target application identifier, and extracts the first target application data based on the obtained storage location of the first target application data in the SD card directory, where The second target application data is stored in a data directory;
    所述第一终端将所述第一目标应用数据和所述第二目标应用数据发送至与所述第一终端建立通信连接的第二终端。The first terminal sends the first target application data and the second target application data to a second terminal that establishes a communication connection with the first terminal.
  2. 如权利要求1所述的方法,其特征在于,所述预存的数据库中存储有应用标识和与所述应用标识关联的第一应用数据在SD卡目录下的存储位置的映射关系。The method according to claim 1, wherein the pre-stored database stores a mapping relationship between the application identifier and the storage location of the first application data associated with the application identifier in the SD card directory.
  3. 如权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 wherein the method further comprises:
    所述第一终端在检测所述目标应用程序在SD卡目录下存储新的应用数据时,获取所述目标应用程序的目标应用标识和所述新的应用数据的存储位置,以更新所述数据库。When detecting that the target application stores new application data in the SD card directory, the first terminal acquires a target application identifier of the target application and a storage location of the new application data to update the database. .
  4. 如权利要求3所述的方法,其特征在于,所述方法还包括:The method of claim 3, wherein the method further comprises:
    所述第一终端将所述目标应用程序的目标应用标识和所述新的应用数据的存储位置发送至与所述第一终端建立通信连接的服务端,以使所述服务端更新存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系。Transmitting, by the first terminal, a target application identifier of the target application and a storage location of the new application data to a server that establishes a communication connection with the first terminal, so that the server updates the stored target And a mapping relationship between the application identifier and the storage location of the first target application data associated with the target application identifier in the SD card directory.
  5. 如权利要求4所述的方法,其特征在于,所述第一终端基于所述目标应用标识查询预存的数据库,获取与所述目标应用标识关联的第一目标应用数 据在SD卡目录下的存储位置之前,所述方法还包括:The method according to claim 4, wherein the first terminal queries a pre-stored database based on the target application identifier, and acquires a first target application number associated with the target application identifier. According to the storage location under the SD card directory, the method further includes:
    所述第一终端检测所述服务端存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系是否与所述数据库中存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系相同;The first terminal detects whether a mapping relationship between the target application identifier stored by the server and the storage location of the first target application data in the SD card directory associated with the target application identifier is related to the target application stored in the database The mapping relationship between the identifier and the storage location of the first target application data associated with the target application identifier in the SD card directory is the same;
    若相同,则执行所述第一终端基于所述目标应用标识查询预存的数据库,获取与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的步骤。If the same, the first terminal performs a step of storing the first target application data associated with the target application identifier in the SD card directory according to the database stored in the target application identifier query.
  6. 如权利要求4所述的方法,其特征在于,所述第一终端检测所述服务端存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系是否与所述数据库中存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系相同之后,所述方法还包括:The method according to claim 4, wherein the first terminal detects a target application identifier stored by the server and a storage location of the first target application data associated with the target application identifier in an SD card directory. After the mapping relationship is the same as the mapping relationship between the target application identifier and the storage location of the first target application data in the SD card directory associated with the target application identifier, the method further includes:
    若不相同,从所述服务端下载所述目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系,以更新所述数据库。If not, the mapping relationship between the target application identifier and the storage location of the first target application data associated with the target application identifier in the SD card directory is downloaded from the server to update the database.
  7. 如权利要求1所述的方法,其特征在于,所述第一终端将所述第一目标应用数据和所述第二目标应用数据发送至与所述第一终端建立通信连接的第二终端,包括:The method according to claim 1, wherein the first terminal transmits the first target application data and the second target application data to a second terminal that establishes a communication connection with the first terminal, include:
    所述第一终端将所述第一目标应用数据以及所述第一目标应用数据的存储位置和所述第二目标应用数据以及所述第二目标应用数据的存储位置发送至所述第二终端,以使所述第二终端将接收的所述第一目标应用数据和所述第二目标应用数据按照对应的存储位置存储于所述第二终端。Transmitting, by the first terminal, the storage location of the first target application data and the first target application data, and the storage location of the second target application data and the second target application data to the second terminal And causing, by the second terminal, the received first target application data and the second target application data to be stored in the second terminal according to a corresponding storage location.
  8. 如权利要求1所述的方法,其特征在于,所述第一终端获取用户选择的待迁移的目标应用程序的目标应用标识之前,所述方法还包括: The method of claim 1, wherein the method further comprises: before the first terminal acquires the target application identifier of the target application to be migrated selected by the user, the method further includes:
    所述第一终端在所述显示界面上显示二维码,所述二维码用于所述第二终端扫描后获取所述第一终端创建的无线热点的热点标识和所述热点标识对应的密码信息,并基于所述热点标识和所述密码信息建立与所述第一终端的通信连接,其中,所述二维码包括所述第一终端创建的无线热点的热点标识和所述热点标识对应的密码信息。The first terminal displays a two-dimensional code on the display interface, where the two-dimensional code is used to obtain the hotspot identifier of the wireless hotspot created by the first terminal and the hotspot identifier corresponding to the second terminal a password information, and establishing a communication connection with the first terminal based on the hotspot identifier and the password information, where the two-dimensional code includes a hotspot identifier of the wireless hotspot created by the first terminal, and the hotspot identifier Corresponding password information.
  9. 如权利要求1所述的方法,其特征在于,所述第一终端获取用户选择的待迁移的目标应用程序的目标应用标识之前,所述方法还包括:The method of claim 1, wherein the method further comprises: before the first terminal acquires the target application identifier of the target application to be migrated selected by the user, the method further includes:
    所述第一终端基于短距离无线通信技术建立与所述第二终端的通信连接,其中,所述短距离无线通信技术包括NFC通讯技术、ZigBee通讯技术和蓝牙通讯技术中的一种或者组合。The first terminal establishes a communication connection with the second terminal based on a short-range wireless communication technology, where the short-range wireless communication technology includes one or a combination of NFC communication technology, ZigBee communication technology, and Bluetooth communication technology.
  10. 一种数据迁移装置,其特征在于,包括:A data migration device, comprising:
    获取单元,用于获取用户选择的待迁移的目标应用程序的目标应用标识;An obtaining unit, configured to acquire a target application identifier of a target application to be migrated selected by a user;
    查询单元,用于基于所述目标应用标识查询预存的数据库,获取与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置;a querying unit, configured to acquire a pre-stored database based on the target application identifier, and obtain a storage location of the first target application data associated with the target application identifier in an SD card directory;
    提取单元,用于提取与所述目标应用标识关联的第二目标应用数据,并基于获取的所述第一目标应用数据在SD卡目录下的存储位置,提取所述第一目标应用数据,其中,所述第二目标应用数据存储于data目录下;An extracting unit, configured to extract second target application data associated with the target application identifier, and extract the first target application data based on the obtained storage location of the first target application data in an SD card directory, where The second target application data is stored in a data directory;
    发送单元,用于将所述第一目标应用数据和所述第二目标应用数据发送至与所述第一终端建立通信连接的第二终端。And a sending unit, configured to send the first target application data and the second target application data to a second terminal that establishes a communication connection with the first terminal.
  11. 如权利要求10所述的数据迁移装置,其特征在于,所述数据库中存储有应用标识和与所述应用标识关联的第一应用数据在SD卡目录下的存储位置的映射关系。The data migration apparatus according to claim 10, wherein the database stores a mapping relationship between the application identifier and the storage location of the first application data associated with the application identifier in the SD card directory.
  12. 如权利要求10所述的数据迁移装置,其特征在于,所述数据迁移装置还包括: The data migration device of claim 10, wherein the data migration device further comprises:
    第一检测单元,用于在检测所述目标应用程序在SD卡目录下存储新的应用数据时,获取所述目标应用程序的目标应用标识和所述新的应用数据的存储位置,以更新所述数据库。a first detecting unit, configured to acquire a target application identifier of the target application and a storage location of the new application data when detecting that the target application stores new application data in an SD card directory, to update the location Database.
  13. 如权利要求12所述的数据迁移装置,其特征在于,所述数据迁移装置还包括:The data migration device of claim 12, wherein the data migration device further comprises:
    更新单元,用于将所述目标应用程序的目标应用标识和所述新的应用数据的存储位置发送至与所述第一终端建立通信连接的服务端,以使所述服务端更新存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系。An update unit, configured to send a target application identifier of the target application and a storage location of the new application data to a server that establishes a communication connection with the first terminal, so that the server updates the stored target And a mapping relationship between the application identifier and the storage location of the first target application data associated with the target application identifier in the SD card directory.
  14. 如权利要求13所述的数据迁移装置,其特征在于,所述数据迁移装置还包括:The data migration device of claim 13, wherein the data migration device further comprises:
    第二检测单元,在所述查询单元基于所述目标应用标识查询预存的数据库,获取与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置之前,用于检测所述服务端存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系是否与所述数据库中存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系相同;a second detecting unit, configured to detect the first target application data associated with the target application identifier in a storage location under the SD card directory before the query unit searches for a pre-stored database based on the target application identifier Whether the mapping relationship between the target application identifier stored by the server and the storage location of the first target application data associated with the target application identifier in the SD card directory is related to the target application identifier and the target application identifier stored in the database The mapping relationship of the associated first target application data in the storage location of the SD card directory is the same;
    触发单元,用于若所述第二检测单元检测到所述服务端存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系与所述数据库中存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系相同,触发所述查询单元执行所述第一终端基于所述目标应用标识查询预存的数据库,获取与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的操作。a triggering unit, configured to: if the second detecting unit detects a mapping relationship between a target application identifier stored by the server and a storage location of the first target application data associated with the target application identifier in an SD card directory, The mapping between the target application identifier stored in the database and the storage location of the first target application data associated with the target application identifier in the SD card directory is the same, triggering the query unit to execute the first terminal based on the target The application identifier queries the pre-stored database, and obtains an operation of storing the first target application data in the SD card directory associated with the target application identifier.
  15. 如权利要求13所述的数据迁移装置,其特征在于,所述数据迁移装置还包括: The data migration device of claim 13, wherein the data migration device further comprises:
    下载单元,用于若所述第二检测单元检测到所述服务端存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系与所述数据库中存储的目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系不相同,从所述服务端下载所述目标应用标识和与所述目标应用标识关联的第一目标应用数据在SD卡目录下的存储位置的映射关系,以更新所述数据库。a downloading unit, configured to: if the second detecting unit detects a mapping relationship between a target application identifier stored by the server and a storage location of the first target application data associated with the target application identifier in an SD card directory, The mapping relationship between the target application identifier stored in the database and the storage location of the first target application data associated with the target application identifier in the SD card directory is different, and the target application identifier and the location are downloaded from the server. The mapping relationship between the storage location of the first target application data associated with the target application identifier in the SD card directory is updated to update the database.
  16. 如权利要求10所述的数据迁移装置,其特征在于,The data migration device of claim 10, wherein
    所述发送单元,具体用于将所述第一目标应用数据以及所述第一目标应用数据的存储位置和所述第二目标应用数据以及所述第二目标应用数据的存储位置发送至所述第二终端,以使所述第二终端将接收的所述第一目标应用数据和所述第二目标应用数据按照对应的存储位置存储于所述第二终端。The sending unit is configured to send the first target application data and a storage location of the first target application data and a storage location of the second target application data and the second target application data to the And the second terminal, so that the first target application data and the second target application data that are received by the second terminal are stored in the second terminal according to a corresponding storage location.
  17. 如权利要求10所述的数据迁移装置,其特征在于,所述数据迁移装置还包括:The data migration device of claim 10, wherein the data migration device further comprises:
    第一通信单元,在所述获取单元获取用户选择的待迁移的目标应用程序的目标应用标识之前,用于在所述显示界面上显示二维码,所述二维码用于所述第二终端扫描后获取所述第一终端创建的无线热点的热点标识和所述热点标识对应的密码信息,并基于所述热点标识和所述密码信息建立与所述第一终端的通信连接,其中,所述二维码包括所述第一终端创建的无线热点的热点标识和所述热点标识对应的密码信息。a first communication unit, configured to display a two-dimensional code on the display interface, where the two-dimensional code is used for the second, before the acquiring unit acquires a target application identifier of the target application to be migrated selected by the user After the terminal scans, the hot spot identifier of the wireless hotspot created by the first terminal is obtained, and the password information corresponding to the hot spot identifier is obtained, and a communication connection with the first terminal is established based on the hot spot identifier and the password information, where The two-dimensional code includes a hot spot identifier of the wireless hotspot created by the first terminal and password information corresponding to the hot spot identifier.
  18. 如权利要求10所述的数据迁移装置,其特征在于,所述数据迁移装置还包括:The data migration device of claim 10, wherein the data migration device further comprises:
    第二通信单元,用于基于短距离无线通信技术建立与所述第二终端的通信连接,其中,所述短距离无线通信技术包括NFC通讯技术、ZigBee通讯技术和蓝牙通讯技术中的一种或者组合。 a second communication unit, configured to establish a communication connection with the second terminal based on a short-range wireless communication technology, where the short-range wireless communication technology includes one of NFC communication technology, ZigBee communication technology, and Bluetooth communication technology, or combination.
  19. 一种移动终端,其特征在于,包括:A mobile terminal, comprising:
    处理器和存储器;Processor and memory;
    所述存储器存储有可执行程序代码;The memory stores executable program code;
    所述处理器用于调用所述存储器中的所述可执行程序代码,执行如权利要求1-9任一项所描述的方法。The processor is operative to invoke the executable program code in the memory to perform the method as described in any one of claims 1-9.
  20. 一种存储介质,所述存储介质存储有程序,所述程序用于执行权利要求1-9任一项所述的方法。 A storage medium storing a program for performing the method of any one of claims 1-9.
PCT/CN2017/092273 2016-09-14 2017-07-07 Data migration method and device WO2018049885A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610825678.2A CN106648455A (en) 2016-09-14 2016-09-14 Data migration method and mobile terminal
CN201610825678.2 2016-09-14

Publications (1)

Publication Number Publication Date
WO2018049885A1 true WO2018049885A1 (en) 2018-03-22

Family

ID=58852270

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/092273 WO2018049885A1 (en) 2016-09-14 2017-07-07 Data migration method and device

Country Status (2)

Country Link
CN (1) CN106648455A (en)
WO (1) WO2018049885A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110472750A (en) * 2019-07-05 2019-11-19 深圳市轱辘汽车维修技术有限公司 Method, apparatus, server and the medium of enquiry circuit figure
CN112887166A (en) * 2021-01-18 2021-06-01 惠州Tcl移动通信有限公司 Detection method and system for SD card of mobile terminal, intelligent terminal and storage medium
CN112905934A (en) * 2021-02-07 2021-06-04 龙芯中科(合肥)技术有限公司 Data import method and device, electronic equipment and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648455A (en) * 2016-09-14 2017-05-10 广东欧珀移动通信有限公司 Data migration method and mobile terminal
CN112402979B (en) * 2020-12-02 2023-11-17 网易(杭州)网络有限公司 Game data processing method and device and electronic equipment
CN115543227B (en) * 2022-11-21 2023-03-14 深圳市蓝凌软件股份有限公司 Cross-system data migration method, system, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105491113A (en) * 2015-11-25 2016-04-13 小米科技有限责任公司 Migrating method, device and terminal
CN105744069A (en) * 2016-03-07 2016-07-06 努比亚技术有限公司 Information transmission method, terminal and system
EP3054394A1 (en) * 2015-02-09 2016-08-10 Samsung Electronics Co., Ltd. Permission control method and electronic device operating the same
CN106648455A (en) * 2016-09-14 2017-05-10 广东欧珀移动通信有限公司 Data migration method and mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104951212B (en) * 2014-03-25 2018-04-27 腾讯科技(深圳)有限公司 Desktop data processing method, the device and system of a kind of mobile terminal
CN105188015A (en) * 2015-08-07 2015-12-23 上海斐讯数据通信技术有限公司 Mobile terminal private data migration backup method and mobile terminal
CN105630598B (en) * 2015-12-29 2019-06-11 宇龙计算机通信科技(深圳)有限公司 Data processing method, data processing equipment and wearable smart machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3054394A1 (en) * 2015-02-09 2016-08-10 Samsung Electronics Co., Ltd. Permission control method and electronic device operating the same
CN105491113A (en) * 2015-11-25 2016-04-13 小米科技有限责任公司 Migrating method, device and terminal
CN105744069A (en) * 2016-03-07 2016-07-06 努比亚技术有限公司 Information transmission method, terminal and system
CN106648455A (en) * 2016-09-14 2017-05-10 广东欧珀移动通信有限公司 Data migration method and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110472750A (en) * 2019-07-05 2019-11-19 深圳市轱辘汽车维修技术有限公司 Method, apparatus, server and the medium of enquiry circuit figure
CN112887166A (en) * 2021-01-18 2021-06-01 惠州Tcl移动通信有限公司 Detection method and system for SD card of mobile terminal, intelligent terminal and storage medium
CN112905934A (en) * 2021-02-07 2021-06-04 龙芯中科(合肥)技术有限公司 Data import method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN106648455A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
US10649720B2 (en) Sound effect configuration method and system and related device
WO2018049885A1 (en) Data migration method and device
WO2018049881A1 (en) Data migration method and device
WO2018049884A1 (en) Data migration method and device
CN106302653B (en) Control authority sharing method of access control terminal and related equipment
WO2018049913A1 (en) Data transmission method and related devices
WO2018120905A1 (en) Message reminding method for terminal, and terminal
WO2018049886A1 (en) Hotspot establishment method and terminal device
WO2018103380A1 (en) Method for accessing wireless network, and mobile terminal
WO2018049935A1 (en) Data migration method and terminals
CN107645551B (en) File transmission method and device
WO2018049934A1 (en) Data migration method and terminals
WO2019052291A1 (en) Unlocking methods and related products
CN108733337B (en) Screen display method and device, electronic equipment and computer readable storage medium
US20200221288A1 (en) Method for determining access method of mobile terminal, storage medium, and mobile terminal
TW201508533A (en) Method and system for associating two terminals with each other, terminal and computer-readable storage medium
CN106708530A (en) Information processing method and terminal equipment
US10298590B2 (en) Application-based service providing method, apparatus, and system
WO2018107802A1 (en) Method for sending network data, and mobile terminal
WO2017000495A1 (en) Method and device for adding contacts
WO2018049937A1 (en) Data migration method and terminals
CN110602766B (en) Personal hotspot identification method and method for determining association relationship between terminals
WO2017000496A1 (en) Method and device for adding contact
CN106201536A (en) The replacing options of a kind of application icon and terminal unit
CN106535229B (en) WiFi signal receiving sensitivity testing method and mobile terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17850088

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17850088

Country of ref document: EP

Kind code of ref document: A1