harmony 鸿蒙Ability Subsystem Changelog
Ability Subsystem Changelog
cl.ability.1 Added a Restriction to childProcessManager to Limit the Maximum Number of Child Processes Allowed
Access Level
Public API
Reason for Change
There is a potential risk of malicious calls when applications can initiate an unlimited number of child processes, so it is necessary to set a restriction on the number of child processes allowed.
Change Impact
This change is a non-compatible change.
Before change: The total number of child processes that can be started by an application through childProcessManager is not limited.
After change: An application can start a maximum of 512 child processes through childProcessManager (non-SELF_FORK mode).
Start API Level
11
Change Since
OpenHarmony SDK 5.0.1.1
Key API/Component Changes
startChildProcess (non-SELF_FORK mode) and startArkChildProcess in childProcessManager
Adaptation Guide
No adaptation is required. An application can start a maximum of 512 child processes through childProcessManager. When the maximum number is reached, no more child processes can be started.
cl.ability.2 Disabling the Extension Process from Starting the AppStartup Framework
Access Level
Public API
Reason for Change
The Extension process should not start the startup framework, as this framework is used to enhance the initialization tasks associated with the launch of a UIAbility. If the Extension process is capable of starting the framework, it could result in the framework being activated before the application is fully launched, which might cause certain code segments to run at inappropriate times.
Change Impact
This change is a non-compatible change.
Before change: The Extension process can start the AppStartup framework and execute startup tasks.
After change: The Extension process cannot start the AppStartup framework. Only the UIAbility can start the framework and execute startup tasks.
Start API Level
12
Change Since
OpenHarmony SDK 5.0.1.1
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.
你可能感兴趣的鸿蒙文章
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
7、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