How to clone a rooted device


msssm

Members
Sep 18, 2021
61
20
Hi, I need to send the Mi 11 Ultra to a service station because of Ghost-touch-issues.
How can I make a full clone of it? With TWRP I already backuped system, data and boot. I also need the boot because that was patched for root.
There is still missing /data/media, would I just do adb pull on that? Or can I make an image of it to be sure that permissions and stuff is identical?

What else would be required for the case I need to restore all on a new (identical) device for the case the service is not successful?
 
Now I received a different device back. I unlocked it, have TWRP installed and installed the same xiaomi.eu version that my old device had.
Can I just restore the "data" backup by TWRP? My previous device was crypted, will I get the same crypted data partition afterwards?