oxmc 31996cdb2f Add prebuilt lib repos from maven-to-lib
15 libs managed by maven-to-lib; revision pinned to artifact version:
accompanist 0.37.3, coil 3.5.0, commons 3.20.0, glide 5.0.7,
jsoup 1.22.2, koin 4.2.2, kotlinx-serialization 1.11.0, ktor 3.5.0,
lottie 6.7.1, moshi 1.15.2, okhttp 5.4.0, okio 3.17.0,
retrofit 3.0.0, timber 5.0.1, zxing 3.5.4
2026-06-17 05:50:59 -07:00
2026-03-20 06:18:24 -07:00
2026-06-02 23:18:16 -07:00

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 22.04 LTS):

  1. Establish Android build environment.

  2. Install additional packages:

sudo apt-get install dosfstools e2fsprogs gdisk kpartx mtools rsync
  1. Initialize repo:
repo init -u https://android.googlesource.com/platform/manifest -b android-16.0.0_r4
curl -o .repo/local_manifests/manifest_brcm_rpi.xml -L https://git.oxmc.me/PawletOS/android_local_manifest/raw/branch/android-16.0/vendors/brcm_rpi.xml --create-dirs
curl -o .repo/local_manifests/manifest_lineageos.xml -L https://git.oxmc.me/PawletOS/android_local_manifest/raw/branch/android-16.0/vendors/lineageos.xml --create-dirs
curl -o .repo/local_manifests/manifest_pawletos.xml -L https://git.oxmc.me/PawletOS/android_local_manifest/raw/branch/android-16.0/pawletos.xml --create-dirs

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-16.0.0_r4 --depth=1
curl -o .repo/local_manifests/manifest_brcm_rpi.xml -L https://git.oxmc.me/PawletOS/android_local_manifest/raw/branch/android-16.0/vendors/brcm_rpi.xml --create-dirs
curl -o .repo/local_manifests/manifest_lineageos.xml -L https://git.oxmc.me/PawletOS/android_local_manifest/raw/branch/android-16.0/vendors/lineageos.xml --create-dirs
curl -o .repo/local_manifests/manifest_pawletos.xml -L https://git.oxmc.me/PawletOS/android_local_manifest/raw/branch/android-16.0/pawletos.xml --create-dirs
curl -o .repo/local_manifests/remove_projects.xml -L https://git.oxmc.me/PawletOS/android_local_manifest/raw/branch/android-16.0/remove_projects.xml
  1. Sync source code:
repo sync
  1. Setup Android build environment:
. build/envsetup.sh
  1. Select the device (rpi4 or rpi5) and build target (normal, tablet for tablet, tv for Android TV, or car for 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
  1. Compile:
make bootimage systemimage systemextimage vendorimage productimage -j$(nproc)
  1. Make flashable image for the device (rpi4 or rpi5):
./rpi4-mkimg.sh
./rpi5-mkimg.sh
S
Description
No description provided
Readme 262 KiB