目录

Overview of Cross-Device Application Data Sync

When to Use

The cross-device application data sync allows the data of an application to be synced with other devices that are connected to form a Virtual Device. This feature enables seamless sync, modification, and query of user application data across trusted devices.

For example, when data is added, deleted, or modified for an application on a device, the same application on another device can obtain the updated data. You can use this feature in the distributed Gallery, Notepad, Contacts, and File Manager.

For details about how to subscribe to database change notifications between different applications, see Cross-Application Data Sharing.

The data storage modes vary depending on the lifecycle of data to be synced:

Basic Concepts

In a distributed scenario, cross-device collaboration demands consistent data between the devices in the same network.

The data consistency can be classified into the following types:

Strong consistency has high requirements on distributed data management and may be used in distributed server deployment. Because mobile devices are not always online and there is no central node, the cross-device application data sync supports eventual consistency only.

Access Control Mechanism in Cross-Device Sync

When data is synced across devices, access control is performed based on the device level and data security label. For details, see Access Control Mechanism in Cross-Device Sync.