Skip to content

Latest commit

 

History

History
127 lines (88 loc) · 3.28 KB

2-install.md

File metadata and controls

127 lines (88 loc) · 3.28 KB

Installing Windows on your POCO X3 Pro

Files/Tools Needed

Modified TWRP:

File Name Android version
twrp-3.7.1_vap.img Android 12/12.1/13/14/15

Boot into TWRP

If your recovery has been replaced by the stock recovery, flash it again using

fastboot flash recovery path\to\moddedtwrp.img reboot recovery

Execute the msc script

If it asks you to run it once again, do so

adb shell msc

Diskpart

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

Select the Windows volume of the phone

Use list volume to find it, replace $ with the actual number of WINVAYU

select volume $

Assign the letter X

assign letter x

Select the ESP volume of the phone

Use list volume to find it, replace $ with the actual number of ESPVAYU

select volume $

Assign the letter Y

assign letter y

Exit diskpart

exit

Installing Windows

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 with dism /get-imageinfo /ImageFile:path\to\install.esd, then replace index:6 with the actual index number of Windows 11 Pro in your image

Installing Drivers

  • 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

Create Windows bootloader files

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 letter Y in the next command with the letter that you just added.

bcdboot X:\Windows /s Y: /f UEFI

Remove the drive letter for ESP

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

Reboot to fastboot

adb reboot bootloader

Boot into the UEFI

Replace path\to\vayu-uefi.img with the actual path of the UEFI image

fastboot boot path\to\vayu-uefi.img

Reboot to Android

Your device should reboot by itself after +- 10 minutes of waiting, after which you will be booted into Android, for the last step.