1

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).

Robert
  • 20,025
  • 6
  • 47
  • 66
  • restore your backup – alecxs Feb 10 '22 at 21:45
  • I dont have a backup as it isnt a new phone, but used one unluckily and i have instantly flashed a custom on it. – user5441400 Feb 11 '22 at 07:41
  • simple answer one can't restore partitions that neither included in firmware/ROM nor in backup – alecxs Feb 11 '22 at 08:16
  • @alecxs do does partitions which arent included in rom change when the user uses his phone ? Btw i have found a lot of stuff which is included in rom but not flashed like ifaa.img, persist.img, dummy.img, hypvm.mbn ... – user5441400 Feb 11 '22 at 11:59
  • on stock android most partitions are read-only + protected by locked bootloader – alecxs Feb 11 '22 at 15:14
  • very good explanation of android partitions on xda-developers https://android.stackexchange.com/questions/215683/trying-to-understand-the-options-in-twrp-backup#comment276228_215683 – alecxs Feb 11 '22 at 15:15
  • open that partition image files with HxD hex editor and take a look inside. if you feel that should be flashed onto device you can try 'adb push /dev/block/bootdevice/by-name/' or copy file to MicroSD Card and from within shell 'dd if=file of=/dev/block/bootdevice/by-name/' but do backup with adb pull first – alecxs Feb 11 '22 at 15:22

0 Answers0