[英]How to verify android device Screen ON or OFF using adb shell command
[英]How to find out Android device diagonal display width or screen size using adb shell?
我需要找出设备宽度,以根据每个设备的不同宽度跟踪设置的不同动作,该动作还用于编写脚本以使过程自动化。 通过研究,我发现使用某些命令,例如-
$ adb shell wm size
Output-Physical size: 720x1280
adb shell wm density
Output-Physical density: 320
想知道是否还有其他更好的方法?
dumpsys命令的确切格式取决于硬件供应商(图形芯片组/驱动程序和手机本身),但您应该能够在adb shell dumpsys显示输出中找到该信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.