Race Detection for Android Applications

被引:3
|
作者
Maiya, Pallavi [1 ]
Kanade, Aditya [1 ]
Majumdar, Rupak [2 ]
机构
[1] Indian Inst Sci, Bangalore, Karnataka, India
[2] MPI SWS, Kaiserslautern, Germany
关键词
Languages; Reliability; Verification; Data races; Android concurrency semantics; Happens-before reasoning; EFFICIENT;
D O I
10.1145/2666356.2594311
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Programming environments for smartphones expose a concurrency model that combines multi-threading and asynchronous event-based dispatch. While this enables the development of efficient and feature-rich applications, unforeseen thread interleavings coupled with non-deterministic reorderings of asynchronous tasks can lead to subtle concurrency errors in the applications. In this paper, we formalize the concurrency semantics of the Android programming model. We further define the happens-before relation for Android applications, and develop a dynamic race detection technique based on this relation. Our relation generalizes the so far independently studied happens-before relations for multi-threaded programs and single-threaded event-driven programs. Additionally, our race detection technique uses a model of the Android runtime environment to reduce false positives. We have implemented a tool called DROIDRACER. It generates execution traces by systematically testing Android applications and detects data races by computing the happens-before relation on the traces. We analyzed 1 5 Android applications including popular applications such as Facebook, Twitter and K-9 Mail. Our results indicate that data races are prevalent in Android applications, and that DROIDRACER is an effective tool to identify data races.
引用
收藏
页码:316 / 325
页数:10
相关论文
共 50 条
  • [21] Utilising K Semantics for Collusion Detection in Android Applications
    Asavoae, Irina Mariuca
    Hoang Nga Nguyen
    Roggenbach, Markus
    Shaikh, Siraj
    Critical Systems: Formal Methods and Automated Verification, 2016, 9933 : 142 - 149
  • [22] Automated Test Generation for Detection of Leaks in Android Applications
    Zhang, Hailong
    Wu, Haowei
    Rountev, Atanas
    2016 IEEE/ACM 11TH INTERNATIONAL WORKSHOP IN AUTOMATION OF SOFTWARE TEST (AST), 2016, : 64 - 70
  • [23] Communication-Based Attacks Detection in Android Applications
    Ma, Chuan
    Wang, Tao
    Shen, Limin
    Liang, Dongkui
    Chen, Shuping
    You, Dianlong
    TSINGHUA SCIENCE AND TECHNOLOGY, 2019, 24 (05) : 596 - 614
  • [24] Communication-Based Attacks Detection in Android Applications
    Chuan Ma
    Tao Wang
    Limin Shen
    Dongkui Liang
    Shuping Chen
    Dianlong You
    Tsinghua Science and Technology, 2019, 24 (05) : 596 - 614
  • [25] Static Asynchronous Component Misuse Detection for Android Applications
    Pan, Linjie
    Cui, Baoquan
    Liu, Hao
    Yan, Jiwei
    Wang, Siqi
    Yan, Jun
    Zhang, Jian
    PROCEEDINGS OF THE 28TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE '20), 2020, : 952 - 963
  • [26] Enhancing RansomwareElite App for Detection of Ransomware in Android Applications
    Shivangi
    Sharma, Gautam
    Johri, Anubhav
    Akshita
    Goel, Anurag
    Gupta, Anuradha
    2018 ELEVENTH INTERNATIONAL CONFERENCE ON CONTEMPORARY COMPUTING (IC3), 2018, : 300 - 303
  • [27] Resource Race Attacks on Android
    Cai, Yan
    Tang, Yutian
    Li, Haicheng
    Yu, Le
    Zhou, Hao
    Luo, Xiapu
    He, Liang
    Su, Purui
    PROCEEDINGS OF THE 2020 IEEE 27TH INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER '20), 2020, : 47 - 58
  • [28] Android malware detection through centrality analysis of applications network
    Mafakheri, Aso
    Sulaimany, Sadegh
    APPLIED SOFT COMPUTING, 2024, 165
  • [29] Research on Personal Privacy Security Detection Techniques for Android Applications
    Tian, Ye
    Dai, Xin
    Li, Zhijun
    Guo, Hong
    Mao, Xiao
    Li, Yan
    2024 9TH INTERNATIONAL CONFERENCE ON ELECTRONIC TECHNOLOGY AND INFORMATION SCIENCE, ICETIS 2024, 2024, : 375 - 379
  • [30] Ordol: Obfuscation-Resilient Detection of Libraries in Android Applications
    Titze, Dennis
    Lux, Michael
    Schuette, Julian
    2017 16TH IEEE INTERNATIONAL CONFERENCE ON TRUST, SECURITY AND PRIVACY IN COMPUTING AND COMMUNICATIONS / 11TH IEEE INTERNATIONAL CONFERENCE ON BIG DATA SCIENCE AND ENGINEERING / 14TH IEEE INTERNATIONAL CONFERENCE ON EMBEDDED SOFTWARE AND SYSTEMS, 2017, : 618 - 625