Android adb 當前手機任意分辨率修改

adb shell wm命令獲取屏幕相關(guān)信息

Tags: adb_shell

wm命令在4.x才有的,不同的版本下部分參數(shù)不同

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.

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容