
Here's how to run Dex locally on your Galaxy device or remotely on your computer (like the old DeX for PC)
I keep seeing posts about this "coming soon" project that lets you run Dex locally on your device.
Well, I got tired of waiting and wanted to see if I could figure out a method myself. Turns out it's not too hard. As a side effect, I found you can also get the functionality of DeX for PC back. I also got window management working, which apparently doesn't work yet in this other app we keep hearing about.
How does it work? Long story short you create a virtual display with a large enough resolution that OneUI runs Dex on it, then you connect to it through scrcpy. There's a bit more to it than that and I've covered everything in a technical breakdown in the repo.
If you just want to try it out, I published by proof of concept code and an apk you can install here: https://github.com/sam1am/localdex
This is tested on a Fold 8, but should work on any recent Samsung device and maybe older ones. I think it will also probably work on any other Android devices that support desktop mode.