Data synchronization method of application program, electronic equipment and readable storage medium

By synchronizing application data between smart terminal devices, the poor experience problem caused by the independent application data on different devices is solved, which improves user experience and reduces the delay in data synchronization.

CN119513055APending Publication Date: 2025-02-25ZTE TERMINAL CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311070296.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-23
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The application data on different devices are independent of each other, resulting in poor user experience when using multiple smart terminal devices.

Method used

By obtaining synchronization instructions, the first electronic device determines the shared data path across devices and sends the target file of the target data to the second electronic device through the device interconnection communication to realize the synchronization of the data.

Benefits of technology

It improves the user experience, solves the poor experience problem caused by the independent application data on different devices, and realizes the controllability and low latency of synchronized data through interconnected communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119513055A_ABST
    Figure CN119513055A_ABST
Patent Text Reader

Abstract

The invention discloses a data synchronization method of an application program, electronic equipment and a readable storage medium, and belongs to the technical field of terminals. The data synchronization method of the application program comprises the steps that a first electronic device obtains a synchronization instruction for synchronizing data to a second electronic device, and the synchronization instruction is used for synchronizing target data generated by a target application program on the first electronic device in the use process of a user to the second electronic device; the first electronic device determines a cross-device shared data path corresponding to the target data according to the synchronization instruction; wherein the cross-device shared data path is determined according to an application access file path list stored in the first electronic device; and the first electronic equipment determines a target file corresponding to the target data according to the cross-equipment shared data path, and sends the target file to the second electronic equipment through equipment interconnection communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a data synchronization method for an application, an electronic device, and a readable storage medium. Background Art

[0002] At present, users usually have a variety of smart terminal products, such as laptops, mobile phones, tablets, surveillance cameras, smart TVs, smart speakers, smart car terminals, smart conference terminals, etc. However, on different terminal devices, even if the same application is installed, the application data on each device is independent of each other. These application data include user configuration information retained during use, pre-loaded resource files, and personalized recommendation model parameter information. Since the application data on different devices are independent of each other, the user experience is poor when using it. Summary of the invention

[0003] The present application discloses an application data synchronization method, an electronic device and a readable storage medium, so as to solve the problem of poor user experience caused by the independence of application data on different devices.

[0004] In order to solve the above problems, this application adopts the following technical solutions:

[0005] In a first aspect, an embodiment of the present application provides a method for synchronizing application data, including: a first electronic device obtains a synchronization instruction to synchronize data to a second electronic device, the synchronization instruction being used to synchronize target data generated by a target application on the first electronic device during user use to the second electronic device; the first electronic device determines a cross-device shared data path corresponding to the target data according to the synchronization instruction; wherein the cross-device shared data path is determined according to a list of application access file paths stored in the first electronic device; the first electronic device determines a target file corresponding to the target data according to the cross-device shared data path, and sends the target file to the second electronic device through device interconnection communication.

[0006] In a second aspect, an embodiment of the present application provides a method for synchronizing application data, including: a second electronic device obtains a synchronization instruction for receiving synchronization data of a first electronic device, wherein the synchronization instruction is used to synchronize target data generated by a target application on the first electronic device during user use to the second electronic device; the second electronic device receives a target file corresponding to the target data determined by the first electronic device according to a cross-device shared data path through device interconnection communication, wherein the cross-device shared data path is determined based on an application access file path list stored in the first electronic device.

[0007] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect or the second aspect are implemented.

[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect or the second aspect are implemented.

[0009] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect or the second aspect.

[0010] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect or the second aspect.

[0011] The embodiment of the present application provides a method for synchronizing data of an application program, wherein a first electronic device obtains a synchronization instruction for synchronizing data to a second electronic device, wherein the synchronization instruction is used to synchronize the target data generated by the target application program on the first electronic device during the user's use to the second electronic device, and the first electronic device determines the cross-device shared data path corresponding to the target data according to the synchronization instruction, and the cross-device shared data path is determined according to the application access file path list stored in the first electronic device, and then the first electronic device determines the target file corresponding to the target data according to the cross-device shared data path, and sends the target file to the second electronic device through device interconnection communication, which can improve the user's use experience and solve the problem of poor user experience when using due to the independence of application data on different devices. Moreover, since the first electronic device and the second electronic device realize the synchronization of the target file through interconnection communication, the synchronized data can be controlled to avoid the risk of privacy data leakage. In addition, data synchronization in this way can also reduce delay and improve the rate of data synchronization. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 A schematic diagram of a flow chart of a data synchronization method for an application disclosed in an embodiment of the present application;

[0013] Figure 2 A schematic diagram of a flow chart of a data synchronization method for an application disclosed in an embodiment of the present application;

[0014] Figure 3A schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0015] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0016] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0017] In conjunction with the accompanying drawings, the data synchronization method for an application, an electronic device, and a readable storage medium provided in the embodiments of the present application are described in detail below through specific embodiments and their application scenarios.

