HMOS Migrator: agentic Android/iOS-to-HarmonyOS migration with artifact-derived verification
- 原文链接: https://arxiv.org/abs/2610.33197
- 作者: Ergun Bicici et al.
- 日期: 2026-10-23
- 分类: coding
- 来源类型: paper
- 标签: agentic-migration, harmonyos, arkts, gui-testing, verification
- 质量评分: 4/5
- 入库时间: 2026-11-01
中文导读
Android/iOS 应用迁到 HarmonyOS NEXT 需用 ArkTS 完整重写,LLM 能过编译但功能等价没有保证。HMOS Migrator 读源码生成 ArkTS 工程,把源应用录制的交互在真机回放做验证;评分设为无参考实现的质量估计,只用源应用录制行为与管线自身产物,七个加权指标各自防少测抬分。六个开源应用十二次运行:结构完整度 83.3–100%,真机行为 4.3–63.1%,UI 保真 21.1–63.2%;整体每天 +0.45 分(R²=0.44,p=0.019)。「翻译能编译」与「功能可用」的落差被这组数字量化。
English Summary
Migrating Android/iOS apps to HarmonyOS NEXT requires a full rewrite in ArkTS; LLM translation that compiles gives no functional assurance. HMOS Migrator is an agentic pipeline that reads the source app, generates an ArkTS project, and validates by replaying recorded interactions on a real device. Scoring is quality estimation without a reference implementation, using only the source app's recorded behavior and pipeline artifacts; seven weighted metrics are each constructed so reduced measurement cannot raise the score. Over twelve runs on six open-source apps, structural completeness reached 83.3-100% while on-device behavior (4.3-63.1%) and UI fidelity (21.1-63.2%) remain the limits; scores improve +0.45 points/day (R2=0.44, p=0.019). The record-replay plus artifact-scoring design transfers to GUI-agent regression testing.
Abstract (arXiv)
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 83.3-100.0%), while on-device behaviour (4.3-63.1%) and UI fidelity (21.1-63.2%) remain the primary limits. Scores improve steadily over time: +0.45 points per day overall (R2=0.44, p=0.019).
关键信息
- 作者:Ergun Biçici, Mehmet Kaygusuz 等 12 人(cs.SE, cs.AI)
- 6 页短文,2026-10-23 提交 arXiv
- 行为分上限离可用还远;录制回放加 artifact 打分的验证设计对 GUI agent 回归测试可借