How to change density from 480 to 420 (same as Pixel) without root

Search This thread

CLShortFuse

Retired Recognized Developer
Feb 28, 2007
684
944
If you're like me, you probably find the XZ's default density of 480 makes items far too large and cuts out text. The Googl Pixel, which is also a 5.0" 1080p screen uses a 420dpi. To make your XZ the same:

* Enable developer settings
* Enable ADB over USB
* From a computer, with adb, type:

adb shell wm density 420

The change will be instant, though a reboot is recommended.
 

chawlasrijan

Senior Member
Jun 30, 2013
850
320
Delhi-NCR
If you're like me, you probably find the XZ's default density of 480 makes items far too large and cuts out text. The Googl Pixel, which is also a 5.0" 1080p screen uses a 420dpi. To make your XZ the same:

* Enable developer settings
* Enable ADB over USB
* From a computer, with adb, type:

adb shell wm density 420

The change will be instant, though a reboot is recommended.
Can you add a screenshot comparing both the densities ?
Thank you
 
  • Like
Reactions: X3a6a and Heinous

ducksonetime

Member
Nov 14, 2010
25
5
Melbourne
If you're like me, you probably find the XZ's default density of 480 makes items far too large and cuts out text. The Googl Pixel, which is also a 5.0" 1080p screen uses a 420dpi. To make your XZ the same:

* Enable developer settings
* Enable ADB over USB
* From a computer, with adb, type:

adb shell wm density 420

The change will be instant, though a reboot is recommended.

This is the greatest thing ever. Thanks heaps!

Any way to shrink the notification text to match? Cheers, mate!

Edit: a restart fixed it - all good! I found 400 to be perfect for me. Thanks again.
 
Last edited:

ClementNg23

Senior Member
Jan 20, 2010
519
6
Sydney
I GOT SCREENSHOTS!
The change takes effect immediately so watch your screen closely before pressing enter on terminal.
Reboot after change is still advised.

460 dpi (27% battery)

csg28du.png

RL2hMSX.jpg



420 dpi (29% battery)

iGGkz4i.jpg

zyHOu1b.jpg



440 dpi

DKh36KO.jpg



Bonus:
The "recognized developer" badge on play store screwed up after a reboot... Just thought it is interesting

dXAmxkA.png

 

Heinous

Senior Member
Sep 15, 2007
347
61
Samsung Galaxy S21 Ultra
How does reducing the density make icons and text appear smaller? Shouldn't it do the opposite? How does this change affect the picture quality of the display (same, worse, better)?
 

CLShortFuse

Retired Recognized Developer
Feb 28, 2007
684
944
Window Manager density isn't the same as device density in build.prop. There are awkward effects when developers don't use the WM density. Also, you rely on nodpi packages now.

Still, the side effects are rare and IMO the pros greatly outweigh the cons.
 

coleburns

Senior Member
Dec 22, 2010
380
32
London
If you're like me, you probably find the XZ's default density of 480 makes items far too large and cuts out text. The Googl Pixel, which is also a 5.0" 1080p screen uses a 420dpi. To make your XZ the same:

* Enable developer settings
* Enable ADB over USB
* From a computer, with adb, type:

adb shell wm density 420

The change will be instant, though a reboot is recommended.

Thanks for this. However i noticed noughat has this functionality built in but it seems to only have 3 (Small to Large) settings, whereas the pixels phone have 5 (small to Largest).

Have sony been stupid and just reduced functionality?
 

pw1nce

Senior Member
Oct 12, 2013
403
36
mardan
I GOT SCREENSHOTS!
The change takes effect immediately so watch your screen closely before pressing enter on terminal.
Reboot after change is still advised.

460 dpi (27% battery)

csg28du.png

RL2hMSX.jpg



420 dpi (29% battery)

iGGkz4i.jpg

zyHOu1b.jpg



440 dpi

DKh36KO.jpg



Bonus:
The "recognized developer" badge on play store screwed up after a reboot... Just thought it is interesting

dXAmxkA.png


What's the theme you using?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    If you're like me, you probably find the XZ's default density of 480 makes items far too large and cuts out text. The Googl Pixel, which is also a 5.0" 1080p screen uses a 420dpi. To make your XZ the same:

    * Enable developer settings
    * Enable ADB over USB
    * From a computer, with adb, type:

    adb shell wm density 420

    The change will be instant, though a reboot is recommended.
    2
    If you're like me, you probably find the XZ's default density of 480 makes items far too large and cuts out text. The Googl Pixel, which is also a 5.0" 1080p screen uses a 420dpi. To make your XZ the same:

    * Enable developer settings
    * Enable ADB over USB
    * From a computer, with adb, type:

    adb shell wm density 420

    The change will be instant, though a reboot is recommended.
    Can you add a screenshot comparing both the densities ?
    Thank you
    2
    Thanks but i cant seem to find it in developer options. do yoiu mind sending a screen grab
    1469b84da6810d46d431d74e013f4a1a.jpg


    Sent from my F8332 using Tapatalk
    1
    There is actually a simpler way. .You can find the same in "Developer Options" on your device with Android 7.0 Nougat, just below the Animation Settings ;)
    1
    460 is good 5 icon in Pixel launcher and looks good