LiveDroid: identifying and preserving mobile app state in volatile runtime environments
LiveDroid: identifying and preserving mobile app state in volatile runtime environments
复制标题
LiveDroid:在不稳定的运行时环境中识别和保留移动应用程序状态
DOI:
10.1145/3428228
复制
发表时间:
2020
影响因子:
--
通讯作者:
Neamtiu, Iulian
中科院分区:
文献类型:
--
作者:
Farooq, Umar;Zhao, Zhijia;Sridharan, Manu;Neamtiu, Iulian
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 thenecessarypart 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.
登录
查看更多内容
DOI:
10.1145/1958746.1958793
发表时间:
2011
期刊:
ACM Sigsoft Software Engineering Notes
影响因子:
--
作者:
N. Arijo;R. Heckel;M. Tribastone;S. Gilmore
通讯作者:
S. Gilmore
DOI:
10.1145/2568225.2568309
发表时间:
2014-05
期刊:
Proceedings of the 36th International Conference on Software Engineering
影响因子:
--
作者:
Semih Okur;D. L. Hartveld;Danny Dig;A. Deursen
通讯作者:
Semih Okur;D. L. Hartveld;Danny Dig;A. Deursen
DOI:
10.1201/9781003229100-6
发表时间:
2022-02
期刊:
Mastering Git
影响因子:
--
作者:
Sufyan bin Uzayr
通讯作者:
Sufyan bin Uzayr
DOI:
10.1145/2652524.2652538
发表时间:
2014
期刊:
Proceedings of the 22nd ACM SIGSOFT International Symposium on Foundations of Software Engineering
影响因子:
--
作者:
C. Sahin;L. Pollock;J. Clause
通讯作者:
J. Clause
DOI:
10.1145/1542431.1542450
发表时间:
2009
期刊:
2012 IEEE 12th International Working Conference on Source Code Analysis and Manipulation
影响因子:
--
作者:
E. Albert;S. Genaim;M. Gómez
通讯作者:
M. Gómez