How raspberry-vanilla/android_device_brcm_rpi5 works
Project type and purpose
• This is not a user-facing app but a device configuration layer for AOSP (Android Open Source Project) 15, targeting Raspberry Pi 5.
• It provides HAL implementations (audio, bluetooth, camera, hdmi, health, light, media, usb, wifi), init scripts, SELinux policies, overlays, and build definitions needed to produce a bootable Android image for the Pi 5.
File structure
• Top-level build scripts:
• Android.bp, AndroidProducts.mk, device.mk, BoardConfig.mk, product_manifest.xml → Soong/Make integration to assemble the device.
• mkbootimg.mk, mkimg.sh, wrimg.sh → Boot-image and system-image creation.
• Hardware modules (each folder builds a HAL + service): audio/, bluetooth/, camera/, hdmi/, health/, light/, media/, usb/, wifi/, suspend_blocker/
• Each contains Android.bp, service RC & XML for init, apex manifests.
• System configuration:
• ramdisk/ (init.rpi5.rc, fstab), overlay/ (multiple APK-overrides for SystemUI, Settings, Bluetooth, Wifi, Car, etc.), sepolicy/ and seccomp_policy/
• Manifest.xml and aosp_rpi5*.mk variants for Car/TV/Vanilla products.
README
• Confirms “Raspberry Vanilla AOSP 15 device configuration for Raspberry Pi 5.”