This guide is only for devices with working USB!
Please check the Device Support Status.
Download these files to your USB flash drive:
-
Download Windows PE (works only on SDM845)
Password:1234
-
Download dism++
-
Download Drivers
-
Download Windows 10 arm64 iso
-
Download UEFI
SDM845: Releases · edk2-porting/edk2-sdm845 · GitHub MSM8998: Releases · edk2-porting/edk2-msm8998 · GitHub
-
Download parted
-
Create a text file, you may need it to copy-paste commands on the phone
diskpart select disk 0 list part select part 17 # 17 is the number of your ESP partition assign letter=Y exit bcdedit /store Y:\efi\microsoft\boot\bcd /set {Default} testsigning on bcdedit /store Y:\efi\microsoft\boot\bcd /set {Default} nointegritychecks on shutdown -s -t 0
Some devices may need additional steps. Before you proceed, please check your device page at Devices section.
Enter TWRP Recovery on your phone and connect it to PC.
Open Command Prompt as Administrator and run:
adb push parted /sdcard/
adb shell
-
Repartition device
The following partition layout commands is example for OnePlus 6T 128GB. You may need to change the ranges for your own device or your own preferences.
!> This may damage your device if done wrong. Please use 9008 to restore your device if it becomes bricked accidentally.
WARNING: Ignore the text after the
#
, it's just a comment.cp /sdcard/parted /sbin/ && chmod 755 /sbin/parted umount /data && umount /sdcard parted /dev/block/sda rm 17 # remove userdata mkpart esp fat32 6559MB 7000MB # 441 MB mkpart pe fat32 7000MB 10000MB # 3 GB mkpart win ntfs 10000MB 70GB # 61,680 MB ( 61.68 GB ) mkpart userdata ext4 70GB 125GB # 56,320 MB ( 56.32 GB ) set 17 esp on # mark as active partition quit
-
Format new partitions
mkfs.fat -F32 -s1 /dev/block/by-name/pe mkfs.fat -F32 -s1 /dev/block/by-name/esp mkfs.ntfs -f /dev/block/by-name/win mke2fs -t ext4 /dev/block/by-name/userdata
-
Mount PE partition as
/mnt
mount /dev/block/by-name/pe /mnt
-
Connect USB flash drive to device's OTG and copy PE
cp -r /usbstorage/20h2pe_new/* /mnt
-
Reboot to system with TWRP
Try to boot Android first. If it works, Android is ok and we can proceed.
Reboot device to fastboot mode.
-
Boot UEFI
fastboot boot boot-DEVICE.img
-
Enter Windows PE
Assign Y letter to your ESP partition:
diskpart select disk 0 list part select part 17 # 17 is the number of your ESP partition assign letter=Y exit
-
Install Windows ARM64
Open dism++ and install Windows:
- Open File > Apply Image
- Select iso where that is located
- Select the
C:\
root (orD:\
ifC:\
is the PE partition), the destination disk where windows will be applied - Check
Add Boot
- Press
OK
and wait untill image applied
Install drivers:
- Select new Windows installation on top and click
Open session
- Enter
Drivers
section underControl Panel
- Click
Add
and select SDM845 Drivers folder - Wait untill drivers installed
-
Enable Test-Signing mode
bcdedit /store Y:\efi\microsoft\boot\bcd /set {Default} testsigning on bcdedit /store Y:\efi\microsoft\boot\bcd /set {Default} nointegritychecks on
-
Reboot to UEFI again, enjoy your Windows!
shutdown -s -t 0