yashsingh1/xdaforums huggingface dataset:
[Microsoft Surface Duo Guides, News, & Discussion] DaemonDant:
I made maybe more user friendly guide on the Surface duo subreddit. I can't link yet coz I'm a noob. :rolleyes:

Adaway is a system wide ad blocker and v4a is a major sound booster.
[Microsoft Surface Duo Guides, News, & Discussion] reeco:
Seen your reddit thread. Congrats on permanent root. I'm happy to post on here for you and give credit if you want?
[Microsoft Surface Duo Guides, News, & Discussion] arcanemagick:
To unroot, you could sideload restore the whole recovery image as suggested by [MENTION=2645378]AndroidFileHost[/MENTION].

I prefer to just restore the original boot image from before the magisk patch.

!!! Before writing either a magisk patched or a stock boot image:

Make sure the boot image matches the build you are currently running (Settings | About | Build number)

Make sure the boot image matches your Surface Duo variant (Unlocked vs. AT&T)

Remember, you can test a boot image to ensure it works as expected prior to making it "permanent" with:

adb reboot bootloader
fastboot boot YOUR_IMAGE_NAME_HERE.img

If you have the proper stock boot image, boot from your rooted image and write the stock image just like the magisk patched image was first written:

adb shell
su
dd of=/dev/block/by-name/boot_b if=/sdcard/boot.img
dd of=/dev/block/by-name/boot_a if=/sdcard/boot.img

Again, no promises on keeping these links alive, but here are some stock boot images if you didn't keep a backup... ;)

Stock Unlocked Variant 2020.812.86:

boot_2020.812.86.img (96 MB; SHA-1: 9604C31D8E2DE136D5175A2195BF68992F0E68BA)

Stock Unlocked Variant 2020.910.72:

boot_2020.910.72.img (96 MB; SHA-1: C9D455AAE1DBD5F85E66BB65711D91F8BEA694E7)
[Microsoft Surface Duo Guides, News, & Discussion] LocBox:
Any update on a apk or one click method for this yet? Im dying on stock but still am cautious... On my third unit.
[Microsoft Surface Duo Guides, News, & Discussion] ishockwave:
att variant

just wanted to add i followed this thread as of 11/10/2020 to unlock and root my surface duo. definitely had me confused since its been awhile for me rooting any device. but a few things that were mandatory and all 3 devices i did.

1-dev options and usb debug reboot into bootloader and unlock_critical.

2-get boot image from Microsoft support to match your build. extract payload.bin and place boot image on surface duo.

3-use magisk to patch the original boot file you placed on duo.

4-reboot into bootloader and boot magisk_patched image

5-after booted adb shell and continue to make permanent section. done.

this by no means is a guide just hopefully connects some dots. i will say anyone after reboot experiencing unresponsive ness DO NOT PANIC. i experienced it every time on each device i simply held down power button until it rebooted itself and it was like it never happened. also after the initial reboot from unlocking the bootloader if you reboot device anymore than once before booting with magisk patched image. the su or root request will not work. hope this helps in some way.
[Microsoft Surface Duo Guides, News, & Discussion] LocBox:
OP should mark that the original listed Magisk patched file is for AT&T to forewarn Unlocked users. Unlocked users need the img file from Page 12, and then extract the payload.bin and Magisk patch that.
[Microsoft Surface Duo Guides, News, & Discussion] LocBox:
when i do the adb command, it just sits at $Duo. i reset the phone and root is gone.

---------- Post added at 09:41 PM ---------- Previous post was at 08:58 PM ----------

nvm i figured it out. had to type out each line.
[Microsoft Surface Duo Guides, News, & Discussion] Rudolpht:
Is there a patched file for unlocked? Was confused from recent posts.
[Microsoft Surface Duo Guides, News, & Discussion] LocBox:
so i flashed the new november boot image and the touch input goes away? i have to revert back to fix it.
[Microsoft Surface Duo Guides, News, & Discussion] LocBox:
Mini-Guide for Monthly Security Update w/ Root

