Formalization of Android Activity-Fragment Multitasking Mechanism and Static Analysis of Mobile Apps

The multitasking mechanism between activities and fragments plays a fundamental role in the Android operating system, which involves a wide range of features, including launch modes, intent flags, task affinities, and structured activities containing fragments. All of them are being widely used in Android apps, both open source and commercial ones. In this article, we present a formal semantics of the Android multitasking mechanism between activities and fragments, which accommodates all the important features and gives insofar the most comprehensive and accurate formalization. In particular, our semantics is formulated based on multi-stack systems, and fully captures the behavior of task stacks and activity stacks regarding fragments. Based on the semantics, we provide new static analysis algorithms, which are both multi-stack aware and fragment sensitive, thus achieve more precise static analysis for Android apps. We validate our approach by extensive experiments on both open source and commercial Android apps. The results highlight the benefits of the considering the semantics of the multitasking mechanism between activities and fragments in static analysis, and confirm the efficacy of our approach.

Authors

Institutions

Publication Details

Journal
Formal Aspects of Computing
Published
2024-12-18
DOI
https://doi.org/10.1145/3708562
Primary Topic
Advanced Malware Detection Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Formalization of Android Activity-Fragment Multitasking Mechanism and Static Analysis of Mobile Apps

Taolue Chen, Zhilin Wu, Jinlong He
Formal Aspects of Computing
Advanced Malware Detection Techniques
article

Formalization of Android Activity-Fragment Multitasking Mechanism and Static Analysis of Mobile Apps

Taolue Chen, Zhilin Wu, Jinlong He
article en

Abstract

The multitasking mechanism between activities and fragments plays a fundamental role in the Android operating system, which involves a wide range of features, including launch modes, intent flags, task affinities, and structured activities containing fragments. All of them are being widely used in Android apps, both open source and commercial ones. In this article, we present a formal semantics of the Android multitasking mechanism between activities and fragments, which accommodates all the important features and gives insofar the most comprehensive and accurate formalization. In particular, our semantics is formulated based on multi-stack systems, and fully captures the behavior of task stacks and activity stacks regarding fragments. Based on the semantics, we provide new static analysis algorithms, which are both multi-stack aware and fragment sensitive, thus achieve more precise static analysis for Android apps. We validate our approach by extensive experiments on both open source and commercial Android apps. The results highlight the benefits of the considering the semantics of the multitasking mechanism between activities and fragments in static analysis, and confirm the efficacy of our approach.

Formal Aspects of ComputingVol. 37(2)
Chinese Academy of Sciences (CN), Institute of Software (CN), University of Chinese Academy of Sciences (CN), Birkbeck, University of London (GB)
Openalex Percentile: Top 74%
Advanced Malware Detection Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Formalization of Android Activity-Fragment Multitasking Mechanism and Static Analysis of Mobile Apps — Taolue Chen, Zhilin Wu, et al. · Formal Aspects of Computing (2024) | TGRS Research Map | TGRS