Sorry Pixel 4 homeowners, this won’t function on your cellular phone

1 of the most talked-about functions prior to the release of Android 10 was desktop manner. When we initial heard that Google’s next important Android OS would natively assistance desktop mode, we were being hoping it would be a little something akin to Samsung DeX or Huawei Uncomplicated Projection. Regrettably, it was everything but. Google crafted a barebones launcher for exterior shows so builders can check what their applications could look like on significant displays, but they did not even trouble adding screen out assist on the Pixel 4. Unfortunately, this signifies that Android 10’s concealed desktop mode is unusable on the most up-to-date Pixel smartphone, but if you have the Necessary Phone, OnePlus 7/7 Professional, OnePlus 7T/7T Pro, or any other telephone with video output more than USB-C, then there is a way to make it additional useful.

1st, listed here are some necessities that you have to meet:

Prerequisites:

  1. Your Android smartphone have to be running Android 10.
  2. Your Android smartphone needs to help DisplayPort Alt Mode. Here’s a partial listing of telephones with assistance. If you have a smartphone with the Qualcomm Snapdragon 835, Qualcomm Snapdragon 845, or Qualcomm Snapdragon 855 and a USB 3.1 Type-C port, then your smartphone should really help DisplayPort Alt Manner until the telephone seller intentionally disabled it. Google disabled it on the Pixel 4, for case in point.
  3. You require a USB 3.1 Type-C to HDMI adapter. I purchased this a person off of Amazon. You’ll also need to have a Bluetooth mouse and keyboard if you want a extra pleasant encounter.

Future, here’s how to set it up:

  1. Allow Developer Selections on your cell phone. Go to Options > About cellphone and tap on “build number” 7 situations.
  2. Go to Options > Developer alternatives and scroll down till you arrive at the “APPS” area. Transform on “enable freeform windows” and “force desktop manner.”
  3. Reboot your phone.
  4. Install this APK. It’s a customized model of the well-liked Lawnchair launcher with TaskBar built-in into it. This APK was built by XDA Senior Member farmerbb as a evidence-of-notion to exhibit custom launcher developers how they can add desktop method aid*.
  5. Go to Settings > Applications & notifications > Default applications and set Lawnchair as the default launcher.
  6. Plug your cellphone into your observe/Television applying the adapter.
  7. In a several seconds, you really should see the tailor made Android 10 desktop interface look on the display screen. You will have to grant TaskBar permission to “display over other apps” as asked for in purchase to present the base bar. If you also want TaskBar to exhibit your recent applications in the base bar, you should also grant it the “usage access” authorization as asked for.

I would wager that every little thing looks way as well massive on your check/Tv right now. Which is mainly because the default DPI for desktop mode in Android 10 is 320, which makes anything search enormous. Also, the navigation bar/Android 10 gestural navigation capsule possibly appears unattractive on your screen. There is a way to take care of this, but it needs a a person-time trick that is not person-friendly to do.

  1. Disconnect your cell phone from your check/Television set and connect it to your Personal computer.
  2. Download and set up ADB on your Pc.
  3. Observe these guidelines to allow wi-fi ADB.
  4. Once you have ADB accessibility wirelessly, it is time to re-connect your phone to your keep track of/Tv.
  5. On your Computer, run the adhering to ADB shell command:
    adb shell dumpsys display
  6. In your terminal/command prompt window, you really should see a enormous wall of textual content. Scroll up till you see the part of the output that lists the “Logical Shows.” This will listing the show information for all at present detected displays, such as the crafted-in just one on your cellphone as nicely as the externally related just one. For illustration, “Display 0” is the created-in display on my OnePlus 7 Pro although “Display 3” is the Vizio Tv set that I related the OnePlus 7 Professional to. You will want the exhibit ID price for your external exhibit, which in my situation is ‘3’. Note that this price can alter when you re-join your smartphone to a certain keep an eye on/Television set, but any show UI modifications we’re likely to make in the subsequent step(s) will be remembered!
  7. On your Laptop, you are going to want to operate the next ADB shell commands:
    adb shell wm density [DENSITY] -d [ID]
    adb shell wm overscan ,,,[OVERSCAN] -d [ID]
    adb shell wm size [RESOLUTION] -d [ID]

    the place [DENSITY] is a optimistic integer worth, [OVERSCAN] is a adverse integer value, [RESOLUTION] is the display resolution in widthxheight structure, and [ID] is the screen ID for your exterior monitor/Tv set. For example, I utilized the next instructions to attain the UI viewed higher than:

    adb shell wm density 120 -d 3
    adb shell wm overscan ,,,-125 -d 3
    adb shell wm size 1920x1080 -d 3
  8. We’re employing the WindowManagerShellCommand to tweak the density to make UI elements look smaller sized, overscan to cover the navigation bar, and/or resolution to match that of the external display screen. Perform close to with these values right until you get something you are cozy with.

Which is it! Delight in desktop manner on your Android 10 smartphone. We’re not sure why Google disabled DisplayPort Alt Manner performance on the Pixel 4, so we arrived at out for remark and will update you if we listen to back again.


If you’re a custom launcher developer intrigued in integrating TaskBar into your launcher, you can obtain the instructions in this article.

Want far more posts like this delivered to your inbox? Enter your electronic mail to be subscribed to our newsletter.