changelog-v3.2-beta2.md 2.2 KB
Newer Older
1
# Updates (OpenHarmony 3.2 Beta1 -> OpenHarmony 3.2 Beta2)
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58

## Introduced Application Sandbox

Based on the namespace mechanism, OpenHarmony introduces the application sandbox to enhance application data security and reduce the possible leakage of application data and user privacy information.
It also resolves user experience and concurrency stability problems in file management caused by directory disorder and adoption of multiple file access modes.

**Change Impact**

After the application sandbox is enabled, the access operations of all applications incubated by the appspawn process will be restricted by the application sandbox.
If an application does not adapt to the file access model of the application sandbox, it may not function in full.
To access files in the **/data** directory, the application must use the **Context** API, rather than a hard-coded path. For details, see [Adaptation Process](application-sandbox-adaptation-guide.md#adaptation-process).

**Key API/Component Changes**

OpenHarmony application sandbox component

**Adaptation Guide**

See [Adaptation Guide for the Application Sandbox](application-sandbox-adaptation-guide.md).

## Added Build Verification for the Struct of Custom Components

**Change 1**: The lifecycle functions (such as **aboutToAppear**) in the struct of a custom component cannot be decorated using **private**.

**Change Impact**

Before the change, only the editor performs verification. After the change, the compiler also performs verification.

**Key API/Component Changes**

None

**Adaptation Guide**

If any of the following situations occurs, remove **private**.

![](figures/compile-change1-1.png)

![](figures/compile-change1-2.png)

**Change 2**: The member property name in the struct of a custom component cannot be the same as the built-in property or method name.

**Change Impact**

If the member property name in the struct of a custom component is the same as the built-in property or method name, the verification fails.

**Key API/Component Changes**

None

**Adaptation Guide**

If any of the following situations occurs, change the property name:

![](figures/compile-change2-1.png)

![](figures/compile-change2-2.png)