[HowTo] Install Recovery image


To decrypt, you just need to turn off the screen lock.
Or install a recovery that can do it. I don't have this device to tell which one it is.
I have tried 3 different recoveries, twrp, pbrp, and orange fox. None work, i also turned off my screen lock
 
Xiaomi 12T Pro diting here.
always used: "fastboot boot [BOOT]3.7.0_12-RedmiK50Ultra-Xiaomi12TPro_v6.6_A13-diting-skkk.img"

Now got the official update to HypeOS via OTA, installed it, twrp gone of course.

Tried to boot A14 from here: https://sourceforge.net/projects/recovery-for-xiaomi-devices/files/diting/
stupid me, should have used fastboot flash recovery_ab instead of boot.

Now I'm stuck at the bootloader :/
tried
fastboot erase misc
fastboot set_active a
still no luck.
What am I doing wrong?

fastboot erase misc
Erasing 'misc' OKAY [ 0.016s]
Finished. Total time: 0.021s

fastboot set_active a
Setting current slot to 'a' OKAY [ 0.000s]
Finished. Total time: 0.022s

fastboot flash recovery_ab recovery.img
Warning: skip copying recovery_ab image avb footer (recovery_ab partition size: 0, recovery_ab image size: 104857600).
Sending 'recovery_ab' (102400 KB) OKAY [ 3.402s]
Writing 'recovery_ab' (bootloader) Partition recovery_a flashed successfully
(bootloader) Partition recovery_b flashed successfully
OKAY [ 0.802s]
Finished. Total time: 4.238s

fastboot reboot recovery
Rebooting into recovery OKAY [ 0.013s]
Finished. Total time: 0.015s

Still, stuck in bootloader
Also tried to reboot after set_active a and before flash recovery_ab but doesn't change anything.

Tried all 3 different versions:
twrp-3.7.0_12-v8.2_A14-diting-skkk.img
twrp-3.7.1_12-v8.6_A14-diting-skkk.img
img extracted from OrangeFox-R12.1-Unofficial-diting.zip

When trying an older fastboot version, I don't get the avb footer warning
fastboot flash recovery_ab recovery.img
Sending 'recovery_ab' (102400 KB) OKAY [ 3.302s]
Writing 'recovery_ab' (bootloader) Partition recovery_a flashed successfully
(bootloader) Partition recovery_b flashed successfully
OKAY [ 1.513s]
Finished. Total time: 4.892s




(bootloader) has-slot:modem:yes
(bootloader) has-slot:system:no
(bootloader) current-slot:a
(bootloader) has-slot:boot:yes
(bootloader) slot-retry-count:b:6
(bootloader) slot-unbootable:b:yes
(bootloader) slot-successful:b:yes
(bootloader) slot-retry-count:a:7
(bootloader) slot-unbootable:a:yes
(bootloader) slot-successful:a:no
(bootloader) slot-count:2

!!Thanks a lot for any help in advance!!
UPDATE:

after a lot of trying around, I found a solution here: https://www.xda-developers.com/how-...ess-updates-affect-custom-development-on-xda/
after flashing the recovery, I needed to do:
fastboot set_active other
Then I was able to boot to system again and to recovery B
I had the recovery "OrangeFox-R12.1-Unofficial-diting.zip" from here https://sourceforge.net/projects/recovery-for-xiaomi-devices/files/diting/ flashed, I was able to boot into the recovery partition again, but the touchscreen was not working at all in the recovery.

I then switched back to A with 'fastboot set_active other' and flashed: twrp-3.7.1_12-v8.6_A14-diting-skkk.img

Don't ask me why, but by switching from A to B and back from B to A fixed the issue.
 
Last edited:
Guide says:

Boot and install TWRP / ROM on A/B device
- type "fastboot.exe boot twrp.img" (without "")

Yet, orangefox for garnet (A/B device), says :

You cannot use "fastboot boot". Do NOT even try it. If you try it, you will only brick your device. You have been warned! To flash the recovery image, run "fastboot flash recovery recovery.img"; and after booting into OrangeFox
Is the guide outdated?
 
A/B devices are divided into devices with a dedicated recovery partition and devices without a dedicated partition.
You entered the wrong command. Your device is "A/B rec"

If you have already entered the "fastboot boot" command, you must enter these commands:
Code:
fastboot erase misc
fastboot set_active a

Then install TWRP with the command:
Code:
fastboot flash recovery_ab filename.img
fastboot reboot recovery

 
Last edited:
  • Like
Reactions: lidicoxe