adb获取文件分辨率

网上很多人说获不了,其实不是的。获得的命令是:

adb shell dumpsys window | findstr “display”  在windows下

adb shell dumpsys linux | grep “Display” 在linux下