Fine-grained Code Coverage Measurement in Automated Black-box Android Testing

Aleksandr Pilgun, Olga Gadyatskaya, Stanislav Dashevskyi, Yury Zhauniarovich, Artsiom Kushniarou
12/27/2018
cs.CRcs.SE

Official code: pilgun/acvtool (148 stars, Python, Apache-2.0, last commit 2026-04-21).

Abstract

Today, there are millions of third-party Android applications. Some of these applications are buggy or even malicious.

Show full abstract

To identify such applications, novel frameworks for automated black-box testing and dynamic analysis are being developed by the Android community, including Google. Code coverage is one of the most common metrics for evaluating effectiveness of these frameworks. Furthermore, code coverage is used as a fitness function for guiding evolutionary and fuzzy testing techniques. However, there are no reliable tools for measuring fine-grained code coverage in black-box Android app testing. We present the Android Code coVerage Tool, ACVTool for short, that instruments Android apps and measures the code coverage in the black-box setting at the class, method and instruction granularities. ACVTool has successfully instrumented 96.9% of apps in our experiments. It introduces a negligible instrumentation time overhead, and its runtime overhead is acceptable for automated testing tools. We show in a large-scale experiment with Sapienz, a state-of-art testing tool, that the fine-grained instruction-level code coverage provided by ACVTool helps to uncover a larger amount of faults than coarser-grained code coverage metrics.

View on arXivView PDF

Code Implementations(1)

pilgun/acvtoolOfficial100%
Apache-2.0

ACVTool (Android Code Coverage Tool) is a tool to measure fine-grained code coverage of 3rd-party Android apps.

14834Python, SmaliNov 5, 20177 months agoApache-2.0
acvtoolandroidapktoolbinary-coveragecode-coverage+5 more

Similar Papers

Cite this paper

@article{pilgun2018finegrained,
  title  = {Fine-grained Code Coverage Measurement in Automated Black-box Android Testing},
  author = {Aleksandr Pilgun and Olga Gadyatskaya and Stanislav Dashevskyi and Yury Zhauniarovich and Artsiom Kushniarou},
  year   = {2018},
  eprint = {1812.10729},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1812.10729}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1812.10729.svg)](https://codeofpaper.com/paper/1812.10729)

Discussion