Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.24 KB

guide.md

File metadata and controls

37 lines (26 loc) · 1.24 KB

Build SHRP Reborn

Available Branches

android versions branch
10,11,12 shrp-12.1

Android 10,11

Android 10 and 11 isn't supported anymore. We recommend to update your trees for Android 12.1



Android 12.1

  • To initialize your local repository using the AOSP trees to build SHRP Reborn, use a command like this:
repo init -u https://github.com/SHRP-Reborn/manifest.git -b shrp-12.1
  • Then to sync up:
repo sync -c -j$(nproc --all) --force-sync --no-clone-bundle --no-tags
  • Then to setup the build:
cd <source-dir>; export ALLOW_MISSING_DEPENDENCIES=true; . build/envsetup.sh; lunch twrp_<device>-eng

The build target is dependent on the device, and should reflect the location of stock recovery on the device. Issue the build command that applies to your device:

  • Recovery partition: mka recoveryimage or source build/envsetup.sh; lunch twrp_<device>-eng; mka recoveryimage
  • Boot image: mka bootimage or source build/envsetup.sh; lunch twrp_<device>-eng; mka bootimage
  • Vendor_boot image: mka vendorbootimage or source build/envsetup.sh; lunch twrp_<device>-eng; mka vendorbootimage