Lune

ISSTA2021顶会

Understanding and finding system setting-related defects in Android apps

Jingling Sun, Ting Su, Junxin Li, Zhen Dong, Geguang Pu, Tao Xie, Zhendong Su

摘要

Android, the most popular mobile system, offers a number of user-configurable system settings (e.g., network, location, and permission) for controlling devices and apps. Even popular, well-tested apps may fail to properly adapt their behaviors to diverse setting changes, thus frustrating their users. However, there exists no effort to systematically investigate such defects. To this end, we conduct the first empirical study to understand the characteristics of these setting-related defects (in short as "setting defects"), which reside in apps and are triggered by system setting changes. We devote substantial manual effort (over three person-months) to analyze 1,074 setting defects from 180 popular apps on GitHub. We investigate their impact, root causes, and consequences. We find that setting defects have a wide, diverse impact on apps' correctness, and the majority of these defects (≈70.7%) cause non-crash (logic) failures, and thus could not be automatically detected by existing app testing techniques due to the lack of strong test oracles. Motivated and guided by our study, we propose setting-wise metamorphic fuzzing, the first automated testing approach to effectively detect setting defects without explicit oracles. Our key insight is that an app's behavior should, in most cases, remain consistent if a given setting is changed and later properly restored, or exhibit expected differences if not restored. We realize our approach in SetDroid, an automated, end-to-end GUI testing tool, for detecting both crash and non-crash setting defects. SetDroid has been evaluated on 26 popular, open-source apps and detected 42 unique, previously unknown setting defects in 24 apps. To date, 33 have been confirmed and 21 fixed. We also apply SetDroid on five highly popular industrial apps, namely WeChat, QQMail, TikTok, CapCut, and AlipayHK, all of which each have billions of monthly active users. SetDroid successfully detects 17 previously unknown setting defects in these apps' latest releases, and all defects have been confirmed and fixed by the app vendors. The majority of SetDroid-detected defects (49 out of 59) cause non-crash failures, which could not be detected by existing testing tools (as our evaluation confirms). These results demonstrate SetDroid's strong effectiveness and practicality.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 19 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • An Empirical Study of Functional Bugs in Android Apps 引用了 Data loss detector: automatically revealing data loss bugs in Android apps
  • An Empirical Study of Functional Bugs in Android Apps 引用了 Fully automated functional fuzzing of Android apps for detecting non-crashing logic bugs
  • 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
  • Fully automated functional fuzzing of Android apps for detecting non-crashing logic bugs 引用了 Time-travel testing of Android apps
  • Fully automated functional fuzzing of Android apps for detecting non-crashing logic bugs 引用了 Benchmarking automated GUI testing for Android against real-world bugs
  • Benchmarking automated GUI testing for Android against real-world bugs 引用了 Reinforcement learning based curiosity-driven testing of Android applications
  • Benchmarking automated GUI testing for Android against real-world bugs 引用了 Time-travel testing of Android apps
  • Detecting non-crashing functional bugs in Android apps via deep-state differential analysis 引用了 Fully automated functional fuzzing of Android apps for detecting non-crashing logic bugs
  • Detecting non-crashing functional bugs in Android apps via deep-state differential analysis 引用了 Benchmarking automated GUI testing for Android against real-world bugs
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper19

  1. Benchmarking automated GUI testing for Android against real-world bugsTing Su, Jue Wang, Zhendong SuFSE 2021 · 77 次引用
  2. Fully automated functional fuzzing of Android apps for detecting non-crashing logic bugsTing Su, Yichen Yan, Jue Wang, Jingling Sun 等OOPSLA 2021 · 58 次引用
  3. An Empirical Study of Functional Bugs in Android AppsYiheng Xiong, Mengqian Xu, Ting Su, Jingling Sun 等ISSTA 2023 · 40 次引用
  4. Push-Button Reliability Testing for Cloud-Backed Applications with RainmakerYinfang Chen, Xudong Sun, Suman Nath, Ze Yang 等NSDI 2023 · 29 次引用
  5. Detecting non-crashing functional bugs in Android apps via deep-state differential analysisJue Wang, Yanyan Jiang, Ting Su, Shaohua Li 等FSE 2022 · 26 次引用

它引用的 Paper4

  1. Reinforcement learning based curiosity-driven testing of Android applicationsMinxue Pan, An Huang, Guoxin Wang, Tian Zhang 等ISSTA 2020 · 166 次引用
  2. Accessibility issues in Android apps: state of affairs, sentiments, and ways forwardAbdulaziz Alshayban, Iftekhar Ahmed, Sam MalekICSE 2020 · 130 次引用
  3. Time-travel testing of Android appsZhen Dong, Marcel Böhme, Lucia Cojocaru, Abhik RoychoudhuryICSE 2020 · 104 次引用
  4. Data loss detector: automatically revealing data loss bugs in Android appsOliviero Riganelli, Simone Paolo Mottadelli, Claudio Rota, Daniela Micucci 等ISSTA 2020 · 28 次引用

相关 Paper

  1. Property-Based Fuzzing for Finding Data Manipulation Errors in Android AppsJingling Sun, Ting Su, Jiayi Jiang, Jue Wang 等FSE 2023 · 16 次引用
  2. IMGDroid: Detecting Image Loading Defects in Android ApplicationsWei Song, Mengqi Han, Jeff HuangICSE 2021 · 10 次引用
  3. Characterizing and Detecting Configuration Compatibility Issues in Android AppsHuaxun Huang, Ming Wen, Lili Wei, Yepang Liu 等ASE 2021 · 15 次引用
  4. An Empirical Analysis of UI-based Flaky TestsAlan Romano, Zihe Song, Sampath Grandhi, Wei Yang 等ICSE 2021 · 43 次引用
  5. PermDroid: automatically testing permission-related behaviour of Android applicationsShuaihao Yang, Zigang Zeng, Wei SongISSTA 2022 · 10 次引用
黄昏的海面,两侧是细线勾勒的悬崖