ACC Logo
ADBSystemCaution

adb shell wm density [dpi|reset]

View or override display DPI scale density

Caution RequiredSetting extreme DPI values can cause UI elements to render too large or too small to touch.
What It Does

Adjusts the software DPI (density-independent dots per inch) scale factor of the Android display.

Command Syntax
Terminal
$adb shell wm density [<dpi>|reset]
Parameters & Placeholders Breakdown

This command syntax includes specific placeholder tokens. Below is an explanation of what each word represents and concrete real-world values to replace it with:

<dpi>DPI Parameter

Replace this placeholder with your specific dpi value.

Real-world value:your-dpi
Command syntax: adb shell wm density [your-dpi|reset]
Usage Examples
$adb shell wm density
$adb shell wm density 420
$adb shell wm density reset
Options & Flags
Flag / ParameterDescription
resetRestores default factory DPI density.
Prerequisites & Requirements
  • Device connected
Related Commands
Found an error or missing flag for adb shell wm density [dpi|reset]?

Submit a correction or request additional examples on GitHub.

Having issue? Contact @mkr_infinity

Direct technical assistance & ROM flashing troubleshooting by Mohammad Kaif Raja.

Contact @mkr_infinity