OpenHarmony 4.0 Beta2

Release overview

OpenHarmony version 4.0 standard system capabilities continue to improve: ArkUI further enhances basic component capabilities, the application framework supports ArkTS card proxy refresh, application packages support applications, support atomized service data sharing, support enterprise application installation management, and distributed soft bus supports session level Distributed data management UDMF (Unified Data Management Framework) supports temporary authorization of files in distributed directories under cross-device drag-and-drop scenarios, file management supports synchronization of public image files between the device and the cloud, and media further enhances audio /Media player/Audio and video encoding and decoding capabilities, graphics rendering library upgraded to the new version of Skia 0310, window control capabilities continue to be enhanced, event notifications support selected notifications and batch deletion of notifications, security foundation provides DSA digital signature algorithm capabilities, ArkCompiler Ark running It supports the JSContext function and the dynamic PGO function, and DFX provides a unified acquisition framework capability, which is convenient for developers to debug and debug applications.

Feature Description

application framework

  • Update the ArkTS card refresh method to support refreshing content through data proxy.

  • ArkTS cards support static card configuration and static image display.

ArkUI

  • Xcomponent supports Texture mode drawing, popup supports position customization, popup supports layer-by-layer exit via keyboard ESC key, ListItem supports long-distance left-swipe delete gesture, ArkTS/JS card supports rendering completion callback, Image/Text component supports privacy mask , ContextMenu supports segment display capability.

  • Enhanced animation effects, including: layout attributes, background image size and location attributes, explicit and implicit attributes support implicit animation effects, list supports scrollToIndex animation effects, Tabs blur animation effects, popup appearance/disappearance animation effects, and supports custom animations to meet the needs of developers Various animation demands.

  • Enhanced development efficiency: Support the ability of named routing, with which different switching effects can be set for different pages; the lightweight ArkUI framework supports the definition of global data objects, which can share data between pages in the application.

  • The global API supports multi-instance scenarios of the Stage model.

Application package management

  • Supports the setting and query of application distribution type and attachment information.

  • Support to list the application list that supports opening the file through the file extension, and realize the matching relationship between the file extension and the application.

  • Supports installation management of enterprise applications. For applications whose certificate type is "enterprise", the installation needs to apply for "ohos.permission.INSTALL_ENTERPRISE_BUNDLE".

Distributed Data Management

  • UDMF (Unified Data Management Framework) supports temporary authorization of files in distributed directories in cross-device drag and drop scenarios.

  • Provide RDBstore NDK interface: including add/delete/modify/check/transaction, data encryption, data hierarchical protection, backup/restore capabilities.

  • Key-Value and distributed data objects support automatic selection of channels for data synchronization based on the amount of data. The system will automatically select the Bluetooth channel or the WiFi-based P2P channel for data synchronization according to the size of the data.

distributed soft bus

  • Supports the management of link information based on the soft bus connection.

  • Support session-level transmission capability negotiation, which can determine the transmission capability between devices through negotiation.

distributed hardware

  • The audio recording latency performance in distributed scenarios has been optimized.

  • The distributed file system supports mutual access to files in a Bluetooth-guided P2P connection environment.

  • Support monitoring of network device name changes.

file management

  • It supports the synchronization of public image files between the device and the cloud (the device login account needs to open the cloud service), and supports the selection of images in the cloud through the picker.

  • Supports directory for application customization backup and recovery.

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

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

  • Support apps to share files in the sandbox across devices.

Graphical Display and Windows

graphics

  • Support color selection for the selected area, you can get the main color value, average color value and other parameters of the area after selecting the area and use it as needed.

  • Support setting the offset of the rotation center at the Z-axis anchor point, allowing to modify the rendered anchor point during the rotation process.

  • The rendering library that graphics processing depends on is upgraded to the new version of Skia 0310, which improves the display performance.

window

  • Optimized the parameter value acquisition method of the display module, from the original software method to directly obtain the real value from the hardware.

  • Enhanced window control capabilities: windows support window properties, sub-windows, modal windows, window effects, window decorations, screen on and off processes, and screen captures in a controlled manner.

media

audio

  • Support for 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, 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.

media player

Supports sound effect parameter configuration, and can further configure sound effects based on the ability of the audio framework to support sound effects.

Audio and video codec

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

  • Supports audio and video encapsulation through Native API, that is, encoded media data such as audio and video are stored in files in a certain format.

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

event notification

  • Support selected notifications and delete notifications in batches.

  • The emitter supports canceling the ability to specify subscription callbacks based on conditions.

basic communication

  • WiFi supports the ability to scan in the background.

  • WiFi supports random MAC capability in STA mode.

