当前位置:网站首页>ADB shell WM command and usage:
ADB shell WM command and usage:
2022-07-29 10:26:00 【Mars-xq】
Reference resources
scrcpy——Android Screen casting artifact ( Use the tutorial )
adb shell wm help :
> adb shell wm
Window manager (window) commands:
help
Print this help text.
size [reset|WxH|WdpxHdp] [-d DISPLAY_ID]
Return or override display size.
width and height in pixels unless suffixed with 'dp'.
density [reset|DENSITY] [-d DISPLAY_ID]
Return or override display density.
folded-area [reset|LEFT,TOP,RIGHT,BOTTOM]
Return or override folded area.
scaling [off|auto] [-d DISPLAY_ID]
Set display scaling mode.
dismiss-keyguard
Dismiss the keyguard, prompting user for auth if necessary.
disable-blur [true|1|false|0]
user-rotation [-d DISPLAY_ID] [free|lock] [rotation]
Print or set user rotation mode and user rotation.
dump-visible-window-views
Dumps the encoded view hierarchies of visible windows
fixed-to-user-rotation [-d DISPLAY_ID] [enabled|disabled|default]
Print or set rotating display for app requested orientation.
set-ignore-orientation-request [-d DISPLAY_ID] [true|1|false|0]
get-ignore-orientation-request [-d DISPLAY_ID]
If app requested orientation should be ignored.
set-multi-window-config
Sets options to determine if activity should be shown in multi window:
--supportsNonResizable [configValue]
Whether the device supports non-resizable activity in multi window.
-1: The device doesn't support non-resizable in multi window.
0: The device supports non-resizable in multi window only if
this is a large screen device.
1: The device always supports non-resizable in multi window.
--respectsActivityMinWidthHeight [configValue]
Whether the device checks the activity min width/height to determine
if it can be shown in multi window.
-1: The device ignores the activity min width/height when determining
if it can be shown in multi window.
0: If this is a small screen, the device compares the activity min
width/height with the min multi window modes dimensions
the device supports to determine if the activity can be shown in
multi window.
1: The device always compare the activity min width/height with the
min multi window dimensions the device supports to determine if
the activity can be shown in multi window.
get-multi-window-config
Prints values of the multi window config options.
reset-multi-window-config
Resets overrides to default values of the multi window config options.
reset [-d DISPLAY_ID]
Reset all override settings.
tracing (start | stop)
Start or stop window tracing.
logging (start | stop | enable | disable | enable-text | disable-text)
Logging settings.
adb shell wm
adopt vm After setting , Restart the phone is still valid , If you want to restore the default value , You need to reset, Such as :
adb shell wm size reset
1.adb shell wm size Check the phone resolution
Such as :
adb shell wm size
result :Physical size: 1080x1920
It can also be set to other resolutions
Such as :
adb shell wm size 720x1280
result :Physical size: 720x1280
2.adb shell wm density Look at the screen density
Such as :
adb shell wm density
result :Physical density: 480
It can also be set to other screen densities
Such as :
adb shell wm density 200
result :Physical density: 200
3.adb shell wm overscan Set the display position of the window
Such as :
adb shell wm overscan 200,300,400,500
边栏推荐
- Notes for Resume Writing
- 敏捷开发如何消减协作中的认知偏差?| 敏捷之道
- Comprehensive and detailed SQL learning guide (MySQL direction)
- Print out the "hourglass" and the remaining number according to the given number of characters and characters
- remap_ Use of table in impdp
- [untitled]
- Several common design methods of test cases [easy to understand]
- “为机器立心”:朱松纯团队搭建人与机器人的价值双向对齐系统,解决人机协作领域的重大挑战
- Are you familiar with the redis cluster principle of high paid programmers & interview questions series 122? How to ensure the high availability of redis (Part 2): cluster mechanism and principle, clu
- HMS Core Discovery第16期回顾|与虎墩一起,玩转AI新“声”态
猜你喜欢

Orbslam2 installation test and summary of various problems
![[semantic segmentation] 2021-pvt iccv](/img/43/3756c0dbc30fa2871dc8cae5be9bce.png)
[semantic segmentation] 2021-pvt iccv

Attachment of text of chenjie Report

云服务大厂高管大变阵:技术派让位销售派

电竞入亚后,腾讯要做下一个“NBA赛事捕手”?

跟着武老师学高数——函数、极限和连续(持续更新)

基于SSM实现高校后勤报修系统

Talk about multithreaded concurrent programming from a different perspective without heap concept

高效能7个习惯学习笔记

为什么要使用markdown进行写作?
随机推荐
What happens when MySQL tables change from compressed tables to ordinary tables
TMS320C6000_ Tms320f28035 Chinese data manual
ECCV 2022 | CMU proposes to recurse on the visual transformer without adding parameters, and the amount of calculation is still small
MySQL infrastructure: SQL query statement execution process
Shell笔记(超级完整)
Uniswap entered the NFT trading market and opensea took the lead
Where are those test / development programmers in their 30s? a man should be independent at the age of thirty......
Attachment of text of chenjie Report
网络图片转换本地图片 - 默认值或快捷键
Dimensionality reduction and mathematical modeling after reading blog!
二次握手??三次挥手??
ModuleNotFoundError: No module named ‘pywt‘解决方法
Intel joins hands with datawhale to launch learning projects!
Follow teacher Li to learn line generation determinant (continuous update)
Is it safe to open an account online now? Do you want to know that you must go to the business hall to open an account now?
How beautiful can VIM be configured?
这才是开发者神器正确的打开方式
This is the right way for developers to open artifacts
Research on Android multithreading (4) -- from an interview question
Research on the realization of linear gradient circular progress bar