This project is built upon Android 15.0.0_r32 and the Raspberry Pi Vanilla project for the Raspberry Pi 4. It is developed as a final project for the AOSP course at ITI Embedded Systems Track Intake 45.
-
Establish Android build environment.
-
Install additional packages:
sudo apt-get install dosfstools e2fsprogs fdisk kpartx mtools rsync
- Initialize repo with Raspberry Pi Vanilla manifest and add VehicleScan custom manifest:
repo init -u https://android.googlesource.com/platform/manifest -b android-15.0.0_r32 --depth=1
curl -o .repo/local_manifests/manifest_brcm_rpi.xml -L https://raw.githubusercontent.com/raspberry-vanilla/android_local_manifest/android-15.0/manifest_brcm_rpi.xml --create-dirs
curl -o .repo/local_manifests/manifest_vehiclescan.xml -L https://raw.githubusercontent.com/VehicleScan/android_local_manifest/main/manifest_vehiclescan.xml
- Sync source code:
repo sync
- Setup Android build environment:
. build/envsetup.sh
- Select the device and build target:
lunch aosp_rpi4_car-bp1a-userdebug
- Compile:
make bootimage systemimage vendorimage -j$(nproc)
- Make flashable image for the device:
./rpi4-mkimg.sh