Through more of my trials and errors i figured out what was meant earlier about mismatching patched boot.imgs, which WILL cause your touch input to stop working. The cleanest way to do this all is like [MENTION=5501137]arcanemagick[/MENTION] said. Thanks Again :good:

1. Download the latest image off of Microsoft's site: https://support.microsoft.com/en-us/surfacerecoveryimage

2. Extract the boot.img out of payload.bin: https://nerdschalk.com/how-to-extract-payload-bin-from-ota-update-or-firmware/

3. Follow the flashing guide using the boot.img instead of magisk_patched.img:

adb reboot bootloader

fastboot boot boot.img

4. Place boot.img in the root of Internal SD; Make it permanent:

adb shell

su

dd of=/dev/block/by-name/boot_b if=/sdcard/boot.img

dd of=/dev/block/by-name/boot_a if=/sdcard/boot.img

5. Restart phone and run OTA update

6. Download the latest Magisk Manager. Open and hit the top install button. Select patch a file, and select your boot.img. Patch it, and it should show up in your Downloads folder renamed magisk_patched.img.

7. After it's done, run the rooting process like before this time using

magisk_patched.img:

adb reboot bootloader

fastboot boot magisk_patched.img

8. Place magisk_patched.img in the root of Internal SD; Make it permanent:

adb shell

su

dd of=/dev/block/by-name/boot_b if=/sdcard/magisk_patched.img

dd of=/dev/block/by-name/boot_a if=/sdcard/magisk_patched.img

9. Restart/ Done

*Currently running November's update with full root.

this..was..hard. :silly:
[Microsoft Surface Duo Guides, News, & Discussion] LocBox:
does anyone else keep losing Ramdisk access, thus module access in Magisk? my Ramdisk is saying No as well as Latest says N/A.
[Microsoft Surface Duo Guides, News, & Discussion] LocBox:
Do you have any idea why ramdisk access is showing no? It's rooted but i can't use magisk really. Theres no modules to pick..
[Microsoft Surface Duo Guides, News, & Discussion] arcanemagick:
I thought mine had always shown Ramdisk No.

