CN110989940B - Migration method and migration device - Google Patents

Migration method and migration device Download PDF

Info

Publication number
CN110989940B
CN110989940B CN201911306103.XA CN201911306103A CN110989940B CN 110989940 B CN110989940 B CN 110989940B CN 201911306103 A CN201911306103 A CN 201911306103A CN 110989940 B CN110989940 B CN 110989940B
Authority
CN
China
Prior art keywords
migrated
electronic device
migration
determined
current electronic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911306103.XA
Other languages
Chinese (zh)
Other versions
CN110989940A (en
Inventor
贺钢
邢晓星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201911306103.XA priority Critical patent/CN110989940B/en
Publication of CN110989940A publication Critical patent/CN110989940A/en
Application granted granted Critical
Publication of CN110989940B publication Critical patent/CN110989940B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0647Migration mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present disclosure provides a migration method, comprising: and determining an object to be migrated when the migration condition is met, wherein the migration condition is at least a condition for triggering the current electronic equipment to execute the migration operation, obtaining at least one associated object of the object to be migrated at least based on the determined associated policy, the associated policy is at least related to the access relation between the object to be migrated and the associated object, and migrating the object to be migrated and the at least one associated object from the current electronic equipment to the target electronic equipment at least based on the determined migration policy. In addition, the present disclosure also provides a migration apparatus.

Description

Migration method and migration device
Technical Field
The present disclosure relates to a migration method and a migration apparatus.
Background
With the dependence of people on electronic equipment becoming stronger, more files are stored in the electronic equipment. Migrating files in one electronic device to other electronic devices to realize migration of files among different electronic devices becomes an operation which a user needs to perform frequently.
However, the migration method provided in the related art has complicated operation steps, and cannot bring intelligent experience to users.
For example, if a user migrates a designated object in one electronic device to another electronic device, it is usually desired that the other electronic device also performs a corresponding operation on the designated file, that is, the user needs to select the migrated designated file first and migrate the designated file to the other electronic device. And then selecting one or more application programs capable of running the specified file, migrating the one or more application programs to another electronic device, and realizing migration operation only through multiple operations, wherein the operation steps are complex, and the intelligent experience of a user is insufficient.
Disclosure of Invention
The disclosure provides a migration method, a migration apparatus, an electronic device, and a computer-readable storage medium.
One aspect of the present disclosure provides a migration method, including: determining an object to be migrated when a migration condition is met, wherein the migration condition is at least a condition for triggering current electronic equipment to execute migration operation, obtaining at least one associated object of the object to be migrated at least based on a determined associated policy, wherein the associated policy is at least related to an access relationship between the object to be migrated and the associated object, and migrating the object to be migrated and the at least one associated object from the current electronic equipment to target electronic equipment at least based on the determined migration policy.
Optionally, it is detected that the current electronic device establishes a first connection with the target electronic device, and it is determined that the migration condition is satisfied, or it is detected that the current electronic device establishes a first connection with the target electronic device and the current electronic device establishes a second connection with the first electronic device, and it is determined that the migration condition is satisfied, where the first connection is the same as or different from the second connection, or it is detected that a behavior parameter of the operation body satisfies a behavior condition, and it is determined that the migration condition is satisfied, where the behavior condition is at least related to determining an object to be migrated, or it is detected that an attitude parameter of the current electronic device and/or the target electronic device satisfies a condition, and it is determined that the migration condition is satisfied.
Optionally, the determining the object to be migrated includes: determining an object to be migrated based on at least a connection parameter of a first connection when the current electronic device and a target electronic device establish a first connection, wherein the connection parameter is related to at least a data transmission type supported by the first connection, determining an object related to the first electronic device in the current electronic device as the object to be migrated when the current electronic device and the target electronic device establish the first connection and the current electronic device and the first electronic device establish a second connection, or determining an object related to the current electronic device in the first electronic device as the object to be migrated when a behavior parameter of an operation body satisfies a behavior condition, determining an object pointed by the behavior parameter as the object to be migrated when the behavior parameter of the operation body satisfies the behavior condition, and determining an object pointed by the behavior parameter as the object to be migrated when an attitude parameter of the current electronic device and/or the target electronic device satisfies the condition, and determining at least the object selected based on the attitude parameters as the object to be migrated.
Optionally, the obtaining at least one associated object of the object to be migrated based on at least the determined association policy includes: determining an association policy based on the file type of the object to be migrated, and taking at least one file of a different type from the object to be migrated as the association object based on at least the determined association policy, wherein different file types correspond to different association policies.
Optionally, the obtaining at least one associated object of the object to be migrated based on at least the determined association policy includes: when the object to be migrated is a first file, at least one first application capable of opening the first file is obtained as the associated object based on at least a first association policy, wherein the first association policy is at least further related to attribute information of the first file, the attribute information is at least related to type information and/or storage information of the first file, and when the object to be migrated is a second application, at least one second file capable of being accessed and/or accessed by the second application is obtained as the associated object based on at least a second association policy, wherein the second association policy is at least further related to configuration information of the first application.
Optionally, the obtaining at least one associated object of the object to be migrated based on at least the determined association policy includes: and obtaining at least one associated object of the objects to be migrated based on the determined associated policy and the determined migration policy.
Optionally, the obtaining at least one associated object of the objects to be migrated based on the determined association policy and the determined migration policy includes: determining a first number of first applications from the at least one first application to be used as the association objects based on at least a transmission parameter between the current electronic device and the target electronic device in case of obtaining the at least one first application capable of opening the first file based on a first association policy, or, determining a second number of first applications from the at least one first application as the associated objects based at least on the hardware parameters of the current electronic device, in case at least one second file is obtained that the second application can access or access based on the second association policy, determining a third number of second files from the at least one second file as the associated objects based on at least transmission parameters between the current electronic device and the target electronic device, or, determining a fourth number of second files from the at least one second file as the associated objects based on at least the hardware parameters of the current electronic device.
Optionally, the migrating the object to be migrated and the at least one associated object from the current electronic device to the target electronic device based on at least the determined migration policy includes: under the condition that a plurality of data transmission channels are established between current electronic equipment and target electronic equipment, the object to be migrated is migrated from the current electronic equipment to the target electronic equipment through at least one first data transmission channel based on the transmission parameters of each data transmission channel, the at least one associated object is migrated from the current electronic equipment to the target electronic equipment through at least one second data transmission channel, and under the condition that one data transmission channel is established between the current electronic equipment and the target electronic equipment, the object to be migrated and the associated object determined based on the transmission parameters and the object to be migrated are migrated from the current electronic equipment to the target electronic equipment according to the determined migration sequence based on the transmission parameters of the data transmission channel.
Optionally, the determining the associated object based on the transmission parameter and the object to be migrated includes: and determining, from the at least one associated object, an application capable of opening a second threshold number of files to be migrated as the associated object when the transmission parameter meets a first threshold and the number of files to be migrated meets a second threshold, and determining, from the at least one associated object, a file that can be accessed or has been accessed by a fourth threshold number of applications to be migrated as the associated object when the transmission parameter meets a third threshold and the number of applications to be migrated meets a fourth threshold.
Another aspect of the present disclosure provides a migration apparatus, including: the determining module is configured to meet a migration condition and determine an object to be migrated, wherein the migration condition is at least a condition for triggering the current electronic device to execute a migration operation. An obtaining module configured to obtain at least one associated object of the objects to be migrated based on at least a determined association policy, where the association policy is at least related to an access relationship between the objects to be migrated and the associated object. And the migration module is configured to migrate the object to be migrated and the at least one associated object from the current electronic device to the target electronic device based on at least the determined migration policy.
Optionally, it is detected that the current electronic device establishes a first connection with the target electronic device, and it is determined that the migration condition is satisfied, or it is detected that the current electronic device establishes a first connection with the target electronic device and the current electronic device establishes a second connection with the first electronic device, and it is determined that the migration condition is satisfied, where the first connection is the same as or different from the second connection, or it is detected that a behavior parameter of the operation body satisfies a behavior condition, and it is determined that the migration condition is satisfied, where the behavior condition is at least related to determining an object to be migrated, or it is detected that an attitude parameter of the current electronic device and/or the target electronic device satisfies a condition, and it is determined that the migration condition is satisfied.
Optionally, the determining module includes: the first determining submodule is configured to determine an object to be migrated based on at least a connection parameter of a first connection when the current electronic device establishes the first connection with a target electronic device, where the connection parameter is at least related to a data transmission type supported by the first connection. And the second determining submodule is configured to determine at least an object related to the first electronic device in the current electronic device as an object to be migrated or determine an object related to the current electronic device in the first electronic device as an object to be migrated, when the current electronic device establishes a first connection with a target electronic device and the current electronic device establishes a second connection with the first electronic device. And the third determining submodule is configured to determine at least an object pointed by the behavior parameter as an object to be migrated under the condition that the behavior parameter of the operation body meets the behavior condition. And the fourth determining submodule is configured to determine at least the object selected based on the attitude parameters as the object to be migrated under the condition that the attitude parameters of the current electronic equipment and/or the target electronic equipment meet the conditions.
Optionally, the obtaining module is configured to determine an association policy based on a file type of the object to be migrated, and use at least one file of a different type from the object to be migrated as the association object based on the determined association policy, where different file types correspond to different association policies.
Optionally, the obtaining module includes: a first obtaining sub-module, configured to, when the object to be migrated is a first file, obtain, as the associated object, at least one first application capable of opening the first file based on at least a first association policy, where the first association policy is at least further related to attribute information of the first file, and the attribute information is at least related to type information and/or storage information of the first file. And a second obtaining submodule configured to, when the object to be migrated is a second application, obtain, as the associated object, at least one second file that can be accessed and/or accessed by the second application based on at least a second association policy, where the second association policy is at least related to configuration information of the first application.
Optionally, the obtaining module is configured to obtain at least one associated object of the objects to be migrated based on the determined association policy and the determined migration policy.
Optionally, the obtaining module includes: the third obtaining sub-module is configured to, in a case where at least one first application capable of opening the first file is obtained based on the first association policy, determine a first number of first applications from among the at least one first application to serve as the association object based on at least a transmission parameter between the current electronic device and the target electronic device, or determine a second number of first applications from among the at least one first application to serve as the association object based on at least a hardware parameter of the current electronic device. And the fourth obtaining sub-module is configured to, in a case that at least one second file which can be accessed or accessed by the second application is obtained based on the second association policy, determine a third number of second files from the at least one second file as the association objects based on at least transmission parameters between the current electronic device and the target electronic device, or determine a fourth number of second files from the at least one second file as the association objects based on at least hardware parameters of the current electronic device.
Optionally, the migration module includes: the first migration sub-module is configured to, when the current electronic device and the target electronic device establish a plurality of data transmission channels, migrate the object to be migrated from the current electronic device to the target electronic device through at least one first data transmission channel based on transmission parameters of the respective data transmission channels, and migrate the at least one associated object from the current electronic device to the target electronic device through at least one second data transmission channel. And the second migration submodule is configured to, under the condition that the current electronic device and the target electronic device establish a data transmission channel, migrate the object to be migrated and the associated object determined based on the transmission parameter and the object to be migrated from the current electronic device to the target electronic device according to the determined migration sequence based on the transmission parameter of the data transmission channel.
Optionally, the determining the associated object based on the transmission parameter and the object to be migrated includes: and determining, from the at least one associated object, an application capable of opening a second threshold number of files to be migrated as the associated object when the transmission parameter meets a first threshold and the number of files to be migrated meets a second threshold, and determining, from the at least one associated object, a file that can be accessed or has been accessed by a fourth threshold number of applications to be migrated as the associated object when the transmission parameter meets a third threshold and the number of applications to be migrated meets a fourth threshold.
Another aspect of the present disclosure provides an electronic device including: one or more processors; memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement any of the methods described above.
Another aspect of the present disclosure provides an electronic device, which includes a memory, a processor, and a migration program stored in the memory and executable on the processor, and when executed by the processor, the migration program implements the steps of the migration method described above.
Another aspect of the disclosure provides a computer-readable storage medium storing computer-executable instructions that, when executed, perform any of the methods described above.
According to the migration method and the migration device capable of implementing the migration method, under the condition that the object to be migrated is determined, the at least one associated object is obtained based on the association policy, the object to be migrated and the at least one associated object are migrated from the current electronic device to the target electronic device based on the migration policy, the technical problem that the at least one associated object cannot be migrated when the object to be migrated is migrated in the related art can be at least partially overcome, therefore, the associated migration of the object to be migrated and the at least one associated object can be realized, and the intelligence and migration efficiency of file migration of the electronic device are improved.
Drawings
For a more complete understanding of the present disclosure and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
fig. 1 schematically illustrates an application scenario of a migration method according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a migration method according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a block diagram of a migration apparatus according to an embodiment of the present disclosure; and
fig. 4 schematically shows a block diagram of an electronic device suitable for performing the migration method of an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Some block diagrams and/or flow diagrams are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations thereof, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable information processing apparatus, such that the instructions, which execute via the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks. The techniques of this disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). In addition, the techniques of this disclosure may take the form of a computer program product on a computer-readable storage medium having instructions stored thereon for use by or in connection with an instruction execution system.
As described above, when a migration operation is performed between a current electronic device and a target electronic device, an intelligent experience cannot be brought to a user.
Based on this, the present disclosure provides a method of enabling object migration between a current electronic device and a target electronic device. The method comprises the following steps: firstly, determining an object to be migrated when a migration condition is met, wherein the migration condition is at least a condition for triggering the current electronic equipment to execute a migration operation. Then, at least one associated object of the objects to be migrated is obtained at least based on the determined associated policy, wherein the associated policy is at least related to the access relationship between the objects to be migrated and the associated objects. And finally, migrating the object to be migrated and at least one associated object from the current electronic equipment to the target electronic equipment at least based on the determined migration strategy.
By the migration method, not only can the object to be migrated from the current electronic equipment to the target electronic equipment be migrated, but also at least one associated object can be migrated from the current electronic equipment to the target electronic equipment, so that an intelligent migration method is provided for a user, the operation steps of the user are simplified, and intelligent experience is brought to the user.
Fig. 1 schematically illustrates an application scenario 100 of a migration method according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of an application scenario in which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, but does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, an application scenario 100 according to this embodiment may include terminal devices 101, 102, 103 and a network 104. Network 104 is the medium used to provide communication links between terminal devices 101, 102, and 103. The network 104 may include various connection types, such as wired, bluetooth, NFC, wireless communication links, or fiber optic cables, among others.
A user may use any of terminal devices 101, 102, 103 (e.g., terminal device 101, but not limited to) to interact with other of terminal devices 101, 102, 103 (e.g., terminal device 102 and/or terminal device 103) via network 104 to receive or transmit objects (objects to be migrated and at least one associated object).
The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
It should be noted that the migration method provided by the embodiment of the present disclosure may be executed by the terminal device 101, 102, or 103. Accordingly, the migration apparatus provided by the embodiment of the present disclosure may be disposed in the terminal device 101, 102, or 103.
It should be understood that the number of terminal devices in fig. 1 is merely illustrative. There may be any number of terminal devices, as desired for implementation.
Fig. 2 schematically shows a flow chart of a migration method according to an embodiment of the present disclosure.
As shown in fig. 2, the method may include operations S210 to S230.
In operation S210, a migration condition is satisfied, and an object to be migrated is determined, where the migration condition is at least a condition for triggering the current electronic device to execute a migration operation.
In the present disclosure, the current electronic device is a terminal device that can perform the migration operation, which may be the terminal device 101, 102 or 103 as shown in fig. 1, including but not limited to a smartphone, a tablet, a laptop portable computer and a desktop computer.
In the present disclosure, an object to be migrated may be one or more objects of any type. Types may include, but are not limited to, application types, text types, picture types, audio types, video types, and are not limited by this disclosure. The object to be migrated may be an object originally stored in the current electronic device, may also be an object stored in the external storage device, and may also be an object stored in the external storage device and may be imported into the current electronic device.
For example, taking an object to be migrated as an example, the picture may be originally stored in any one of the terminal devices 101, 102, or 103 (for example, but not limited to the terminal device 101), or stored on an external storage device (for example, but not limited to a usb disk) and may be imported into the terminal device 101. Then, the terminal device 101 may locally perform the migration method provided by the embodiment of the present disclosure.
In the present disclosure, the object to be migrated is determined when the migration condition is satisfied, that is, the object may be screened by using the migration condition to determine the object to be migrated. And if the migration condition is not met, determining the object to be migrated.
It should be noted that the migration condition is used to characterize and trigger the current electronic device to perform the migration operation. The current electronic device may be triggered to perform the migration operation by performing an operation on the current electronic device, which may be an operation resulting from direct contact with the current electronic device. For example, a touch operation or an instruction operation may be performed on the current electronic device to trigger the migration operation. The operation may also be an operation that results from not being in direct contact with the current electronic device. In other embodiments, the migration operation may be triggered by the behavior parameters of the user collected by the sensor of the electronic device. For example, voice instructions, gesture instructions, image instructions, etc. may be sent to the current electronic device to trigger the migration operation.
In operation S220, at least one associated object of the objects to be migrated is obtained based on at least the determined association policy, where the association policy is at least related to an access relationship between the objects to be migrated and the associated object.
In this disclosure, the associated object is one or more objects having an association relationship with the object to be migrated, and the type of the associated object may be the same as or different from that of the object to be migrated. The associated object is determined according to an association policy, and the association policy is determined according to an access relationship between the object to be migrated and the associated object. According to the relationship between the type of the associated object and the type of the object to be migrated, the access relationship between the type of the associated object and the type of the object to be migrated can be determined, and the access relationship is used for representing the relationship between the access and the access between the object to be migrated and the associated object. The access relationship may be that the migration object performs an access operation on the associated object, or that the associated object performs an access operation on the object to be migrated. Access operations may include, but are not limited to, open, (played), (edited), (shared), (forwarded).
For example, taking the object to be migrated as an object of a video type as an example, the associated object may be a video playing application. Taking the object to be migrated as the image processing application as an example, the associated object may be an image object, and the image object may be one or more image objects processed by the image processing application, or one or more image objects processed by other image processing applications.
In operation S230, an object to be migrated and at least one associated object are migrated from a current electronic device to a target electronic device based at least on the determined migration policy.
In the present disclosure, migration of a migration object and at least one associated object is migrated based at least on a migration policy. The migration policy may relate to the transmission parameter, the hardware parameter of the current electronic device, or both the transmission parameter and the hardware parameter of the current electronic device.
It should be noted that the transmission parameter is a characteristic parameter that can be used to characterize the transmission of the communication line, and may include, but is not limited to, the transmission bandwidth of the communication line, and the number of transmission channels. The hardware parameters are characteristic parameters that can be used to characterize the hardware device performance of the current electronic device, and the hardware may include, but is not limited to, a processor, a graphics card, a motherboard, a memory, and a hard disk. The processor can determine the running speed, the display card can determine the quality and the display speed of the picture display effect, the mainboard can determine the operation speed and the stability, the larger the memory is, the better the performance is, and the hard disk can determine the speed and the size of reading data and storing data.
In the present disclosure, the migration object and the at least one associated object are migrated from the current electronic device to the target electronic device. The target electronic device is a terminal device that can be communicatively connected to the current electronic device and receives the migrated object and at least one associated object migrated by the current electronic device performing the migration operation, and it is understood that the target electronic device may be a terminal device 101, 102 or 103 as shown in fig. 1, including but not limited to a smart phone, a tablet computer, a laptop portable computer and a desktop computer.
It should be noted that, in the present disclosure, the current electronic device and the target electronic device are only one name that is used for the electronic devices to play different roles in executing the migration method, and do not mean that the current electronic device and the target electronic device are necessarily two completely different types of electronic devices. That is, the current electronic device and the target electronic device in the present disclosure may be the same type of electronic device, or may be different types of electronic devices. For example, the current electronic device may be a laptop portable computer and the target electronic device may be a laptop portable computer, or a smart phone.
In the present disclosure, the migration object and the at least one associated object may be synchronously migrated from the current electronic device to the target electronic device, or may be asynchronously migrated from the current electronic device to the target electronic device. In the asynchronous migration, the migration operation may be performed on the migrated object first, and then on at least one associated object. Or the migration operation may be performed on at least one associated object first, and then the migration operation may be performed on the object to be migrated.
It should be noted that, when the migration operation is performed on at least one associated object, the migration operation may be performed on each associated object in order of priority from high to low. The priority may be determined according to the time and/or frequency of at least one associated object being accessed, which is not limited by this disclosure.
According to the embodiment of the disclosure, under the condition that the object to be migrated is determined, at least one associated object is obtained based on the associated policy, and finally the object to be migrated and the at least one associated object are migrated from the current electronic device to the target electronic device based on the migration policy, so that the technical problem that the at least one associated object cannot be migrated under the condition that the object to be migrated is migrated in the related art can be at least partially overcome, the intelligence of file migration of the electronic device is improved, and the technical effect of intelligent experience is brought to a user.
As described previously, the determination of the object to be migrated in the present disclosure requires that the migration condition be satisfied. According to embodiments of the present disclosure, several alternative embodiments are provided below for determining that a migration condition is satisfied.
Whether the migration condition is satisfied may be determined according to a connection established between the current electronic device and the target electronic device. Therefore, as an alternative embodiment, it is detected that the current electronic device establishes the first connection with the target electronic device, and it is determined that the migration condition is satisfied.
In the present disclosure, the first connection may be a connection established based on a distance between the current electronic device and the target electronic device, or may be a connection established based on a pairing between the current electronic device and the target electronic device. It should be noted that the first connection may include, but is not limited to, a wired, bluetooth, NFC, wireless communication link, or fiber optic cable connection.
Considering that the object to be migrated may be an object stored in the external storage device or an object stored in the external storage device and capable of being imported into the current electronic device, the current electronic device needs to establish a connection with another electronic device other than the target electronic device to obtain the object to be migrated stored in the other electronic device or import the object to be migrated in the other electronic device into the current electronic device. Therefore, as an optional embodiment, it is detected that the current electronic device establishes a first connection with the target electronic device and the current electronic device establishes a second connection with the first electronic device, and it is determined that the migration condition is satisfied, where the first connection and the second connection are the same or different.
In the present disclosure, the second connection may be a connection established by the current electronic device and the first electronic device. The second connection is associated with the first electronic device. The first electronic device is any electronic device that can establish a connection with the current electronic device. For example, the first electronic device may be a usb disk, and the second connection may be a connection established by the usb disk inserted into the current electronic device. The first electronic device may be a mobile phone and the second connection may be a connection established by the mobile phone with the current electronic device. The first electronic device may be a bluetooth device and the second connection may be a connection established by the bluetooth device with the current electronic device.
The second connection may be a wired connection or a wireless connection.
In addition to determining that the migration condition is satisfied by detecting a connection established with the current electronic device, it may also be determined that the migration operation is satisfied by detecting a behavior parameter of the operation body. Therefore, as an alternative embodiment, it is detected that the behavior parameter of the operation body satisfies a behavior condition, and it is determined that the migration condition is satisfied, and the behavior condition is at least related to determining the object to be migrated.
In the present disclosure, the behavior parameter may be an operating parameter in the current electronic device. For example, a "select" operation, such as copy, cut, etc., is performed in the current electronic device to indicate that the object to be migrated is determined. In other embodiments, the operation parameter may also refer to an operation of opening a file migration tool or other migration application in the current electronic device and selecting an object to be migrated based on the file migration tool or the migration application.
In this disclosure, if the object to be migrated is determined by the gaze parameter, the behavior parameter may be a gaze parameter of the user, and the behavior condition is satisfied when the gaze parameter indicates that the object to be migrated is determined.
In the present disclosure, the behavior parameter may be an attitude parameter, and the behavior condition is satisfied in a case where the attitude parameter indicates that the object to be migrated is determined. The pose parameters may include, but are not limited to, position parameters and pose angles of the electronic device, from which spatial position and system information of the electronic device may be determined.
The method comprises the steps of determining that a migration condition is met by detecting a connection established with the current electronic equipment, determining that a migration operation is met by detecting a behavior parameter of an operation body, and determining that the migration operation is met by detecting an attitude parameter of the electronic equipment. Therefore, as an alternative embodiment, it is detected that the posture parameters of the current electronic device and/or the target electronic device satisfy the condition, and it is determined that the migration condition is satisfied.
In the present disclosure, the satisfaction condition may be that the current electronic device maintains a certain posture, or the target electronic device maintains a certain posture, or when the current electronic device maintains a certain posture, the target electronic device also maintains a certain posture, or a certain relative position is maintained between the current electronic device and the target electronic device. For example, current electronic devices migrate files to a target electronic device in a dumping posture.
According to the embodiment of the invention, whether the migration condition is met can be determined by utilizing the connection established between the electronic equipment and the current electronic equipment, whether the migration condition is met can also be determined according to the behavior parameters of the operation body, whether the migration condition is met can also be determined according to the posture parameters of the electronic equipment, various embodiments are provided for determining whether the migration condition is met, so that the migration method can be implemented in various implementation scenes, and the flexibility of the migration method is improved.
As described above, in the case where the migration condition is satisfied in the present disclosure, the object to be migrated may be determined. According to embodiments of the present disclosure, the following several alternative embodiments are provided to determine an object to be migrated.
As an optional embodiment, in a case that the current electronic device establishes the first connection with the target electronic device, the object to be migrated is determined based on at least a connection parameter of the first connection, where the connection parameter is related to at least a data transmission type supported by the first connection.
In this disclosure, after the objects are screened out according to the migration condition, the screened out objects may be further subjected to secondary screening, and the secondary screening may be performed based on connection parameters of the first connection, where the connection parameters are related to data transmission types, and the data transmission types may include, but are not limited to, baseband transmission in a digital signal mode and band transmission in an analog signal mode. The connection parameters may include, but are not limited to, duration of connection with the target electronic device, frequency of connection, connection initiator. If there are multiple types of objects to be migrated that satisfy the migration condition, a first filtering may be performed on the objects to be migrated based on a data transmission type of a first connection established between the current electronic device and the target electronic device, and then a second filtering may be performed further based on a usage time, a usage frequency, or a degree of association with a user of the current electronic device with respect to the objects to be migrated that are filtered for the first time, so as to determine a final object to be migrated.
As an optional embodiment, in a case that the current electronic device establishes a first connection with the target electronic device and the current electronic device establishes a second connection with the first electronic device, at least an object related to the first electronic device in the current electronic device is determined as an object to be migrated.
In the present disclosure, an object to be migrated may be determined based on a device identification. The device identifier serves as a unique identifier for identifying the device information. And determining an object related to the device identification of the first electronic device in the current electronic device as an object to be migrated.
For example, a file related to the device identifier of the usb disk is determined as an object to be migrated in the current electronic device, and a file related to the device identifier of the current electronic device is determined as an object to be migrated in the usb disk.
In the present disclosure, the object to be migrated may be determined based on the person to whom the file belongs.
For example, a file related to the owner of the usb disk is determined as an object to be migrated in the current electronic device, and a file related to the owner of the current electronic device is determined as an object to be migrated in the usb disk.
As an alternative embodiment, in the case that the behavior parameter of the operation body satisfies the behavior condition, at least the object pointed by the behavior parameter is determined as the object to be migrated.
In the present disclosure, the object pointed to by the behavior parameter may be determined as the object to be migrated.
For example, an object pointed by the drag operation may be determined as an object to be migrated, an object selected by voice may be determined as an object to be migrated, an object selected by gaze may also be determined as an object to be migrated, and an object selected by AR touch may also be determined as an object to be migrated.
As an alternative embodiment, in a case that the posture parameters of the current electronic device and/or the target electronic device satisfy the condition, at least the object selected based on the posture parameters is determined as the object to be migrated.
In the disclosure, the posture of the electronic device can be changed by changing the posture parameters of the electronic device, so as to achieve the purpose of determining the object to be migrated.
For example, the object displayed at the bottom end of the current electronic device may be determined as the object to be migrated by tilting. The object displayed on the upper half part of the display screen of the current electronic equipment can also be determined as the object to be migrated in a folding manner.
Through the embodiment of the disclosure, under different migration conditions, the corresponding embodiment is provided to determine the object to be migrated, so that the migration method can be implemented in various implementation scenes, and the flexibility and diversity of determining the object to be migrated are improved.
As an optional embodiment, in any of the above embodiments, the foregoing operation S220 (obtaining at least one associated object of the objects to be migrated based on at least the determined association policy) includes: and determining an association policy based on the file type of the object to be migrated, and taking at least one file of a different type from the object to be migrated as an association object based on the determined association policy.
According to an embodiment of the present disclosure, different file types correspond to different association policies. The file type of the object to be migrated is different from the file type of the associated object.
As an optional embodiment, in a case that the object to be migrated is the first file, obtaining at least one associated object of the object to be migrated based on at least the determined association policy includes: at least one first application capable of opening the first file is obtained as an association object based on at least the first association policy.
In this disclosure, in the case that the object to be migrated is the first file, the first association policy is further related to at least attribute information of the first file, and the attribute information is related to at least type information and/or storage information of the first file. The at least one first application may be determined based on file type information of the object to be migrated. The at least one first application may also be determined based on storage information of the object to be migrated. The at least one first application may also be determined based on file type information and storage information of the object to be migrated.
Specifically, according to the file type of the user migration, the APPs installed by the migration user and capable of opening corresponding files, such as picture files, are migrated, and the image viewing software is migrated, so that multiple APPs can be migrated, and the designated APPs can be migrated according to the most common or important sequence. If the user has opened or accessed the file to be migrated using some software, then the APP is also migrated. If the file to be migrated by the user is not opened or accessed, but the directory or parent directory is opened by an APP, the APP is also migrated. If the registry, some logs, or some configuration identifies an APP as relevant to the file that the user chooses to migrate, then that APP is also migrated.
Optionally, when at least one first application is determined based on the file type information of the object to be migrated, the first application may be a default application capable of opening a file of that type or a file of a sub-type. For example, the default application for opening the picture type file is the picture viewing software, and if the file type of the object to be migrated is a picture, the first application is the picture viewing software.
Alternatively, the first application may be an application determined according to its function information and the user's habit, including but not limited to an application determined on operation data of an application capable of opening a file of that type. For example, it may be an application that the user has used to open a file of that type. Or may be an application that the user has used once and is often able to open that type of file. But also the application that the user has recently used that can open this type of file.
Optionally, when determining the at least one first application based on the storage information of the object to be migrated, the application may be determined according to a storage path of the file or the subfile.
As an optional embodiment, in a case that the object to be migrated is the second application, obtaining at least one associated object of the object to be migrated based on at least the determined association policy includes: and obtaining at least one second file which can be accessed and/or accessed by the second application as an associated object at least based on a second associated policy, wherein the second associated policy is at least related to the configuration information of the first application.
In this disclosure, when the object to be migrated is the second application, the second association policy may be whether to be accessed or not, or may be access frequency.
In the present disclosure, according to an Application program (APP) to be migrated, a file that can be opened using the APP may be migrated. For example, if the picture software is migrated, the pictures are migrated at the same time.
Optionally, if the user has opened or accessed some files or directories by using a certain software, the APP is migrated, and the corresponding files or files in the related directories are also migrated.
Optionally, if the user tries to start the APP, it may be automatically determined which files or directories are accessed after the APP is started, and then the files or directories are migrated. For example, some APPs may actively access their configuration files after they are started.
Alternatively, if a user attempts to start an APP, the user may be allowed to use the APP for a period of time while monitoring which files or directories are used by the APP, and then migrate those files or directories.
Optionally, if the registry, some logs, or some configurations identify that an APP is associated with a file that the user chooses to migrate, then the corresponding APP is also migrated.
According to the embodiment of the disclosure, when the object to be migrated is the first file, the migration can open at least one first application of the first file, and when the object to be migrated is the second application, the migration can access and/or visit at least one second file of the second application, so that the associated migration of the object to be migrated and the associated object is realized, the respective migration of the object to be migrated and the associated object can be at least avoided, the migration operation steps are simplified, and the migration efficiency of the file is improved.
As an optional embodiment, in any one of the above embodiments, obtaining at least one associated object of the objects to be migrated based on at least the determined association policy includes: and obtaining at least one associated object of the objects to be migrated based on the determined associated policy and the determined migration policy.
In the present disclosure, it is considered that the migration policy directly affects the migration number and migration order of the associated objects that can be migrated. Therefore, in addition to the first screening of the associated objects based on the association policy, the first screened associated objects may be further subjected to a second screening based on the migration policy to obtain the final at least one associated object. As previously described, the association policy relates to the file type of the object to be migrated. The migration policy is related to a transmission parameter between the current electronic device and the target electronic device, or related to a hardware parameter of the electronic device.
As an optional embodiment, in a case that the object to be migrated is the first file, and the migration policy is related to the transmission parameter between the current electronic device and the target electronic device, obtaining at least one associated object of the object to be migrated based on the determined association policy and the determined migration policy, includes: in case at least one first application capable of opening the first file is obtained based on the first association policy, a first number of first applications is determined to be the association objects from the at least one first application based on at least a transmission parameter between the current electronic device and the target electronic device.
As another optional embodiment, in a case that the object to be migrated is the first file, and the migration policy is related to a hardware parameter of the electronic device, obtaining at least one associated object of the object to be migrated based on the determined associated policy and the determined migration policy, includes: in case that at least one first application capable of opening the first file is obtained based on the first association policy, a second number of first applications are determined to be used as association objects from the at least one first application based on at least hardware parameters of the current electronic device.
For example, the object to be migrated is a first file (picture 1), the 4 first applications capable of opening the picture 1 include a picture viewer, a beautiful figure show, PhotoShop, coreldaw, the transmission parameter between the current electronic device and the target electronic device is a maximum transmission bandwidth of 10M, and the hardware parameter of the current electronic device includes processor core i7 quad-core, 16G memory, 256 solid state disk, and 2G unique display. 2 first applications capable of opening picture 1, namely, a picture viewer and an american show, can be determined as associated objects from the above-described 4 first applications capable of opening picture 1 according to the maximum transmission bandwidth. And determining 2 first applications capable of opening the picture 1, namely the american show and PhotoShop, as associated objects from the 4 first applications capable of opening the picture 1 according to hardware parameters.
As another optional embodiment, in a case that the object to be migrated is the second application and the migration policy is related to the transmission parameter between the current electronic device and the target electronic device, obtaining at least one associated object of the object to be migrated based on the determined association policy and the determined migration policy, includes: and under the condition that at least one second file which can be accessed or accessed by the second application is obtained based on the second association policy, determining a third number of second files from the at least one second file as association objects based on at least transmission parameters between the current electronic equipment and the target electronic equipment.
As another alternative embodiment, in a case that the object to be migrated is the second application and the migration policy is related to the hardware parameter of the electronic device, obtaining at least one associated object of the object to be migrated based on the determined associated policy and the determined migration policy, includes: and under the condition that at least one second file which can be accessed or accessed by the second application is obtained based on the second association policy, determining a fourth number of second files from the at least one second file as association objects based on at least the hardware parameter of the current electronic equipment.
For example, the object to be migrated is a second application (PhotoShop), the second file that can be accessed or accessed by the second application includes 100 pictures (from picture 1 to picture 100), the transmission parameter between the current electronic device and the target electronic device is the maximum transmission bandwidth of 10M, and the hardware parameter of the current electronic device includes processor core i7 quad-core, 16G memory, 256 solid state disk, and 2G unique display. 50 pictures can be determined as associated objects from the above 100 pictures according to the maximum transmission bandwidth. 80 pictures may be determined as related objects from the 100 pictures according to the hardware parameter of the remaining storage space of the hard disk.
According to the embodiment of the invention, the associated object can be obtained based on the associated policy, and the associated object can also be obtained based on the associated policy and the migration policy, so that the finally obtained associated object and the object to be migrated not only meet the associated policy, but also can take into account the constraint of the migration policy, thereby facilitating the smooth migration of the associated object, improving the migration efficiency and ensuring the migration effect.
In this disclosure, the migration policy may also be the number of transmission channels established between the current electronic device and the target electronic device, and when a plurality of transmission channels are established, considering that the transmission bandwidth provided by each transmission channel may be the same or different in the plurality of transmission channels, a migration effect of parallel transmission may be achieved.
Therefore, as an optional embodiment, migrating an object to be migrated and at least one associated object from a current electronic device to a target electronic device based on at least a determined migration policy includes: under the condition that a plurality of data transmission channels are established between the current electronic equipment and the target electronic equipment, the object to be migrated is migrated from the current electronic equipment to the target electronic equipment through at least one first data transmission channel based on the transmission parameters of each data transmission channel, and at least one associated object is migrated from the current electronic equipment to the target electronic equipment through at least one second data transmission channel.
For example, 3 data transmission channels are established between the current electronic device and the target electronic device, where the maximum transmission bandwidth of the transmission channel 1 is 10M, the maximum transmission bandwidth of the transmission channel 2 is 10M, and the maximum transmission bandwidth of the transmission channel 3 is 5M. The object to be migrated is the first file (picture 1), and the associated objects are american show and PhotoShop. PhotoShop can be transmitted over transmission channel 1. According to the above-described embodiment of the present disclosure, the american show may be transmitted through the transmission channel 2, and the picture 1 may be transmitted through the transmission channel 3. The American figure show can also be transmitted through a transmission channel 1, the Photoshop is transmitted through a transmission channel 2, and the picture 1 is transmitted through a transmission channel 3. The American figure show and the Photoshop can be transmitted through the transmission channel 1, the picture 1 is transmitted through the transmission channel 3, or the American figure show and the Photoshop are transmitted through the transmission channel 2, and the picture 1 is transmitted through the transmission channel 3, so that the object to be migrated and the associated object simultaneously reach the target electronic equipment. By the embodiment of the disclosure, the object to be migrated and the at least one associated object can be respectively transmitted by using different transmission channels, so that the object to be transmitted and the associated object can simultaneously reach the target electronic device.
As mentioned above, a transmission channel may be established between the current electronic device and the target electronic device. Therefore, under the condition that the current electronic equipment and the target electronic equipment establish a data transmission channel, the objects to be migrated and the associated objects determined based on the transmission parameters and the objects to be migrated are migrated from the current electronic equipment to the target electronic equipment according to the determined migration sequence based on the transmission parameters of the data transmission channel, and the migration effect of serial transmission is realized.
According to the embodiment of the disclosure, the migration of the object to be migrated and the at least one associated object can be realized according to a certain transmission sequence through the established transmission channel, so that the object to be transmitted and the at least one associated object sequentially reach the target electronic device from the current electronic device.
For example, 1 transmission channel is established between the current electronic device and the target electronic device, and the maximum transmission bandwidth is 10M. The object to be migrated is a second application (PhotoShop), and the associated object is 80 pictures determined from 100 pictures (from picture 1 to picture 100). The migration sequence corresponding to each picture in the 80 pictures can be determined based on the transmission bandwidth and the picture attributes (picture size and/or modification time and the like) of each picture in the 80 pictures, and the PhotoShop and the 80 pictures are transmitted through the transmission channel 1 according to the determined migration sequence so that the PhotoShop and the 80 pictures sequentially reach the target electronic device.
As an optional embodiment, in a case that the object to be migrated is the first file, determining the associated object based on the transmission parameter and the object to be migrated includes: and under the condition that the transmission parameter meets a first threshold value and the number of the files to be migrated meets a second threshold value, determining the application capable of opening the files to be migrated with the second threshold value from at least one associated object as the associated object.
In the present disclosure, in the case where the transmission parameter is a transmission bandwidth, according to the first threshold, a transmission bandwidth that can be loaded by the first threshold may be determined. According to the file size of the first file, a second threshold value of the number of the files to be migrated can be determined, and at least one associated object is screened to determine that the application capable of opening the files to be migrated with the second threshold value is the associated object.
For example, the object to be migrated is a first file (100 pictures, each picture has a size of 1M), the 4 first applications capable of opening pictures include a picture viewer, an american show, PhotoShop, coreldaw, and the maximum transmission bandwidth between the current electronic device and the target electronic device is 10M (a first threshold), and if it is determined that the loadable transmission bandwidth is 2M according to the first threshold, 20 (a second threshold) pictures can be determined from the 100 pictures according to the loadable transmission bandwidth being 2M, and the 4 first applications capable of opening the 20 (a second threshold) pictures, that is, the picture viewer and the american show, are determined as associated objects.
As an optional embodiment, in a case that the object to be migrated is the first application, determining the associated object based on the transmission parameter and the object to be migrated includes: and under the condition that the transmission parameters meet a third threshold value and the number of the applications to be migrated meets a fourth threshold value, determining files which can be accessed or accessed by the fourth threshold value applications to be migrated from the at least one associated object as the associated objects.
In the present disclosure, in the case where the transmission parameter is a transmission bandwidth, according to the third threshold, a transmission bandwidth that can be loaded by the third threshold may be determined. According to the file size of the first application, a fourth threshold value of the application to be migrated can be determined, and at least one associated object is screened to determine that files which can be accessed or accessed by the fourth threshold value of the application to be migrated are associated objects.
For example, the object to be migrated is a second application including a picture viewer, an american show, PhotoShop, coreldaw, wherein the installation file size of the picture viewer (10M) < the installation file size of the american show (50M) < the installation file size of the PhotoShop (300M) < the installation file size of the coreldaw (500M). The associated object includes 100 pictures (from picture 1 to picture 100). If the maximum transmission bandwidth between the current electronic device and the target electronic device is 100M (third threshold), and the loadable transmission bandwidth is determined to be 50M according to the third threshold, 1 application to be migrated (fourth threshold) can be determined to be a american show according to the loadable transmission bandwidth being 50M, and a file which can be accessed or accessed by the american show is screened from 100 associated objects to be the associated object.
By the embodiment of the disclosure, the associated objects are determined according to the transmission parameters and the objects to be migrated, so that the number of the associated objects is within the bearing range of the transmission parameters, and smooth transmission is ensured.
It should be noted that the transmission parameters, the hardware parameters, the attributes of the object to be migrated, and the attributes of the associated object in the embodiments of the present disclosure are only for convenience of understanding, and are not limited in particular.
Fig. 3 schematically illustrates a block diagram of a migration apparatus according to an embodiment of the present disclosure.
As shown in fig. 3, the processing device 300 may include a determination module 310, an obtaining module 320, and a migration module 330.
The determining module 310 is configured to, for example, perform the foregoing operation S210, meet a migration condition, and determine an object to be migrated, where the migration condition is at least a condition that triggers the current electronic device to perform a migration operation.
The obtaining module 320 is configured to, for example, perform the foregoing operation S220, and obtain at least one associated object of the object to be migrated based on at least the determined association policy, where the association policy is at least related to an access relationship between the object to be migrated and the associated object.
The migration module 330 is configured to, for example, perform the foregoing operation S230, and migrate the object to be migrated and the at least one associated object from the current electronic device to the target electronic device based on at least the determined migration policy.
According to the embodiment of the disclosure, under the condition that the object to be migrated is determined, at least one associated object is obtained based on the association policy, and finally the object to be migrated and the at least one associated object are migrated from the current electronic device to the target electronic device based on the migration policy, so that the technical problem that the at least one associated object cannot be migrated when the object to be migrated is migrated in the related art can be at least partially overcome, the associated migration of the object to be migrated and the at least one associated object is achieved, and the technical effect of the intelligence of the file migration of the electronic device is improved.
According to the embodiment of the disclosure, a first connection between the current electronic equipment and the target electronic equipment is detected, and the condition of migration is determined to be met; or detecting that the current electronic equipment establishes a first connection with the target electronic equipment and the current electronic equipment establishes a second connection with the first electronic equipment, and determining that the migration condition is met, wherein the first connection and the second connection are the same or different; or detecting that the behavior parameters of the operation body meet the behavior conditions, and determining that the migration conditions are met, wherein the behavior conditions are at least related to the determination of the object to be migrated; or detecting that the attitude parameters of the current electronic equipment and/or the target electronic equipment meet the conditions, and determining that the migration conditions are met.
According to the embodiment of the disclosure, whether the migration condition is met can be determined by using the connection established between the electronic device and the current electronic device, whether the migration condition is met can also be determined according to the behavior parameters of the operation body, whether the migration condition is met can also be determined according to the posture parameters of the electronic device, and various embodiments are provided to determine whether the migration condition is met, so that the migration method can be implemented in various implementation scenes, and the flexibility of the migration method is improved.
According to an embodiment of the present disclosure, the determining module 310 includes: the first determining submodule is configured to determine the object to be migrated based on at least connection parameters of a first connection under the condition that the current electronic device establishes the first connection with the target electronic device, and the connection parameters are related to at least data transmission types supported by the first connection. And the second determining submodule is configured to determine at least an object related to the first electronic device in the current electronic device as an object to be migrated or determine an object related to the current electronic device in the first electronic device as an object to be migrated under the condition that the current electronic device establishes the first connection with the target electronic device and the current electronic device establishes the second connection with the first electronic device. And the third determining submodule is configured to determine at least an object pointed by the behavior parameter as an object to be migrated under the condition that the behavior parameter of the operation body meets the behavior condition. And the fourth determining sub-module is configured to determine at least the object selected based on the posture parameters as the object to be migrated under the condition that the posture parameters of the current electronic equipment and/or the target electronic equipment meet the conditions.
Through the embodiment of the disclosure, under different migration conditions, the corresponding embodiment is provided to determine the object to be migrated, so that the migration method can be implemented in various implementation scenes, and the flexibility and diversity of determining the object to be migrated are improved.
According to an embodiment of the present disclosure, the obtaining module 320 is configured to determine an association policy based on a file type of an object to be migrated, and use at least one file of a different type from the object to be migrated as an association object based on the determined association policy, where the different file types correspond to different association policies.
According to an embodiment of the present disclosure, obtaining the sub-module includes: the first obtaining sub-module is configured to, when the object to be migrated is a first file, obtain, as an associated object, at least one first application capable of opening the first file based on at least a first association policy, where the first association policy is at least further related to attribute information of the first file, and the attribute information is at least related to type information and/or storage information of the first file. And the second obtaining submodule is configured to obtain at least one second file which can be accessed and/or accessed by the second application as an associated object based on at least a second associated policy when the object to be migrated is the second application, wherein the second associated policy is at least related to the configuration information of the first application.
According to the embodiment of the disclosure, when the object to be migrated is the first file, the migration can open at least one first application of the first file, and when the object to be migrated is the second application, the migration can access and/or visit at least one second file of the second application, so that the associated migration of the object to be migrated and the associated object is realized, the respective migration of the object to be migrated and the associated object can be at least avoided, the migration operation steps are simplified, and the migration efficiency of the file is improved.
According to an embodiment of the present disclosure, the obtaining module 320 is configured to obtain at least one associated object of the objects to be migrated based on the determined association policy and the determined migration policy.
According to an embodiment of the present disclosure, the obtaining module 320 includes: a third obtaining sub-module configured to determine, in a case where at least one first application capable of opening the first file is obtained based on the first association policy, a first number of first applications from the at least one first application to be used as association objects based on at least transmission parameters between the current electronic device and the target electronic device, or determine a second number of first applications from the at least one first application to be used as association objects based on at least hardware parameters of the current electronic device. And the fourth obtaining sub-module is configured to determine a third number of second files from the at least one second file as association objects based on at least transmission parameters between the current electronic device and the target electronic device, or determine a fourth number of second files from the at least one second file as association objects based on at least hardware parameters of the current electronic device, in a case that the at least one second file which can be accessed or accessed by the second application is obtained based on the second association policy.
According to the embodiment of the invention, the associated object can be obtained based on the associated policy, and the associated object can also be obtained based on the associated policy and the migration policy, so that the finally obtained associated object and the object to be migrated not only meet the associated policy, but also take into account the constraint of the migration policy, thereby facilitating the smooth migration of the associated object, improving the migration efficiency and ensuring the migration effect.
According to an embodiment of the present disclosure, the foregoing migration module 330 includes: the first migration sub-module is configured to, under the condition that the current electronic device and the target electronic device establish multiple data transmission channels, migrate an object to be migrated from the current electronic device to the target electronic device through at least one first data transmission channel based on transmission parameters of the respective data transmission channels, and migrate at least one associated object from at least one second data transmission channel from the current electronic device to the target electronic device. And the second migration submodule is configured to migrate the object to be migrated and the associated object determined based on the transmission parameter and the object to be migrated from the current electronic device to the target electronic device according to the determined migration sequence based on the transmission parameter of the data transmission channel under the condition that the current electronic device and the target electronic device establish a data transmission channel.
By the embodiment of the disclosure, the object to be migrated and the at least one associated object can be respectively transmitted by using different transmission channels, so that the object to be transmitted and the associated object can simultaneously reach the target electronic device. The objects to be transferred and the at least one associated object can be transferred according to a certain transfer sequence through the established transfer channel, so that the objects to be transferred and the at least one associated object can reach the target electronic device from the current electronic device in order.
According to the embodiment of the disclosure, determining the associated object based on the transmission parameter and the object to be migrated includes: determining applications capable of opening files to be migrated with a second threshold value from at least one associated object as associated objects under the condition that the transmission parameters meet the first threshold value and the number of the files to be migrated meets the second threshold value; and under the condition that the transmission parameters meet a third threshold value and the number of the applications to be migrated meets a fourth threshold value, determining files which can be accessed or accessed by the fourth threshold value applications to be migrated from the at least one associated object as the associated objects.
By the embodiment of the disclosure, the associated objects are determined according to the transmission parameters and the objects to be migrated, so that the number of the associated objects is within the bearing range of the transmission parameters, and smooth transmission is ensured.
Any of the modules according to embodiments of the present disclosure, or at least part of the functionality of any of them, may be implemented in one module. Any one or more of the modules according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules according to the embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging the circuit, or in any one of three implementations, or in any suitable combination of any of the software, hardware, and firmware. Alternatively, one or more of the modules according to embodiments of the disclosure may be implemented at least partly as computer program modules which, when executed, may perform corresponding functions.
For example, any plurality of the determining module 310, the obtaining module 320, the migrating module 330, the first determining submodule, the second determining submodule, the first obtaining submodule, the third obtaining submodule, the fourth obtaining submodule, the first migrating submodule, and the second migrating submodule may be combined and implemented in one module, or any one of the modules may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to the embodiment of the present disclosure, at least one of the determining module 310, the obtaining module 320, the migrating module 330, the first determining submodule, the second determining submodule, the first obtaining submodule, the third obtaining submodule, the fourth obtaining submodule, the first migrating submodule and the second migrating submodule may be at least partially implemented as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented by any one of three implementation manners of software, hardware and firmware, or by a suitable combination of any of them. Alternatively, at least one of the determining module 310, the obtaining module 320, the migrating module 330, the first determining submodule, the second determining submodule, the first obtaining submodule, the third obtaining submodule, the fourth obtaining submodule, the first migrating submodule and the second migrating submodule may be at least partially implemented as a computer program module, which may perform corresponding functions when the computer program module is run.
It should be noted that the implementation, solved technical problems, implemented functions, and achieved technical effects of each module in the apparatus part embodiment are respectively the same as or similar to the implementation, solved technical problems, implemented functions, and achieved technical effects of each corresponding step in the method part embodiment, and are not described herein again.
Fig. 4 schematically shows a block diagram of an electronic device according to an embodiment of the disclosure. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, electronic device 400 includes a processor 410 and a computer-readable storage medium 420. The electronic device 400 may perform a method according to an embodiment of the present disclosure.
In particular, processor 410 may include, for example, a general purpose microprocessor, an instruction set processor and/or related chip set and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), and/or the like. The processor 410 may also include onboard memory for caching purposes. Processor 410 may be a single processing unit or a plurality of processing units for performing different actions of a method flow according to embodiments of the disclosure.
Computer-readable storage medium 420, for example, may be a non-volatile computer-readable storage medium, specific examples including, but not limited to: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and so on.
The computer-readable storage medium 420 may comprise a computer program 421, which computer program 421 may comprise code/computer-executable instructions that, when executed by the processor 410, cause the processor 410 to perform a method according to an embodiment of the disclosure, or any variant thereof.
The computer program 421 may be configured with, for example, computer program code comprising computer program modules. For example, in an example embodiment, code in computer program 421 may include one or more program modules, including for example 421A, modules 421B, … …. It should be noted that the division and number of the modules are not fixed, and those skilled in the art may use suitable program modules or program module combinations according to actual situations, so that the processor 410 may execute the method according to the embodiment of the present disclosure or any variation thereof when the program modules are executed by the processor 410.
According to an embodiment of the present invention, at least one of the determining module 310, the obtaining module 320, the migrating module 330, the first determining submodule, the second determining submodule, the first obtaining submodule, the third obtaining submodule, the fourth obtaining submodule, the first migrating submodule, and the second migrating submodule may be implemented as a computer program module described with reference to fig. 4, which, when executed by the processor 410, may implement the corresponding operations described above.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
While the disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents. Accordingly, the scope of the present disclosure should not be limited to the above-described embodiments, but should be defined not only by the appended claims, but also by equivalents thereof.

