1e41f4b71Sopenharmony_ci# Ability Framework Changelog 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci 4e41f4b71Sopenharmony_ci## cl.ability.1 RestartFlag Attribute Names Changed and Unsupported Attribute Deleted in appRecovery 5e41f4b71Sopenharmony_ci 6e41f4b71Sopenharmony_ciIn the **appRecovery** API, the enum names of **RestartFlag** are changed from **NO_RESTART** upon a specific fault to **RESTART** upon a specific fault. 7e41f4b71Sopenharmony_ciThe **CPP_CRASH_NO_RESTART** enum is deleted. 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci**Change Impact** 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ciIf 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. 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci**Key API/Component Changes** 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ci**RestartFlag** <sup>9+</sup> 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ciBefore change 18e41f4b71Sopenharmony_ci| Name | Value | Description | 19e41f4b71Sopenharmony_ci| ----------------------------- | ---- | ------------------------------------------------------------ | 20e41f4b71Sopenharmony_ci| ALWAYS_RESTART | 0 | The application is restarted in all cases.| 21e41f4b71Sopenharmony_ci| CPP_CRASH_NO_RESTART | 0x0001 | The application is **not restarted** in the case of CPP_CRASH.| 22e41f4b71Sopenharmony_ci| JS_CRASH_NO_RESTART | 0x0002 | The application is **not restarted** in the case of JS_CRASH.| 23e41f4b71Sopenharmony_ci| APP_FREEZE_NO_RESTART | 0x0004 | The application is **not restarted** in the case of APP_FREEZE.| 24e41f4b71Sopenharmony_ci| NO_RESTART | 0xFFFF | The application is not restarted in any case.| 25e41f4b71Sopenharmony_ci 26e41f4b71Sopenharmony_ciAfter change 27e41f4b71Sopenharmony_ci| Name | Value | Description | 28e41f4b71Sopenharmony_ci| ---------- | ---- | ---------- | 29e41f4b71Sopenharmony_ci| ALWAYS_RESTART | 0 | The application is restarted in all cases.| 30e41f4b71Sopenharmony_ci| CPP_CRASH_NO_RESTART | NA | **Deleted.** The restart in this scenario is not supported.| 31e41f4b71Sopenharmony_ci| RESTART_WHEN_JS_CRASH | 0x0001 | The application is **restarted** in the case of JS_CRASH.| 32e41f4b71Sopenharmony_ci| RESTART_WHEN_APP_FREEZE | 0x0002 | The application is **restarted** in the case of APP_FREEZE.| 33e41f4b71Sopenharmony_ci| NO_RESTART | 0xFFFF | The application is not restarted in any case.| 34e41f4b71Sopenharmony_ci 35e41f4b71Sopenharmony_ci**Adaptation Guide** 36e41f4b71Sopenharmony_ci 37e41f4b71Sopenharmony_ciPerform adaptation based on the new semantics. 38