Who Should We Blame for Android App Crashes? An In-Depth Study at Scale and Practical Resolutions

Table of Content

About this Study


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.

Measurement Code and Data


Measurement Code

We have released our measurement code on github.

Measurement Data

We have provided in part the measurement data on github.

The attributes of each crash event in the data are organized as follows:

AttributeDescription
issue_idID generated to identify an app crash event.
os_versionAndroid version.
device_idUnique ID generated to identify a user's device which the reported event crashed on.
crash_timeTime when the reported crash event occured on the device.
crash_reasonA brief summary of the crash reason of the reported event.
crash_typeType of throwing Exception/Error.