Checking out Metalava

Metalava can be downloaded from the metalava-master manifest branch via repo as explained below

To check out metalava-master using repo:

  1. Install repo (Repo is a tool that makes it easier to download multiple Git repositories at once. For more information about Repo, see the Repo Command Reference)
mkdir ~/bin
curl > ~/bin/repo
chmod a+x ~/bin/repo
  1. Configure Git with your real name and email address.
git config --global "Your Name"
git config --global ""
  1. Create a directory for your checkout (it can be any name)
mkdir metalava-master
cd metalava-master
  1. Use repo command to initialize the repository.
repo init -u -b metalava-master
  1. Now your repository is configured to pull only what you need for building and running Metalava. Download the code (this may take some time; the checkout is about 1.7G):
repo sync -j8 -c

Checking out aosp/master instead:

For anyone that is already working in the aosp/master branch, you can use that repo checkout instead. For small changes to metalava, this is not recommended - it is a very large checkout, with many dependencies not used by metalava.


See also for details about building and running Metalava after you have checked out the code.