From d479ca7b9984a4c5d8d0cf6d5f341dd8edd01362 Mon Sep 17 00:00:00 2001 From: Gloria Date: Thu, 23 Feb 2023 11:05:15 +0800 Subject: [PATCH] Update docs against 13980 Signed-off-by: wusongqing --- .../OpenHarmony_4.0.2.3/changelogs-ability.md | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 en/release-notes/changelogs/OpenHarmony_4.0.2.3/changelogs-ability.md diff --git a/en/release-notes/changelogs/OpenHarmony_4.0.2.3/changelogs-ability.md b/en/release-notes/changelogs/OpenHarmony_4.0.2.3/changelogs-ability.md new file mode 100644 index 0000000000..8558a1379e --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_4.0.2.3/changelogs-ability.md @@ -0,0 +1,36 @@ +# 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: +| Name | Value | Description | +| ----------------------------- | ---- | ------------------------------------------------------------ | +| ALWAYS_RESTART | 0 | The application is restarted in all cases.| +| CPP_CRASH_NO_RESTART | 0x0001 | The application is **not restarted** in the case of CPP_CRASH.| +| JS_CRASH_NO_RESTART | 0x0002 | The application is **not restarted** in the case of JS_CRASH.| +| APP_FREEZE_NO_RESTART | 0x0004 | The application is **not restarted** in the case of APP_FREEZE.| +| NO_RESTART | 0xFFFF | The application is not restarted in any case.| + +After change: +| Name | Value | Description | +| ---------- | ---- | ---------- | +| ALWAYS_RESTART | 0 | The application is restarted in all cases.| +| CPP_CRASH_NO_RESTART | NA | **Deleted.** The restart in this scenario is not supported.| +| RESTART_WHEN_JS_CRASH | 0x0001 | The application is **restarted** in the case of JS_CRASH.| +| RESTART_WHEN_APP_FREEZE | 0x0002 | The application is **restarted** in the case of APP_FREEZE.| +| NO_RESTART | 0xFFFF | The application is not restarted in any case.| + +**Adaptation Guide** + +Perform adaptation based on the new semantics. -- GitLab