552d88ade4e2cb5a59ab880c0dc714f8a65e7644
Device specific configuration to build AOSP Android 14 for Raspberry Pi 4.
How to build:
-
Establish Android build environment and install repo.
-
Install additional packages:
sudo apt-get install bc coreutils dosfstools e2fsprogs fdisk kpartx mtools ninja-build pkg-config python3-pip
sudo pip3 install meson mako jinja2 ply pyyaml dataclasses
- Initialize repo:
repo init -u https://android.googlesource.com/platform/manifest -b android-14.0.0_r1
curl --create-dirs -L -o .repo/local_manifests/manifest_brcm_rpi4.xml -O -L https://raw.githubusercontent.com/raspberry-vanilla/android_local_manifest/android-14.0/manifest_brcm_rpi4.xml
Or optionally, you can reduce download size by creating a shallow clone and removing unneeded projects:
repo init -u https://android.googlesource.com/platform/manifest -b android-14.0.0_r1 --depth=1
curl --create-dirs -L -o .repo/local_manifests/manifest_brcm_rpi4.xml -O -L https://raw.githubusercontent.com/raspberry-vanilla/android_local_manifest/android-14.0/manifest_brcm_rpi4.xml
curl --create-dirs -L -o .repo/local_manifests/remove_projects.xml -O -L https://raw.githubusercontent.com/raspberry-vanilla/android_local_manifest/android-14.0/remove_projects.xml
- Sync source code:
repo sync
- Setup Android build environment:
. build/envsetup.sh
- Select build target:
Tablet UI:
lunch aosp_rpi4-userdebug
Android TV:
lunch aosp_rpi4_tv-userdebug
Android Automotive:
lunch aosp_rpi4_car-userdebug
- Compile:
make bootimage systemimage vendorimage -j$(nproc)
- Make flashable image:
./rpi4-mkimg.sh
Also look into Linux kernel build instructions.
Issues:
Wiki:
Description