redispade / device_xiaomi_grus-twrp

TWRP device tree for Xiaomi Mi 9 SE(treble)
55 stars 7 forks source link

bootloop #6

Open nvtoroy opened 2 years ago

nvtoroy commented 2 years ago

Hello. After flashing twrp-3.4.0-2grus.img and vbmeta.img mi9 is in bootloop. Is it possible to fix? there is a possibility that Fix Contexts also was applied

zdunex25 commented 2 years ago

If you do not care about your data and internal storage Format data > YES will make it bootable again.

nvtoroy commented 2 years ago

If you do not care about your data and internal storage Format data > YES will make it bootable again.

I do care about it, this is the main problem =)

zdunex25 commented 2 years ago

Ok. What command did you use to flash vbmeta.img and which android version you use?

nvtoroy commented 2 years ago

Ok. What command did you use to flash vbmeta.img and which android version you use?

I used

fastboot flash recovery vbmeta.img Android 11 I believe.. MIUI 12.5.1

in fact i have found the solution how to "unbrick" it - I downloaded the same original FW from Xiaomi website, unpacked it and flashed using MiFlash 2022 with dot checked "save user data". Flashing process finished with Failure, BUT after that phone has loaded correctly, as usual and started to work properly.

so now I know how to fix it after wrong flashing twrp, but I don't know still how to install twrp correctly in a way when phone will load correctly after flashing twrp.

What I did:

  1. start phone in fastboot mode,
  2. connect to PC
  3. run fastboot.exe flash recovery twrp-3.4.0-2grus.img
  4. this step I've tried in different ways: 4.1.1. run fastboot boot twrp-3.4.0-2grus.img 4.1.2. when twrp starts go to menu reboot -> reboot to recovery 4.1.3. after rebooting to twrp recovery -> reboot to system 4.1.4. failure. system doesn't start, bootloop at MI icon --alternative way-- 4.2.1. rebooting phone using volume up+power buttons 4.2.2. - 4.2.4 are the same as previous ones

so now I don't have a problem with loop-loading to stock recovery instead of going to twrp so I don't use vbmeta.img. Now I can't load to system after flashing twrp until I flash stock as described before.

zdunex25 commented 2 years ago

You used wrong command to flash vbmeta.img, this one would save you a lot of time and trouble: fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

To fully fix partitions (after executing command above) you should boot anyway you can, do full backup then: fastboot flash recovery twrp.img fastboot boot twrp.img Reboot to recovery > Format data: YES Restore your data and you are good to go.