HarmonyOS Development Fundamentals: Difference between revisions
add info for hdc |
mNo edit summary |
||
| Line 17: | Line 17: | ||
* [https://developer.huawei.com/consumer/en/doc/harmonyos-guides/arkui-overview ArkUI]: ArkUI provides a comprehensive infrastructure for UI development of applications, including simple UI syntax, a diverse array of UI features (components, layouts, animations, and interaction events), and a powerful previewer. See also "[https://developer.huawei.com/consumer/en/doc/harmonyos-guides/window-manager Window Manager]" and "[https://developer.huawei.com/consumer/en/doc/harmonyos-guides/display-manager Display Management]". | * [https://developer.huawei.com/consumer/en/doc/harmonyos-guides/arkui-overview ArkUI]: ArkUI provides a comprehensive infrastructure for UI development of applications, including simple UI syntax, a diverse array of UI features (components, layouts, animations, and interaction events), and a powerful previewer. See also "[https://developer.huawei.com/consumer/en/doc/harmonyos-guides/window-manager Window Manager]" and "[https://developer.huawei.com/consumer/en/doc/harmonyos-guides/display-manager Display Management]". | ||
* Other than testing on real HarmonyOS devices, there are Emulators in DevEco Studio, but with some limitations. | * Other than testing on real HarmonyOS devices, there are Emulators in DevEco Studio, but with some limitations. | ||
== Tools == | |||
* hdc - HarmonyOS Device Connector (hdc) is a command line tool used to interact with and debug devices, transmit data, view logs, and install applications. It can run on Windows, Linux, and MacOS to provide efficient and convenient device debugging capabilities. | * hdc - HarmonyOS Device Connector (hdc) is a command line tool used to interact with and debug devices, transmit data, view logs, and install applications. It can run on Windows, Linux, and MacOS to provide efficient and convenient device debugging capabilities. | ||
** [https://developer.huawei.com/consumer/en/doc/harmonyos-guides/hdc doc(English)] [https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/hdc doc(Chinese)] [https://gitcode.com/openharmony/developtools_hdc_standard/blob/master/README.md old doc(English)] [https://gitcode.com/openharmony/developtools_hdc_standard/blob/master/README_zh.md old doc(Chinese)] | ** [https://developer.huawei.com/consumer/en/doc/harmonyos-guides/hdc doc(English)] [https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/hdc doc(Chinese)] [https://gitcode.com/openharmony/developtools_hdc_standard/blob/master/README.md old doc(English)] [https://gitcode.com/openharmony/developtools_hdc_standard/blob/master/README_zh.md old doc(Chinese)] | ||
Latest revision as of 17:29, 2 February 2026
This page is still under development.
HarmonyOS and OpenHarmony
HarmonyOS is developed by Huawei for smartphones, tablets, smart TVs, smart watches, personal computers and other smart devices. OpenHarmony is a family of open-source distributed operating systems based on HarmonyOS derived from LiteOS, donated the L0-L2 branch source code by Huawei to the OpenAtom Foundation.
Technical Architecture

Technical Details
- IDE: DevEco Studio which runs on Windows and macOS(Intel+Apple silicon), see also "Environment Setup - Overview".
- Command Line Tools which runs on Windows, macOS(Intel+Apple silicon) and Linux
- HUAWEI Developer ID, more details in this page
- Node-API: Developed based on the Node.js 12.x LTS Node-API, HarmonyOS Node-API allows interaction between ArkTS/JS and C/C++ modules. It provides a set of stable APIs that can be used on different operating systems. See also "Node-API Overview" and "Node-API Development Process".
- ArkTS: ArkTS is the official high-level language for HarmonyOS application development. See also "ArkTS Cross-Language Interaction".
- ArkUI: ArkUI provides a comprehensive infrastructure for UI development of applications, including simple UI syntax, a diverse array of UI features (components, layouts, animations, and interaction events), and a powerful previewer. See also "Window Manager" and "Display Management".
- Other than testing on real HarmonyOS devices, there are Emulators in DevEco Studio, but with some limitations.
Tools
- hdc - HarmonyOS Device Connector (hdc) is a command line tool used to interact with and debug devices, transmit data, view logs, and install applications. It can run on Windows, Linux, and MacOS to provide efficient and convenient device debugging capabilities.
- doc(English) doc(Chinese) old doc(English) old doc(Chinese)
- hdcutils - Pure python hdc library for harmony hdc service. Support querying hdc cmd and doc via adb cmd
Examples
- Simple Native C++ Example: doc(English), doc(Chinese), NativeTemplate.zip, code-repo(gitee), code-repo(gitcode)
- Native XComponent: doc(English), doc(Chinese), XComponent.zip, code-repo(gitee), code-repo(gitcode)
Useful Links
- HarmonyOS SDK Headers(github)
- HarmonyOS Samples(gitcode)
- HarmonyOS Codelabs(gitcode)
- OpenHarmony Docs(gitcode)
Tricks
- Modify module.deviceTypes in entry/src/main/module.json5 in your project, remove "phone", add "tablet", "2in1" there, which is normally needed for an example project which is originally for phone only.