Magisk considers that most devices fall into a particular type, from Type I to Type IV (see https://topjohnwu.github.io/Magisk/boot.html). I'm speculating here... It seems that starting with Type III devices, Magisk may not be able to tell if the kernel will load patched initramfs files. It therefore marks Ramdisk as No to suggest that a systemless root might not be possible, or the recovery image might need to be patched instead. I believe the Surface Duo would be classified as a Type IV device, but the same limitation in knowing that boot/recovery image patching will work might apply. It has been empirically found that patching the boot image does work for the Duo, so I guess we can ignore Ramdisk No.

:D

Regarding Magisk modules: I am not using any. I currently just use Magisk for root. I have used Xposed in the past, but that was before the days of Magisk. That said, I do see all the modules on the Modules page. However, if you are seeing "Latest: N/A," on the Home page, that perhaps suggests a connection problem which could also be preventing the list of online modules from loading.

:confused:
[Microsoft Surface Duo Guides, News, & Discussion] capmusicman:
Recovery Mode vs Fastboot mode

I have the factory unlocked Duo. I can get it to boot into recovery mode, but for some reason I can't get it to boot into fastboot. I've tried the reboot>>volume down+power>>release on fastboot screen, but it just boots up like normal.

What am I doing wrong? There is very little instruction on the interwebs on how to do this.
[Microsoft Surface Duo Guides, News, & Discussion] Snake55:
Do not worry guys! I was told a big update will be coming soon! Which also includes Twrp!
[Microsoft Surface Duo Guides, News, & Discussion] jimmng:
Can someone explain how to do this like I'm 2 years old please? I'm willing to try but I don't wanna screw up my device since there's no warranty cause I've imported it to Aus
[Microsoft Surface Duo Guides, News, & Discussion] gladbernard:
Can you elaborate a bit on this please, if you can?
[Microsoft Surface Duo Guides, News, & Discussion] Mike_Diesel:
View attachment 5158695This is what I was told about 15 days ago
[Microsoft Surface Duo Guides, News, & Discussion] Mike_Diesel:
I believe if we want anything any faster donating might "might" speed things up 🤗
[Microsoft Surface Duo Guides, News, & Discussion] gladbernard:
I see they released a new version of TWRP but without support for the Duo! 😒
[Microsoft Surface Duo Guides, News, & Discussion] Mike_Diesel:
I know it's a let down. I'm not sure if this Dev is even working on this anymore 🤮
[Microsoft Surface Duo Guides, News, & Discussion] dimex:
Hey all, haven't jumped in on root yet just cuz I haven't had the time. Tried the One Handed Mode XDA app and it's underwhelming. There's a few modules I want to try and AdAway.

Are there any specific modules that some of you have tried on the Duo and which ones do you like most?

I would like to try mapping double tap of recents to previous app like normal Android (no idea why MSFT disabled that, it severely slows down productivity).
[Microsoft Surface Duo Guides, News, & Discussion] loloudoudara:
Anyone successfully root the 2020.12.11 update released yesterday? I'm getting stuck at the Windows logo when attempting to boot with the magisk patched boot.img.
[Microsoft Surface Duo Guides, News, & Discussion] DaemonDant:
Same here. Had perfectly fine working root access and I patched the boot img from the newest recovery from MS's website. Reverted back to stock boot and did OTA. Every time I attempt to boot the patched img it just hangs at the MS logo. Regular boot works just fine. I'm bummed that I lost root access now.
[Microsoft Surface Duo Guides, News, & Discussion] loloudoudara:
Same exact problem. I've also tried the latest beta Magisk from Git with the Canary channels to root but it didn't work.
[Microsoft Surface Duo Guides, News, & Discussion] loloudoudara:
Finally got root working on the latest firmware 1211_85. The trick is to use MagiskManager 8.0.3 and Magisk 20.4. Easiest way I found to do so was using a custom channel that points to the correct Git commit from the developper of Magisk.

Custom Channel: https://raw.githubusercontent.com/L...5f596dc2a351270120b31b665fb561294/stable.json

In case you don't want to go through the hassle, attached is the patched boot image for my Unlocked Duo.

boot_custom_channel_1211_85_magisk_803_204.img

drive.google.com
[Microsoft Surface Duo Guides, News, & Discussion] deletemyaccount:
Thanks so much for this, was running into the issue and had no idea what was going on.
[Microsoft Surface Duo Guides, News, & Discussion] kekoslice:
Thanks for this! I usually don't login to comment on stuff like this but I wanted to let you know that you helped me out. Trying to keep the Duo root community alive!

How did you figure this out though? You might not always be around to help us out lol.
[Microsoft Surface Duo Guides, News, & Discussion] loloudoudara:
Honestly trial and error. And the fact that I'm desperate for ad blocking! I'm a software engineer and a linux kernel developer so I do have the basics for Android development.
[Microsoft Surface Duo Guides, News, & Discussion] LocBox:
In trying this method, I can't install any modules anymore. It only shows the ones already installed, then it's blank under the online section.
[Microsoft Surface Duo Guides, News, & Discussion] loloudoudara:
Bunch of questions coming your way :)

Did these modules that you're trying to instaIl work on the surface duo with the previous rooted firmware? What's an example? What error are you getting? Have you tried deleting and reinstalling all modules?

I can't speak for other modules working with Android 10 and the Surface Duo, but I have the Systemless Hosts and Boot Animation modules installed.
[Microsoft Surface Duo Guides, News, & Discussion] loloudoudara:
I'm happy to report that the latest firmware 2021_115_52 is running rooted on the unlocked surface duo.

Here is the the link to the magisk patched boot image: https://drive.google.com/file/d/1JQOB94_ig7RYhUVhIAqKu9I5Xr95kcuN/view?usp=sharing
[Microsoft Surface Duo Guides, News, & Discussion] NTchrist:
custom (old 20.4) channel? stable channel? or beta channel?
[Microsoft Surface Duo Guides, News, & Discussion] NTchrist:
judging by the name "boot_custom_channel_2021_115_52_magisk_803_204" I'm going to answer my own question and guess custom channel is still required lol.

