Get Started

Get Started

When mentioning Android one should take into account that there are different versions, depending on the vender. However they all (most likely) have the same codebase which is AOSP. AOSP is the acronym for Android Open Source Project and enables one to compile an own Android version. Below ис а how-to guide of downloading the AOSP source code, building it and starting the emulator.


Described is building AOSP in the Linux distribution: Ubuntu Release 20.04
After installing Ubuntu please do the following steps, before downloading the source code and building it.

Update the package list from the repositores and get information on the newest packages and their dependencies.
sudo apt update

Install git version 2 (git will be used for fetching the source code from the repository).
sudo apt install git

sudo apt install m4

sudo apt-get install libncurses5

vi ~/.bashrc


source ~/.bashrc

sudo apt install curl

curl > ~/bin/repo

chmod a+x ~/bin/repo

Source code

creating a working directory



git config –global “your name”

git config –global “your email adress”

sudo ln -s /usr/bin/python3 /usr/bin/python

downloading code

Master branch

A particular branch:

repo init -u -b android-10.0.0_r41

repo sync -j3


source build/

lunch aosp_arm-eng


Generate updates


When issuing the command emulator the default vuild will be executed.

If you wish to execute it on a device the these two devices:
Google Pixel 2

Google Pixel 2 XL

This is an example of code in GitHub pages:

public class HelloController {

	public String index() {
		return "Hello to this app!";