OpenHarmony 5.0.3 Release continuously improves the capabilities of the standard system, rolling out API 15 via quick iteration. Compared with 5.0.2 Release, OpenHarmony 5.0.3 Release has the following new or enhanced features:
ArkUI provides more advanced attribute settings of components and exquisite animations. For 2-in-1 devices, the window management capability supports more types of device screens or windows. The Unified Data Management Framework (UDMF) of distributed data management is improved with a new smart data platform to provide data intelligence on the device. More external devices, such as game controllers, are also supported.
OpenHarmony 5.0.1(API 13) and OpenHarmony 5.0.2(API 14) are fast iteration versions. For details, refer to the corresponding version descriptions.
A more detailed description of the enhancements is as follows:
Definitions and C APIs of the component startup parameter Want are added. (API Reference)
The application context can be created based on the specified physical screen ID so that other screen information can be obtained and used. (API Reference)
The UIAbility can be started through the C API. (API Reference)
Callbacks for pre-closing applications are added, which can be used to ask users whether to execute or cancel operations immediately. (API Reference of UIAbility, API Reference of AbilityStage)
The route navigation capability is enhanced as follows:
The text and input components are enhanced as follows:
The Image and Video components are enhanced as follows:
The popup capability is enhanced as follows:
The Swiper and Tabs components are enhanced as follows:
The capabilities of the UIContext object are enhanced as follows:
The common capabilities of C APIs are enhanced as follows:
Whether the current tap event is from the left or right hand can be obtained, which involves the following data objects:
Gesture recognizers support finger count limits.
The capabilities of setting the mode for processing key events and re-dispatching key events are added as follows:
The TextPicker component allows you to disable the text style change animation and default text style during the scrolling process. (API Reference)
The Progress component supports a C API for setting the linear progress indicator style. (API Reference)
FrameNode supports cross-language capabilities (API Reference) and expansion modes of child nodes during node traversal (API Reference).
The Indicator component is added, which provides two types of navigation indicators: dot indicators and digit indicators. (API Reference)
Third-party platforms connecting to the ArkUI accessibility framework support searching for the next or previous focus (ARKUI_ACCESSIBILITY_NATIVE_ACTION_TYPE_NEXT_HTML_ITEM, ARKUI_ACCESSIBILITY_NATIVE_ACTION_TYPE_PREVIOUS_HTML_ITEM) (API Reference) and multi-instance scenarios (API Reference).
The NavDestination component information of the ohos.arkui.observer module supports the NavDestination type and uniqueId. (API Reference)
The PatternLock component allows you to set whether unselected dots in the grid are automatically selected when the password path passes over them. (API Reference)
Focus axis events are added to universal events to support the response to the game controller axis event (C API Reference, ArkTS API Reference).
A C API is added for obtaining the action type of the current axis event. (C API Reference)
The size attributes support adaptation of width and height to the parent component's layout. (API Reference)
The capability of obtaining component screenshots supports the definition of the component screenshot region. (API Reference)
The Security component allows you to set the alignment of the icon and text (API Reference) and the radius of four border corners (API Reference).
The PiP window information, such as the ID and size, can be obtained. (API Reference)
The layout information of all windows visible on a display can be obtained. (API Reference)
The display density information of the current window can be obtained (API Reference), the system density change event of the window can be subscribed (API Reference), and the display size scale factor of the main window can be set by itself (API Reference).
The window movement configuration is added. Currently, the screen ID can be defined, and a window can be moved to another screen. (API Reference)
C APIs of the window management are added. You can use the APIs to set and obtain the properties of a window, and set its status bar style and navigation bar style. (API Reference)
The fold status enumeration of the display module introduces multiple status definitions for the second fold axis. (API Reference)
An API is added for setting the size limits for this application window on the 2-in-1 device. (API Reference)
An API is added for specifying the cursor position within the window and moving the window. (API Reference)
An asynchronous callback function is added for subscribing to the window close event on the 2-in-1 device. (API Reference)
The PiP window size change event can be subscribed to. (API Reference)
The title of the title bar can be dynamically set. (API Reference)
The supported window modes (FULL_SCREEN, FLOATING, and SPLIT) of the main window can be set. (API Reference)
In ApplicationInfo, the definition installSource is enhanced with three new options: ota, recovery, and application bundle name. (API Reference)
UDMF supports the capability of adding data of a specified type and content, and the corresponding query API is added. (API Reference)
A smart data platform is added to provide data intelligence capabilities on the device, enabling AI-powered data processing on devices. (User Guide, API Reference)
UDMF supports the capability of obtaining progress information and data. (API Reference)
The definition and operation capabilities of atomic files are added. (API Reference)
The total size and available size of the device's built-in storage can be obtained. (API Reference)
The Stat attribute supports three new properties: atimeNs (time of the last access to the file), mtimeNs (time of the last modification to the file), and ctimeNs (time of the last status change of the file). (API Reference)
The file selector supports batch file authorization. (User Guide, API Reference)
Video Encoding
C APIs are added to support the video variable refresh rate feature. (User Guide)
Image Processing
A PixelMap object can be created from a surface ID without specifying the region. (API Reference)
A C API is added for obtaining the memory address where the pixels of a PixelMap are stored. (API Reference)
Screen Recording
A C API is added for setting whether to display the cursor during screen recording. (API Reference)
A callback is added for obtaining the screen ID during screen recording. (API Reference)
Camera
The type of a distributed camera can be obtained. (API Reference)
The mirror recording is supported. (API Reference)
Media Library
Images in the album can be previewed and replaced through photoPicker. (API Reference)
The Tool class is added for converting values of the ResourceColor type to the common2D.Color objects. (API Reference)
You are allowed to set whether the drawing font follows the theme font. (C API Reference, ArkTS API Reference)
A C API is added for obtaining the transformation matrix calculated based on the rotation angle set by the producer and the actual valid content area of the buffer. (API Reference)
NativeBuffer supports two new formats: NATIVEBUFFER_PIXEL_FMT_BLOB and NATIVEBUFFER_PIXEL_FMT_RGBA16_FLOAT. (API Reference)
A maximum of 64 runtime environments can be created for a process, and the total number of Worker threads and runtime environments created by a process cannot exceed 80.
Wi-Fi 7 and Wi-Fi 7+ are supported. (API Reference)
The wifiManager module supports the checking of whether a hotspot is active. (API Reference)
The Wi-Fi management capabilities of the wifiManager module are available to enterprise applications. (API Reference)
The URL of the system-level proxy auto-config (PAC) script can be set. (C API Reference, ArkTS API Reference)
HiLog supports the setting of the minimum log level for application logging. (C API Reference, ArkTS API Reference)
The sandbox of a debug application can be accessed through hdc to read logs and resources in the sandbox in the debugging state. (User Guide)
HiAppEvent enhances the debugging capabilities for the main thread jank events. (User Guide, API Reference)
The development capability based on the OpenMP library is supported. (User Guide)
The button events of the game controller can be identified and distributed. (API Reference)
The motion awareness capability is added for sensing user gestures and actions. (User Guide, API Reference)
The browser policy can be set for a specified browser. (API Reference)
The network proxy of a specified user can be set (only for 2-in-1 devices). (API Reference)
The state of the input method can be obtained. (API Reference)
APIs are added for custom communication between input method applications and text boxes. (API Reference of Input Method Framework, API Reference of Input Method Service)
The input method keyboard window can be moved. (API Reference)
The progress indicator can be set. (C API Reference, ArkTS API Reference)
The cookies can be persisted. (API Reference)
The upload and download tasks can be grouped and notifications can be displayed by group. (API Reference)
A maximum of 8192 characters can be contained in an upload or download URL. (API Reference)
Multiple files can be uploaded through a single upload request by setting the multipart parameter in Config. (API Reference)
The notification bar can be customized. (API Reference)
The standard ICU C library (ICU4C) supports Unicode string processing (ustring.h) and ICU text abstract representation (utext.h). (API Reference)
The simplified representation of a language can be obtained. For example, the simplified representation of en-Latn-US is en. (API Reference)
A listener callback for the canceling of a continuous task is added. (API Reference)
Table 1 Version mapping of software and tools
Software/Tool | Version | Remarks |
---|---|---|
OpenHarmony | 5.0.3 Release | NA |
Public SDK | Ohos_sdk_public 5.0.3.135 (API Version 15 Release) | This toolkit is intended for application developers and does not contain system APIs that require system permissions. It is provided as standard in DevEco Studio. |
(Optional) HUAWEI DevEco Studio | 5.0.3 Release | Recommended for developing OpenHarmony applications. |
(Optional) HUAWEI DevEco Device Tool | 4.0 Release | Recommended for developing OpenHarmony smart devices. |
Register your account with Gitee.
Register an SSH public key for access to Gitee.
Install the 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
Run the following commands to install the repo tool:
curl -s https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo #If you do not have the permission, download the tool to another directory and configure it as an environment variable by running the chmod a+x /usr/local/bin/repo command.
pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests
Method 1 (recommended)
Use the repo tool to download the source code over SSH. (You must have an SSH public key for access to Gitee.)
Obtain the source code from the version branch. You can obtain the latest source code of the version branch, which includes the code that has been incorporated into the branch up until the time you run the following commands:
repo init -u git@gitee.com:openharmony/manifest.git -b OpenHarmony-5.0.3-Release --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'
Obtain the source code from the version tag, which is the same as that released with the version.
repo init -u git@gitee.com:openharmony/manifest.git -b refs/tags/OpenHarmony-v5.0.3-Release --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'
Method 2
Use the repo tool to download the source code over HTTPS.
Obtain the source code from the version branch. You can obtain the latest source code of the version branch, which includes the code that has been incorporated into the branch up until the time you run the following commands:
repo init -u https://gitee.com/openharmony/manifest -b OpenHarmony-5.0.3-Release --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'
Obtain the source code from the version tag, which is the same as that released with the version.
repo init -u https://gitee.com/openharmony/manifest -b refs/tags/OpenHarmony-v5.0.3-Release --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'
Table 2 Mirrors for acquiring source code
Source Code | Version | Mirror | SHA-256 Checksum | Software Package Size |
---|---|---|---|---|
Full code base (for mini, small, and standard systems) | 5.0.3 Release | Download | Download | 43.3 GB |
Hi3861 solution (binary) | 5.0.3 Release | Download | Download | 27.2 MB |
Hi3516 solution-LiteOS (binary) | 5.0.3 Release | Download | Download | 328.7 MB |
Hi3516 solution-Linux (binary) | 5.0.3 Release | Download | Download | 221.4 MB |
RK3568 standard system solution (binary) | 5.0.3 Release | Download | Download | 13.2 GB |
Public SDK package for the standard system (macOS) | 5.0.3.135 | Download | Download | 1.3 GB |
Public SDK package for the standard system (macOS-M1) | 5.0.3.135 | Download | Download | 1.2 GB |
Public SDK package for the standard system (Windows/Linux) | 5.0.3.135 | Download | Download | 4.3 GB |
Table 3 Resolved issues
Issue No. | Description |
---|---|
IANQF3 | There is a high probability that the system restarts during the WuKong pressure test. |
IBJ6LH | The new security verification mechanism may cause long processing duration for deleting multiple images, affecting user experience. |
IBDPFF | There is a low probability that a C++ crash occurs in the SaOndemand thread of the intell_voice_service process, and the crash stack is libintell_voice_server.z.so. |
Table 4 Known issues
ISSUE | Description | Impact | To Be Resolved By |
---|---|---|---|
IBTXFK | It may take more than 1000 ms to delete multiple images from Gallery. | User experience is affected. | 2025-04-30 |
IBTCKR | It may take more than 160 ms from when the SystemUI status bar is pulled down to when the content rendering is complete. | User experience is affected. | 2025-04-30 |
IBTCJQ | The frame rate for zooming in or out of an FWX image is less than 60 fps. | User experience is affected. | 2025-04-30 |
IBBZPS | There is a low probability that a C++ crash occurs in the OS_IPC_0_1067 thread of the com.ohos.systemui process, and the crash stack is ld-musl-arm.so.1(__libc_free+172). | The system is abnormal, and users are unaware of the exception. | 2025-04-30 |
IBE36X IBO3MF |
There is a low probability that system freezing occurs in render_service due to SERVICE_BLOCK. | A black screen is displayed when the home screen does not respond. After the screen recovers, the home screen is displayed. | 2025-04-30 |
IBINUK | There is a probability that system freezing occurs in libcamera_framework.z.so due to LIFECYCLE_TIMEOUT in the com.ohos.camera process. | The camera cannot be invoked, which can be recovered after restart. | 2025-04-30 |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。