一句话:通过分析 HarmonyOS API 演化,实现检测并分类 HarmonyOS 应用兼容性问题的工具 CiD4HMOS。
HarmonyOS 拥有大量全球用户并提供多个 SDK 版本,但许多开源应用仍使用旧版本,由此产生系统约束导致的兼容性问题,显著影响用户体验。尽管 Android 领域已有大量兼容性研究,HarmonyOS 场景仍基本空白。为弥补这一缺口,作者研究了 HarmonyOS API 的演化过程,定位可能引发兼容性问题的 API。基于这些发现,实现了工具 CiD4HMOS,用于检测并分类 HarmonyOS 中的兼容性问题。作者先在开源应用上评估可行性,随后将其应用于商业发布应用,验证其有效性。实验结果表明,CiD4HMOS 在开源应用中检测兼容性问题的准确率达到 86.8%,商业应用开发者对其报告也给予显著认可。研究强调了持续探索 HarmonyOS 兼容性问题的必要性,并凸显了此类工具对提升整体用户体验的重要作用。
HarmonyOS is an operating system boasting a substantial global user base and provides multiple versions of its SDK. Various open-source applications continue to utilize older versions, leading to compatibility issues arising from system constraints. These prevalent issues can substantially affect the user experience. Although numerous solutions have been suggested for addressing compatibility issues in Android, the subject remains largely unexplored within the context of HarmonyOS. To bridge this gap, we investigate the evolution of APIs in HarmonyOS to pinpoint those potentially causing compatibility issues. Based on these insights, we implement CiD4HMOS, a tool designed to detect and categorize compatibility issues in HarmonyOS. We evaluate the feasibility of CiD4HMOS with open-source apps and subsequently apply it to commercially released apps, highlighting its effectiveness in accurately identifying HarmonyOS compatibility issues. The experimental results uncover that CiD4HMOS is effective in detecting compatibility issues in HarmonyOS apps, achieving an accuracy rate of 86.8 % in open-source apps. And, developers of commercially released apps have significantly endorsed our reports. Our research emphasizes the necessity of continuous exploration into compatibility issues within HarmonyOS, underlining the significant role tools like CiD4HMOS play in enhancing the overall user experience.