This project provides Jupyter notebooks for building OrangeFox Recovery Project (OFRP) on Google Colab, Kaggle. It automates setting up the build environment, syncing OrangeFox sources, cloning device trees, building recovery images, and downloading results.
- 🔧 Automatic setup of Android build environment & repo tool
- 🔄 Sync OrangeFox sources (supports
12.1
and14.1
) - 🌲 Automatic clone and configure device trees directly from GitHub
- 📋 Check available lunch combos for your device
- 🏗️ Build OrangeFox for
boot
,vendor_boot
, orrecovery
partition - 📥 One-click download of built
.img
,.zip
, and other output files
-
Open the notebook:
- Google colab version
- Kaggle version
- Or, you can manually download it from the source code or release, then import it into your Jupyter service.
-
Run each cell step by step:
- Step 0: Setup environment
- Step 1: Sync OrangeFox sources
- Step 2: Clone your device tree
- Step 3: Verify device/lunch combo
- Step 4: Build
- Step 5: Download results
- Colab has limited storage ≈107GB but only ≈68GB free. Building with 14.1 source may fail due to insufficient space.
- You can still build Android 14 devices on the 12.1 source by lowering SDK version in
device.mk
(setPLATFORM_SDK_VERSION := 31
or lower). - Always verify your lunch name (e.g.
twrp_CK6n-eng
) before building. - This notebook is intended for testing and may not produce stable recoveries.
- Building in Google Colab may fail due to insufficient RAM and CPU, since Google Colab does not support swap. Try kaggle instead
- Kaggle cell output may sometimes bug; use the built-in console view instead if issues occur (freezing or lost output).
- Kaggle requires account verification to enable internet access.
-
🛠️ Prepare Environment
- Install dependencies, repo tool, and OrangeFox build scripts
- Configure fake GitHub identity
-
🔄 Sync Sources
- Download OrangeFox source tree with
orangefox_sync.sh
- Download OrangeFox source tree with
-
🌲 Add Device Tree
- Automatic clone your device tree from GitHub
- Parse
device.mk
andAndroidProducts.mk
- Detect device tree path and lunch names
-
🤔 Check Devices Available
- Lists detected devices and lunch combos in table format
-
🏗️ Build OrangeFox
- Configure build target (
vendorbootimage
,bootimage
, orrecoveryimage
) - Build using
mka
- Configure build target (
-
📥 Download Files
- Search and download
.img
,.zip
,.cpio
,.lz4
,.txt
, etc. from/out
folder
- Search and download
- Kaggle: compact version (50% done, runs but UI/UX rough)
- Improve build stability on Google Colab

Apache 2.0 — free and open source.