Skip to content

Preparations

Requirements to build a custom rom

  • CPU: 4 Cores or more
  • RAM: 64 GB (can also be 32 GB physical and 32 GB swap)
  • Storage: 500Gb SSD of free space
  • Operating System: Ubuntu 18.04 or higher (Debian/Ubuntu derived distributions or can also be Arch Linux)
  • Git
  • Repo
  • Basic knowledge of Linux terminal operation

Packages needed to build Android

Ubuntu 18.04 or higher
sudo apt-get install git-core gnupg flex bison build-essential zip curl zlib1g-dev libc6-dev-i386 x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev libxml2-utils xsltproc unzip fontconfig

Installing and configuring the repo

  1. curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
  2. chmod a+x ~/bin/repo
  3. git config --global user.name
  4. git config --global user.email