1 OverviewThis document describes how to build Android Pie 9.0 platform for the i.MX 8series devices. It provides instructions for:• Configuring a Linux® OS build machine.• Downloading, patching, and building the software components that createthe Android™ system image.• Building from sources and using pre-built images.• Copying the images to boot media.• Hardware/software configurations for programming the boot media andrunning the images.For more information about building the Android platform, seesource.android.com/source/building.html.2 Preparation2.1 Setting up your computerTo build the Android source files, use a computer running the Linux OS. The Ubuntu 16.04 64-bit version and openjdk-8-jdk isthe most tested environment for the Android Pie 9.0 build.After installing the computer running Linux OS, check whether all the necessary packages are installed for an Android build. See"Setting up your machine" on the Android website source.android.com/source/initializing.html.In addition to the packages requested on the Android website, the following packages are also needed:$ sudo apt-get install uuid uuid-dev$ sudo apt-get install zlib1g-dev liblz-dev$ sudo apt-get install liblzo2-2 liblzo2-dev$ sudo apt-get install lzop$ sudo apt-get install git-core curl$ sudo apt-get install u-boot-tools$ sudo apt-get install mtd-utils$ sudo apt-get install android-tools-fsutils$ sudo apt-get install openjdk-8-jdk$ sudo apt-get install device-tree-compiler$ sudo apt-get install gdisk$ sudo apt-get install m4$ sudo apt-get install libz-devContents1 Overview................................................12 Preparation............................................ 13 Building the Android platform for i.MX... 24 Running the Android Platform with aPrebuilt Image..................................... 75 Programming Images............................ 96 Booting.................................................137 Over-The-Air (OTA) Update.................178 Customized Configuration................... 219 Revision History...................................30ASUGAndroid™ User's GuideRev. P9.0.0_2.3.2 — 6 March 2020 User's Guide