Backup and restore persist on K20 Pro and 9T Pro

Backup and restore persist on K20 Pro and 9T Pro

William Feng

NOTE:

Backing up your persist partition via built-in nandroid backup/restore function of your custom recovery (such as OrangeFox or some TWRP recoveries) is not recommended as it might tamper certain things like the persist context, or even your widevine L1 certification if you have an Redmi K20 Pro Indian variant or any variant of Mi 9T Pro. So it is better to go for the following backup & restore methods.

**************************************

***Backup***

  • If your phone is rooted, you can download a terminal app from Play store, then type these two commands:

su
dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/persist.img


  • Otherwise if your phone is NOT rooted, go to your recovery, built-in terminal and just type this below:

dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/persist.img

  • After backing up persist image, save it to your PC or any cloud storage or elsewhere in case your persist partition gets corrupted, keep it safe!


***Restore***

  • Place your persist image backup in the internal storage (also known as '/sdcard' folder).
  • If rooted, use terminal app and type these two commands:

su

dd if=/sdcard/persist.img of=/dev/block/bootdevice/by-name/persist

  • Reboot your phone.


  • If not rooted, go to your recovery, built-in terminal and just type this command:

dd if=/sdcard/persist.img of=/dev/block/bootdevice/by-name/persist

Report Page