ScholarMate
English简体中文繁體中文
客服热线:400-1616-289
登录注册
期刊论文

Characterizing and Finding System Setting-Related Defects in Android Apps

Sun, Jingling; Su, Ting*; Liu, Kai; Peng, Chao; Zhang, Zhao; Pu, Geguang*; Xie, Tao; Su, Zhendong北京大学
IEEE Transactions on Software Engineering2023-4-1DOI: 10.1109/TSE.2023.3236449
3被引27阅读
引用收藏
分享

摘要

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 large-scale empirical study to understand and characterize these system 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 four person-months) to analyze 1,074 setting defects from 180 popular apps on GitHub. We investigate the impact, root causes, and consequences of these setting defects and their correlations. We find that (1) setting defects have a wide impact on apps' correctness with diverse root causes, (2) the majority of these defects ($\approx$approximate to 70.7%) cause non-crashing (logic) failures, and (3) some correlations exist between the setting categories, root causes, and consequences. Motivated and informed by these findings, we propose two bug-finding techniques that can synergistically detect setting defects from both the GUI and code levels. Specifically, at the GUI level, we design and introduce setting-wise metamorphic fuzzing, the first automated dynamic testing technique to detect setting defects (causing crash and non-crashing failures, respectively) for Android apps. We implement this technique as an end-to-end, automated GUI testing tool named SetDroid. At the code level, we distill two major fault patterns and implement a static analysis tool named SetChecker to identify potential setting defects. We evaluate SetDroid and SetChecker on 26 popular, open-source Android apps, and they find 48 unique, previously-unknown setting defects. To date, 35 have been confirmed and 21 have been fixed by app developers. We also apply SetDroid and SetChecker 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. After that, we collaborate with ByteDance and deploy these two bug-finding techniques internally to stress-test TikTok, one of its major app products. Within a two-month testing campaign, SetDroid successfully finds 53 setting defects, and SetChecker finds 22 ones. So far, 59 have been confirmed and 31 have been fixed. All these defects escaped from prior developer testing. By now, SetDroid has been integrated into ByteDance's official app testing infrastructure named FastBot for daily testing. These results demonstrate the strong effectiveness and practicality of our proposed techniques.

学科与关键词

关键词
TestingGraphical user interfacesCorrelationStatic analysisCodesSoftware development managementAirplanesEmpirical studysystem settingsIndex TermsAndroid appsGUI testingstatic analysis
相关
加载中…
  • An Empirical Study of Functional Bugs in Android Apps
    Xiong, Yiheng; Xu, Mengqian; Su, Ting*; Sun, Jingling; Wang, Jue; Wen, He; Pu, Geguang*; He, Jifeng; Su, Zhendong32nd ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA), Seattle, WA, 2023-07-17 To 2023-07-21.被引 3
  • Why My App Crashes? Understanding and Benchmarking Framework-Specific Exceptions of Android Apps
    Su, Ting; Fan, Lingling*; Chen, Sen; Liu, Yang; Xu, Lihua; Pu, Geguang*; Su, ZhendongIEEE Transactions on Software Engineering, 2022, 48(4): 1115-1137.被引 26
  • Property-Based Fuzzing for Finding Data Manipulation Errors in Android Apps
    Sun, Jingling; Su, Ting*; Jiang, Jiayi; Wang, Jue; Pu, Geguang*; Su, Zhendong31st ACM Joint Meeting of the European Software Engineering Conference / Symposium on the Foundations-of-Software-Engineering (ESEC/FSE), San Francisco, CA, 2023-12-03 To 2023-12-09.
查看全部 →

发表信息

论文状态
公开发表
期刊
IEEE Transactions on Software Engineering
发表日期
2023-04-01
卷期
第 49 卷, 第 4 期
页码
2941-2963
DOI
10.1109/TSE.2023.3236449
语言
ENGLISH
成果收录
SCIE
资助标注
NSFC [62072178]; "Digital Silk Road" Shanghai International Joint Lab of Trustworthy Intelligent Software [22510750100]; National Key Research and Development Program [2020AAA0107800]; Shanghai Collaborative Innovation Center of Trusted Industry Internet Software; National Natural Science Foundation of China [62161146003]; Tencent Foundation/XPLORER PRIZE; Google Faculty Research Award

作者

  • S

    Sun, Jingling (第一作者)

  • S

    Su, Ting (通讯)

查看全部 8 位作者收起作者
  • L

    Liu, Kai

  • P

    Peng, Chao

  • Z

    Zhang, Zhao

  • P

    Pu, Geguang (通讯)

  • X

    Xie, Tao

    peking univ

  • S

    Su, Zhendong

登录解锁更多功能

  • 收藏这篇,随时在“我的 · 收藏”找回
  • 认领你的成果,生成推广素材
  • 关注作者获取最新成果
  • 加入项目组、协同写作
注册 / 登录

产品服务

  • 科研之友
  • 创新城
  • 科创云

服务支持

  • 帮助中心
  • 隐私政策
  • 服务条款

联系方式

在线客服:【】
客服热线:400-1616-289
电子邮箱:support@scholarmate.com

关注或下载科研之友

微信二维码
微信公众号
客户端下载二维码
下载客户端
科研成果科研人员科研机构科研动态爱瑞思软件

©2026 深圳市科研之友网络服务有限公司

公安备案图标粤公网安备 44030502000213
粤ICP备 16046710 号粤B2-20110417