openharmony 鸿蒙 changelogs-ability

2023-06-24 浏览 (739)

Ability Subsystem Changelog

cl.ability.1 RestartFlag Attribute Names Changed and Unsupported Attribute Deleted in appRecovery

In the appRecovery API, the enum names of RestartFlag are changed from NO_RESTART upon a specific fault to RESTART upon a specific fault. The CPP_CRASH_NO_RESTART enum is deleted.

Change Impact

If your application uses the CPP_CRASH_NO_RESTART, JS_CRASH_NO_RESTART, or APP_FREEZE_NO_RESTART attribute in versions earlier than 4.0.2.3, its behavior will change after an upgrade to 4.0.2.3.

Key API/Component Changes

RestartFlag 9+

Before change:

NameValueDescription
ALWAYS_RESTART0The application is restarted in all cases.
CPP_CRASH_NO_RESTART0x0001The application is not restarted in the case of CPP_CRASH.
JS_CRASH_NO_RESTART0x0002The application is not restarted in the case of JS_CRASH.
APP_FREEZE_NO_RESTART0x0004The application is not restarted in the case of APP_FREEZE.
NO_RESTART0xFFFFThe application is not restarted in any case.

After change:

NameValueDescription
ALWAYS_RESTART0The application is restarted in all cases.
CPP_CRASH_NO_RESTARTNADeleted. The restart in this scenario is not supported.
RESTART_WHEN_JS_CRASH0x0001The application is restarted in the case of JS_CRASH.
RESTART_WHEN_APP_FREEZE0x0002The application is restarted in the case of APP_FREEZE.
NO_RESTART0xFFFFThe application is not restarted in any case.

Adaptation Guide

Perform adaptation based on the new semantics.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ANS Subsystem Changelog

harmony 鸿蒙ArkUI Subsystem Changelog

harmony 鸿蒙USB Subsystem API Changelog

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