adb 显示手机分辨率

adb shell dumpsys window | grep “ShownFrame” | head -n 1

adb shell dwm size

当然,作为一个Android 开发,懂得在代码里面获取分辨率也不错啊。

private static void initDisplayMetrics() {
        DisplayMetrics dm = Application.getInstance().getResources().getDisplayMetrics();
原文地址:https://www.cnblogs.com/caoxinyu/p/6647737.html