1.执行命令
adb shell dumpsys window displays | findstr DisplayInfo
2.结果如下:
mDisplayInfo=DisplayInfo{"??????, displayId 0", uniqueId "local:240557107073", app 1080 x 1666, real 1080 x 1920, largest app 1920 x 1576, smallest app 1080 x 990, mode 1, defaultMode 1, modes [{id=1, width=1080, height=192
0, fps=60.000004}], colorMode 0, supportedColorModes [0], hdrCapabilities android.view.Display$HdrCapabilities@40f16308, rotation 0, density 240 (677.333 x 214.312) dpi, layerStack 0, appVsyncOff 1000000, presDeadline 16666666, type BUILT_IN, address {port=129, model=0x446d1634b1e7}, state ON, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS, removeMode 0}
mDisplayInfoOverscan=[0,0][0,0]
mRotatedDisplayInfoOverscan=[0,0][0,0]