Network and Communication

  • Support to communicate with the server through TCP Socket.

  • Allows users to transfer data to remote servers.

  • Supports management adaptation of HTTPS certificates.

  • Support network card agent.

System Service Management

  • Support system services to start on demand, such as external calls, event triggers, and support automatic exit of system services when the device is idle.

  • The system service configuration format is optimized, and the JSON format is used instead of the XML format.

power supply

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

  • Added the dormancy source customization capability, 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.

Multimode input

  • Supports mapping the original events of keyboard input devices to normalized interaction intent events, so that developers do not need to pay attention to whether the input behavior comes from touch or keyboard when developing applications.

  • Support users to set personalized configuration of touchpad functions according to personal habits:

    • Supports two trigger modes to map the function of the left mouse button: press, tap.
    • Supports two trigger modes to map the right mouse button function: tap the left/bottom right corner, two-finger tap or tap.
    • Tracking speed: Support 10 speed adjustments.
    • Supports two interactive modes to map the mouse wheel function: the content moves with the direction of the finger, and the content moves with the finger in the opposite direction.

theme frame

  • The lock screen management service supports the lock screen event callback mechanism, static/dynamic wallpaper, and querying the business status when the screen is locked.

  • The wallpaper management service supports custom wallpapers, lock screen/unlock operations, and reset wallpapers.

Upload Download

Support query uploaded and downloaded tasks, task status information synchronization and task record persistence, task status query and exception recovery.

Safety

Encryption and decryption algorithm library framework

  • Provide DSA digital signature algorithm capability.

  • Provides DSA, ECC, RSA key analysis and key parameter acquisition capabilities.

  • Provides the ability to obtain the type of secure random number generation algorithm.

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

  • Provides HMAC and HASH capabilities for SM3 keys.

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

key management

  • Support HUKS key encryption protection.

  • Support adding the business identity field to which the key belongs in the KeyAttestation public key certificate.

  • Supports standard HDI southbound interfaces.

Device Mutual Trust Authentication

Supports generating pseudonyms in the mutual trust authentication process between devices in the following two scenarios, and supports identifying and identifying pseudonymized names of devices.

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

  • Mutual trust authentication is performed on two peer-to-peer connected devices with different accounts.

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.

  • Support SELinux compatibility under the treble architecture.

account number

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

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

WebView

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

  • Support process splitting for multiple rendering processes.

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

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

  • Support independent SELinux labels for rendering processes, enhancing basic security capabilities.

SheetCompiler

  • Ark supports JSContext function when running; supports dynamic PGO function, which can collect runtime type and function hotspot information, and generate AP file; supports dynamic import to load NAPI library.

  • In the type compilation mode of the Ark compiler, the front-end compilation tool chain is switched to es2abc.

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

  • 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.

  • Compilation and construction capabilities provide the construction of versions with different permissions for the user and root of the OpenHarmony system, and the user version capabilities simultaneously support Wukong test tools and XTS test capabilities.

  • The compilation toolchain supports debugging capabilities on the previewer.

DFX

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

  • Provides a unified trace collection capability.

  • Provide Native HiTraceMeter RBI interface.

  • The performance radar provides tools to facilitate each business module (subsystem) to transmit performance buried point records and settlement performance data in the business process.

kernel

The ability to control code execution permissions has been enhanced, and the following capabilities have been added:

  • Support safe memory mechanism.

  • Provides code execution permission control strategies that meet different scenarios.

  • Provides full lifecycle management capabilities for code execution authority control.

  • Supports parsing executable files to obtain code segment information.

  • Supports the integrity protection capability of the code page.

drive

  • The extended device driver framework provides the following capabilities:

    • The extended device driver framework is based on the ability of "Driver Extension Ability (DriverExtensionAbility)", 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 OpenHarmony 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, and complete the operation of customizing the extended driver package.
  • The camera driver provides the following capabilities:

    • Provide USB camera hot-plug recognition capability, support boot check recognition and hot-plug recognition after startup.
    • Support the preview, photo, and video capabilities of USB cameras, and provide camera format, resolution query, and configuration capabilities.
  • The codec driver provides hardware decoding acceleration capabilities for JPEG pictures, including obtaining hardware decoding information, initializing/deinitializing, decoding, applying for/releasing buffers, and improving the smooth experience of users browsing pictures.

  • The sensor driver provides device drive capabilities for temperature and humidity sensors, supports small device temperature and humidity device query, device enable/disable, data query capabilities, and enriches the sensor capabilities of smart devices.

Supporting relationship

Table 1  Supporting relationship between version software and tools

