Home > Tips and Tricks

How to Backup ocdt and persist partition on OnePlus 12/12R

In this guide, we will show you the steps to backup the ocdt and persist partition on your OnePlus 12/12R. The newest addition to the OnePlus family beholds a power-packed specs sheet, tons of intriguing goodies, and some impressive features under the hood. Moreover, it houses ColorOS in China and OxygenOS in other regions of the world, though there’s hardly any differentiating factor as such.

Still, those with the ColorOS wish to break free from the shackles of the bloated OS and jump fences over to the less bloated and slightly more stable OxygenOS. But before doing so, it is highly recommended that you take a backup of the ocdt partition on your OnePlus 12/12R. If you don’t do so, then a slew of issues are on the cards, with the loss of Bootloader/Fastboot Mode being the most concerning one.

Likewise, if the persist partition gets corrupted, then the fingerprint might not work along the expected lines. So to avoid that from happening, it is highly recommended that you take a backup of both these parties beforehand. In case something goes wrong later on, you could easily restore these backed-up partitions. So on that note, let’s make you aware of the steps to get this job done right away.

How to Backup ocdt and persist on OnePlus 12/12R

backup ocdt persist oneplus 12

  1. To begin with, root your device via Magisk.
  2. Then enable USB Debugging and connect your device to PC via USB cable.ocdt oneplus 12
  3. Now download and extract Android SDK Platform Tools on your PC.
  4. Then open Command Prompt inside the platform-tools folder and type in:
    adb shell
    su

    ocdt oneplus 12

  5. You’ll get a Magisk request, tap Allow. Now execute the below command:
    dd if=/dev/block/bootdevice/by-name/ocdt of=/sdcard/Download/ocdt.img
    dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/Download/persist.img
  6. Both the ocdt and persist file will be present in the Downloads folder on your device.

That’s it. These were the steps to backup the ocdt and persist partition on your OnePlus 12/12R. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.


Share: