跨平台应用迁移至鸿蒙系统:带制品衍生验证的智能体流水线
Cross-Platform Application Migration to HarmonyOS: An Agentic Pipeline with Artifact-Derived Verification
AI总结:
针对跨平台应用迁移至鸿蒙NEXT的功能保证挑战,提出HMOS~Migrator智能体流水线,通过加权指标评分验证,在六个开源应用的十二次运行中结构复现度高,分数随时间稳步提升。
摘要:
将为Android或iOS等其他平台编写的应用迁移至鸿蒙NEXT,需要用ArkTS进行完全重写。尽管大语言模型(LLM)可自动将源代码结构转换为ArkTS,但仅语法编译是不够的,功能保证是鸿蒙NEXT迁移中的关键开放挑战。我们提出HMOS~Migrator,这是一种智能体流水线,可读取应用的源代码,生成ArkTS项目,并通过在真实设备上重放记录的交互来验证结果。我们将评分问题视为无参考实现的质量估计,仅使用源应用的记录行为和流水线生成的制品来对迁移进行评分。我们定义了七个加权指标,每个指标的构造都确保测量减少不会人为提高分数。在六个开源应用的十二次运行中,该流水线的结构复现度较高(完整性为83.3%至100.0%),而设备上行为(4.3%至63.1%)和UI保真度(21.1%至63.2%)仍是主要限制。分数随时间稳步提升:总体每天提升0.45点(R²=0.44,p=0.019),无模型子集每天提升0.47点(R²=0.39,p=0.029),对应拟合角度分别为+8.4°和+11.7°。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。