Local manifests to build TWRP for Raspberry Pi 3 and Raspberry Pi 4.

How to build:

  1. Set up Android build environment.

  2. Initialize repo:

repo init -u git://github.com/LineageOS/android.git -b lineage-16.0
curl --create-dirs -L -o .repo/local_manifests/manifest_brcm_rpi.xml -O -L https://raw.githubusercontent.com/isseikz/android_local_manifest/lineage-16.0-twrp/manifest_brcm_rpi.xml
repo sync
  1. Apply patches:
cd path/to/project
git am patchname.patch
  1. Compile:
. build/envsetup.sh
lunch lineage_rpi3-userdebug
mka ramdisk-recovery
  1. Copy ramdisk-recovery.img to LineageOS 16.0 boot partition (/dev/block/mmcblk0p1).