Window Manager
Prints the help text
Reset the display size to default
Set the display size to a specific width and height in pixels
adb shell wm size 1080x1920
Set the display size to a specific width and height in density-independent pixels
adb shell wm size 720x1280dp
Set the display size for a specific display ID
adb shell wm size 1080x1920 -d 0
Display Scaling Control
Turn off display scaling
Set display scaling to automatic mode
adb shell wm scaling auto
Set display scaling for a specific display ID
adb shell wm scaling off -d 0
Keyguard Dismissal
Dismisses the keyguard
adb shell wm dismiss-keyguard
User Rotation Settings
Print the user rotation mode and user rotation
adb shell wm user-rotation
Set the user rotation mode to free
adb shell wm user-rotation free
Set the user rotation mode to lock and specify the rotation value
adb shell wm user-rotation lock 90
Set the user rotation mode for a specific display ID
adb shell wm user-rotation -d 0 lock
Dumps the encoded view hierarchies of visible windows
adb shell wm dump-visible-window-views
App Requested Orientation
Print the rotating display for app requested orientation
adb shell wm fixed-to-user-rotation
Set the rotating display for app requested orientation to enabled
adb shell wm fixed-to-user-rotation enabled
Set the rotating display for app requested orientation to disabled for a specific display ID
adb shell wm fixed-to-user-rotation -d 0 disabled
Ignore App Requested Orientation
Set whether to ignore app requested orientation to true
adb shell wm set-ignore-orientation-request true
Set whether to ignore app requested orientation to false for a specific display ID
adb shell wm set-ignore-orientation-request -d 0 false
Prints whether app requested orientation should be ignored
adb shell wm get-ignore-orientation-request
Multi-Window Configuration
Set multi-window config options (Needs specific parameters)
adb shell wm set-multi-window-config
Prints values of the multi-window config options.
adb shell wm get-multi-window-config
Resets overrides to default values of the multi-window config options
adb shell wm reset-multi-window-config
Other Settings
Resets all override settings
Return or override display size and density at once
adb shell wm size-density reset
Reset the folded area to default
adb shell wm folded-area reset
Set the folded area to specific left, top, right, and bottom values
adb shell wm folded-area 0,0,100,100