On the basis of OpenHarmony 1.1.0, OpenHarmony 2.0 adds the version for the standard system, which delivers the following functions:
- Twenty-two subsystems have been added to support comprehensive OS capabilities and app development for screened devices with a memory greater than 128 MB.
- Three preset apps, Launcher, Settings, and SystemUI, have been provided.
- A brand-new OpenHarmony application framework and JS UI framework have been provided.
- JavaScript app development capabilities have been provided.
- A media framework has been provided to support the development of audio and video functions.
- The Java UI framework has been provided to support window management, image synthesis, and GPU rendering capabilities.
Table 1 Version mapping of software and tools
Software | Version | Remarks |
---|---|---|
OpenHarmony | 2.0 Canary | N/A |
(Optional) HUAWEI DevEco Studio | DevEco Studio 2.1 Release | It is recommended for developing OpenHarmony apps. |
(Optional) HUAWEI DevEco Device Tool | Deveco DeviceTool 2.2 Beta1 | It is recommended for OpenHarmony smart devices. |
Method 1 (recommended): Use the repo tool to download the source code over SSH. (You must have registered an SSH public key for access to Gitee.)
repo init -u git@gitee.com:openharmony/manifest.git -b refs/tags/OpenHarmony-2.0-Canary --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.
repo init -u https://gitee.com/openharmony/manifest.git -b refs/tags/OpenHarmony-2.0-Canary --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 |
---|---|---|---|
Full code base | 2.0 | Download | Download |
Release Notes | 2.0 | Download | - |
This version inherits all the features of OpenHarmony 1.1.0 and adds the version form for the standard system. The following table describes the specific features added for the version form.
Table 3 New features
Subsystem | New Feature |
---|---|
Kernel | The OpenHarmony kernel is built based on the open-source Linux kernel LTS release and forms a complete kernel baseline by merging the common vulnerabilities and exposures (CVE) patches and features for OpenHarmony upper-layer adaptation. |
Distributed File | Provided JavaScript APIs for local file synchronization, including reading and writing files, accessing directories, and collecting file statistics. |
Graphics | - Provided window management functions, including creating and destroying windows and managing window stacks. - Added the synthesizer function, which implements CPU, GPU, and TDE synthesis. - Added the BufferQueue function to support inter-process communication. - Added the VSync management function. |
Driver | Added the user-space driver framework. |
Power Management | Added power management capabilities, including powering off the device, turning on/off the device screen, adjusting the brightness, querying the battery status, and managing the system power and running lock. |
Multimodal Input | Added the single-touch input capability. |
Startup | Added JavaScript APIs for managing system attributes. |
Update | - Added the OTA update using a full package. - Added the OTA update using a differential package. - Added JavaScript APIs for managing system attributes. |
Account | Provided login status management of distributed cloud accounts. |
Compilation and Building | - Added building of targets by module name or submodule name. - Supported access of different chip platforms and configuration of the product module list. |
Testing | Added the developer test capability of conducting C++ API unit tests and API performance tests. |
Data Management | Provided lightweight key-value operations for local apps to store a small amount of data. As the stored data is already loaded in the memory, the faster data access speed achieves a higher work efficiency. |
Programming Language Runtime | Provided the compilation and execution environment for programs developed with JavaScript, and C/C++, basic libraries that support the runtime, and the runtime-associated APIs, compilers, and auxiliary tools. |
Distributed Scheduler | Provided the capabilities of starting, registering, querying, and managing system services. |
JS UI framework | - Provided more than 40 basic UI components and container components. - Provided standard CSS animations. - Provided the atomic layout and grid layout. - Provided a UI programming framework that supports the web-development-like paradigm. - Provided the JavaScript API extension mechanism. |
Multimedia | - Added basic functions of media playback and recording. - Added basic functions of camera management and sampling. - Added basic functions of audio volume and device management. |
Event Notification | Added basic functions of publishing, subscribing to, and receiving common events. |
Misc Services | Added the function of setting the time. |
Application framework | Provided bundle installation, uninstallation, running, and management capabilities. |
Telephony | - Provided the capabilities of obtaining the signal strength and the network registration status. - Provided the capability of obtaining the SIM card status. - Provided the capabilities of making, rejecting, and ending calls. - Provided the capabilities of sending and receiving SMS messages. |
Utils | Provides some common enhanced APIs for development using C and C++. |
Development Tools | - Provided the device connection debugger. - Provided the performance tracing capability. - Provided real-time memory analysis, trace, and device-side plug-ins. |
DSoftBus | - Provided inter-process communication (IPC) and remote procedure call (RPC) capabilities. - Provided soft bus services including device discovery, networking, and transmission. - Provided basic WLAN capabilities, including enabling/disabling, scanning, and connecting to a station. |
XTS | Provided test case suites for maintaining the compatibility of common APIs for subsystems. |
System Apps | Home screen: - Provided the capabilities of displaying all app icons, starting an app, and uninstalling an app. - Provided the Launcher system app that allows switching between the grid layout and list layout. - Provided recent task management to support hot start and task deletion. Settings: - Provided the Settings system app that allows users to set the brightness and time and to query app and device information. SystemUI: - Provided the system status bar to display time and battery information. - Provided the display of system navigation. |
DFX | - Provided the logging function. - Provided fault information collection and subscription. - Provided APIs for logging system events. - Provided the framework and APIs for logging app events. |
Globalization | - Provided the capability of parsing and reading i18n resources. - Provided the capability of formatting the date and time. |
Security | - Provided system permission management, including system permission declaration, parsing of the permissions requested or declared during app installation, permission query, and permission granting. - Provided the app signature and signature verification capabilities. - Provided mutual authentication and device group management for trusted P2P devices. |