Unlocking Bootloader/ Magisk Attempt

Perseu5

Member
Apr 14, 2016
16
0
0
MAGISK FULL GUIDE (APK for install and other mods coming soon!)

The bootloader unlock is pretty similar to any other phone.
Go to settings>about> click on build number until developer options are enabled. Go back and select system>Developer Options. Make sure to enable OEM unlocking.
(On PC) "adb reboot bootloader", "fastboot flashing unlock_critical", use volume to select unlock. THIS WILL ERASE ALL CONTENT ON YOUR DEVICE.

IF YOU DONT WANT TO DO THIS FROM SCRATCH, SKIP TO PART 2
Go to https://support.microsoft.com/en-us/surfacerecoveryimage
Select Surface Duo from the drop down
Enter your serial number and download the file
Extract the firmware .zip
Extract the Payload file
Moved bootloader to root
Installed Magisk Manager apk and patched bootloader image
Attempted to flash which resulted in "cannot write to partition_b"

PART 2:
download the patched magisk_boot.img from here https://drive.google.com/file/d/1-7NWj8_jFH8AtpTTpXITOv1eh-wo7xlz/view?usp=sharing
adb reboot bootloader
fastboot boot magisk_patched.img

PART 3 - All right, lets make it permanent!
Place magisk_patched.img on your sd root

adb shell
su
cd /dev/block/by-name/
chmod 777 boot_a
chmod 777 boot_b

DEV=$(ls /dev/block/by-name/boot_b); echo $DEV
dd of=$DEV if=/sdcard/magisk_patched.img
DEV=$(ls /dev/block/by-name/boot_a); echo $DEV
dd of=$DEV if=/sdcard/magisk_patched.img

Reboot and we are good!
I am working on an app to streamline the process as well as provide additional mods and addons to the device. I hope to have something for you guys by the end of the week.
I do plan on streaming some of this stuff (twitch.tv/goingh0st), and am working on a section of my discord for the same thing (World of Gh0st)

https://www.patreon.com/GoinGh0st

Thank you for your support and I cant wait to get more stuff to you guys!
 
Last edited:

bxmoney181

Senior Member
Feb 5, 2011
123
42
0
Bronx, NY
The bootloader unlock is pretty similar to any other phone. Go to settings>about> click on build number until developer options are enabled. Select oem bootloader unlocking. Adb reboot bootloader, fastboot flashing unlock, use volume to select unlock. This will erase all content on your device.



Go to https://support.microsoft.com/en-us/surfacerecoveryimage

Select Surface Duo from the drop down

Enter your serial number and download the file



Extract the firmware .zip

Extract the Payload file

Moved bootloader to root

Installed Magisk and patched bootloader image

Attempted to flash which resulted in "cannot write to partition_b"

Attempted to boot the patched boot image which resulted in a bootloop.



Out of town for the time being but will be attempting something different when I get back in a day or so.
I tried the same and I had the same issue. Seems the the boot partitions, both a and b, are not writable or erasable even with the bootloader unlocked.

I even went as far as unlocking critical and still the same issue.


Sent from my Surface Duo using Tapatalk
 

Perseu5

Member
Apr 14, 2016
16
0
0
I'll be back in town tonight, I was in fact using a c to c cable so hopefully a a to c cable will work. Should be back by 8 and will attempt it then!
 

Perseu5

Member
Apr 14, 2016
16
0
0
Just tried with a to c cable with same result unfortunately. Sending successfully, writing boot_b gives flashing not allowed to this partition. Also did a critical unlock and verified with fastboot oem device-info
 
Last edited:

bxmoney181

Senior Member
Feb 5, 2011
123
42
0
Bronx, NY
I'm not sure with anything about unlocking and rooting (noob atm) but i noticed in developer settings that the default USB configuration is set to "No data transfer"

Is that by any chance causing the write issues?
Nah that's not it. I was once that's there too lol. Keep reading and keep learning.

Sent from my Surface Duo using Tapatalk