1. Development Environment

1.1 Compiler Environment

It is recommended to use Ubuntu 22.04 or higher version for compilation. If you encounter an error during compilation, you can check the error message and install the corresponding software packages accordingly. Other Linux versions may need to adjust the software package accordingly. In addition to the system requirements, there are other hardware and software requirements.

Hardware requirements

Software requirements

64-bit system, hard disk space should be

greater than 500GB (Android 14 + Android 16).

If you do multiple builds, you will need

more hard drive space.

Ubuntu 22.04

1.2 Install Libraries and Toolkits

The contents of this directory only provide the software package installation commands that are needed to build the compiled SDK environment. Please install other tools such as samba and ssh by yourself.

PC OS

Network

Permission

Ubuntu 22.04

online

root

 1sudo apt-get install u-boot-tools
 2sudo apt-get install git gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dri:i386 libgl1-mesa-dev g++-multilib tofrodos libxml2-utils xsltproc zlib1g-dev:i386 dpkg-dev
 3sudo apt-get install libncurses5-dev
 4sudo apt-get install libsdl1.2-dev
 5sudo apt-get install lib32z-dev ccache
 6sudo apt-get install python3-pyelftools
 7sudo apt-get install libssl-dev libmpc-dev
 8sudo apt-get install liblz4-tool
 9sudo apt-get install expect g++ patchelf chrpath gawk texinfo chrpath diffstat
10sudo apt-get install binfmt-support live-build bison flex fakeroot libgmp-dev
11sudo apt-get install cmake gcc-multilib g++-multilib unzip device-tree-compiler
12sudo apt-get install ncurses-dev libgucharmap-2-90-dev bzip2 expat gpgv2
13sudo apt-get install cpp-aarch64-linux-gnu g++-aarch64-linux-gnu
14sudo apt install python2 python-is-python3
15sudo ln -s /usr/bin/python3 /usr/bin/python
16sudo apt-get install device-tree-compiler
17sudo apt install apt-file
18sudo apt-file update
19sudo apt install libncurses5
20sudo apt-file find libncurses.so.5
21sudo apt-get install binfmt-support qemu-user-static live-build