I own a xiaomi phone for 2 years on which i flashed several roms and vendors via twrp. When i lately wanted to go back to stock (more accurate the stock rom the phone was released with, miui 10 pie) i had to discover that there are partitions like persistent which aren't replaced when clean flashing roms even tough i do a fastboot flash with Mi tool.
My persistnet got corrupted (sensors like gyroscope is broken) at this process and i found already a few tips how to solve it.
But my real question is, how do i completely restore my phone as i would unbox it ? With all the stuff like persistent and what ever is untouched by clean flashing roms and can get corrupted (and may you can tell me what remains untouched and it is used for/worth restoring).
adb pull
first – alecxs Feb 11 '22 at 15:22