目录

About This Kit

Function

ArkData provides data storage, management, and sync capabilities. For example, you can store the Contacts application data in database for secure management and shared access, and synchronize the contacts information with a smart watch.

The database files created by an application are saved to the application sandbox directory. When the application is uninstalled, the database files are automatically deleted.

Working Principles

The data management module includes preferences, KV data management (KV-Store), relational data management (RelatoinalStore), distributed data object (DataObject), cross-application data management (DataShare), and unified data management framework (UDMF). The interface layer provides standard JavaScript APIs for application development. The Frameworks & System service layer implements storage and sync of component data, and provides dependencies for SQLite and other subsystems.

Figure 1 Data management architecture

Emulator Support

This kit supports the Emulator, but there are some differences in feature support between real devices and the Emulator: