wm
Show information about the screen of an Android device. tldr-pages
On Android
Android
Show information about the screen of an Android device. This command can only be used through adb shell.
Display the physical size of an Android device's screen
wm sizeDisplay the physical density of an Android device's screen
wm density