Flashing custom ROMs on a OnePlus 13R Ace5 - yashaswee-exe/AndroidGuides GitHub Wiki
Important
I or the ROM developers are not responsible if you brick your device. You are solely responsible. ✌️
- Backup all your data to an external source. All your data will be wiped.
- Make sure to remove pin/password and logout of google accounts.
- 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.
- Download the custom rom.zip.
- 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.
- Make sure you are using the latest platform tools for running adb/fastboot commands.
- Get the boot, init_boot, vendor_boot and recovery.img (& super_empty for Ace5 users - here) from the dumped img files.
- Connect to PC.
- Reboot to Fastboot - Press Both Power_button_key + Vol_down_key
- Flash the following partitions one by one:
fastboot flash boot boot.imgfastboot flash vendor_boot vendor_boot.imgfastboot flash init_boot init_boot.imgfastboot flash recovery recovery.imgfastboot wipe-super super_empty.img- Reboot to recovery using "fastboot reboot recovery"
- Select Wipe Data/factory Reset & Confirm
- Select 'apply Update' From Adb and execute
adb sideload And then <drag-&-drop-rom.zip> on the cmd window.
- Select Wipe Data/factory Reset & Confirm
- After Installation Complete, Reboot to System.
-
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

- Connect the phone in the fastboot mode:
adb reboot bootloader- Verify that your device is recognized in fastboot by checking for its serial number.
fastboot devices-
Open the tool and navigate to the
Firmware Unpackersection. -
Select the custom ROM zip / full stock ROM ZIP file (not an incremental update) that you want to flash.
-
In the Mode section, select Full, and then click Press to Unpack to extract the firmware.
-
After unpacking, go to the
Firmware Flashersection. -
Click on Press to Flash and carefully follow the on-screen instructions during the flashing process.
-
You should see a
Flashing Completeprompt. -
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.
-
Reboot and you are done.
- Download the fastboot ROM zip.
- Reboot into fastboot (NOT fastbootd)
- 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.imgfastboot flash vendor_boot vendor_boot.imgfastboot flash init_boot init_boot.imgfastboot flash recovery recovery.imgfastboot wipe-super super_empty.img- Flash the ROM using:
fastboot update -w <drag-&-drop-rom.zip>- The phone should reboot into the OS when the installation is done.
-
If You Get A Fastboot Flash Error: Try the fastboot update again.
-
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.
If the custom ROM supports local install, you can do that from Settings > System Update > local install.
If not,
- Reboot to recovery
- Apply update > Apply from ADB
- Open command prompt & sideload rom using command
adb sideload <drag-&-drop-rom.zip> on the cmd window.
- Reboot.