Before handing in my OnePlus 6T for repair, I want to create a full system backup and reset the phone to factory defaults. Afterwards, I want to restore the original state. My phone is rooted with Magisk.
How do I do a full system backup?
Note that this is different from a backup as part of migration to a new phone or a partial backup as part of fixing software issues.