Flashing custom ROMs on a OnePlus 13R Ace5 - yashaswee-exe/AndroidGuides GitHub Wiki

🚨 Prerequisites

Important

I or the ROM developers are not responsible if you brick your device. You are solely responsible. ✌️

  1. Backup all your data to an external source. All your data will be wiped.
  2. Make sure to remove pin/password and logout of google accounts.
  3. You should have same firmware on both slots. If you are coming from OOS/COS you can either use regional/super flasher (here) to flash oos/cos on both slots. If you are not comfortable with this, local install the current firmware version.
  4. Download the custom rom.zip.
  5. Dump the zip to get the individual img files, if not already provided by the developer.
  • If it's a fastboot ROM, you can just extract the zip and get the img files directly but if it's a recovery ROM you need to extract the zip and dump the payload.bin > follow this guide.

  1. Make sure you are using the latest platform tools for running adb/fastboot commands.

⚠️ Recovery Builds

Method #1: adb sideload

Fresh install/ Clean flashing:

  1. Get the boot, init_boot, vendor_boot and recovery.img (& super_empty for Ace5 users - here) from the dumped img files.
  2. Connect to PC.
  3. Reboot to Fastboot - Press Both Power_button_key + Vol_down_key
  4. Flash the following partitions one by one:
fastboot flash boot boot.img
fastboot flash vendor_boot vendor_boot.img
fastboot flash init_boot init_boot.img
fastboot flash recovery recovery.img
fastboot wipe-super super_empty.img
  1. Reboot to recovery using "fastboot reboot recovery"
  2. Select Wipe Data/factory Reset & Confirm
  3. Select 'apply Update' From Adb and execute
adb sideload 

And then <drag-&-drop-rom.zip> on the cmd window.

  1. Select Wipe Data/factory Reset & Confirm
  2. After Installation Complete, Reboot to System.

Method #2: Via a flashing tool

  • Download and set up the flashing tool from here (Always check if there is a newer version of the tool available)

  • Video Tutorial: Here

  • Video Tutorial in Hindi: Here

  1. Connect the phone in the fastboot mode:
adb reboot bootloader
  1. Verify that your device is recognized in fastboot by checking for its serial number.
fastboot devices
  1. Open the tool and navigate to the Firmware Unpacker section.

  2. Select the custom ROM zip / full stock ROM ZIP file (not an incremental update) that you want to flash.

  3. In the Mode section, select Full, and then click Press to Unpack to extract the firmware.

  4. After unpacking, go to the Firmware Flasher section.

  5. Click on Press to Flash and carefully follow the on-screen instructions during the flashing process.

  6. You should see a Flashing Complete prompt.

  7. If you are doing a dirty flash(updating ROM), click on the reboot button. If you are doing a clean flash, on your phone select English and format data.

  8. Reboot and you are done.


⚠️ Fastboot Builds

Fresh install/ Clean flashing:

  1. Download the fastboot ROM zip.
  2. Reboot into fastboot (NOT fastbootd)
  3. Get the boot, init_boot, vendor_boot and recovery.img (& super_empty for Ace5 users - here) from the dumped img files and flash:
fastboot flash boot boot.img
fastboot flash vendor_boot vendor_boot.img
fastboot flash init_boot init_boot.img
fastboot flash recovery recovery.img
fastboot wipe-super super_empty.img
  1. Flash the ROM using:
fastboot update -w <drag-&-drop-rom.zip>
  1. The phone should reboot into the OS when the installation is done.

Troubleshooting:

  1. If You Get A Fastboot Flash Error: Try the fastboot update again.

  2. IF YOU GET A FASTBOOT FLASH ERROR AND A BLACK SCREEN:

  • Unplug your phone.
  • Hold the power button + volume UP + volume DOWN for ~20 seconds, until your phone reboots into fastboot
  • Try the fastboot update once again.

⚙️ OTA updating/ Dirty flashing:

If the custom ROM supports local install, you can do that from Settings > System Update > local install.

If not,

  1. Reboot to recovery
  2. Apply update > Apply from ADB
  3. Open command prompt & sideload rom using command
adb sideload 

<drag-&-drop-rom.zip> on the cmd window.

  1. Reboot.

⚠️ **GitHub.com Fallback** ⚠️