Modified TWRP:
File Name | Android version |
---|---|
twrp-3.7.1_vap.img | Android 12/12.1/13/14/15 |
If your recovery has been replaced by the stock recovery, flash it again using
fastboot flash recovery path\to\moddedtwrp.img reboot recovery
If it asks you to run it once again, do so
adb shell msc
Warning
DO NOT ERASE, CREATE OR OTHERWISE MODIFY ANY PARTITION WHILE IN DISKPART!!!! THIS CAN ERASE ALL OF YOUR UFS OR PREVENT YOU FROM BOOTING TO FASTBOOT!!!! THIS MEANS THAT YOUR DEVICE WILL BE PERMANENTLY BRICKED WITH NO SOLUTION! (except for taking the device to Xiaomi or flashing it with EDL, both of which will likely cost money)
diskpart
Use
list volume
to find it, replace$
with the actual number of WINVAYU
select volume $
assign letter x
Use
list volume
to find it, replace$
with the actual number of ESPVAYU
select volume $
assign letter y
exit
Important
For performance reasons, it is recommended to use Windows 11 24H2 (builds that start with 261XX, such as 26100.2454)
Replace
path\to\install.esd
with the actual path of install.esd (it may also be named install.wim or 22631.2861.XXXXXXX.esd)
dism /apply-image /ImageFile:path\to\install.esd /index:6 /ApplyDir:X:\
If you get
Error 87
, check the index of your image withdism /get-imageinfo /ImageFile:path\to\install.esd
, then replaceindex:6
with the actual index number of Windows 11 Pro in your image
- Unpack the driver archive, then open the
OfflineUpdater.cmd
file
If it asks you to enter a letter, enter the drive letter of WINVAYU (which should be X), then press enter
If any error shows up, such as "Failure when attempting to copy boot files", open
diskpart
again and assign any new letter to ESPVAYU, then replace the letterY
in the next command with the letter that you just added.
bcdboot X:\Windows /s Y: /f UEFI
If this does not work, ignore it and skip to the next command. This phantom drive will disappear the next time you reboot your PC.
mountvol y: /d
adb reboot bootloader
Replace
path\to\vayu-uefi.img
with the actual path of the UEFI image
fastboot boot path\to\vayu-uefi.img
Your device should reboot by itself after +- 10 minutes of waiting, after which you will be booted into Android, for the last step.