<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: yongtingzhengcn-web</title>
    <description>The latest articles on DEV Community by yongtingzhengcn-web (@yongtingzhengcnweb).</description>
    <link>https://dev.to/yongtingzhengcnweb</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4046317%2F5ea76591-d771-4012-9a2c-6cc99db3a6fe.png</url>
      <title>DEV Community: yongtingzhengcn-web</title>
      <link>https://dev.to/yongtingzhengcnweb</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yongtingzhengcnweb"/>
    <language>en</language>
    <item>
      <title>How to Run Samsung DeX on a Mac (One UI 8, No Monitor Needed)</title>
      <dc:creator>yongtingzhengcn-web</dc:creator>
      <pubDate>Sat, 25 Jul 2026 04:02:50 +0000</pubDate>
      <link>https://dev.to/yongtingzhengcnweb/how-to-run-samsung-dex-on-a-mac-one-ui-8-no-monitor-needed-300b</link>
      <guid>https://dev.to/yongtingzhengcnweb/how-to-run-samsung-dex-on-a-mac-one-ui-8-no-monitor-needed-300b</guid>
      <description>&lt;p&gt;Samsung quietly discontinued the official &lt;strong&gt;Samsung DeX&lt;/strong&gt; app for Windows and Mac, and for a while the only way to get the DeX desktop was to plug your Galaxy phone into a real monitor. That changed with &lt;strong&gt;One UI 8 (Android 16)&lt;/strong&gt;: DeX is now built on Android's native Desktop Mode, which can run on a &lt;strong&gt;virtual display&lt;/strong&gt; — and that means you can put the whole DeX desktop in a window on your Mac, with nothing but a USB cable (or even just WiFi).&lt;/p&gt;

&lt;p&gt;This guide shows you how, start to finish. It takes about ten minutes, uses only free and open-source tools, and needs &lt;strong&gt;no external monitor, no HDMI cable, and no HDMI dummy plug&lt;/strong&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; — Install &lt;code&gt;scrcpy&lt;/code&gt; + &lt;code&gt;adb&lt;/code&gt;, enable USB debugging on your Galaxy phone, and run &lt;code&gt;scrcpy --new-display=1920x1080/160&lt;/code&gt;. The DeX desktop opens in a Mac window. Prefer a one-click menu-bar app? Use &lt;a href="https://github.com/yongtingzhengcn-web/dex-for-mac" rel="noopener noreferrer"&gt;DeXBar&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A &lt;strong&gt;Samsung Galaxy phone or tablet running One UI 8 (Android 16) or newer&lt;/strong&gt;. This is the key requirement — older One UI versions can't render DeX on a virtual display, so this method simply won't work on them.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;Mac&lt;/strong&gt; (Apple Silicon or Intel), macOS 13 or later.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;USB cable&lt;/strong&gt; (used at least once; wireless is possible afterward).&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://brew.sh" rel="noopener noreferrer"&gt;&lt;strong&gt;Homebrew&lt;/strong&gt;&lt;/a&gt;, the macOS package manager.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why this works now (the short version)
&lt;/h2&gt;

&lt;p&gt;DeX used to require a physical HDMI/DisplayPort connection because Android only entered desktop mode when it detected an external screen. Android 16's Desktop Mode added support for &lt;strong&gt;virtual displays&lt;/strong&gt; — displays that exist only in software. The open-source tool &lt;a href="https://github.com/Genymobile/scrcpy" rel="noopener noreferrer"&gt;&lt;strong&gt;scrcpy&lt;/strong&gt;&lt;/a&gt; (v4.1+) can create one of these virtual displays on demand and mirror it to your computer. One UI 8's DeX renders onto that virtual display, and you see it in a window on your Mac. No hardware trickery required.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1 — Install scrcpy and adb
&lt;/h2&gt;

