Downloading AOSP Source Code
The Kbox Android image is compiled using AOSP 15. Perform the following steps to download the AOSP source code.
- Create an aosp directory in the user directory and grant the read, write, and execute permissions to the directory owner.
1 2
mkdir ~/aosp chmod -R 700 ~/aosp
The remaining space of the user directory must be greater than 300 GB. The AOSP source code is approximately 130 GB and is close to 300 GB after compilation.
- Download and install the Repo tool following the official Google guide. Download AOSP source code (version: android-15.0.0_r17) and compile it.
1 2 3
cd ~/aosp repo init -u https://android.googlesource.com/platform/manifest -b android-15.0.0_r17 repo sync
Parent topic: Compiling the AOSP Source Code and Creating an Image