是否可以使用adb shell来偏移整个显示内容/更改其位置?
正如我最近发现的那样,可以改变分辨率。
adb shell wm size <Res>.
所以,我想知道是否可以引入偏移量或改变显示位置。
答案 0 :(得分:1)
这是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.
因此,您要查找的命令wm overscan
可以抵消显示:
adb shell wm overscan a,b,c,d
在Android 4.3之前:
adb shell am display-size
参考:https://plus.google.com/+AdamWPowell/posts/cz5TxuoNDfG和https://plus.google.com/+AndroidDevelopers/posts/QhWQArNDfS3