Claims (10)

1. A migration method, comprising:
determining an object to be migrated when a migration condition is met, wherein the migration condition is at least a condition for triggering the current electronic equipment to execute migration operation;
obtaining at least one associated object of the objects to be migrated at least based on the determined associated policy, wherein the associated policy is at least related to an access relationship between the objects to be migrated and the associated objects, and the access relationship at least comprises that the associated object can perform an access operation on the objects to be migrated or the objects to be migrated can perform an access operation on the associated objects;
and migrating the object to be migrated and the at least one associated object from the current electronic equipment to the target electronic equipment at least based on the determined migration strategy.
2. The method of claim 1, wherein:
detecting that a first connection is established between the current electronic equipment and target electronic equipment, and determining that the migration condition is met; or the like, or, alternatively,
detecting that a first connection is established between a current electronic device and a target electronic device and a second connection is established between the current electronic device and a first electronic device, and determining that the migration condition is met, wherein the first connection and the second connection are the same or different; or the like, or, alternatively,
detecting that a behavior parameter of an operation body meets a behavior condition, and determining that the migration condition is met, wherein the behavior condition is at least related to determination of an object to be migrated; or the like, or, alternatively,
and detecting that the attitude parameters of the current electronic equipment and/or the target electronic equipment meet the conditions, and determining that the migration conditions are met.
3. The method of claim 2, wherein the determining an object to migrate comprises:
under the condition that a current electronic device establishes a first connection with a target electronic device, determining an object to be migrated at least based on connection parameters of the first connection, wherein the connection parameters are at least related to data transmission types supported by the first connection;
under the condition that a current electronic device establishes a first connection with a target electronic device and a second connection is established between the current electronic device and a first electronic device, at least an object related to the first electronic device in the current electronic device is determined as an object to be migrated, or an object related to the current electronic device in the first electronic device is determined as an object to be migrated;
under the condition that the behavior parameters of the operation body meet the behavior conditions, at least determining an object pointed by the behavior parameters as an object to be migrated;
and determining at least an object selected based on the attitude parameters as an object to be migrated under the condition that the attitude parameters of the current electronic equipment and/or the target electronic equipment meet the conditions.
4. The method according to any one of claims 1 to 3, wherein the obtaining at least one associated object of the objects to be migrated based on at least the determined association policy comprises:
determining an association policy based on the file type of the object to be migrated;
and taking at least one file of a different type from the object to be migrated as the associated object at least based on the determined associated policy, wherein different file types correspond to different associated policies.
5. The method of claim 4, wherein the obtaining at least one associated object of the objects to be migrated based at least on the determined association policy comprises:
when the object to be migrated is a first file, obtaining at least one first application capable of opening the first file as the association object based on at least a first association policy, wherein the first association policy is at least further related to attribute information of the first file, and the attribute information is at least related to type information and/or storage information of the first file;
and under the condition that the object to be migrated is a second application, obtaining at least one second file which can be accessed and/or accessed by the second application as the associated object at least based on a second associated policy, wherein the second associated policy is at least related to the configuration information of the first application.
6. The method according to any one of claims 1 to 3, wherein the obtaining at least one associated object of the objects to be migrated based on at least the determined association policy comprises:
and obtaining at least one associated object of the objects to be migrated based on the determined associated policy and the determined migration policy.
7. The method of claim 6, wherein the obtaining at least one associated object of the objects to be migrated based on the determined association policy and the determined migration policy comprises:
in the case of obtaining at least one first application capable of opening a first file based on a first association policy, determining a first number of first applications from the at least one first application to be used as the association object based on at least a transmission parameter between the current electronic device and the target electronic device, or determining a second number of first applications from the at least one first application to be used as the association object based on at least a hardware parameter of the current electronic device;
and under the condition that at least one second file which can be accessed or accessed by the second application is obtained based on the second association policy, determining a third number of second files from the at least one second file as the association objects based on at least the transmission parameters between the current electronic equipment and the target electronic equipment, or determining a fourth number of second files from the at least one second file as the association objects based on at least the hardware parameters of the current electronic equipment.
8. The method of claim 5 or 7, wherein the migrating the object to be migrated and the at least one associated object from a current electronic device to a target electronic device based at least on the determined migration policy comprises:
under the condition that a plurality of data transmission channels are established between the current electronic equipment and the target electronic equipment, the object to be migrated is migrated from the current electronic equipment to the target electronic equipment through at least one first data transmission channel based on the transmission parameters of each data transmission channel, and the at least one associated object is migrated from the current electronic equipment to the target electronic equipment through at least one second data transmission channel;
under the condition that a data transmission channel is established between the current electronic equipment and the target electronic equipment, the object to be migrated and the associated object determined based on the transmission parameter and the object to be migrated are migrated from the current electronic equipment to the target electronic equipment according to the determined migration sequence based on the transmission parameter of the data transmission channel.
9. The method of claim 8, wherein the determining an associated object based on the transmission parameters and the object to be migrated comprises:
determining, from the at least one associated object, an application capable of opening a second threshold number of files to be migrated as the associated object, when the transmission parameter meets a first threshold and the number of files to be migrated meets a second threshold;
and under the condition that the transmission parameter meets a third threshold value and the number of the applications to be migrated meets a fourth threshold value, determining files which can be accessed or accessed by the fourth threshold value of the applications to be migrated from the at least one associated object as the associated objects.
10. A migration apparatus, comprising:
the determining module is configured to meet a migration condition and determine an object to be migrated, wherein the migration condition is at least a condition for triggering the current electronic equipment to execute a migration operation;
an obtaining module configured to obtain at least one associated object of the objects to be migrated based on at least a determined association policy, where the association policy is at least related to an access relationship between the objects to be migrated and the associated objects, and the access relationship at least includes that the associated object is capable of performing an access operation on the objects to be migrated or that the objects to be migrated is capable of performing an access operation on the associated objects;
the migration module is configured to migrate the object to be migrated and the at least one associated object from the current electronic device to the target electronic device based on at least the determined migration policy.
CN201911306103.XA 2019-12-17 2019-12-17 Migration method and migration device Active CN110989940B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911306103.XA CN110989940B (en) 2019-12-17 2019-12-17 Migration method and migration device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911306103.XA CN110989940B (en) 2019-12-17 2019-12-17 Migration method and migration device