&lt;p&gt;Open &lt;strong&gt;Terminal&lt;/strong&gt; and run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;brew &lt;span class="nb"&gt;install &lt;/span&gt;scrcpy
brew &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;--cask&lt;/span&gt; android-platform-tools
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;scrcpy&lt;/code&gt; does the mirroring; &lt;code&gt;adb&lt;/code&gt; (Android Debug Bridge) is how your Mac talks to the phone.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2 — Enable USB debugging on your phone
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Go to &lt;strong&gt;Settings → About phone&lt;/strong&gt; and tap &lt;strong&gt;Build number&lt;/strong&gt; seven times to unlock Developer options.&lt;/li&gt;
&lt;li&gt;Go to &lt;strong&gt;Settings → Developer options&lt;/strong&gt; and turn on &lt;strong&gt;USB debugging&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Step 3 — Connect and authorize
&lt;/h2&gt;

&lt;p&gt;Plug the phone into your Mac with the USB cable. A prompt appears on the phone asking to &lt;strong&gt;Allow USB debugging&lt;/strong&gt; — check "Always allow from this computer" and tap &lt;strong&gt;Allow&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Confirm your Mac sees the phone:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;adb devices
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You should see your device listed as &lt;code&gt;device&lt;/code&gt; (not &lt;code&gt;unauthorized&lt;/code&gt;). If it says &lt;code&gt;unauthorized&lt;/code&gt;, unlock the phone and approve the prompt.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4 — Launch Samsung DeX on your Mac
&lt;/h2&gt;

&lt;p&gt;Run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;scrcpy &lt;span class="nt"&gt;--new-display&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1920x1080/160
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A window opens on your Mac showing the &lt;strong&gt;full Samsung DeX desktop&lt;/strong&gt; — taskbar, resizable windows, and all. Control it with your Mac's keyboard and mouse.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;1920x1080&lt;/code&gt; is the virtual display resolution. Bump it to &lt;code&gt;2560x1440&lt;/code&gt; for more space.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;160&lt;/code&gt; is the DPI (density). &lt;strong&gt;Lower DPI = smaller UI, more room; higher DPI = bigger UI.&lt;/strong&gt; &lt;code&gt;160&lt;/code&gt; is a good desktop-like default; try &lt;code&gt;140&lt;/code&gt;–&lt;code&gt;200&lt;/code&gt; to taste.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's it — you're running DeX on your Mac.&lt;/p&gt;

&lt;h2&gt;
  
  
  Optional: run DeX over WiFi (no cable)
&lt;/h2&gt;

&lt;p&gt;Once it works over USB, you can go wireless as long as the phone and Mac are on the same WiFi network.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# With the phone still on USB:&lt;/span&gt;
adb tcpip 5555
adb shell ip &lt;span class="nt"&gt;-f&lt;/span&gt; inet addr show wlan0     &lt;span class="c"&gt;# note the phone's 192.168.x.x address&lt;/span&gt;
&lt;span class="c"&gt;# Then, cable-free:&lt;/span&gt;
adb connect 192.168.x.x:5555
scrcpy &lt;span class="nt"&gt;--new-display&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1920x1080/160
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For smoother playback over WiFi, tune the stream to absorb network jitter:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;scrcpy &lt;span class="nt"&gt;--new-display&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1920x1080/160 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--video-codec&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;h265 &lt;span class="nt"&gt;--video-bit-rate&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;8M &lt;span class="nt"&gt;--max-fps&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;60 &lt;span class="nt"&gt;--video-buffer&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;50 &lt;span class="nt"&gt;--no-audio&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;--video-buffer=50&lt;/code&gt; (a 50 ms buffer) is the single biggest fix for wireless stutter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prefer a one-click app? Use DeXBar
&lt;/h2&gt;

&lt;p&gt;Typing commands gets old. &lt;a href="https://github.com/yongtingzhengcn-web/dex-for-mac" rel="noopener noreferrer"&gt;&lt;strong&gt;DeXBar&lt;/strong&gt;&lt;/a&gt; is a free, open-source &lt;strong&gt;macOS menu-bar app&lt;/strong&gt; that wraps all of the above: it shows whether your phone is connected, lets you pick resolution and DPI from a menu, starts and stops DeX with one click, and automatically applies the WiFi smoothness settings when you're wireless. It's the easiest way to use this day to day.&lt;/p&gt;

&lt;h2&gt;
  
  
  Troubleshooting
&lt;/h2&gt;

&lt;h3&gt;
  
  
  "adb: device unauthorized"