software Version Remark
OpenHarmony 4.0 Beta2 THAT
Public SDK Ohos_sdk_public 4.0.9.6 (API Version 10 Beta2) It is provided for application developers and does not contain system interfaces that require system permissions. The default SDK obtained through DevEco Studio is Public SDK.
HUAWEI DevEco Studio (optional) 4.0 Beta2 Recommended for OpenHarmony application development. Obtaining method:
Windows(64-bit)
SHA256 check code: ae9b228fb1f79e99441e10bdcf347ebfc42266be8b170bbce3c9764ba32d82a4
Mac(X86)
SHA256 check code: 5c9afc5b1262868b58376155f1e857 6d33c1ade8b01091edc4d7d397cd34026c
Mac(ARM)
SHA256 check code: ea6c98cafd5036e4a6fd46b0b1cde3a306953b1eef423d5940f1af7c632205d6
HUAWEI DevEco Device Tool (optional) 4.0 Beta1 The OpenHarmony smart device integrated development environment is recommended. Obtaining method:
Click to jump to the download page

source code acquisition

prerequisite

  1. Registration code cloud gitee account.

  2. To register the Code Cloud SSH public key, please refer to the Code Cloud Help Center .

  3. Install git client and git-lfs and configure user information.

    git config --global user.name "yourname"
    git config --global user.email "your-email-address"
    git config --global credential.helper store
     
  4. To install the code cloud repo tool, you can execute the following command.

    curl -s https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo #If you don't have permission, you can download to other directories and configure them in environment variables chmod a+x /usr/local/bin/repo 
    pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests
     

Obtain via repo

Method 1 (recommended)

Download via repo + ssh (public key registration is required, please refer to Code Cloud Help Center ).

  • Get the source code from the release branch. You can get the latest source code of the branch of this version, including the integration in this branch after the release of the version.

    repo init -u [email protected]:openharmony/manifest.git -b OpenHarmony-4.0-Beta2 --no-repo-verify
    repo sync -c
    repo forall -c 'git lfs pull'
     
  • Get the source code from the version release Tag node. The source code that is exactly the same as the version released can be obtained.

    repo init -u [email protected]:openharmony/manifest.git -b refs/tags/OpenHarmony-v4.0-Beta2 --no-repo-verify
    repo sync -c
    repo forall -c 'git lfs pull'
     

way two

Download via repo + https.

  • Get the source code from the release branch. You can get the latest source code of the branch of this version, including the integration in this branch after the release of the version.

    repo init -u https://gitee.com/openharmony/manifest -b OpenHarmony-4.0-Beta2 --no-repo-verify
    repo sync -c
    repo forall -c 'git lfs pull'
     
  • Get the source code from the version release Tag node. The source code that is exactly the same as the version released can be obtained.

    repo init -u https://gitee.com/openharmony/manifest -b refs/tags/OpenHarmony-v4.0-Beta2 --no-repo-verify
    repo sync -c
    repo forall -c 'git lfs pull'
     

Get it from a mirror site

Table 2  Get the source code path

version source code Version Information download site SHA256 check code Software package capacity
Full code (standard, lightweight and small systems) 4.0 Beta2 site SHA256 check code 27.7 GB
Hi3861 solution (binary) 4.0 Beta2 site SHA256 check code 27.5 MB
Hi3516 solution - LiteOS (binary) 4.0 Beta2 site SHA256 check code 300.9 MB
Hi3516 Solution - Linux (binary) 4.0 Beta2 site SHA256 check code 192.4 MB
RK3568 standard system solution (binary) 4.0 Beta2 site SHA256 check code 5.2 GB
Standard system Public SDK package (Mac) 4.0.9.6 site SHA256 check code 832.3 MB
Standard system Public SDK package (Mac-M1) 4.0.9.6 site SHA256 check code 788.4 MB
Standard system Public SDK package (Windows/Linux) 4.0.9.6 site SHA256 check code 2.0 GB

Release Notes

This version has the following changes based on OpenHarmony 4.0 Beta1:

API

The API scope of OpenHarmony 4.0 Beta2 is compared with 4.0 Beta1. For the list of API changes, please refer to " API Difference Report ". A very small number of interface changes may affect developed applications (applications developed using API 9 or earlier versions of the API), please refer to "changelogs" for descriptions of the impact of changes and interface adaptation guidance .

feature change

See Release Overview for details .

Chip and development board adaptation

For chip and development board adaptation status, please refer to SIG-Devboard information.

Samples

Table 3  New Samples

