Do not create partitions from mass storage mode (because ABL will Broken due to spaces/spaces in name)
This will wipe all your Android data
We are not responsible for any damage caused to your phone responsibility. By following this tutorial, you agree to take full responsibility for your actions. We've done some testing, but this is an early preview and issues may arise.
This has not been tested on 256GB devices. This tutorial is for 128GB devices only.
Please read and make sure you understand the entire tutorial before starting
You will end up using both Android and Windows on Duo. Both Android and Windows will split 128GB RAM (64GB and 64GB)
Android will boot normally, you have to boot Windows using PC if needed.
Assuming your Duo boots to Android and plugs into your PC:
adb reboot bootloader
fastboot flashing unlock
fastboot boot twrp.img
adb push /sdcard/adb shell "cp /sdcard/parted /sbin/ && chmod 755 /sbin/parted"adb shell
parted /dev/block/sdaprint
rm 6mkpart esp fat32 51.9MB 180MBmkpart win ntfs 180MB 57344MBmkpart userdata ext4 57344MB 112GBset 6 esp onquit
This will get you out of the breakup.
We deleted the 6th partition, the Android userdata partition, and created 3 partitions: an esp partition containing Windows startup files, a win partition containing Windows, and the last one is the new userdata partition of Android. Just smaller. Now let's make them actually usable:
mkfs.fat -F32 -s1 /dev/block/sda6mkfs.ntfs -f /dev/block/sda7mke2fs -t ext4 /dev/block/sda8mkdir /sdcard/espmnt && mount /dev/block/sda6 /sdcard/espmnt/quit
adb push /sdcard/adb shell "tar -xf /sdcard/DuoBoot.tar -C /sdcard/espmnt"adb shell "mv /sdcard/espmnt/Windows/System32/Boot/ffuloader.efi /sdcard/espmnt/Windows/System32/Boot/ffuloader.efi.bak"adb shell "cp /sdcard/espmnt/Windows/System32/Boot/developermenu.efi /sdcard/espmnt/Windows/System32/Boot/ffuloader.efi"adb reboot bootloader
You will be returned to the Duo's bootloader.
Let’s boot custom UEFI:
fastboot boot boot.img
You will need to perform the above steps every time you want to boot Windows.
You should be thrown into the developer menu.
THESE ARE NOT ALL COMMANDS. DISKPART COMMANDS VARY A LOT, SO THESE ARE SOME ROUGH INSTRUCTIONS. ACTUAL COMMANDS START WITH AN HASHTAG (which you'll need to remove)# list diskFind the Duo Disk, and take note of the number.# select disk # list partitionYou'll be able to recognize the partitions we made earlier by their size. take note of the ESP and WIN partition numbers.# select partition # assign letter=Y:# select partition # assign letter=X:
Warning: We assume that X: is the Win partition and Y: is the ESP partition for the next command. Replace them properly or you will lose data on your PC.
dism /apply-image /ImageFile:"" /index:1 /ApplyDir:X:\
This will take some time.
bcdboot X:\Windows /s Y: /f UEFI
Windows is now installed, but there are no drivers.
dism /image:X:\ /add-driver /driver:"" /recurse
We are ready to launch!
From the command prompt:
fastboot boot boot.img
If you did everything right, Windows will now boot! enjoy!
Still assuming that X: is the installed Duo Windows partition:
reg load RTS X:\Windows\System32\config\SYSTEM
Now open regedit.exe and edit this registry key:
HKEY_LOCAL_MACHINE\RTS\ControlSet001\Control\USBOsDefaultRoleSwitchMode
Set the key to value 1 and you are done.
The above is the detailed content of Methods and tutorials to install Windows 11 on Surface Duo (128GB) (software included). For more information, please follow other related articles on the PHP Chinese website!