&lt;/h3&gt;

&lt;p&gt;The phone hasn't trusted your Mac yet. Unlock it, watch for the &lt;strong&gt;Allow USB debugging&lt;/strong&gt; prompt, and tap Allow (check "always allow").&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;failed to connect: No route to host&lt;/code&gt; (wireless)
&lt;/h3&gt;

&lt;p&gt;If you run a &lt;strong&gt;local proxy or VPN like Surge or Clash&lt;/strong&gt;, it can hijack adb's connection to the phone. Restart the adb server (&lt;code&gt;adb kill-server &amp;amp;&amp;amp; adb start-server&lt;/code&gt;) and add a &lt;strong&gt;DIRECT&lt;/strong&gt; rule for your &lt;code&gt;192.168.*&lt;/code&gt; subnet in the proxy app. DeXBar's wireless script bypasses the proxy for LAN addresses automatically.&lt;/p&gt;

&lt;h3&gt;
  
  
  Only display-id 0 shows / DeX doesn't appear
&lt;/h3&gt;

&lt;p&gt;Make sure your phone is actually on &lt;strong&gt;One UI 8 (Android 16)&lt;/strong&gt;. On older versions, DeX cannot render to a virtual display and this method won't work.&lt;/p&gt;

&lt;h3&gt;
  
  
  Some apps only show a small portrait window in the middle
&lt;/h3&gt;

&lt;p&gt;That's an app limitation, not a setup problem. Those apps hard-lock portrait orientation or declare a fixed aspect ratio in their code, so DeX letterboxes them. The system toggles that could help (&lt;code&gt;force_resizable_activities&lt;/code&gt;, ignore-orientation-request) are already on in DeX; apps with no landscape layout simply can't be forced to fill the screen cleanly.&lt;/p&gt;

&lt;h3&gt;
  
  
  The DeX window feels laggy
&lt;/h3&gt;

&lt;p&gt;Lower the resolution, or over WiFi add &lt;code&gt;--video-buffer=50&lt;/code&gt; and use &lt;code&gt;--video-codec=h265&lt;/code&gt; to cut bandwidth. On a weak network, raise the buffer to &lt;code&gt;100&lt;/code&gt;–&lt;code&gt;150&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Does this work without One UI 8?&lt;/strong&gt;&lt;br&gt;
No. Virtual-display DeX is a One UI 8 / Android 16 feature. Older One UI versions can't do it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I need an external monitor or HDMI dummy plug?&lt;/strong&gt;&lt;br&gt;
No. That was the old workaround. The virtual-display method needs neither.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does it work on Apple Silicon Macs?&lt;/strong&gt;&lt;br&gt;
Yes — &lt;code&gt;scrcpy&lt;/code&gt; and &lt;code&gt;adb&lt;/code&gt; both run natively on M-series Macs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is it free?&lt;/strong&gt;&lt;br&gt;
Yes. &lt;code&gt;scrcpy&lt;/code&gt;, &lt;code&gt;adb&lt;/code&gt;, and DeXBar are all free and open-source.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I use my Mac keyboard and mouse in DeX?&lt;/strong&gt;&lt;br&gt;
Yes. scrcpy forwards keyboard and mouse input, and supports clipboard sharing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Will this work on a Pixel or other non-Samsung phone?&lt;/strong&gt;&lt;br&gt;
The virtual-display trick is specific to how Samsung ships DeX on One UI 8. Stock Android's Desktop Mode on Pixels currently still expects a physical external display.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;Samsung may have dropped the desktop DeX app, but thanks to One UI 8's virtual displays and scrcpy, running &lt;strong&gt;Samsung DeX on a Mac&lt;/strong&gt; is easier than it ever was with the official tool — no monitor, no adapters, and it works over WiFi. If you want the one-click experience, grab &lt;strong&gt;DeXBar&lt;/strong&gt; on GitHub, star it if it helped, and let me know which One UI 8 devices you get it working on:&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://github.com/yongtingzhengcn-web/dex-for-mac" rel="noopener noreferrer"&gt;https://github.com/yongtingzhengcn-web/dex-for-mac&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>android</category>
      <category>macos</category>
      <category>samsung</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
