Local manifests to build TWRP for Raspberry Pi 3 and Raspberry Pi 4.
-
Set up Android build environment.
-
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
- Apply patches:
cd path/to/project
git am patchname.patch
- Compile:
. build/envsetup.sh
lunch lineage_rpi3-userdebug
mka ramdisk-recovery
- Copy ramdisk-recovery.img to LineageOS 16.0 boot partition (/dev/block/mmcblk0p1).