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