SpazioiTech
Android

How to change the DPI on an Android device without root

Why is it useful to change the DPI of your Android device? Because Android was designed to be installed on many different devices, its developers decided to scale the operating system's interface according to the display resolution of

By Carlo Coppola 16 May 2017 2 min read Read in Italian →
How to change the DPI on an Android device without root

Why is it useful to change the DPI of your Android device? Because Android was designed to be installed on many different devices, its developers decided to scale the interface of the operating system according to the display resolution. This means that if we have two smartphones, one with a 4.7” display and the other with a 5.5” one, both at full HD resolution, we will see exactly the same amount of text on both devices, with the only difference that on the 4.7” one text and icons will be smaller than on the 5.5” one, which on the contrary may have large icons and wasted space.

This is exactly where being able to adjust the display density as we see fit comes in handy. The operating system usually handles the following densities best:
– 120 (LDPI)
– 160 (MDPI)
– 213 (TVDPI)
– 240 (HDPI)
– 360 (XHDPI)
– 480 (XXHDPI)
– 640 (XXXHDPI).
With in-between values we might run into some problems with the interface and the device could become awkward to use (but don’t worry, as we will see shortly, going back to the original density takes very little)

To change the DPI without root access you will need a computer from which to use the adb console.
Procedure:

  1. First of all, download and install adb. You can use adb installer and follow the instructions to get the installation done successfully;
  2. We need to enable USB debugging on our device. To do so, go to Settings > About device > tap the build number 7 times, and at this point we will have enabled the developer options. Then go back to Settings and open Developer options. Here we need to switch on USB debugging;
  3. Now we can connect our smartphone to the computer with a USB cable. A window will appear on the device’s display asking us to always allow USB debugging [WARNING]; it is important to tick the box “Always allow from this computer” and then tap OK;
  4. Now open the Command Prompt and type in the command box:
    adb devices
    This will let us check that the computer detects our smartphone correctly, by showing us a string of alphanumeric characters.
  5. Once the device has been detected, we can enter the command that will let us change the DPI of our device
    adb shell wm density “INSERT_DPI” && adb reboot
    Replace “INSERT_DPI” with the value you want.
  6. Once you press Enter, the smartphone will restart and, when it powers back on, the changes will have been applied;
  7. If you want to go back to the native DPI settings, don’t worry: just enter the following command
    adb shell wm size reset && adb reboot

Finally, remember that if we want to enlarge the system text and icons we should enter a higher DPI value, whereas if we prefer smaller icons and text we should enter a lower DPI value.

SOURCE

Translated from the Italian original. Read in Italian

AuthorCarlo Coppola