what is your strategy for updates? are you wiping and reinstalling? booting from a pc, flashing the stock boot images back and then doing an OTA, then re-running the root process? something else?
[Microsoft Surface Duo Guides, News, & Discussion] loloudoudara:
Strategy: not wiping and reinstalling, but "booting from a pc, flashing the stock boot images back and then doing an OTA, then re-running the root process"

Here are the steps I use:

PART I: Update OTA

1. Place ORIGINAL boot.img in the root of Internal SD:

adb push boot.img /sdcard/

2. Make it permanent (you will lose root after this step so backup patched boot.img):

adb shell

su

dd if=/sdcard/boot.img of=/dev/block/by-name/boot_b

dd if=/sdcard/boot.img of=/dev/block/by-name/boot_a

3. Restart phone:

adb reboot

4. Run OTA update

5. Restart when prompted

PART II: Root

1. Download the latest image off of Microsoft's site: https://support.microsoft.com/en-us/surfacerecoveryimage

2. Extract the boot.img out of payload.bin.

3. Place boot.img in the root of Internal SD:

adb push boot.img /sdcard/

4. Download the latest Magisk Manager. Open and hit the top install button.

The trick is to use MagiskManager 8.0.3 and Magisk 20.4.

Custom Channel: https://raw.githubusercontent.com/L...5f596dc2a351270120b31b665fb561294/stable.json

Select patch a file, and select your boot.img. Patch it. It should show up in your Downloads folder renamed magisk_patched_*.img. Remember the name.

5. Move patched file to /sdcard/

adb shell

mv /sdcard/Download/magisk_patched_*.img /sdcard/magisk_patched.img

6. Copy magisk_patched.img to PC

adb pull /sdcard/magisk_patched.img .

7. Fast boot magisk_patched.img:

adb reboot bootloader

fastboot boot magisk_patched.img

8. Make magisk_patched.img permanent:

adb shell

su

dd if=/sdcard/magisk_patched.img of=/dev/block/by-name/boot_b

dd if=/sdcard/magisk_patched.img of=/dev/block/by-name/boot_a

9. Restart/ Done
[Microsoft Surface Duo Guides, News, & Discussion] NTchrist:
Yep that's exactly what I ended up doing, thanks for the sanity check! That said, I used the current version of MagiskManager, just the custom repo for the actual boot image patching. Not sure if that will matter down the line.
[Microsoft Surface Duo Guides, News, & Discussion] dj.est86:
Do you mind sending the link for actual img file of the magisk_patched boot img?

thank you in advance
[Microsoft Surface Duo Guides, News, & Discussion] LocBox:
Is there any chance we can get Canary builds to work again?
[Microsoft Surface Duo Guides, News, & Discussion] kirschdog1:
Can anyone help me I am on March unlocked and cant root. Can someone provide March patched image and also help me root my device?I tried multiple times following the instructions to no avail. I'm desperate
[Microsoft Surface Duo Guides, News, & Discussion] NTchrist:
ATT Unlocked or Factory Unlocked?
[Microsoft Surface Duo Guides, News, & Discussion] kirschdog1:
Factory Unlocked
[Microsoft Surface Duo Guides, News, & Discussion] kirschdog1:
delete
[Microsoft Surface Duo Guides, News, & Discussion] NTchrist:
I'm running the process right now on march to update mine, I'll pass on the info once I have it working
[Microsoft Surface Duo Guides, News, & Discussion] kirschdog1:
I always get stuck after patching and booting the patched boot image it always hangs on windows icon and then I have to press power and volume to get it to boot.
[Microsoft Surface Duo Guides, News, & Discussion] NTchrist:
if something goes wrong, let me know at what step
[Microsoft Surface Duo Guides, News, & Discussion] NTchrist:
the behavior you described earlier is likely caused by either

