harmony 鸿蒙Ability Subsystem Changelog

  • 2025-06-12
  • 浏览 (25)

Ability Subsystem Changelog

cl.ability.1 Applications Running a Continuous Task in the Background Are Not Allowed to Call startAbility

Access Level

Public API

Reason for Change

It is prohibited for an application to call startAbility to start itself or other applications from the background. However, by leveraging a continuous task, the application can still successfully call startAbility in the background, potentially leading to the display of malicious dialog boxes. To resolve this vulnerability, a new limitation is implemented to block applications from calling startAbility when running a continuous task in the background.

Change Impact

This change is a non-compatible change.

Before change: An application running a continuous task in the background can successfully call startAbility.

After change: An application running a continuous task in the background fails to call startAbility.

Start API Level

9

Change Since

OpenHarmony SDK 5.0.0.40

Key API/Component Changes

startAbility in each context

Adaptation Guide

Do not call startAbility through a continuous task in the background. Otherwise, the call will fail.

cl.ability.2 Disabling the BackupExtensionAbility Process from Starting the AppStartup Framework

Access Level

Public API

Reason for Change

The BackupExtensionAbility process is used for data migration, during which the application is not started. As such, starting the AppStartup framework will affect the normal execution of data migration.

Change Impact

This change is a non-compatible change.

Before change: The BackupExtensionAbility process can start the AppStartup framework and execute startup tasks.

After change: The BackupExtensionAbility process cannot start the AppStartup framework.

Start API Level

12

Change Since

OpenHarmony SDK 5.0.0.40

Key API/Component Changes

Default behavior of the AppStartup framework

Adaptation Guide

No adaptation is required. However, you need to check whether the changed behavior affects the overall application logic.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Window Subsystem Changelog

0  赞