subsystem name Introduction Development language
network and connection upload and download This example uses the @ohos.request interface to create upload and download tasks to implement upload and download functions. HFS is used as the server to implement file upload and download and task query functions. ArkTS
file management Application access data backup and restoration
(Full SDK)
Backup and restoration of application access data needs to be implemented by configuring BackupExtensionAbility.
BackupExtensionAbility is a derived class of the extension component ExtensionAbility in the Stage model. Developers can customize the behavior of the backup and recovery framework by modifying configuration files, including whether to allow backup and recovery, which files to back up, and so on.
This sample mainly provides applications for the backup process to generate and display data.
ArkTS
event notification Custom Notification Corner Badge This example mainly demonstrates the function of setting the corner mark of the desktop icon of the application, and uses the @ohos.notificationManager interface to set the corner mark of the desktop, send and obtain notifications, etc. ArkTS
event notification Custom notification push
(Full SDK)
This example mainly demonstrates the function of notification filtering callback management, using the @ohos.notificationManager interface to perform notification monitoring callbacks to determine whether to send application notifications. ArkTS
GDR Native Xcomponent
(Native SDK)
This example mainly introduces how developers use the Native XComponent interface to obtain NativeWindow instances, obtain layout/event information, register event callbacks, and implement drawing shapes on the page through OpenGL/EGL. The function mainly includes clicking the button to draw a five-pointed star, and changing the color of the five-pointed star by clicking the XComponent area. Native C++
application model Data Proxy Card - Database Refresh
(Full SDK)
This example mainly demonstrates the function of the data proxy card. Using @ohos.application.DataShareExtensionAbility, @ohos.data.dataShare, @ohos.data.dataSharePredicates and other interfaces, after modifying the card subscription information, when the data in the rdb database occurs When it changes, the corresponding information in the card also changes accordingly. ArkTS
application model Data proxy card - imitation push application refresh
(Full SDK)
This example mainly demonstrates the data agent card function in the form of a push application, and uses interfaces such as @ohos.data.dataShare to realize the function of modifying subscription conditions of the data agent card and the function of publishing data of the card. ArkTS
application model edit application This example mainly realizes the simple sharing function based on UIExtension. Support to cancel sharing, click the "Return to Share" button to return to the calling app; support to complete sharing, click the "Stay in the editing app" button, stay in the current app that receives the sharing result. ArkTS
application model 发起分享应用
(Full SDK)
本示例主要实现了点击“分享”按钮发起分享,显示出分享文本应用图标和分享编辑应用图标,点击相对应应用图标可以发起分享并跳转到其对应应用显示。 ArkTS
应用模型 文本应用
(Full SDK)
本示例主要实现了基于UIExtension实现简单的分享功能。支持取消分享,点击“返回Share”按钮,返回调用方应用;支持完成分享,点击“留在文本应用”按钮,留在当前文本应用。 ArkTS

请访问Samples仓了解更多信息。

修复缺陷列表

表4 修复缺陷ISSUE列表

ISSUE单 问题描述
I6U4ZT 拍照后立刻断电源,图库的第一张图片点击打不开。
I79752 中概率由进程com.ohos.smartperf下的.ohos.smartperf线程导致libark_jsruntime.so出现cppcrash。
I79P3K 低概率由进程com.ohos.callui导致jscrash,栈名:onDestroy。
I79TCB 低概率由进程com.ohos.note下的VizCompositorTh线程导致libweb_engine.soTh出现cppcrash。
I78CBC 反复进入某相册的图片宫格浏览界面,导致libace.z.so出现内存泄露。
I78CH7 反复在dock栏添加/移除应用,导致libace.z.so出现内存泄露。

遗留缺陷列表

表5 遗留缺陷列表

ISSUE 问题描述 影响 计划解决日期
I78C9W 反复进入大图浏览界面后返回,导致libace.z.so出现内存泄露。 非常用场景,应用重启后泄露问题消失,影响可控。 2023年8月30日
I7BF3M 长时间运行测试,launcher进程概率性出现appfreeze,原因是STRINGID:APPLICATION_BLOCK_INPUT卡在libeventhandler.z.so。 该问题不会引起系统重启,整体影响可控。 2023年8月30日
I7M51R 低概率出现进程com.ohos.systemui下的线程render_service出现cppcrash。 低概率问题,且render_service进程出现cppcrash后,系统会自动重新启动render_service进程,对业务影响可控。 2023年8月30日
I7NWF3 因兼容性问题,使用3.2.x版本的设备和4.0.x版本的设备通过Wi-Fi引导P2P连接时开启会话失败。 在使用4.0.x版本的设备间此问题不存在,影响可控。 2023年8月30日
I7BOAO 三方仓GLES3多个测试用例执行失败。 三方仓问题,厂商正在适配修改。 2023年8月30日

 

Guess you like

Origin www.oschina.net/news/252856/openharmony-4-0-beta2-released