Who Should We Blame for Android App Crashes? An In-Depth Study at Scale and Practical Resolutions
Liangyi Gong,Hao Lin,Daibo Liu,Lanqi Yang,Hongyi Wang,Jiaxing Qiu,Zhenhua Li,Feng Qian
DOI: https://doi.org/10.1145/3649895
2024-02-29
ACM Transactions on Sensor Networks
Abstract:Android system has been widely deployed in energy-constrained IoT devices for many practical applications, such as smart phone, smart home, healthcare, fitness, and beacons. However, Android users oftentimes suffer from app crashes, which directly disrupt user experience and could lead to data loss. Till now, the community have limited understanding of their prevalence, characteristics, and root causes. In this paper, we make an in-depth study of the crash events regarding ten very popular apps of different genres, based on fine-grained system-level traces crowd-sourced from 93 million Android devices. We find that app crashes occur prevalently on the various hardware models studied, and better hardware does not seem to essentially relieve the problem. Most importantly, we unravel multi-fold root causes of app crashes, and pinpoint that the most crashes stem from the subtle yet crucial inconsistency between app developers’ supposed memory/process management model and Android’s actual implementations. We design practical approaches to addressing the inconsistency; after large-scale deployment, they reduce 40.4% of the app crashes with negligible system overhead. In addition, we summarize important lessons learned from this study, and have released our measurement code/data to the community.
computer science, information systems,telecommunications