A. using a boot image for a different phone (ATT vs Unlocked or older/newer version of the boot image vs what version of the rom you're running)

B. patching with a version of magisk/magisk manager that chokes on our phone's boot image
[Microsoft Surface Duo Guides, News, & Discussion] loloudoudara:
Here is the the link to the magisk patched latest 2021_207_70 boot image for the unlocked Duo: https://drive.google.com/file/d/1NioVW4CjOYfJoJhb1Ln8DtlImeegGHcy/view?usp=sharing
[Microsoft Surface Duo Guides, News, & Discussion] Rai3:
Hello.

I'm trying to update my OTA.

Is there any way to get the original boot.img of 2020.1211.86 for the OTA update?

I've lost it.

When I applied the 2020.1211.85 magisk boot.img to the att unit, I could not boot recovery.

I want to revert to 2020.1211.86 non root so that I can use recovery.

Or is there any other way?

Sorry for my poor English.
[Microsoft Surface Duo Guides, News, & Discussion] LocBox:
Does anyone have the latest magisk patched March image? the one above still shows Feb.
[Microsoft Surface Duo Guides, News, & Discussion] LocBox:
this still comes up as Feb. you got March?
[Microsoft Surface Duo Guides, News, & Discussion] LocBox:
This thread still active?
[Microsoft Surface Duo Guides, News, & Discussion] dj.est86:
Anyone has the patched boot img for the 2021.314.91 yet?
[Microsoft Surface Duo Guides, News, & Discussion] renegadeone8:
Microsoft hasn't released the actual .zip for it yet, it still hands you the old one.
[Microsoft Surface Duo Guides, News, & Discussion] NTchrist:
Still march recovery link for me too, I'll get mine patched as soon as it releases though
[Microsoft Surface Duo Guides, News, & Discussion] dj.est86:
The 2021.314.91 just showed up
[Microsoft Surface Duo Guides, News, & Discussion] NTchrist:
woo nice! I'll get mine a choochin
[Microsoft Surface Duo Guides, News, & Discussion] dj.est86:
Could you post a patched boot?
[Microsoft Surface Duo Guides, News, & Discussion] NTchrist:
no, but I'll update the guide if I have to do anything different than last time around. if I share the image nobody but me learns anything and the community is worse off.

I'd be happy to help you troubleshoot if you get stuck though
[Microsoft Surface Duo Guides, News, & Discussion] renegadeone8:
Did you get this figured out? If not send me a PM, I can help you, I ran into the same issue.
[Microsoft Surface Duo Guides, News, & Discussion] NTchrist:
Confirming that the same methods covered in this thread successfully patch a bootable image, and that the same update process also works moving from rooted last patch to this
[Microsoft Surface Duo Guides, News, & Discussion] NTchrist:
since OP hasn't been updating the landing post, I made a new thread here https://xdaforums.com/t/root-guide-updated.4266095/
[Microsoft Surface Duo Guides, News, & Discussion] loloudoudara:
Here is the the link to the magisk patched latest 2021_314_91 boot image for the unlocked Duo: https://drive.google.com/file/d/1MPkiy__HvBhnOKAGqgq9yY-sHGKNYwFe/view?usp=sharing
[General Questions and Answers] Jhumsmt:
Hey, i messed up my phone by installing something via magisk. Now im trying to install a new rom.

When i open the phone (lenovo p2a42), i get encryption error. For able to fix that problem i have to use "fastboot format userdata" command but i get raw file system error. How can i fix this? Disk manager doesn't see the phone.

adb reboot bootloader
error: no devices/emulators found
fastboot devices
ZY223TNMLC fastboot
fastboot format userdata
(bootloader) has-slot:userdata: not found
fastboot: error: Formatting is not supported for file system with type 'raw'.

edit ok i figure it out. power button, adv setting, recovery than continued to next step, there is no need to format
[General Questions and Answers] handydandy:
You mean continue to regular boot or continue to recovery?
[Samsung Galaxy Note 20 Ultra Questions & Answers] GDHAMTON7:
May be late to the party but just found out DEX works wirelessly on laptops. Not too bad... Definitely latency issues but it works. Thought it was only for TVs
[Samsung Galaxy Note 20 Ultra Questions & Answers] BlinkThinks:
Isn't it a good thing, no? Look, Ma, no wires! :o

The Your Phone App is nifty too.
[Samsung Galaxy Note 20 Ultra Questions & Answers] GDHAMTON7:
I absolutely love it... Decluttered my desk... Well no longer have to use the tab s 5e for dex to the tv. Now it seems everything comes from the phone now. All about eliminating stuff I need to relax.
[Samsung Galaxy Note 20 Ultra Questions & Answers] GDHAMTON7:
Only thing is netflix just doesn't seem to work well
[Samsung Galaxy Note 20 Ultra Questions & Answers] alncool:
Guys, could you extract and send me the lastest APK in private please ?

Since it can handle the display wirelesssly, I'd like to try it on my Note 10 lite (with no USB-3, e.g no HDMI out).
[Samsung Galaxy Note 20 Ultra Questions & Answers] raul6:
Just downloaded it from apkmirror
[Samsung Galaxy Note 20 Ultra Questions & Answers] ekerbuddyeker:
Doesn't work on a mac
[Samsung Galaxy Note 20 Ultra Questions & Answers] edwardob:
how did you get it working wireless

thanks
[Samsung Galaxy Note 20 Ultra Questions & Answers] nipuna:
I second this question. When trying to connect via wifi, My N20U only detects TVs.
[Samsung Galaxy Note 20 Ultra Questions & Answers] GDHAMTON7:
In the bottom right of the desktop... Go to the settings... Then to connect

Projecting to this pc

Change the drop downs as listed:

1. Available everywhere

2. First time only

3. Never

Make sure dex is installed on your computer and run it (first time)

Run dex on the phone via the toggle

A notification will appear on the laptop

Click always allow...
[Samsung Galaxy Note 20 Ultra Questions & Answers] edwardob:
mines not to enthusiastic about connecting wirelessly........keeps asking to disconnect power and reconnect to pc????
[Samsung Galaxy Note 20 Ultra Questions & Answers] GDHAMTON7:
Is there a power save mode turned on? Meaning on the laptop? Or computer?
[Samsung Galaxy Note 20 Ultra Questions & Answers] inningsdefeat500:
Anyway to make it work on my Sony Braiva X950G - phone dosnt recognze it

It does work with Roku for a moment then disconnected
[Samsung Galaxy Note 20 Ultra Questions & Answers] edwardob:
I'll check it out... thanks

update ....no power save on...
[Samsung Galaxy Note 20 Ultra Questions & Answers] fjorger:
Hi GDHAMTON7,

Good evening.

I have two questions (maybe you can shed some light on)

- What app are you using on the laptop side? DEX "PC" app doesn't work wireless for me. Are you using "Connect" app? Other?

- If you are using "Connect" or other app on the PC, can you interact with the DEX screen using your Laptop (PC) mouse and keyboard? I can only use Keyboard for a few minutes, and mouse only "Bluetooth" if connected directly to the Phone itself.

I Can only do it, using the Host PC mouse and keyboard on the "wired" DEX app, or using (less complete experience) "wireless" YOURPHONE app (that crashes a lot and requires a "reset" to function again).

So currently wireless DEX (for me) is only valid on TV connections.

PC's only wired...

Thanks.

Regards.
[Samsung Galaxy Note 20 Ultra Questions & Answers] GDHAMTON7:
I am just using the dex app. I posted instructions on how to get it on the laptop. No additional apps needed.
[Samsung Galaxy Note 20 Ultra Questions & Answers] fjorger:
Hi, thanks for the quick reply.

Okay upon going thru the post history I saw it (post 10), but that uses\calls "Connect" app, not the Samsung DEX app (which states it requires Wired USB connection).

And the same (only PC keyboard is allowed, not Mouse), if we want any mouse control we must either connect a mouse directly to the phone, or use the phone itself as a mouse trackpad.

I think this is a Windows limitation, because while using the same "Wireless DEX" feature on 3 different TV's:

Sony (Android)

LG (WebOS)

Samsung

I'm able to control the touch/mouse within DEX, using any TV built in Air mouse, no issues at all.

Are you able to use your Mobile PC mouse on the "Projection" image coming from (Phone) DEX to the PC (Connect)?

Thanks again,

Regards,