The new version of OpenHarmony 4.0 Beta2 is released, you are invited to experience it

On August 3, 2023, OpenAtom OpenHarmony ("OpenHarmony" for short) released the Beta2 version. Compared with the historical version, we continue to improve ArkUI, file management, media, windows, security and other system capabilities and enhance the experience. Developers are welcome to understand and upgrade, actively feedback valuable suggestions, participate in contributions, and jointly promote the maturity of version 4.0.

In order to make it easier for community developers to understand the capabilities of the new version, we have prepared new content introductions and related documentation resources for the version. Come and experience it~

New and Enhanced Features

ArkUI

• The ability to support named routes, with which you can set differentiated switching effects for different pages.

API reference:

OpenAtom OpenHarmony

• The lightweight ArkUI framework supports the definition of global data objects, which can share data between pages in the application.

API reference:

OpenAtom OpenHarmony

application framework

• ArkTS card supports static card configuration and static image display.

guide:

OpenAtom OpenHarmony

file management

• Supports synchronization of public image files between the device and the cloud (the device login account needs to activate the cloud service), and supports selecting images from the cloud through the picker.

API reference:

OpenAtom OpenHarmony

• Support to apply custom backup and restore directories.

guide:

OpenAtom OpenHarmony

• Supports classified management of public pictures, users can organize and classify user pictures through albums in the gallery.

guide:

OpenAtom OpenHarmony

• Support the addition, modification and deletion of files in the application monitoring sandbox.

API reference:

OpenAtom OpenHarmony

media

audio

• Support sound effect framework: device manufacturers can configure sound effect policies and load custom sound effects; applications can query the sound effect mode of audio output, and switch or close the sound effect mode.

• Support recording capability in the system: It can filter and record the audio data played in the system according to the audio scene attributes.

• Support for obtaining the display name of the audio device: the name of the device to which the current playback output belongs can be obtained in the detailed information of the playback object.

API reference:

OpenAtom OpenHarmony

Audio and video codec

• Support querying the system's audio and video codec capabilities through Native API.

guide:

OpenAtom OpenHarmony

• Support audio and video encapsulation through Native API, that is, to store encoded media data such as audio and video into files in a certain format.

guide:

OpenAtom OpenHarmony

• Support audio and video decapsulation through Native API, that is, extract audio, video and other media frame data from bit stream data.

guide:

OpenAtom OpenHarmony

Network and Communication

• Support communication with the server through TCP Socket.

• Allows users to transfer data to remote servers.

• Supports management adaptation of HTTPS certificates.

• Support network card proxy.

Upload Download

• Supports querying uploaded and downloaded tasks, task status information synchronization and task record persistence, task status query and exception recovery.

API reference:

OpenAtom OpenHarmony

Safety

Encryption and decryption algorithm library framework

guide:

OpenAtom OpenHarmony

• Provide random generation and conversion of SM4 keys, as well as encryption and decryption capabilities.

• Capability of providing HMAC and HASH of SM3 keys.

• Provides random generation and conversion of SM2 keys, signature and verification, and encryption and decryption capabilities.

program access control

• Optimize the menu presentation of permission management, split the permission groups of media and files, and the authorization granularity of corresponding permissions is more refined.

guide:

OpenAtom OpenHarmony

account

• Support account authorization capability expansion and account authorization capabilities for third-party applications.

API reference:

OpenAtom OpenHarmony

• Support the management of domain account plug-ins, thereby supporting domain account management and authentication capabilities.

API reference:

OpenAtom OpenHarmony

WebView

• Complementary W3C capabilities: Supplements Web Camera capabilities, supports H5 tag capabilities such as bindContextMenu, Select, and date type input.

• Support basic drag and drop capabilities for text and pictures.

• Support WebRTC video conferencing capabilities (excluding camera sharing).

SheetCompiler

• Ark runtime supports dynamic PGO function, which can collect runtime type and function hotspot information, and generate AP files.

guide:

Documentation center

• NAPI buffer, object, arraybuffer, and object type interface functions are completed.

API reference:

OpenAtom OpenHarmony

• TaskPool supports task interruption and cancellation, supports the definition of task groups (TaskGroup), supports management of task status and scheduling information, and supports identification and recovery of long-waiting tasks.

API reference:

OpenAtom OpenHarmony

DFX

• Provides a unified collection framework capability to facilitate developers' debugging of applications.

• Provides a unified trace collection capability.

• Provide Native HiTraceMeter RBI interface.

drive

The extended device driver framework provides the following capabilities:

• The extended device driver framework is based on the capability of "Driver Extension Ability", which builds the development, deployment, installation, update, uninstallation, and operation capabilities of the application state extension driver package, and opens up the full process lifecycle management capability.

• The pluggable USB device extension driver package that supports non-standard protocols developed by third-party device manufacturers can be installed to the system normally. After inserting the USB device, the USB device can be recognized normally and matched with the extended driver package.

• Support three-party applications to query and bind the USB device extended driver package by extending the external device management framework to complete the operation of customizing the extended driver package.

API reference:

OpenAtom OpenHarmony

power supply

• Added an interface to support setting the system to enter the sleep state immediately.

• Added the ability to customize dormancy sources, which supports customizing events and behaviors based on different dormancy sources.

• Added the wake-up source customization capability, which supports customizing wake-up events based on different wake-up sources.

Other experience improvements

In addition to the capabilities that developers can actively call, this version upgrade also upgrades the system processing mechanism and the experience that end users can perceive:

• [Package Management] When a user opens a file on a terminal device, the file extension is supported to list the application list that can open the file, which realizes the matching relationship between the file extension and the application.

• [File Management] When the user performs cross-device file sharing on the terminal device, it supports selecting files in the sandbox for sharing.

• [Device Mutual Trust Authentication] Supports the generation of pseudonyms in the mutual trust authentication process between devices in the following two scenarios, and supports identification and identification of pseudonymized devices, providing a more secure mechanism for device mutual trust:

• Perform mutual trust authentication for multiple devices logged in with the same account.

• Mutual trust authentication for two peer-to-peer connected devices with different accounts.

• 【System Service Management】Supports system services to start on demand, such as external calls, event triggers, and supports automatic exit of system services when the device is idle.

• [System Service Management] The system service configuration format is optimized, and the JSON format is used instead of the XML format.

• [Distributed data management] Key-Value and distributed data objects support automatic selection of data synchronization channels according to the amount of data. The system will automatically select the Bluetooth channel or Wi-Fi-based P2P channel for data synchronization according to the size of the data.

• [ArkCompiler] Ark runtime supports JSContext function; supports dynamic import to load NAPI library.

The above content is the feature and function optimization provided by this version update, which will help you understand the capabilities of the new version and how to better use it. For more version details, please refer to OpenHarmony 4.0 Beta2 Release Notes.

OpenAtom OpenHarmony

You are welcome to experience, use and give us feedback. You can give feedback on suggestions and needs in the OpenHarmony Gitee community, and continue to improve system capabilities with us. We firmly believe in the power of community developers to build a healthy and thriving OpenHarmony community.

Click to follow and read the original text for more information

Guess you like

Origin blog.csdn.net/OpenHarmony_dev/article/details/132489505