AOSP System Image

Budhdi Sharma
AndroidPub
Published in
1 min readDec 6, 2019

After successfully download AOSP source code(To download AOSP code follow this link below link )

https://medium.com/@budhdisharma/android-aosp-source-code-download-and-build-92843c782df5)

Step to compile/create System image after AOSP source code download

  1. After successful download of AOSP code, First, check your JDK installation
    For android AOSP source code compilation, we need OpenJDK
    For Android N we need OpenJDK version “1.8.0_xxxx” and for L or M we need
    OpenJDK version “1.7.0_xxx”
  2. Installing required packages (Ubuntu 14.04)
    You will need a 64-bit version of Ubuntu. Ubuntu 14.04 is recommended.

sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \
libgl1-mesa-dev libxml2-utils xsltproc unzip

For more detail follow the link:-

https://source.android.com/source/initializing.html

3. Then run the following command in sequence:-

source build/envsetup.sh
lunch (Enter this command and then choose your target from the given option. Just pass the number like 1)
make -j4 (make command based on CPU Core and RAM size you can choose like -j8, j16 etc..)

That’s it. For the fresh build, it will take a couple of hours (1 or 2 or 3).

Thanks for the support !

--

--

Budhdi Sharma
AndroidPub

As an AOSP developer, I specialize in creating robust framework and system applications that seamlessly integrate with embedded systems on various SOCs