[0018] The present application embodiment provides a method for synchronizing application data, which is applied to a first electronic device. Figure 1 FIG. 1 is a flow chart of a data synchronization method for an application disclosed in an embodiment of the present application. Figure 1 As shown, the method includes the following steps.

[0019] S120: The first electronic device obtains a synchronization instruction for synchronizing data to a second electronic device, where the synchronization instruction is used to synchronize target data generated by a target application on the first electronic device during user use to the second electronic device.

[0020] Exemplarily, the user can choose to agree on the first electronic device to synchronize the target data generated by the target application on the first electronic device during the user's use to the second electronic device. It should be noted that the second electronic device also has the target application installed. For example, the first electronic device is a mobile phone, the second electronic device is a tablet computer (Pad), and the target application is an input method, reading software, chat application, game application, etc.

[0021] The above target data can reflect the user's usage habits.

[0022] S140. The first electronic device determines a cross-device shared data path corresponding to the target data according to the synchronization instruction; wherein the cross-device shared data path is determined according to an application access file path list stored in the first electronic device.

[0023] S160: The first electronic device determines a target file corresponding to the target data according to the cross-device shared data path, and sends the target file to the second electronic device through device interconnection communication.

[0024] The first electronic device determines the target file corresponding to the target data based on the cross-device shared data path, and then sends the target file to the second electronic device through device interconnection communication, so that the second electronic device also includes the target file. When the target application is used through the second electronic device, the target application of the second electronic device will run according to the target file to provide similar services or capabilities, thereby improving the user experience.

[0025] In the present application, the first electronic device and the second electronic device can realize interconnection and communication through Bluetooth, WIFI, etc. In this case, the first electronic device and the second electronic device have file transfer capabilities. Since the first electronic device and the second electronic device realize synchronization of target files through interconnection and communication, the synchronized data can be controlled and the risk of privacy data leakage can be avoided. In addition, data synchronization in this way can also reduce latency, increase the rate of data synchronization, and reduce the cost of data synchronization.

[0026] The embodiment of the present application provides a method for synchronizing data of an application program, wherein a first electronic device obtains a synchronization instruction for synchronizing data to a second electronic device, wherein the synchronization instruction is used to synchronize the target data generated by the target application program on the first electronic device during the user's use to the second electronic device, and the first electronic device determines the cross-device shared data path corresponding to the target data according to the synchronization instruction, and the cross-device shared data path is determined according to the application access file path list stored in the first electronic device, and then the first electronic device determines the target file corresponding to the target data according to the cross-device shared data path, and sends the target file to the second electronic device through device interconnection communication, which can improve the user's use experience and solve the problem of poor user experience when using due to the independence of application data on different devices. Moreover, since the first electronic device and the second electronic device realize the synchronization of the target file through interconnection communication, the synchronized data can be controlled to avoid the risk of privacy data leakage. In addition, data synchronization in this way can also reduce delay and improve the rate of data synchronization.

[0027] In the embodiment of the present application, the target data may include: application setting information, application personalized data, cache files, local databases, application creation files, or public library media files linked to the application. Exemplarily, the public library media files linked to the application may include public library photos, videos and other media files linked to the application.

[0028] Taking Android as an example, the SharedPreference file in the application directory uses XML format to store the application's preference settings. The cache directory is mainly used to store cache data generated during the use of the application. Databases are used to store database-type data. Files are used to store application-related files and sensitive data. These resource files generated during user use can reflect the user's preferences and usage habits. The user usage habits here come from the fact that some of the user's own personalized settings, habits, or media resource files are retained and stored during the use of the application, such as the character matching recommendation of the input method, which uses dictionary caching to provide users with convenient input habits. In addition, some media public resources or caches downloaded by users during the use of the application are likely to continue to be used in subsequent use.