Publications (2)

Publication Number Publication Date
CN110989940A CN110989940A (en) 2020-04-10
CN110989940B true CN110989940B (en) 2022-05-31

Family

ID=70095100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911306103.XA Active CN110989940B (en) 2019-12-17 2019-12-17 Migration method and migration device

Country Status (1)

Country Link
CN (1) CN110989940B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817742B (en) * 2021-01-12 2024-03-01 平安科技(深圳)有限公司 Data migration method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102298537A (en) * 2011-06-10 2011-12-28 宇龙计算机通信科技(深圳)有限公司 Moving method and system of application programs
CN104144175A (en) * 2013-05-06 2014-11-12 腾讯科技(深圳)有限公司 Method, device and system for data migration
CN104468947A (en) * 2013-09-16 2015-03-25 联想(北京)有限公司 Information processing method and electronic equipment
CN106412311A (en) * 2016-10-19 2017-02-15 广东欧珀移动通信有限公司 Data transmission method and terminal device
CN106484325A (en) * 2016-09-14 2017-03-08 广东欧珀移动通信有限公司 A kind of data migration method and mobile terminal
CN106775815A (en) * 2016-11-16 2017-05-31 广东欧珀移动通信有限公司 A kind of method and device of application data migration

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9381432B2 (en) * 2012-08-24 2016-07-05 Microsoft Technology Licensing, Llc Game migration
CN103795445B (en) * 2014-01-20 2017-02-08 惠州Tcl移动通信有限公司 Method and system for transferring address book information based on blue tooth
CN105808042B (en) * 2014-12-30 2019-04-23 联想(北京)有限公司 A kind of information processing method and electronic equipment
US10423362B2 (en) * 2015-11-30 2019-09-24 International Business Machines Corporation Utilizing multiple dispersal algorithms to encode data for storage in a dispersed storage network
CN106445663A (en) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 Application data migration method and device
CN106507269B (en) * 2016-09-14 2020-02-07 Oppo广东移动通信有限公司 Data migration method and terminal equipment
CN106357812A (en) * 2016-10-26 2017-01-25 京东方科技集团股份有限公司 Method for transmitting data among Android devices, data transmission device and Bluetooth device
CN107341015B (en) * 2017-06-30 2021-02-09 百度在线网络技术(北京)有限公司 Method and device for synchronizing data between terminals, terminal and storage medium
CN109167827A (en) * 2018-08-21 2019-01-08 奇酷互联网络科技(深圳)有限公司 Method, computer equipment and the storage medium of mobile terminal synchronization application
CN109558089A (en) * 2018-12-03 2019-04-02 湖南御家科技有限公司 Data migration method, device and equipment and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102298537A (en) * 2011-06-10 2011-12-28 宇龙计算机通信科技(深圳)有限公司 Moving method and system of application programs
CN104144175A (en) * 2013-05-06 2014-11-12 腾讯科技(深圳)有限公司 Method, device and system for data migration
CN104468947A (en) * 2013-09-16 2015-03-25 联想(北京)有限公司 Information processing method and electronic equipment
CN106484325A (en) * 2016-09-14 2017-03-08 广东欧珀移动通信有限公司 A kind of data migration method and mobile terminal
CN106412311A (en) * 2016-10-19 2017-02-15 广东欧珀移动通信有限公司 Data transmission method and terminal device
CN106775815A (en) * 2016-11-16 2017-05-31 广东欧珀移动通信有限公司 A kind of method and device of application data migration

