Did you know that you can navigate the posts by swiping left and right?
Minimal requirements needed for your workstation.
You can build Android on Linux or Mac. But I prefer Linux specifically Ubuntu LTS(Long Term Support), because AOSP master branch is developed and tested on Ubuntu LTS. So software requirements are,
Since we are using Linux, I will give instructions to install the OpenJDK. Install OpenJDK using below commands.
$ sudo apt-get update $ sudo apt-get install openjdk-7-jdk
Update the default Java version by running
$ sudo update-alternatives --config java $ sudo update-alternatives --config javac
$ sudo apt-get -y install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib $ sudo apt-get -y install libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils $ sudo apt-get -y install xsltproc unzip mtd-utils u-boot-tools lzop liblzo2-2 liblzo2-dev zlib1g-dev liblz-dev uuid uuid-dev
Repo is a tool which is used to handle a number of Git repositories. Repo is developed for handling the Android Development.
To install Repo,
$ mkdir ~/bin $ PATH=~/bin:$PATH
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo $ chmod a+x ~/bin/repo
$ mkdir ~/working_directory $ cd ~/working_directory/ $ mkdir my_android $ cd my_android/ $ repo init -u https://android.googlesource.com/platform/manifest -b android-6.0.1_r3 $ repo sync
repo sync will take some time to execute, because it is downloading whole source of Android OS. It will be nearly 50GB - 60GB. So you can have a tea break. Once the repo sync is executed then you have the Android Source.