Skip to content

en.Custom recoveries.Flashing

fukiame edited this page Mar 26, 2024 · 5 revisions

Flashing guide(s)

This process is the same across RVendor and SVendor, though the actual recovery used differs

platform-tools

Requirements

  • A functional PC / laptop / whatever

    • Windows 7 or newer
    • Any recent Linux distro
    • MacOS idk
  • An unlocked bootloader

  • An SD Card or USB OTG (optional, but might be a bit more complicated without)

  • A decent USB cable

Steps

  1. Grab the following things

    • The recovery version you want to install

      • You can grab one from the Index
    • The boot image of the current ROM

    • A vbmeta image

      • You can grab one from your current fastboot ROM, or use this

    Copy the recovery image and stock boot image to your device's SD Card or USB OTG

  2. Install platform-tools

  3. Put your device into fastboot mode

    You only need to use one of these methods

    • Using hardware keys

      1. Power off the device
      2. Hold both the power button and the volume up button
      3. Release once you see the FASTBOOT logo on the screen
    • Using ADB

      1. Enable ADB in your device
      2. Launch command prompt / terminal, type adb reboot bootloader and press Enter
      3. Wait for it to arrive at the FASTBOOT logo
  4. On your PC, open your command prompt / terminal, use these commands

# note that the text behind the # symbols are just comments, you don't need to type them
# replace the *.img with your own file name / file path
# you can also drag and drop the file to the command prompt and it would automaticay insert the name for you

# disable verified boot
fastboot flash --disable-verification --disable-verity vbmeta vbmeta.img

# flash the recovery
fastboot flash boot recovery.img

# reboot to recovery
# since you just flashed the custom recovery, it would not boot back to system just yet
fastboot reboot
  1. On your phone, now in custom recovery, follow these sequence

    • on TWRP

      Install - Install image - the stock boot image - choose Boot - Swipe to flash

      back

      Install - the recovery image you copied in step 1 - choose Install recovery ramdisk - Swipe to flash

      back

    Other TWRP forks (OrangeFox, PBRP, SHRP) also follows roughly the same procedure

  2. Profit

    After step 5, you can test the recovery by rebooting to recovery and rebooting to system,

    if it boots, that means you got a successful installation

Tapin Recovery Installer

to be added