Lune

OOPSLA2020顶会

LiveDroid: identifying and preserving mobile app state in volatile runtime environments

Umar Farooq, Zhijia Zhao, Manu Sridharan, Iulian Neamtiu

摘要

Mobile operating systems, especially Android, expose apps to a volatile runtime environment. The app state that reflects past user interaction and system environment updates (e.g., battery status changes) can be destroyed implicitly, in response to runtime configuration changes (e.g., screen rotations) or memory pressure. Developers are therefore responsible for identifying app state affected by volatility and preserving it across app lifecycles. When handled inappropriately, the app may lose state or end up in an inconsistent state after a runtime configuration change or when users return to the app. To free developers from this tedious and error-prone task, we propose a systematic solution, LiveDroid, which precisely identifies the necessary part of the app state that needs to be preserved across app lifecycles, and automatically saves and restores it. LiveDroid consists of: (i) a static analyzer that reasons about app source code and resource files to pinpoint the program variables and GUI properties that represent the necessary app state, and (ii) a runtime system that manages the state saving and recovering. We implemented LiveDroid as a plugin in Android Studio and a patching tool for APKs. Our evaluation shows that LiveDroid can be successfully applied to 966 Android apps. A focused study with 36 Android apps shows that LiveDroid identifies app state much more precisely than an existing solution that includes all mutable program variables but ignores GUI properties. As a result, on average, LiveDroid is able to reduce the costs of state saving and restoring by 16.6X (1.7X - 141.1X) and 9.5X (1.1X - 43.8X), respectively. Furthermore, compared with the manual state handling performed by developers, our analysis reveals a set of 46 issues due to incomplete state saving/restoring, all of which can be successfully eliminated by LiveDroid.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • An Empirical Study of Functional Bugs in Android Apps 引用了 Detecting and fixing data loss issues in Android apps
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper4

  1. An Empirical Study of Functional Bugs in Android AppsYiheng Xiong, Mengqian Xu, Ting Su, Jingling Sun 等ISSTA 2023 · 40 次引用
  2. Detecting and fixing data loss issues in Android appsWunan Guo, Zhen Dong, Liwei Shen, Wei Tian 等ISSTA 2022 · 17 次引用
  3. The ART of Sharing Points-to Analysis: Reusing Points-to Analysis Results Safely and EfficientlyShashin Halalingaiah, Vijay Sundaresan, Daryl Maier, V. Krishna NandivadaOOPSLA 2024 · 2 次引用
  4. jwmalloc: A Verified Memory Allocator for Mobile DevicesJiawei Wang, Ming Fu, Ruixian Wang, Chao Xu 等OSDI 2026

它引用的 Paper1

  1. End the Senseless Killing: Improving Memory Management for Mobile Operating SystemsNiel Lebeck, Arvind Krishnamurthy, Henry M. Levy, Irene ZhangUSENIX ATC 2020 · 61 次引用

相关 Paper

  1. DDLDroid: Efficiently Detecting Data Loss Issues in Android AppsYuhao Zhou, Wei SongISSTA 2023 · 1 次引用
  2. Transparent Runtime Change Handling for Android AppsZizhan Chen, Zili ShaoASPLOS 2023 · 1 次引用
  3. Data loss detector: automatically revealing data loss bugs in Android appsOliviero Riganelli, Simone Paolo Mottadelli, Claudio Rota, Daniela Micucci 等ISSTA 2020 · 28 次引用
  4. Demystifying Diehard Android AppsHao Zhou, Haoyu Wang, Yajin Zhou, Xiapu Luo 等ASE 2020 · 17 次引用
  5. PermDroid: automatically testing permission-related behaviour of Android applicationsShuaihao Yang, Zigang Zeng, Wei SongISSTA 2022 · 10 次引用
黄昏的海面,两侧是细线勾勒的悬崖