# open-harmony

OpenHarmony is an open-source, distributed operating system framework for smart devices, with layered architecture and application-development frameworks.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Porting Declarative UI to HarmonyOS: A Heuristic-guided Approach for lightweight LLMs

DevFeed: [Porting Declarative UI to HarmonyOS: A Heuristic-guided Approach for lightweight LLMs](<https://devfeed.tech/articles/porting-declarative-ui-to-harmonyos-a-heuristic-guided-approach-for-lightweight-llms-127191.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2606.07085>)

Author: Kunwu Zheng, Pengyu Xue, Zhen Yang, Tianlong Chen, Xiran Lyu, Peishi Lai, Mengying Zhao, Junjie Chen, Yutian Tang, Huizhi Zhang, Xianhang Li, Linhao Wu, Chengyi Wang

Published: 2026-11-10T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [SwiftUI](<https://devfeed.tech/topics/swiftui.md>), [open-harmony](<https://devfeed.tech/topics/open-harmony.md>), [Functional programming](<https://devfeed.tech/topics/functional-programming.md>)

Tags: [apis](<https://devfeed.tech/tags/apis.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [colors](<https://devfeed.tech/tags/colors.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [declarative](<https://devfeed.tech/tags/declarative.md>), [declarative-ui](<https://devfeed.tech/tags/declarative-ui.md>), [framework](<https://devfeed.tech/tags/framework.md>), [harmonyos](<https://devfeed.tech/tags/harmonyos.md>), [lightweight](<https://devfeed.tech/tags/lightweight.md>), [llms](<https://devfeed.tech/tags/llms.md>), [repair](<https://devfeed.tech/tags/repair.md>), [resource](<https://devfeed.tech/tags/resource.md>)

### AI overview

Direct KJC/SwiftUI-to-ArkUI translation had a 0-35% compilation success rate across nine setups. Screenshots and compiler-guided repair raised capable setups to 94-99%, but did not work well for lightweight LLMs. Analysis identified broken UI structure, nonexistent APIs, and missing resources as recurring error roots. ArkTrans addresses these with metadata extraction, deterministic skeleton construction, injected ArkUI and resource references, and compiler-guided iterative repair. With Qwen3.6-27B, it achieved 70% CSR for KJC and 64% for SwiftUI, plus 65.63% and 80% on real-world pages, respectively, at lower token cost than the best common strategy. The excerpt reports strong visual fidelity but gives no quantitative fidelity measure.

### Source excerpt

arXiv:2606.07085v3 Announce Type: replace Abstract: As an emerging operating system, HarmonyOS has a significant demand for software migration, where the User Interface (UI) translation accounts for a critical link. However, recent UI development has shifted to declarative paradigms, e.g., Kotlin Jetpack Compose (KJC) for Android, SwiftUI for iOS, and ArkUI for HarmonyOS, making prior translation approaches inapplicable because they target either backend logic or legacy imperative UIs. Thus, related research is limited. To systematically evaluate KJC/SwiftUI-to-ArkUI migration, we build a parallel benchmark of 100 KJC and 100 SwiftUI files across eight scenarios, plus 52 real-world UI pages from nine open-source apps. Evaluating nine direct-translation setups (including diverse LLMs and agents), we find Compilation Success Rate (CSR) spans 0.00%-35.00%; common strategies (reference screenshots and compiler-guided repair) lift capable setups to 94.00%-99.00% CSR but fail on lightweight LLMs. By manually analyzing a 3,102-sample subset, deriving a regular-expression pattern for each failure family, and applying these patterns to generalize the resulting taxonomy to the full 29,593-sample set, we find residual errors rooted in (1) broken structure, (2) nonexistent APIs, and (3) missing resources (e.g., colors, strings, and icons). Accordingly, we propose ArkTrans, a declarative UI translation framework that maps these roots to deterministic structure supply, ArkUI knowledge and resource reference injection via a demonstration example, and iterative repair targeting residual errors, via four steps: Metadata Extraction, Skeleton Construction, LLM-driven Translation, and Compiler-Guided Iterative Repair. With Qwen3.6-27B, ArkTrans raises CSR from 0.00% to 70.00% on KJC and 64.00% on SwiftUI, achieving strong visual fidelity, and attains 65.63%/80.00% CSR on real-world pages, far outperforming the best common strategy at lower token cost.

## Cross-Platform Application Migration to HarmonyOS: An Agentic Pipeline with Artifact-Derived Verification

DevFeed: [Cross-Platform Application Migration to HarmonyOS: An Agentic Pipeline with Artifact-Derived Verification](<https://devfeed.tech/articles/cross-platform-application-migration-to-harmonyos-an-agentic-pipeline-with-artifact-derived-verification-101735.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.33197>)

Author: Ergun Bi\\c{c}ici, Mehmet Kaygusuz, Fatih Turan G\\"undo\\u{g}du, Emre Filiz, \\c{C}a\\u{g}atay K{\\i}z{\\i}lda\\u{g}, B\\"unyamin Eymen Alag\\"oz, Emincan \\"Ozcan, Sadi \\c{C}elik, Tolunay \\"Ozt\\"urk, Ege Bulut

Published: 2026-10-27T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [multiplatform](<https://devfeed.tech/topics/multiplatform.md>), [open-harmony](<https://devfeed.tech/topics/open-harmony.md>), [Genkit](<https://devfeed.tech/topics/genkit.md>), [Android](<https://devfeed.tech/topics/android.md>)

Tags: [abstract](<https://devfeed.tech/tags/abstract.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [android](<https://devfeed.tech/tags/android.md>), [application](<https://devfeed.tech/tags/application.md>), [applications](<https://devfeed.tech/tags/applications.md>), [artifacts](<https://devfeed.tech/tags/artifacts.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [automate](<https://devfeed.tech/tags/automate.md>), [behaviour](<https://devfeed.tech/tags/behaviour.md>), [cast](<https://devfeed.tech/tags/cast.md>), [challenge](<https://devfeed.tech/tags/challenge.md>), [code](<https://devfeed.tech/tags/code.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [cross](<https://devfeed.tech/tags/cross.md>), [cross-platform](<https://devfeed.tech/tags/cross-platform.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [migration](<https://devfeed.tech/tags/migration.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [platform](<https://devfeed.tech/tags/platform.md>), [verification](<https://devfeed.tech/tags/verification.md>), [with](<https://devfeed.tech/tags/with.md>)

### AI overview

HMOS Migrator converts Android or iOS application source code into an ArkTS project and checks the migration by replaying recorded interactions on a real device. Its seven weighted metrics estimate quality without a reference implementation, using the source app's recorded behavior and pipeline artifacts; the metrics are designed so reduced measurement cannot inflate scores. Across 12 runs on six open-source apps, structural completeness was 83.3%-100%, while on-device behavior (4.3%-63.1%) and UI fidelity (21.1%-63.2%) were the main limitations. Scores rose over time: 0.45 points per day overall and 0.47 for the model-free subset, with the abstract reporting statistically significant trends.

### Source excerpt

arXiv:2610.33197v1 Announce Type: new Abstract: The migration of applications written for a different platforms like Android or iOS to HarmonyOS NEXT requires a complete rewrite in ArkTS. Although LLMs automate the translation of source constructs into ArkTS, syntactic compilation is not enough and functional assurance is a critical open challenge in HarmonyOS NEXT migration. We present HMOS~Migrator, an agentic pipeline that reads an application's source code, generates an ArkTS project, and validates the result by replaying recorded interactions on a real device. We cast the scoring problem as quality estimation without a reference implementation; we score a migration using only the source application's recorded behaviour and the artifacts produced by the pipeline. We define seven weighted metrics, each constructed so that reduced measurement cannot artificially raise the score. Over twelve runs across six open-source applications, the pipeline's structural reproduction is high (completeness \pct{83.3}--\pct{100.0}), while on-device behaviour (\pct{4.3}--\pct{63.1}) and UI fidelity (\pct{21.1}--\pct{63.2}) remain the primary limits. Scores improve steadily over time: $+0.45$~points per day overall ($R^2=0.44$, $p=0.019$) and $+0.47$ over the model-free subset ($R^2=0.39$, $p=0.029$), with corresponding to fit angles of $+8.4^{\circ}$ and $+11.7^{\circ}$ respectively.

## Do we need another OS?

DevFeed: [Do we need another OS?](<https://devfeed.tech/articles/do-we-need-another-os-24548.md>)

Original publisher: [Read original article](<https://medium.com/snapp-mobile/do-we-need-another-os-31dc9028f110?source=rss----bcd96e620b02---4>)

Author: Jasper Morgan

Published: 2025-04-03T08:46:50Z

Content type: article

Language: en

Sources: [Snapp Mobile](<https://devfeed.tech/sources/snapp-mobile-medium.md>)

Topics: [open-harmony](<https://devfeed.tech/topics/open-harmony.md>), [Embedded Systems](<https://devfeed.tech/topics/embedded-systems.md>), [Microcontroller](<https://devfeed.tech/topics/microcontroller.md>), [Single Board Computer](<https://devfeed.tech/topics/single-board-computer.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [ai](<https://devfeed.tech/tags/ai.md>), [android](<https://devfeed.tech/tags/android.md>), [competition](<https://devfeed.tech/tags/competition.md>), [computing](<https://devfeed.tech/tags/computing.md>), [context](<https://devfeed.tech/tags/context.md>), [devices](<https://devfeed.tech/tags/devices.md>), [field](<https://devfeed.tech/tags/field.md>), [harmony-os](<https://devfeed.tech/tags/harmony-os.md>), [huawei](<https://devfeed.tech/tags/huawei.md>), [innovation](<https://devfeed.tech/tags/innovation.md>), [ios](<https://devfeed.tech/tags/ios.md>), [me](<https://devfeed.tech/tags/me.md>), [mechanical-keyboards](<https://devfeed.tech/tags/mechanical-keyboards.md>), [medical](<https://devfeed.tech/tags/medical.md>), [microcontrollers](<https://devfeed.tech/tags/microcontrollers.md>), [mobile-app-development](<https://devfeed.tech/tags/mobile-app-development.md>), [needs](<https://devfeed.tech/tags/needs.md>), [next](<https://devfeed.tech/tags/next.md>), [open](<https://devfeed.tech/tags/open.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [operating-systems](<https://devfeed.tech/tags/operating-systems.md>), [os](<https://devfeed.tech/tags/os.md>)

### AI overview

The author argues that another OS could serve the growing range of small computing devices, from microcontrollers and single-board computers to wearables, medical equipment and robots. They contend that iOS and Android were not designed for this breadth of devices, and that new alternatives could spur innovation and competition beyond the phone and tablet market. Huawei's HarmonyOS is based on OpenHarmony, a project begun in 2012; the excerpt says HarmonyOS Next is its 2024 "pure" version without Android support, and that Huawei already uses HarmonyOS in some TVs, wearables and routers. The excerpt does not provide the article's answers about why audiences outside China should care or the platform's chances of success.

### Source excerpt

Last year Huawei ditched Android and in 2025 will be releasing more and more devices running its HarmonyOS Next software platform. HarmonyOS is based on an open source operating system (OpenHarmony) that started as an R&D project at Huawei in 2012. The operating system has been architected to support a wide array of small computing devices from microcontrollers to tablets. It is already used in several of Huawei's TVs, wearables and wireless router products. In 2024 a 'pure' version of the OS, without Android support, was released. This has been branded HarmonyOS Next. Several questions leap to mind: 1/ Does the world actually need a new OS? 2/ Why should we care about what Huawei is doing -- especially those of us outside China? 3/ Finally, what are the chances of success for a new OS? Let's look a little deeper into these topics and try to understand what's going on in this space. 1/ Does the world need a new OS? YES Let me explain why I have come to this conclusion. Computing needs have changed We have seen a steady growth of small form factor computing. We carry computing devices in our pockets, they are found in devices throughout our homes, they are part of our vehicles, they are in medical devices, and in countless industrial settings. Within this context, one could argue that phones are at the larger end of the spectrum when it comes to small computing devices. Single board computers and microcontrollers can be found in mechanical keyboards, security cameras, hand-held medical equipment, at the checkout in our shops etc. Going further, it's not a huge leap to see that the field of robotics is due to take off with the advent of AI for real time context-aware decision making. My first argument, therefore, is that an operating system specifically designed for small computing devices will have a valuable role to play. (Neither iOS nor Android were designed or have evolved to address this need.) Innovation and competition are good Several operating system innovati

## HarmonyOS App Development 101

DevFeed: [HarmonyOS App Development 101](<https://devfeed.tech/articles/harmonyos-app-development-101-24549.md>)

Original publisher: [Read original article](<https://medium.com/snapp-mobile/harmonyos-app-development-101-a861590a45f3?source=rss----bcd96e620b02---4>)

Author: Jasper Morgan

Published: 2025-01-18T23:23:13Z

Content type: article

Language: en

Sources: [Snapp Mobile](<https://devfeed.tech/sources/snapp-mobile-medium.md>)

Topics: [open-harmony](<https://devfeed.tech/topics/open-harmony.md>), [Tool](<https://devfeed.tech/topics/tool.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [SDK](<https://devfeed.tech/topics/sdk.md>), [Developer Tools](<https://devfeed.tech/topics/developer-tools.md>), [Node.js](<https://devfeed.tech/topics/node-js.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [IntelliJ IDEA](<https://devfeed.tech/topics/intellij-idea.md>), [Android](<https://devfeed.tech/topics/android.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [app](<https://devfeed.tech/tags/app.md>), [app-development](<https://devfeed.tech/tags/app-development.md>), [apps](<https://devfeed.tech/tags/apps.md>), [build-tools](<https://devfeed.tech/tags/build-tools.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [deveco](<https://devfeed.tech/tags/deveco.md>), [developers](<https://devfeed.tech/tags/developers.md>), [development](<https://devfeed.tech/tags/development.md>), [development-environment](<https://devfeed.tech/tags/development-environment.md>), [devices](<https://devfeed.tech/tags/devices.md>), [framework](<https://devfeed.tech/tags/framework.md>), [harmony-os](<https://devfeed.tech/tags/harmony-os.md>), [huawei](<https://devfeed.tech/tags/huawei.md>), [ide](<https://devfeed.tech/tags/ide.md>), [jetbrains](<https://devfeed.tech/tags/jetbrains.md>), [jetbrains-ide](<https://devfeed.tech/tags/jetbrains-ide.md>), [languages](<https://devfeed.tech/tags/languages.md>), [launch](<https://devfeed.tech/tags/launch.md>), [lightweight](<https://devfeed.tech/tags/lightweight.md>), [management](<https://devfeed.tech/tags/management.md>), [modular](<https://devfeed.tech/tags/modular.md>), [module](<https://devfeed.tech/tags/module.md>)

### AI overview

HarmonyOS app development uses Huawei's free but proprietary DevEco Studio, built on JetBrains tooling, with ArkTS as its main compiled language, C/C++ for native libraries and smaller devices, and a more limited JavaScript and markup option for simple content apps. ArkUI provides declarative UI components; hvigor builds apps, while ohpm manages dependencies. The excerpt describes Hypium local and instrumented tests, multi-language debugging, and DevEco Studio profiling tools. A major practical constraint for developers outside China is device access: cloud emulators are available to developers in China, but the excerpt says there are no local emulators elsewhere, and suitable HarmonyOS Next devices were limited to China at the time described. Older Huawei devices may run earlier APIs, so the article recommends a HarmonyOS Next device for targeting API 13.

### Source excerpt

Huawei have taken a big step in moving away from the Android platform with the launch of new devices running HarmonyOS Next. This is a brand new operating system that had been design specifically for devices. This means it is lightweight, supports a range of device types, is modular and extensible. In this article we aim to give you an overview of what is available to developers wishing to build apps on this new platform. To that end, we will be looking at the following topics: The IDE Programming Languages UI Framework Build Tools Package Management Running code (devices/emulators) Debugging Testing Profiling Other cool stuff If you are curious about the Harmony platform, its Open Source foundations (OpenHarmony) and its global reach (Oniro), we have written about it here. The IDE The development environment for Harmony apps is currently a Huawei-based IDE which is based on the JetBrains IDE platform. The good news is that JetBrains offers a world-class IDE platform and it makes for a very solid development experience for Harmony apps. For those, wanting to keep to the Open Source side of Harmony (OpenHarmony and Oniro), you are out of luck right now. DevEco Studio is proprietary, albeit free to use software. Let's look at a couple of IDE features -- these should not surprise you but hopefully demonstrates that the platform is already in a good place (as far as IDEs go). Project Creation Creating a project will look familiar already for many. There are a few project templates to choose from to bootstrap your project. New Project Templates You will also then need to configure a couple of options -- a couple of notes on these (which could probably be expanded into a separate article). Firstly, the bundle name is used for app signing and identity. Secondly, an app supports a single SDK version. (The latest SDK version is 13, however version 11 is still widely used.) Thirdly we can specify the module name. The default ('entry') isn't very descriptive. If you have a singl