The Android source tree is located in a Git repository hosted by Google. The Git repository includes metadata for the Android source, including those related to changes to the source and the date they were made. This document describes how to download the source tree for a specific Android code-line.
Make sure you have a
bin/directory in your home directory and that it is included in your path:
- mkdir ~/bin
Download the Repo tool and ensure that it is executable
For version 1.25, the SHA-256 checksum for repo is