As an open source operating system, Android offers many testing and debugging tools. First, take a moment to understand the basics of testing and then explore the options below.


Atest is a command line tool that allows users to build, install and run Android tests locally.

Compatibility Test Suite (CTS)

The Compatibility Test Suite (CTS) is a free, commercial-grade test suite that runs on a desktop machine and executes test cases directly on attached devices or an emulator.

Vendor Test Suite (VTS)

The Vendor Test Suite (VTS) automates HAL and OS kernel testing. To use VTS to test an Android native system implementation, set up a testing environment then test a patch using a VTS plan.

Trade Federation Testing Infrastructure

Trade Federation (tradefed or TF for short) is a continuous test framework designed for running tests on Android devices. TF can run functional tests locally, at your desk, within your platform checkout. There are two required files to run a test in TF, a java test source and an XML config. See RebootTest.java and reboot.xml for examples.


The Debugging section summarizes useful tools and related commands for debugging, tracing, and profiling native Android platform code when developing platform-level features.