admin管理员组文章数量:1570218
adb shell wm命令获取屏幕相关信息
Tags: adb_shell
wm命令在4.x才有的,不同的版本下部分参数不同
wm [subcommand] [options]
获取屏幕大小:wm size
获取屏幕密度:wm density
i.e.
# 当前分辨率 width x height
wm size
> Physical size: 720x1280
# 当前屏幕密度
wm density
> Physical density: 320
# 改变屏幕的分辨率
wm size 1080x1920
# 重置分辨率
wm size reset
# 截屏命令
wm screen-capture
查看帮助命令
shell@htc_himauhl:/ $ wm
usage: wm [subcommand] [options]
wm size [reset|WxH|WdpxHdp]
wm density [reset|DENSITY]
wm overscan [reset|LEFT,TOP,RIGHT,BOTTOM]
wm scaling [off|auto]
wm screen-capture [userId] [true|false]
wm size: return or override display size.
width and height in pixels unless suffixed with 'dp'.
wm density: override display density.
wm overscan: set overscan area for display.
wm scaling: set display scaling mode.
wm screen-capture: enable/disable screen capture.
wm dismiss-keyguard: dismiss the keyguard, prompting the user for auth if necessary.
版权声明:本文标题:adb 查看屏幕大小_adb shell wm 命令获取屏幕相关信息 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dianzi/1727667453a1124783.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论