[0029] By synchronizing the target file corresponding to the above-mentioned target data that can reflect the user's usage habits to the second electronic device, when the target application is used through the second electronic device, the target application of the second electronic device will run according to the target file to provide similar services or capabilities, thereby improving the user's cross-device application usage experience.

[0030] In an embodiment of the present application, after the first electronic device obtains the step of a synchronization instruction to synchronize data to the second electronic device, the method may further include: the first electronic device obtains initial parameters of a cross-device data sharing model and performs model initialization processing; the initial parameters are obtained based on background data of the usage habits of multiple users. Exemplarily, after the first electronic device obtains the synchronization instruction to synchronize data to the second electronic device, the first electronic device may request the network to send the initial parameters of the cross-device data sharing model. After receiving the initial parameters of the cross-device data sharing model, the first electronic device performs initialization processing on the cross-device data sharing model based on the initial parameters. Since the initial parameters are obtained based on the background data of the usage habits of multiple users, initializing the cross-device data sharing model based on the initial parameters can accelerate the convergence speed of the cross-device data sharing model.

[0031] In one implementation, the step of determining the cross-device shared data path based on the application access file path list stored in the first electronic device may include: inputting the path access characteristics of the application access file path list into the cross-device data sharing model for determination; the path access characteristics include file access, creation, modification or movement. Exemplarily, the characteristic dimensions of the path access characteristics may include the frequency of file access within the first cycle, the access attributes supported by the file, the degree of modification of the file within the first cycle, and the latest update time of the file in the first cycle. In addition, the characteristic dimensions of the path access characteristics may also include the creation time and move time of the file. In the present application, during the process of opening and using the target application, the path access characteristics of the application access file path list can be obtained based on the application programming interface (API) provided by the operating system of the first electronic device. For example, the file access, creation, modification and movement operation data can be monitored by the FileObserver provided by Android.

[0032] In a further technical solution, the step of inputting the path access characteristics of the application access file path list into the cross-device data sharing model for determination may include: according to the model output result, obtaining the recommended value corresponding to the target data output by the cross-device data sharing model, and determining the path information corresponding to the first target file as the cross-device shared data path according to the recommended value; wherein the first target file is a target file whose recommended value is greater than a preset threshold. That is to say, the path access characteristics of the application access file path list are input into the cross-device data sharing model, the recommended value corresponding to the target data output by the cross-device data sharing model is obtained, and then the path information corresponding to the first target file whose recommended value is greater than the preset threshold is determined as the cross-device shared data path. It should be noted that the target data may correspond to multiple target files, each target file has a corresponding path access characteristic, recommended value and path information, and the preset threshold here can be set according to actual needs, and this application does not make specific limitations on this.

[0033] In addition, the path information corresponding to the second target file may be deleted according to the recommended value, wherein the second target file is a target file whose recommended value is less than or equal to a preset threshold.

[0034] In addition, personalized resource recommendations may be presented for the first target file.

[0035] The present application adopts a solution of inputting the path access characteristics of the application access file path list into the cross-device data sharing model, obtaining the recommended value corresponding to the target data output by the cross-device data sharing model according to the output result of the model, determining the path information corresponding to the first target file as the cross-device shared data path according to the recommended value, and then the first electronic device determines the target file corresponding to the target data according to the cross-device shared data path, and sending the target file to the second electronic device through device interconnection communication. There is no need to specifically adapt the synchronization data range of a certain application, and the synchronization data range can be dynamically switched as the user's usage habits change, and it has certain versatility and practicality.

