Skip to content

A lightweight and unified recovery manifest for building custom recoveries from a single source directory, optimizing storage usage.

Notifications You must be signed in to change notification settings

lazycodebuilder/Lazy_Unified-Recovery-Manifest

Repository files navigation

Lazy Unified Recovery Manifest

Overview

Lazy Unified Recovery Manifest is a repository that simplifies building custom recoveries from source. It provides a structured and unified manifest for syncing different recovery sources, making the build process easier for developers.

Features

  • Unified manifest supporting multiple recovery projects
  • Supports multiple recovery sources
  • Simplified source syncing process
  • Easy-to-use XML format for repository management

Supported Recovery Projects

Prerequisites

Setup Guide

1. Configure Git

git config --global user.email "[email protected]"
git config --global user.name "Your Name"

2. Navigate to the synced directory

cd <source-dir>

3. Initialize the Source Code

repo init --depth=1 -u https://github.com/lazycodebuilder/Lazy_Unified-Recovery-Manifest.git -b android-12.1

4. Choose Recovery Project

To switch from TWRP to SHRP or PBRP, run:

sed -i "s/twrp/shrp/g" .repo/manifests/select-project.xml  # Replace 'shrp' with 'pbrp' if needed

5. Sync the Source Code

repo sync -c -j$(nproc --all)

Building the Recovery

1. Set Up Build Environment

export ALLOW_MISSING_DEPENDENCIES=true
. build/envsetup.sh
lunch twrp_<device>-eng

2. Build Commands

TWRP/SHRP

  • Recovery partition:
    mka recoveryimage | tee out/<codename>-rec.log
  • Boot image ramdisk:
    mka bootimage | tee out/<codename>-rec.log
  • Vendor_boot image ramdisk:
    mka vendorbootimage | tee out/<codename>-rec.log

PitchBlack Recovery (PBRP)

  • Recovery partition:
    mka pbrp # Builds a flashable ZIP
  • Boot image ramdisk:
    mka pbrp # Builds a flashable ZIP
  • Vendor_boot image ramdisk:
    mka vendorbootimage

Contribution

Contributions are welcome! Fork the repository, make your changes, and submit a pull request.

Contact

For issues and discussions, open an issue in the repository or join GitHub discussions.

About

A lightweight and unified recovery manifest for building custom recoveries from a single source directory, optimizing storage usage.

Topics

Resources

Stars

Watchers

Forks

Languages