

The Open JDK comes prebuilt with AOSP, so no need to install it separately. Free Disk Space: 250 – 300GB free space.OS: A 64-bit Linux or Mac, Windows is not supported.Then I increased the RAM to 16GB and the build was successful. So, I tried many different things but the issue still exists. I tried android 10 (android-10.0.0_r20) with 8GB of RAM but I faced “java heap out of memory error” but it got fixed when I increased the Java heap size.īut when I was building for Android 11 (android-11.0.0_r17) with 8GB of RAM at that time also I faced the same memory-related error. If you want to build an older version of android then 8GB may work for you. Here, RAM plays a very crucial role when it comes to building / compiling the android source code.Īccording to the official docs, it is recommended that you should have at least 16GB of RAM. To download and build the AOSP project you should have a 64-bit version of either Linux (18.04 or greater) or Mac OS installed. Creating your own version of android: In case, if you want to make your own version of Android like Cyanogenmod or something like that then also you can get the source code.Contributing to Android Open Source Project (AOSP): If you are a developer and looking to contribute code to the AOSP, then in that case you get the android source code.To Flash custom ROM on to your phone: If your phone’s manufacturer is not providing the latest android released for your phone and you are eager to use and test the latest feature provided by the android platform then in that case you may need to download the android source code.There might be few reasons why you may need to download the android 11 source: In this blog post, we will see how we can download the source code for Android 11, how to build or compile it and run it on the emulator or on the physical device using the Android Open Source Project.

Download and Build AOSP Android 11 custom ROM from AOSP on Linux from scratch
