openharmony 鸿蒙 app-file-backup-overview

2023-06-24 浏览 (996)

Application Data Backup and Restore Overview

Application data, such as the configuration and service data, is generated when an application is used. To prevent user data against loss due to operations such as application updates and hopping, the application data needs to be backed up and restored.

Before development, you need to understand the ExtensionAbility component.

Derived from ExtensionAbility in the stage model, BackupExtensionAbility provides the capabilities of backing up and restoring application data. It is an extended component without the UI. It runs when a backup or restore task starts and exits when the task is complete.

Application data backup and restore can be implemented in either of the following ways:

  • Accessing backup and restore: All applications can access the data backup and restore framework. The application that has accessed the framework can customize the backup and restore behavior, including whether to enable backup and restore and specifying the data to be backed up, in a profile.

    The application itself cannot trigger data backup and restore.

  • Triggering backup and restore (for system applications only): Only system applications can trigger data backup and restore. After data backup or restore is triggered, the backup and restore framework backs up or restores data based on the profiles of the applications that have accessed the framework.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 native-fileshare-guidelines

openharmony 鸿蒙 manage-external-storage-sys

openharmony 鸿蒙 file-persistPermission

openharmony 鸿蒙 app-file-backup-extension

openharmony 鸿蒙 request-dir-permission

openharmony 鸿蒙 user-file-overview

openharmony 鸿蒙 select-user-file

openharmony 鸿蒙 file-access-across-devices

openharmony 鸿蒙 share-app-file

openharmony 鸿蒙 app-file-backup-sys

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/4d20639ab3c34d0dbc619fac77341353