ADBSystemCaution
adb shell wm size [widthxheight|reset]
View or override physical screen resolution
Caution RequiredSetting an unsupported extreme resolution can make the screen unreadable. Always use wm size reset to restore.
What It Does
Reads the physical display resolution or overrides it to test responsive UI layouts across various screen resolutions.
Command Syntax
Terminal
$
adb shell wm size [<width>x<height>|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:
<width>WIDTH ParameterReplace this placeholder with your specific width value.
Real-world value:your-width
Command syntax:
adb shell wm size [your-widthx<height>|reset]<height>HEIGHT ParameterReplace this placeholder with your specific height value.
Real-world value:your-height
Command syntax:
adb shell wm size [<width>xyour-height|reset]Usage Examples
$
adb shell wm size$
adb shell wm size 1080x1920$
adb shell wm size resetOptions & Flags
| Flag / Parameter | Description |
|---|---|
| reset | Restores the original native hardware screen resolution. |
Prerequisites & Requirements
- Device connected
Related Commands
Found an error or missing flag for
adb shell wm size [widthxheight|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.