# Beyond Code Translation: Agentic Android-to-HarmonyOS Migration

DevFeed: [Beyond Code Translation: Agentic Android-to-HarmonyOS Migration](<https://devfeed.tech/articles/beyond-code-translation-agentic-android-to-harmonyos-migration-127248.md>)

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

Author: Yinghang Ma (Jack), Wuyang Dai (Jack), Song Wang (Jack), Filipe Cogo (Jack), Zhen Ming (Jack), Jiang

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

Content type: article

Language: en

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

Topics: [agentic-coding](<https://devfeed.tech/topics/agentic-coding.md>), [Android](<https://devfeed.tech/topics/android.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [Code Modularity](<https://devfeed.tech/topics/code-modularity.md>)

Tags: [agentic](<https://devfeed.tech/tags/agentic.md>), [android](<https://devfeed.tech/tags/android.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [completeness](<https://devfeed.tech/tags/completeness.md>), [cross-platform](<https://devfeed.tech/tags/cross-platform.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [efficiency](<https://devfeed.tech/tags/efficiency.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [execution](<https://devfeed.tech/tags/execution.md>), [framework](<https://devfeed.tech/tags/framework.md>), [functional](<https://devfeed.tech/tags/functional.md>), [functionality](<https://devfeed.tech/tags/functionality.md>), [harmonyos](<https://devfeed.tech/tags/harmonyos.md>), [language-model](<https://devfeed.tech/tags/language-model.md>), [llm](<https://devfeed.tech/tags/llm.md>), [migration](<https://devfeed.tech/tags/migration.md>), [model](<https://devfeed.tech/tags/model.md>), [platform](<https://devfeed.tech/tags/platform.md>), [project](<https://devfeed.tech/tags/project.md>), [translation](<https://devfeed.tech/tags/translation.md>)

## AI overview

A2HTrans treats Android-to-HarmonyOS migration as a project-wide workflow rather than isolated code translation. It breaks applications into functionality-aware tasks, orders them using dependency analysis, then coordinates translation, validation, and iterative repair. Its verification combines compiler syntax checks with LLM semantic validation and automated repair, addressing ArkTS's low-resource status and limited tests in migrated apps. In an evaluation of 14 applications using Claude-Sonnet-4.6, A2HTrans compared with Claude Code preserved 8.3% more functional completeness, improved behavioral correctness by 8.0%, and reduced migration time by 28.8%. The abstract reports these results but does not provide further evaluation details.

## Source excerpt

arXiv:2611.11192v1 Announce Type: new Abstract: Migrating Android applications to HarmonyOS is an important yet challenging software engineering task. Existing large language model (LLM)-based migration approaches primarily translate code at the method or file level, overlooking project-wide dependencies and workflow coordination. Moreover, ArkTS, the primary language for HarmonyOS, is relatively low-resource, and migrated applications often lack sufficient tests for reliable verification, making end-to-end migration error-prone. We present A2HTrans, an agentic framework for end-to-end Android-to-HarmonyOS application migration. Rather than performing isolated code translation, A2HTrans decomposes applications into functionality-aware migration tasks, prioritizes them through dependency analysis, and orchestrates translation, validation, and iterative repair within a unified execution workflow. To improve migration reliability, A2HTrans employs a tool-augmented verification strategy that combines compiler-based syntax checking with LLM-based semantic validation and automated repair. We evaluate A2HTrans on 14 Android applications spanning diverse sizes and domains using Claude-Sonnet-4.6 as the underlying migration model. Compared with Claude Code, A2HTrans preserves 8.3% more functional completeness, improves behavioral correctness by 8.0%, and reduces migration time by 28.8%. These results demonstrate that structured agentic execution substantially improves the reliability and efficiency of project-level cross-platform software migration.