Fully automated functional fuzzing of Android apps for detecting non-crashing logic bugs
Ting Su, Yichen Yan, Jue Wang, Jingling Sun, Yiheng Xiong, Geguang Pu, Ke Wang, Zhendong Su
摘要
Android apps are GUI-based event-driven software and have become ubiquitous in recent years. Obviously, functional correctness is critical for an app's success. However, in addition to crash bugs, non-crashing functional bugs (in short as "non-crashing bugs" in this work) like inadvertent function failures, silent user data lost and incorrect display information are prevalent, even in popular, well-tested apps. These non-crashing functional bugs are usually caused by program logic errors and manifest themselves on the graphic user interfaces (GUIs). In practice, such bugs pose significant challenges in effectively detecting them because (1) current practices heavily rely on expensive, small-scale manual validation (the lack of automation); and (2) modern fully automated testing has been limited to crash bugs (the lack of test oracles).
This paper fills this gap by introducing independent view fuzzing, a novel, fully automated approach for detecting non-crashing functional bugs in Android apps. Inspired by metamorphic testing, our key insight is to leverage the commonly-held independent view property of Android apps to manufacture property-preserving mutant tests from a set of seed tests that validate certain app properties. The mutated tests help exercise the tested apps under additional, adverse conditions. Any property violations indicate likely functional bugs for further manual confirmation. We have realized our approach as an automated, end-to-end functional fuzzing tool, Genie. Given an app, (1) Genie automatically detects non-crashing bugs without requiring human-provided tests and oracles (thus fully automated); and (2) the detected non-crashing bugs are diverse (thus general and not limited to specific functional properties), which set Genie apart from prior work.
We have evaluated Genie on 12 real-world Android apps and successfully uncovered 34 previously unknown non-crashing bugs in their latest releases -all have been confirmed, and 22 have already been fixed. Most of the detected bugs are nontrivial and have escaped developer (and user) testing for at least one year and affected many app releases, thus clearly demonstrating Genie's effectiveness. According to our analysis, Genie achieves a reasonable true positive rate of 40.9%, while these 34 non-crashing bugs could not be detected by prior fully automated GUI testing tools (as our evaluation confirms). Thus, our work complements and enhances existing manual testing and fully automated testing for crash bugs.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 21 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- An Empirical Study of Functional Bugs in Android Apps 引用了 Understanding and finding system setting-related defects in Android apps
- An Empirical Study of Functional Bugs in Android Apps 引用了 Benchmarking automated GUI testing for Android against real-world bugs
- An Empirical Study of Functional Bugs in Android Apps 引用了 Detecting non-crashing functional bugs in Android apps via deep-state differential analysis
- Fuzzing Automatic Differentiation in Deep-Learning Libraries 引用了 Free Lunch for Testing: Fuzzing Deep-Learning Libraries from Open Source
- Fuzzing Automatic Differentiation in Deep-Learning Libraries 引用了 Fuzzing deep-learning libraries via automated relational API inference
- Understanding and finding system setting-related defects in Android apps 引用了 Time-travel testing of Android apps
- Benchmarking automated GUI testing for Android against real-world bugs 引用了 Time-travel testing of Android apps
- Benchmarking automated GUI testing for Android against real-world bugs 引用了 Understanding and finding system setting-related defects in Android apps
- Benchmarking automated GUI testing for Android against real-world bugs 引用了 ComboDroid: generating high-quality test inputs for Android apps via use case combinations
- Fuzzing deep-learning libraries via automated relational API inference 引用了 Free Lunch for Testing: Fuzzing Deep-Learning Libraries from Open Source
- Detecting non-crashing functional bugs in Android apps via deep-state differential analysis 引用了 Understanding and finding system setting-related defects in Android apps
- Detecting non-crashing functional bugs in Android apps via deep-state differential analysis 引用了 Benchmarking automated GUI testing for Android against real-world bugs
- Detecting non-crashing functional bugs in Android apps via deep-state differential analysis 引用了 ComboDroid: generating high-quality test inputs for Android apps via use case combinations
引用它的顶会 Paper21
- Free Lunch for Testing: Fuzzing Deep-Learning Libraries from Open SourceAnjiang Wei, Yinlin Deng, Chenyuan Yang, Lingming ZhangICSE 2022 · 91 次引用
- Fuzzing deep-learning libraries via automated relational API inferenceYinlin Deng, Chenyuan Yang, Anjiang Wei, Lingming ZhangFSE 2022 · 83 次引用
- An Empirical Study of Functional Bugs in Android AppsYiheng Xiong, Mengqian Xu, Ting Su, Jingling Sun 等ISSTA 2023 · 40 次引用
- Fuzzing Automatic Differentiation in Deep-Learning LibrariesChenyuan Yang, Yinlin Deng, Jiayi Yao, Yuxing Tu 等ICSE 2023 · 34 次引用
- Detecting non-crashing functional bugs in Android apps via deep-state differential analysisJue Wang, Yanyan Jiang, Ting Su, Shaohua Li 等FSE 2022 · 26 次引用
它引用的 Paper6
- Time-travel testing of Android appsZhen Dong, Marcel Böhme, Lucia Cojocaru, Abhik RoychoudhuryICSE 2020 · 104 次引用
- Benchmarking automated GUI testing for Android against real-world bugsTing Su, Jue Wang, Zhendong SuFSE 2021 · 77 次引用
- Learning semantic program embeddings with graph interval neural networkYu Wang, Ke Wang, Fengjuan Gao, Linzhang WangOOPSLA 2020 · 61 次引用
- ComboDroid: generating high-quality test inputs for Android apps via use case combinationsJue Wang, Yanyan Jiang, Chang Xu, Chun Cao 等ICSE 2020 · 61 次引用
- Understanding and finding system setting-related defects in Android appsJingling Sun, Ting Su, Junxin Li, Zhen Dong 等ISSTA 2021 · 35 次引用
相关 Paper
- Property-Based Fuzzing for Finding Data Manipulation Errors in Android AppsJingling Sun, Ting Su, Jiayi Jiang, Jue Wang 等FSE 2023 · 16 次引用
- FuncDroid: Towards Inter-functional Flows for Comprehensive Mobile App GUI TestingJinlong He, Changwei Xia, Binru Huang, Jiwei Yan 等ISSTA 2026
- General and Practical Property-based Testing for Android AppsYiheng Xiong, Ting Su, Jue Wang, Jingling Sun 等ASE 2024 · 5 次引用
- GUIFuzz++: Unleashing Grey-box Fuzzing on Desktop Graphical User Interfacing ApplicationsDillon Otto, Tanner Rowlett, Stefan NagyASE 2025
- Automata-Based Trace Analysis for Aiding Diagnosing GUI Testing Tools for AndroidEnze Ma, Shan Huang, Weigang He, Ting Su 等FSE 2023 · 3 次引用
