43d10ce05b
Add header comment naming the AOSP release, and switch remove_projects to a list so multiple remove-project XML fragments can be merged by environ.py.
Device specific configuration to build AOSP Android 16 (android-16.0.0_r4) for Raspberry Pi 4 and Raspberry Pi 5.
Based on RaspberryVanilla.
How to build (Ubuntu Server 26.04 LTS):
After setting up the Android build environment, do:
- Install additional packages:
sudo apt-get install dosfstools e2fsprogs gdisk kpartx mtools rsync
- Clone PawletOS-Build and install its dependencies:
git clone https://git.oxmc.me/PawletOS/PawletOS-Build
cd PawletOS-Build
pip3 install -r requirements.txt
- Download the
repo.ymlconfig for this target:
curl -o repo.yml -L https://git.oxmc.me/PawletOS/android_local_manifest/raw/branch/android-16.0/rpi/repo.yml
Or optionally, to reduce download size with a shallow clone:
curl -o repo.yml -L https://git.oxmc.me/PawletOS/android_local_manifest/raw/branch/android-16.0/rpi/repo-shallow.yml
- Run the build script (clones source and syncs it based on
repo.yml):
python3 ./environ.py --applyPatches
- source the environment:
. AOSP-Source/build/envsetup.sh
- Select the device (
rpi4orrpi5) and build target (normal,tabletfor tablet,tvfor Android TV, orcarfor Android Automotive):
lunch pawlet_rpi4-bp4a-userdebug
lunch pawlet_rpi4_tablet-bp4a-userdebug
lunch pawlet_rpi4_tv-bp4a-userdebug
lunch pawlet_rpi4_car-bp4a-userdebug
lunch pawlet_rpi5-bp4a-userdebug
lunch pawlet_rpi5_tablet-bp4a-userdebug
lunch pawlet_rpi5_tv-bp4a-userdebug
lunch pawlet_rpi5_car-bp4a-userdebug
- Compile:
make bootimage systemimage systemextimage vendorimage productimage -j$(nproc)
- Make flashable image for the device (
rpi4orrpi5):
./rpi4-mkimg.sh
./rpi5-mkimg.sh