The pixel density (DPI) on Xiaomiโs screen determines how large or small the interface elements โ icons, text, buttons โ will look. By default, the system sets the value optimal for the physical size of the display, but sometimes users want to change it: to fit more information on the screen, improve readability or adapt the interface to their needs. For example, with DPI = 480, the icons will be larger than with DPI = 320, where more shortcuts will fit on the desktop.
In this article, we will discuss three working methods of change. DPI on smartphones Xiaomi, Redmi and POCO (including models MIUI 14/15 and HyperOS: through the developer settings, using ADB-Importantly, not all methods are equally safe โ some can cause interface failures, so we will describe the risks in detail and give recommendations for minimizing them.
If youโve never changed DPI before, start with the first section, which explains what pixel density is and how it affects display.
What is DPI and why change it to Xiaomi?
DPI (dots per inch) is the number of pixels per inch of a screen. The higher the value, the smaller the interface elements, and vice versa.
- ๐ฑ Low. DPI (320-400: large icons and text, suitable for visually impaired or small screens.
- ๐ฅ๏ธ Average. DPI (420-480: Balance between readability and density (standard for most smartphones).
- ๐ High. DPI (500+): maximum detail, but the text may become too small.
On Xiaomi, the DPI change is relevant in several cases:
- ๐ Adaptation to large screens (for example, on Xiaomi 13 Ultra or POCO F5 Pro where standard settings make icons too large.
- ๐ Improved readability for users with vision problems.
- ๐ฎ Optimization for games where it is important to see more interface elements at the same time.
- ๐ ๏ธ Testing applications where different resolutions are emulated.
However, there are risks:
โ ๏ธ Note: Some applications (such as banking or gaming) may refuse to run when non-standard DPI, You're going to get an error called "Unsupported screen resolution," and then you're going to have to go back to the factory settings.
Method 1: Change the DPI through the developer settings
The easiest and safest method is to use hidden settings for developers, which works on all Xiaomi smartphones with MIUI 12-15 and HyperOS, does not require root rights or PC connection. However, there is a limitation: you can only choose from predefined values (usually 320, 360, 400, 480 DPI).
Steps:
- Activate Developer Mode: Go to Settings โ About Phone. Press 7 times on MIUI Version (or HyperOS Build Number) and it will be notified, "You've become a developer!"
Settings โ Additional โ For Developers
Settings โ System โ Advanced settings โ For developers
HyperOS
Minimum width
Screen density
Redmi Note 12 Pro+
420 DPI
480 DPI
Restart the device so that the changes take effect.
What if there is no โscreen densityโ item?
If the developer does not have a DPI option
โ๏ธ Preparation for change DPI through the developer's settings
Method 2: Change DPI through ADB (without root)
If the developerโs settings do not have the right item or require an accurate setup DPI (for example, 440 opportunistic 400/480), can be used ADB-This method does not require root rights, but you will need a computer with installed Xiaomi drivers and tools. ADB.
Step-by-step:
- Download and install Platform Tools (includes ADB) on PC.
- Turn on USB debugging on your smartphone: Go to Settings โ For developers. Activate the USB debugging switch. Connect your phone to your PC and confirm trust in your computer.
Command line.
Terminal
ADB
adb devicesThe serial number of your device should appear.
adb shell wm densityThe answer is: Physical density: 420.
440
adb shell wm density 440adb rebootImportant nuances:
- ๐ Changes through ADB not permanent - after resetting settings or updating the firmware DPI go back to standard.
- ๐ To return the factory settings, use the command: adb shell wm density reset
- โ ๏ธ Not all applications work correctly with non-standard DPI. For example, SberBank Online or Tinkoff may issue an error called โUnsupported permission".
๐ก
If the DPI over ADB is changed and the interface is not displayed correctly (for example, the keyboard moves over the edge of the screen), try a multiple of 40 (for example, 400, 440, 480).
Method 3: Applications for changing DPI (with and without root)
If the first two methods don't work, you can use third-party applications, and they fall into two categories:
- Rootless: Work through ADB or emulation of developer settings (e.g. App Settings in the Xposed Framework, but requires Magisk).
- Root rights: allow you to change DPI globally or for individual applications (e.g. BuildProp Editor).
Top.-3 change-over DPI:
| Annex | Need root? | Features | Reference |
|---|---|---|---|
| App Settings (Xposed) | โ Yes. | Allows you to change the DPI for individual applications | Xposed Repo |
| BuildProp Editor | โ Yes. | Editing the system file build.prop | Google Play |
| SecondScreen | โ No. | Emulates a second screen with a different DPI (requires ADB) | GitHub |
How to use BuildProp Editor (for root):
- Install the application and provide root access.
- Find a line. ro.sf.lcd_density.
- Change the value to the desired one (for example, 440).
- Save the changes and restart the device.
โ ๏ธ Attention: Editing build.prop without backup can lead to bootloop ( looped reboot). TWRP Or OrangeFox.
๐ก
Applications without root (such as SecondScreen) are less reliable and can run unstable, and ADB or root solutions are better for constant change.
How to Get a Standard DPI Back on Xiaomi
If after experimenting with DPI, the interface began to display incorrectly or applications stopped working, return the factory settings:
Method 1: Through the Developer's Settings
- Open the Settings. โ For developers.
- Find the minimum width or screen density.
- Select the default value or enter the standard for your model (usually 420-480).
- Reset the device.
Method 2: Through ADB
- Connect your phone to your PC and open the command line.
- Enter adb shell wm density reset
- Reboot the device: adb reboot
Method 3: Resetting settings (if nothing helps):
- Go to Settings โ System โ Resetting settings.
- Select Reset all settings (does not delete files, only returns settings to factory settings).
Some Xiaomi models (such as the Xiaomi 12T or Redmi K60) may require re-activation of the developer mode after resetting the DPI.
Frequent problems and their solutions
When changing the DPI to Xiaomi, the following errors may occur:
1. MIUI interface is displayed incorrectly
- ๐น Problem: Icons on the desktop move, text is cropped.
- ๐ง Solution: Try the value DPI, multiple of 40 (e.g. 400, 440, 480). If it doesn't work, return the standard value.
2.Applications are not launched
- ๐น Problem: Banking applications (SberBank, Tinkoff) or games (PUBG Mobile, Genshin Impact issue error "Unsupported permission".
- ๐ง Solution: For individual applications, use App Settings (requires root). DPI globally.
3. The keyboard does not fit on the screen
- ๐น Problem: When you type in text, the keyboard (Gboard, SwiftKey) moves over the edge of the screen.
- ๐ง Solution: Reduce DPI 20โ40 units or enable the option โStretch to the full screenโ in the keyboard settings".
4.After the MIUI update, the DPI dropped
- ๐น Problem: After installing the new version MIUI HyperOS pixel density is back to standard.
- ๐ง Solution: Repeat the settings through ADB Or design settings. Use root apps to save permanently.