当前位置:网站首页>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
边栏推荐
- Intel joins hands with datawhale to launch learning projects!
- 造型科幻、标配6安全气囊,风行·游艇11.99万起售
- Skiasharp's WPF self drawn bouncing ball (case version)
- [log frame]
- Implementation of college logistics repair application system based on SSM
- 【论文阅读】Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT
- Follow teacher Li to learn line generation determinant (continuous update)
- Summary of JD internship written examination questions
- Notes for Resume Writing
- Follow teacher Wu to learn advanced numbers - function, limit and continuity (continuous update)
猜你喜欢

This developer, who has been on the list for four consecutive weeks, has lived like a contemporary college student

After eating Alibaba's core notes of highly concurrent programming, the backhand rose 5K

Shell notes (super complete)

12th generation core processor +2.8k OLED ASUS good screen, lingyao 142022 shadow cyan glaze business thin book

PDF处理还收费?不可能

Examples of specific usage of diagnostic instructions in s7-1200 and s7-1500 (led+devicestates+modulestates)

Implementation of college logistics repair application system based on SSM
![[HFCTF 2021 Final]easyflask](/img/58/8113cafae8aeafcb1c9ad09eefd30f.jpg)
[HFCTF 2021 Final]easyflask

汉源高科千兆2光6电导轨式网管型工业级以太网交换机支持X-Ring冗余环网一键环网交换机

ECCV 2022 | CMU提出在视觉Transformer上进行递归,不增参数,计算量还少
随机推荐
[Yugong series] go teaching course 009 in July 2022 - floating point type of data type
通俗易懂讲解梯度下降法!
[IVI] 17.1 debugging pit FAQ (compilation)
Second handshake?? Three waves??
There is still a chance
Modulenotfounderror: no module named 'pywt' solution
“为机器立心”:朱松纯团队搭建人与机器人的价值双向对齐系统,解决人机协作领域的重大挑战
Follow teacher Wu to learn advanced numbers - function, limit and continuity (continuous update)
根据给定字符数和字符,打印输出“沙漏”和剩余数
What is the difference between a global index and a local index?
电竞入亚后,腾讯要做下一个“NBA赛事捕手”?
2018-UperNet ECCV
消费电子,冻死在夏天
The purpose of DDD to divide domains, sub domains, core domains, and support domains
Summary of window system operation skills
ModuleNotFoundError: No module named ‘pywt‘解决方法
Tell you from my accident: Mastering asynchrony is key
静态资源映射
Leetcode question brushing - sorting
【黑马早报】每日优鲜回应解散,多地已无法下单;李斌称蔚来将每年出一部手机;李嘉诚欲抄底恒大香港总部大楼;今年国庆休7天上7天...