# Clone AOSP repository

Official documentation [here](https://source.android.com/docs/setup/download/downloading)

AOSP source is a tree/jungle of multiple git repos, more than 1400 repos to be precise. It will consume around 200GB of Disk Space.

### Here are the Steps to clone the repo

1. Download repo tool, [read more](https://gerrit.googlesource.com/git-repo/+/HEAD/README.md)

   ```
     sudo apt-get update
     sudo apt-get install repo
   ```
2. Setup .gitconfig
3. ```
   repo init -u https://android.googlesource.com/platform/manifest -b main
   ```
4. ```
   repo sync -j64
   ```
