Changing the DPI (dots per inch) on your Android device adjusts the density of pixels on the screen, which controls how large or small UI elements appear. A lower DPI makes text and icons smaller, fitting more content on screen; a higher DPI makes them larger and easier to see. This guide covers the built-in developer option, the ADB command for phones without that setting, and the manual edit for rooted devices.
What You’ll Need
- An Android phone or tablet (Android 7.0 or newer recommended).
- For the ADB method: a computer with ADB (Android Debug Bridge) installed, a USB cable, and USB debugging enabled on your phone.
- For the root method: a rooted device and a file manager that can access system files (like Solid Explorer or Root Explorer).
- Optional: a quick settings toggle app (like “Quick Settings”) if you want to change DPI on the fly without rebooting.
Step-by-Step
Method 1: Using Developer Options (No Computer)
- Open Settings on your Android device.
- Scroll down and tap About phone (or About device).
- Find the Build number entry. Tap it 7 times in quick succession. You’ll see a message like “You are now a developer!” after the 7th tap.
- Go back to the main Settings screen and tap System (or Additional settings on some phones), then tap Developer options.
- Scroll down to the Drawing section. Look for Smallest width (or Minimum width). This is the DPI setting in dp (density-independent pixels).
- Tap it and enter a new value. The default is usually 360 or 411 dp. Try 320 for smaller UI elements, or 480 for larger ones. The change applies instantly.
- If you don’t see the option, your manufacturer may have hidden it. In that case, use Method 2.
Method 2: Using ADB (No Root)
- On your phone, enable Developer options as described above, then turn on USB debugging (under Developer options).
- Connect your phone to your computer via USB. If prompted, allow USB debugging on the phone.
- On your computer, open a command prompt (Windows) or terminal (Mac/Linux).
- Type
adb devicesand press Enter. You should see your device listed as “device”. If not, check your USB drivers and cable. - To change the DPI, type the following command and press Enter:
adb shell wm density 320
Replace 320 with your desired DPI value. - The change takes effect immediately. To revert to the original DPI, use
adb shell wm density reset.
Method 3: Editing build.prop (Root Required)
- Open a root file manager on your phone.
- Navigate to
/systemand find the file namedbuild.prop. - Long-press the file and select Edit (or open with a text editor).
- Find the line that starts with
ro.sf.lcd_density=. If it doesn’t exist, add it at the end of the file. - Change the number to your desired DPI (e.g.,
ro.sf.lcd_density=320). - Save the file and reboot your device. The new DPI will be applied after boot.
Common Mistakes
- Setting an extreme value: Going too low (below 200) can make text unreadable and some apps crash. Going too high (above 600) can make the screen look zoomed in and cut off content.
- Using the wrong unit: The developer option uses dp, not pixels. The ADB command uses dpi (which is effectively the same on most devices, but be aware of the difference in terminology).
- Not backing up: If you edit build.prop incorrectly, you can cause a boot loop. Always make a backup of the file before editing.
- Forgetting to reset: If you use ADB and later sell the phone, the custom DPI persists. Use
adb shell wm density resetto restore the default.
Tips
- Start with a small change (e.g., from 411 to 400) and test for a few hours before going further.
- Use a DPI that matches your eyesight and screen size. A 6-inch phone may look better with a lower DPI (smaller elements) than a 5-inch phone.
- Some apps (especially games and camera apps) may not respect the custom DPI and will render with a blurry or stretched UI. This is normal and not a bug.
- To quickly toggle between two DPIs, you can create a shortcut with an app like Quick Settings or a Tasker profile that runs the ADB command (if you have a computer nearby).
- If you want to change only the font size, use the display settings instead of DPI. That way, icons and layout stay the same.
Troubleshooting
- Change doesn’t stick after reboot: If you used the developer option or ADB, the change should persist. If it resets, your phone’s OEM may have a custom setting that overrides it. In that case, use the build.prop method (if rooted).
- System UI crashes after change: This usually happens when the DPI is too low or too high. Boot into Safe Mode (press and hold the power button, then tap and hold “Power off” until the Safe Mode prompt appears) and revert the DPI to the default.
- Boot loop after build.prop edit: If you edited build.prop and your phone won’t boot, you need to restore the original file. If you have a nandroid backup, restore it. Otherwise, use a custom recovery (like TWRP) to mount /system and edit the file back.
- ADB says “device not found”: Make sure USB debugging is enabled, the USB cable is data-capable, and you’ve accepted the RSA fingerprint prompt on your phone. Try reinstalling the USB drivers.
- Some apps look blurry: This is because the app is not optimized for your custom DPI. Try a value closer to the default (e.g., 360 or 400) to reduce the issue.
Frequently Asked Questions
What is the default DPI on my Android phone?
The default DPI varies by device. Most phones are between 360 and 480 dpi. You can check your current value by going to Developer options > Smallest width, or by running adb shell wm density.
Will changing DPI affect battery life?
No, DPI does not directly affect battery life. It only changes the scaling of UI elements. However, if you set a very low DPI, more content is rendered on screen, which might increase GPU load slightly, but the difference is negligible.
Can I change DPI without a computer?
Yes, if your phone has the “Smallest width” option in Developer options, you can change it without a computer. If not, you need ADB or root.
Is changing DPI safe?
Yes, as long as you stay within reasonable values (e.g., 240 to 560). Extreme values can cause instability, but you can always revert. Editing build.prop carries a small risk of boot loop, but it’s fixable with a backup.
Does changing DPI affect app compatibility?
Some apps, especially games, may not scale correctly and could appear blurry or have cut-off elements. Most modern apps handle custom DPI well, but you may encounter occasional issues.
How do I reset DPI to default?
On the developer option, set it back to the original value (usually 360 or 411). With ADB, use adb shell wm density reset. If you edited build.prop, restore the original line or remove it.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix Unfortunately App Has Stopped: Step-by-Step
- Restart a Frozen Samsung Galaxy A12
- HomePod Stereo Pair with AirPlay 2 from iPhone
- Fix 0x8e5e0247 Error on Windows
- Pixel & Pixel XL No Sound: Solved?
- How to Edit Playlists on iPhone