How to get the Android device screen size from the adb command line?

前端 未结 9 1993
故里飘歌
故里飘歌 2020-12-07 10:37

I need a way to detect device screen size and density with adb. If there is no solution, where can I get the complete list of all existing android device with their screen

9条回答
  •  庸人自扰
    2020-12-07 11:16

    ANDROID:/ # dumpsys window | grep  mGlobalConfiguration                                                                                                                                                
    mGlobalConfiguration={1.0 ?mcc?mnc [en_US] ldltr sw720dp w1920dp h532dp 160dpi
    

    So resolution is 1920x720

提交回复
热议问题