Skip to content

Latest commit

 

History

History
85 lines (51 loc) · 2.44 KB

1-partition.md

File metadata and controls

85 lines (51 loc) · 2.44 KB

Windows 11 running on polaris

Running Windows on the Xiaomi Mix 2s

Partitioning your device

Prerequisites

Notes

Warning

DO NOT REBOOT YOUR PHONE! If you think you made a mistake, ask for help in the Telegram chat.

Do not run all commands at once, execute them in order!

Opening CMD as an admin

Download platform-tools and extract the folder somewhere, then open CMD as an administrator.

It is recommended to keep this window open and use it throughout the entire guide.

Replace path\to\platform-tools with the actual path to the platform-tools folder, for example C:\platform-tools.

cd path\to\platform-tools

Flash the modded OFOX recovery

Open a CMD window inside the platform-tools folder, then (while your phone is in fastboot mode) run the following command, replacing path\to\ofox.img with the actual path of the image

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

Backing up important files

This will back up fsc, fsg, modemst1 and modemst2 to the current path your CMD is opened in (for example C:\platform-tools). Confirm these files are actually there before proceeding.

Keep these backups in a safe place. If your device's software ever gets destroyed, you might need these backups or your phone could lose cellular capabilities.

If you've got anything else you want to back up, do this now. Your Android data will be erased in the next steps.

cmd /c "for %i in (fsg,fsc,modemst1,modemst2) do (adb shell dd if=/dev/block/by-name/%i of=/tmp/%i.bin & adb pull /tmp/%i.bin)"

Backing up your boot image

This will back up your boot image in the current directory

adb pull /dev/block/by-name/boot boot.img

Run the partitioning script

Replace $ with the amount of storage you want Windows to have (do not add GB, just write the number)

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

adb shell partition $

Check if Android still starts

  • Just restart the phone, and see if Android still works