[0036] In an embodiment of the present application, after the first electronic device obtains the initial parameters of the cross-device data sharing model and performs the model initialization processing, it may also include: the first electronic device obtains the second parameter corresponding to the current user's usage habits; and trains and updates the cross-device data sharing model according to the second parameter. The second parameter includes data corresponding to the historical usage habits of the current user. Exemplarily, the second parameter includes the path access features of the file path list accessed by multiple applications. The path access features include the access, creation, modification or movement of the file. For example, the feature dimensions of the path access features may include the access frequency of the file in the second period, the access attributes supported by the file, the degree of modification of the file in the second period, and the latest update time of the file in the second period. In addition, the feature dimensions of the path access features may also include the creation time and movement time of the file. After obtaining the second parameter, the path access features can be normalized in each dimension to improve the training speed and training efficiency of the cross-device shared data model. In addition, the present application can use the Adaboost algorithm to train and update the parameters of the cross-device shared data model. The core idea of ​​the Adaboost algorithm is to gradually strengthen a strong classifier with better classification effect by a weak classifier with poor classification effect, and to avoid the problem of overfitting. The scope of data synchronization of the first electronic device is adaptively learned based on the user's usage habits of the first electronic device, and the parameters of the cross-device shared data model are updated through continuous training, so that the cross-device shared data model conforms to changes in user usage habits.

[0037] In one implementation, the data synchronization method of the application disclosed in the present application may also include: obtaining the update time of the cross-device data sharing model and the last synchronization time of synchronizing the data corresponding to the target application to the second electronic device; when the update time is greater than the synchronization time, obtaining the target data corresponding to the target application. That is, when the update time of the cross-device data sharing model is after the last synchronization time of synchronizing the data corresponding to the target application to the second electronic device, obtaining the target data corresponding to the target application, re-determining the scope of data synchronization of the first electronic device, and performing data synchronization. Exemplarily, when the update time is greater than the synchronization time, obtaining the latest target data corresponding to the target application, inputting the path access feature of the latest application access file path list into the cross-device data sharing model, determining the cross-device shared data path according to the output result of the model, and then the first electronic device determines the target file corresponding to the target data according to the cross-device shared data path, and sends the target file to the second electronic device through device interconnection communication. The specific implementation method here is similar to the above, and this application will not repeat it here.

[0038] In an embodiment of the present application, the first electronic device and the second electronic device can establish device interconnection communication through a distributed platform.

[0039] The application data synchronization method provided in the embodiment of the present application can further enrich the product ecology in the device interconnection scenario, provide more scenario support, and enhance the user experience in the device interconnection scenario.

[0040] The above solution can cause changes in the user interface. The following scenarios are described:

[0041] In the input method application on the first electronic device side (for example, a mobile phone), the typing habits accumulated over a long period of input will form a user dictionary cache locally. During the input process, the user dictionary cache will be matched according to the user's current input for association, which can be convenient and efficient. The user dictionary cache generated on the first electronic device side meets the shared file characteristics and is shared and synchronized to the input method application on the second electronic device side (for example, Pad). The input habits on the first electronic device side are "cloned" to the second electronic device side. When inputting on the second electronic device side, the input method application itself will read the updated synchronized dictionary cache, and then provide a list of candidate words that conform to the user's input habits, making the input efficient and convenient. In addition, changes in the user's input habits on the first electronic device side can also be dynamically and timely learned and updated to the second electronic device side, further improving the user experience.

[0042] For some common application interfaces, there are some draggable and slidable element controls, as well as the background color of the interface elements, usage habit settings, etc., such as the drag position of the floating window on the interface, the application direction, whether it is in dark mode, the viewing time point, etc. Usually, the position, color, and mode of these controls will be saved in the configuration file of the application itself according to the user's preferences. By sharing and synchronizing these local configuration files with the application itself of the second electronic device, the application reads these configuration files to load the page load that conforms to the usage habits, for example, continue to play the media file from the time point where it last left, open the last saved bookmark, and other scenarios.

[0043] For platform applications such as quick apps and mini-games, when a mini-game or quick app is opened for the first time on the first electronic device, it is necessary to download the resource package in the background for local decompression, configuration reading, and page rendering before presentation. The downloaded resource files also reflect the user's preferences for certain classified applications. By quickly synchronizing these resource files on the first electronic device side to the second electronic device, the process of network resource requests on the second electronic device side is omitted, greatly improving the speed and efficiency of page loading.

[0044] In combination with the above application scenarios and interface examples, the method provided in this application can bring users improved user experience such as increased page resource loading speed, matching of common configuration habits and personalized recommendations.

[0045] The embodiments of the present application can be applied to various device collaboration or interconnection scenarios, including: collaboration and interconnection between mobile phones and laptops / tablet computers; collaboration and interconnection between mobile phones and AR glasses or wearable devices; collaboration and interconnection between mobile terminals and smart TVs / displays; collaboration and interconnection between mobile phones or tablet computers and in-car entertainment systems; collaboration and interconnection between mobile terminals and smart conference systems, etc., so as to meet the needs of users in various scenarios such as smart homes, smart offices, and smart travel.

