当前位置:   article > 正文

adb 查看屏幕大小,如何从adb命令行获取Android设备的屏幕尺寸?

安卓盗版平板如何下看screen size

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 size and density ?

解决方案

You can also access the WindowManager through ADB:

$ adb shell wm

usage: wm [subcommand] [options]

wm size [reset|WxH]

wm density [reset|DENSITY]

wm overscan [reset|LEFT,TOP,RIGHT,BOTTOM]

The following command will give you the density:

$ adb shell wm density

Physical density: 320

You can also override the density by adding the new density:

$ adb shell wm density 160

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/686865
推荐阅读
相关标签
  

闽ICP备14008679号