Also Published As

Publication number Publication date
CN110989940A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
KR102350329B1 (en) Real-time sharing during a phone call
KR102385757B1 (en) Quick navigation of message conversation history
US9854032B2 (en) Context-aware task offloading among multiple devices
US20160357353A1 (en) Synchronized content scrubber
JP2020504865A (en) Application data processing method, apparatus, and storage medium
CN109074286B (en) Control of applications using system resources
US10474507B2 (en) Terminal application process management method and apparatus
US10778617B2 (en) Electronic device and method of transferring data in an application to another application
US20160150009A1 (en) Actionable souvenir from real-time sharing
US20210019106A1 (en) Desktop Sharing Method and Mobile Terminal
CN107835979B (en) Intelligent audio routing management
KR20210152034A (en) Voice driven dynamic menus
JP2017529624A (en) Component-specific application presentation history
US20150012846A1 (en) Method, System and Mobile Terminal for Deleting Chat Record
US20190141115A1 (en) Graphical user interface facilitating uploading of electronic documents to shared storage
US20210191580A1 (en) Method and Apparatus for Displaying Application Program, Terminal Device, and Storage Medium
CN104219356B (en) A kind of method of display search associated person information, device and mobile terminal
US20170235812A1 (en) Automated aggregation of social contact groups
US20190121786A1 (en) Method for Data Migration and Terminal
CN110989940B (en) Migration method and migration device
CN113342759B (en) Content sharing method, device, equipment and storage medium
KR102514760B1 (en) Method and system for providing web content in virtual reality environment
US11902334B2 (en) Proxy services for controlling the persistency, utilization, and dissemination of information provided to a service worker
CN110568976A (en) Method, device, equipment and storage medium for controlling application display
CN108037861A (en) A kind of icon processing method, device and electronic equipment

Legal Events

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