Software defect detection and repair are essential software engineering tasks that mitigate potential risks in the early development stages. Large Language Models (LLMs) have demonstrated significant capabilities in software defect detection and repair. However, it is hard for LLMs to handle the new programming languages such as ArkTS (which is predominantly used in the OpenHarmony platform) due to training data shortage. Additionally, LLM-based multi-defect repair suffers from the limitation of the context window of LLMs. These issues significantly affect the performance of LLM-based defect repair in new programming languages. To address the above challenges, we propose HapRepair, a defect repair framework that integrates static analysis tools with function-level retrieval-augmented generation (RAG) to improve the effectiveness of the defect repair. Specifically, we integrate CodeLinter into our iterative defect repair framework for defect detection, which is the basis of defect repair, and utilize RAG together with ArkAnalyzer to improve the of our repair solutions. To overcome the context window limitations of LLMs, we propose the Surrounding Context Extractor and the Context Combination Tool approaches to handle multi-defect repair. Experiment results show that HapRepair effectively repairs defects in OpenHarmony Apps, demonstrating high reliability and efficiency in addressing code issues, achieving a defect repair rate of 99% on the test set, compared to only 37% when directly using LLMs for defect repair based on the defect information. Our approach demonstrates a robust solution for defect repair on new programming languages that have limited code corpus.
| HapRepair: Learn to repair OpenHarmony Apps (_FSE_Industry2025__Learn_to_Repair_OpenHarmony_Apps.pdf) | 379KiB |
Mon 23 JunDisplayed time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change
16:00 - 18:00 | Mobile AppsIdeas, Visions and Reflections / Industry Papers / Demonstrations / Research Papers / Journal First at Aurora A Chair(s): Kelly Blincoe University of Auckland | ||
16:00 10mTalk | DynDebloater: Dynamically Debloating Unwanted Features of Android Apps without APK Modification Demonstrations Zicheng Zhang School of Computing and Information Systems, Singapore Management University, Jiakun Liu Singapore Management University, Ferdian Thung Singapore Management University, Xing Hu Zhejiang University, Wei Minn Singapore Management University, Yan Naing Tun Singapore Management University, Lwin Khin Shar Singapore Management University, David Lo Singapore Management University, Debin Gao Singapore Management University | ||
16:10 20mTalk | HapRepair: Learn to Repair OpenHarmony Apps Industry Papers Zhihao Lin , Mingyi Zhou Beihang University, Wei Ma , chichen , Yun Yang Yunnan University, Jun Wang Post Luxembourg, Chunming Hu Beihang University, Li Li Beihang University File Attached | ||
16:30 20mTalk | Are iOS Apps Immune to Abusive Advertising Practices? Industry Papers Tianming Liu Monash Univerisity, Jiapeng Deng Huazhong University of Science and Technology, Yanjie Zhao Huazhong University of Science and Technology, Xiao Chen University of Newcastle, Xiaoning Du Monash University, Li Li Beihang University, Haoyu Wang Huazhong University of Science and Technology | ||
16:50 10mTalk | Toward LLM-Driven GDPR Compliance Checking for Android Apps Ideas, Visions and Reflections Marco Alecci University of Luxembourg, Nicolas Sannier University of Luxembourg, SnT, Marcello Ceci University of Luxembourg, Sallam Abualhaija University of Luxembourg, Jordan Samhi University of Luxembourg, Luxembourg, Domenico Bianculli University of Luxembourg, Tegawendé F. Bissyandé University of Luxembourg, Jacques Klein University of Luxembourg | ||
17:00 20mTalk | MiniScope: Automated UI Exploration and Privacy Inconsistency Detection of MiniApps via Two-phase Iterative Hybrid Analysis Journal First Shenao Wang Huazhong University of Science and Technology, Yuekang Li UNSW, Kailong Wang Huazhong University of Science and Technology, Yi Liu Nanyang Technological University, Hui Li Samsung Electronics (China) R&D Centre, Yang Liu Nanyang Technological University, Haoyu Wang Huazhong University of Science and Technology | ||
17:20 20mTalk | Temporal-Incremental Learning for Android Malware Detection Journal First Tiezhu Sun University of Luxembourg, Nadia Daoudi Luxembourg Institute of Science and Technology, Weiguo Pian University of Luxembourg, Kisub Kim Singapore Management University, Singapore, Kevin Allix Independent Researcher, Tegawendé F. Bissyandé University of Luxembourg, Jacques Klein University of Luxembourg | ||
17:40 20mTalk | Mitigating Emergent Malware Label Noise in DNN-Based Android Malware Detection Research Papers haodong li Beijing University of Posts and Telecommunications, Xiao Cheng Macquarie University, Guohan Zhang Beijing University of Posts and Telecommunications, Guosheng Xu Beijing University of Posts and Telecommunications, Guoai Xu Harbin Institute of Technology, Shenzhen, Haoyu Wang Huazhong University of Science and Technology DOI | ||
Aurora A is the first room in the Aurora wing.
When facing the main Cosmos Hall, access to the Aurora wing is on the right, close to the side entrance of the hotel.