[0046] The present application embodiment provides a method for synchronizing application data, which is applied to a second electronic device. Figure 2 FIG. 1 is a flow chart of a data synchronization method for an application disclosed in an embodiment of the present application. Figure 2 As shown, the method includes the following steps.

[0047] S220: The second electronic device obtains a synchronization instruction for receiving synchronization data of the first electronic device, where the synchronization instruction is used to synchronize target data generated by a target application on the first electronic device during user use to the second electronic device.

[0048] Exemplarily, the user can choose to agree to receive the synchronization data of the first electronic device on the second electronic device. It should be noted that the second electronic device also has the target application installed.

[0049] S240. The second electronic device receives, through device interconnection communication, a target file corresponding to the target data determined by the first electronic device according to a cross-device shared data path, wherein the cross-device shared data path is determined according to an application access file path list stored in the first electronic device.

[0050] The specific implementation method of determining the cross-device shared data path according to the application access file path list stored in the first electronic device is consistent with the above, and this application will not repeat it here.

[0051] It should be noted that after receiving the target file, the second electronic device can perform incremental updates, including but not limited to adding and modifying certain items in the configuration file, adding, deleting and modifying the database, creating and overwriting files, and other operations.

[0052] An embodiment of the present application provides a method for synchronizing application data, wherein a second electronic device obtains a synchronization instruction for receiving synchronization data of a first electronic device, and the second electronic device receives a target file corresponding to target data determined by the first electronic device according to a cross-device shared data path through device interconnection communication, so that the second electronic device also includes the target file. When the target application is used through the second electronic device, the target application of the second electronic device will run according to the target file to provide similar services or capabilities, thereby improving the user experience.

[0053] In one implementation, the target data may include at least one target file and path information corresponding to the target file; after the second electronic device receives the target file corresponding to the target data determined by the first electronic device according to the cross-device shared data path through device interconnection communication, it may also include: for each of the target files, if the path information corresponding to the target file cannot be matched, the target file is written into a preset area, and link information corresponding to the target file is added to the target application. That is, the second electronic device receives multiple target files, each of which has corresponding path information. If the second electronic device cannot match the path information corresponding to the target file, the target file is written into a preset area, and link information corresponding to the target file is added to the target application, and the link information points to the target file and provides the application with corresponding access capabilities. Exemplarily, the preset area can be a dedicated file sharing area.

[0054] In another implementation, after the step of receiving the target file corresponding to the target data determined by the first electronic device according to the cross-device shared data path through device interconnection communication by the second electronic device, the method may further include: for each of the target files, when the path information corresponding to the target file is matched, the data corresponding to the target application is updated according to the target file. Exemplarily, when the path information corresponding to the target file is matched, if there are identical configuration items, the data is modified and updated, and if there are no identical configuration items, the data is added.

[0055] In an embodiment of the present application, after the step of the second electronic device receiving the target file corresponding to the target data determined by the first electronic device according to the cross-device shared data path through device interconnection communication, it may also include: when it is detected that the target application is open, displaying the target application according to the target file, providing similar services or capabilities, thereby improving the user experience.

[0056] The embodiments of the present application can be applied to various device collaboration or interconnection scenarios, including: collaboration and interconnection between mobile phones and laptops / tablet computers; collaboration and interconnection between mobile phones and AR glasses or wearable devices; collaboration and interconnection between mobile terminals and smart TVs / displays; collaboration and interconnection between mobile phones or tablet computers and in-car entertainment systems; collaboration and interconnection between mobile terminals and smart conference systems, etc., so as to meet the needs of users in various scenarios such as smart homes, smart offices, and smart travel.

[0057] Alternatively, if Figure 3 As shown, an embodiment of the present application also provides an electronic device 300, including a processor 301 and a memory 302, wherein the memory 302 stores programs or instructions that can be executed on the processor 301, and when the program or instructions are executed by the processor 301, the various steps of the data synchronization method embodiment of the above-mentioned application are implemented, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.

