[Xiaomi Pad 6] cmz6996:
Credits to https://www.youtube.com/@6adp478 and the UEFI Porting Team for making this possible!

THIS TUTORIAL WILL NOT WORK ON Pad 6 Pro or Max

Computer running windows

DISM++ : https://github.com/Chuyu-Team/Dism-Multi-language/releases/tag/v10.1.1002.2

Windows 11 ARM Iso : https://massgrave.dev/windows_arm_links.html

TWRP : https://mega.nz/file/UUAlnaKC#1I9IZPzLOpZSCdOz3OXRkaMOcqCd7vV4mDODanrCq-I

EFI : https://mega.nz/file/8RoH1AQL#uxoZIbFoNaQBV27XrFbkpaUEyamhn_M6cFwh2ar26qM

USB Stick for Linux (ubuntu is advised)

Unlocked Pad 6 with USB Debugging Enabled

Find out which storage slot your android is on

while in fastboot do:

fastboot getvar current-slot

if it output is a, your windows os will be set to slot b and vice versa.

USB POWER HAS BEEN FIXED​

View attachment 6047787

Windows only uses 4 GB of Ram

Sleep Mode doesn't work, Disable it

⚠️ In this Section of the Guide you can easly brick your Device!

Spoiler content hidden.

Spoiler content hidden.

Go back to windows

Reboot into recovery :

adb reboot recovery

or using the combinations

adb shell
setenforce 0
msc.sh

Now you will see a new drive, that will be the xiaomi windows partition (yours should be empty, I already have windows installed)

View attachment 6047728

Open DISM++

Click on File > Apply Image

Extract the Windows ISO, you will see 2 browse buttons, first will be the install.wim from your iso file, the 2nd will be the drive you wish to install it to so

Browse 1 : ISO/sources/install.wim

Browse 2 : Xiaomi Windows Drive

This is how it should look like :

Press ok and wait for windows to be installed to the drive

Once its installed open cmd then type diskpart

Type list disk

View attachment 6047736

In my case its Disk 2 so ill type in

sel disk 2

[THIS MIGHT BE DIFFERENT SO DONT COPY THE EXACT NUMBERS]

then type

list part

View attachment 6047737

Look for the partition with 512mb and select that, in my case its partition 35 so i will run this :

sel part 35

[THIS MIGHT BE DIFFERENT SO DONT COPY THE EXACT NUMBERS]

Then we will assign this partition a letter

assign letter y

Now in explorer you will see a new drive with the letter Y:

View attachment 6047738

Open a CMD Prompt with admin permissions and run these commands :

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

(in my case D is Xiaomi's windows and Y is xiaomis EFI)

bcdedit /store Y:\EFI\Microsoft\BOOT\BCD /set {default} testsigning on

now open the Registry Editor

click on HKEY_LOCAL_MACHINE

Press on File and select Load Hive..

Go to Xiaomi Drive:\Windows\System32\config\SYSTEM

View attachment 6047739

name the key whatever you want, then open the folder, After that go to :

ControlSet001\Control\USB

Double Click OsDefaultRoleSwitchMode

Set the Value from 6 to 1

Click on the hive folder and File > Unload Hive..

Now go into fastboot :

adb reboot bootloader

or via keys

Change the slot to your non-android one, in my case its b so i will run this comand :

fastboot set_active b

then we will flash the QCom recovery and reboot the system :

fastboot flash boot Mu-pipa.img
fastboot reboot

Since you have no networking, oobe wont let you pass and you will need to bypass it.

go into android recovery

while in fastboot

fastboot set_active a (or b if a is your windows slot)
fastboot reboot recovery
adb shell
setenforce 0
msc.sh

Open Regedit on your PC

Load the Hive Xiaomi Drive:\Windows\System32\config\SOFTWARE and NOT SYSTEM (if it asks for a key put pipa)

then look for Microsoft\Windows\CurrentVersion\OOBE

Set DefaultAccountAction and LaunchUserOOBE 0

Go into Policies\Microsoft\Windows

Create a new key called OOBE

Create a new DWORD called DisablePrivacyExperience and set it to 1

Unload the hive by clicking on the pipa folder and then File >> Unload Hive..

Go into Xiaomi's System32 folder

Find sethc.exe

Right click on it and click properties

Then select security

After that press advanced

At the owner it should say TrustedInstaller, click on change

Then at the enter the object name, put in your user account name

Press Ok

After that press apply and ok

In the security tab click on edit

Click on the group called Users

Then tick full control and apply

Delete sethc.exe and throw in this file (its just a cmd prompt) : https://mega.nz/file/NAp3GSwB#Xnoz-5iBeUNLwbg5CkEX0Lzk6mFaSLMSwrR3M0MLqgI

Now start windows up

Once in the logon menu

Press shift 5 times and youll see the command prompt come out

Type in

net user defaultuser0

Then type

net user defaultuser0 *

and press enter twice

Restart again and you're done!

You've successfully installed windows now. Ill mention this again touchscreen isnt supported and you need to find a proper usb hub to be able to use a mouse, not every usb hub will work.

USB Power has been fixed, since the touchscreen doesnt work, you will need to use an adapter to get ur keyboard/mouse working.

If you want to switch back to android, shutdown the tab, then open fastboot and activate your other slot (in my case its a)

fastboot set_active a

If you mess up somewhere, and want to go back to 0, set the active slot to your android one in fastboot, then go in the twrp recovery, run the following commands :

adb shell
setenforce 0
msc.sh

then go in gparted, erase windows, esp and userdata, remake userdata with partition type ext4 and throw in all the storage, then flash the stock xiaomi firmware :https://xiaomifirmwareupdater.com/miui/pipa/