Downloading AOSP Source Code
- Create an aosp directory in the user directory.
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-11.0.0_r48) and compile it.
1 2 3
# cd ~/aosp # repo init -u https://android.googlesource.com/platform/manifest -b android-11.0.0_r48 # repo sync
- Delete the external/mesa3d and external/libdrm folders from the source code.
1 2 3
# cd ~/aosp # rm -rf external/mesa3d # rm -rf external/libdrm
Parent topic: Compiling the AOSP Source Code and Creating an Image