[0058] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the data synchronization method embodiment of the above-mentioned application is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0059] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0060] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the data synchronization method embodiment of the above-mentioned application, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0061] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0062] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the data synchronization method embodiment of the above-mentioned application, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0063] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0064] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0065] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A data synchronization method for an application, characterized in that: include: The first electronic device acquires a synchronization instruction for synchronizing data with the second electronic device, wherein the synchronization instruction is used to synchronize target data generated by a target application on the first electronic device during user use to the second electronic device; The first electronic device determines, according to the synchronization instruction, a cross-device shared data path corresponding to the target data; wherein the cross-device shared data path is determined according to an application access file path list stored in the first electronic device; The first electronic device determines a target file corresponding to the target data according to the cross-device shared data path, and sends the target file to the second electronic device through device interconnection communication.

2. The method according to claim 1, characterized in that The target data includes: application setting information, application personalized data, cache files, local databases, application creation files, or public library media files linked to the application.

3. The method according to claim 1, characterized in that: After the first electronic device acquires a synchronization instruction to synchronize data to the second electronic device, the method further includes: The first electronic device obtains initial parameters of the cross-device data sharing model and performs model initialization processing; the initial parameters are obtained based on background data of usage habits of multiple users.

4. The method according to claim 3, characterized in that: The step of determining the cross-device shared data path according to the application access file path list stored in the first electronic device comprises: The path access characteristics of the application accessing the file path list are input into the cross-device data sharing model for determination; the path access characteristics include access, creation, modification or movement of files.

5. The method according to claim 4, characterized in that The step of inputting the path access feature of the application access file path list into the cross-device data sharing model for determination comprises: According to the model output result, the recommended value corresponding to the target data output by the cross-device data sharing model is obtained, and the path information corresponding to the first target file is determined as the cross-device shared data path according to the recommended value; wherein the first target file is a target file whose recommended value is greater than a preset threshold.

6. The method according to claim 3, characterized in that After the first electronic device acquires the initial parameters of the cross-device data sharing model and performs model initialization processing, the method further includes: The first electronic device acquires a second parameter corresponding to the current user's usage habits; The cross-device data sharing model is updated by training according to the second parameter.

7. The method according to claim 6, characterized in that The method further comprises: Acquire the update time of the cross-device data sharing model and the last synchronization time of synchronizing the data corresponding to the target application to the second electronic device; When the update time is greater than the synchronization time, target data corresponding to the target application is acquired.

8. The method according to claim 1, characterized in that The first electronic device and the second electronic device establish device interconnection communication through a distributed platform.

9. A data synchronization method for an application, characterized in that: include: The second electronic device acquires a synchronization instruction for receiving synchronization data of the first electronic device, wherein the synchronization instruction is used to synchronize target data generated by a target application on the first electronic device during user use to the second electronic device; The second electronic device receives the target file corresponding to the target data determined by the first electronic device according to the cross-device shared data path through device interconnection communication, wherein the cross-device shared data path is determined according to the application access file path list stored in the first electronic device.

10. The method according to claim 9, characterized in that The target data includes at least one target file and path information corresponding to the target file; after the second electronic device receives the target file corresponding to the target data determined by the first electronic device according to the cross-device shared data path through device interconnection communication, the method further includes: For each of the target files, when no path information corresponding to the target file can be matched, the target file is written into a preset area, and link information corresponding to the target file is added in the target application.

11. The method according to claim 10, characterized in that After the step of the second electronic device receiving, through device interconnection communication, the target file corresponding to the target data determined by the first electronic device according to the cross-device shared data path, the method further includes: For each of the target files, when path information corresponding to the target file is matched, data corresponding to the target application is updated according to the target file.

12. The method according to claim 9, characterized in that After the step of the second electronic device receiving, through device interconnection communication, the target file corresponding to the target data determined by the first electronic device according to the cross-device shared data path, the method further includes: When it is detected that the target application is opened, the target application is displayed according to the target file.

13. An electronic device, characterized in that: It includes a processor and a memory, the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, it implements the steps of the data synchronization method of the application as described in any one of claims 1 to 8, or implements the steps of the data synchronization method of the application as described in any one of claims 9 to 12.

14. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, it implements the steps of the data synchronization method of the application as described in any one of claims 1-8, or implements the steps of the data synchronization method of the application as described in any one of claims 9-12.