android - adb 命令检查设备是否锁定到网络
问题描述
在我的 python 框架中,我想检查 dut 是否使用 ADB 命令锁定到网络。我使用了以下命令:
adb shell dumpsys telephony.registry | grep "mServiceState"
但它给出了一个大字符串,使我的代码复杂,有没有直接命令???
解决方案
推荐阅读
- android - Kotlin 单元不返回字符串
- html - thymeaf 中的参数 css 宽度
- javascript - 函数式编程何时使用 curry
- powershell - 来自powershell的cmd脚本
- wordpress - 如何从前端修改自定义类别字段?
- android - 如何从 Android 中 JSONArray 中的 JSONArray 中的数组获取字符串?
- c# - 在 c# mongodb 驱动程序中,如何将序列化程序中的 dateOnly 设置为可为空的日期时间对象?
- python - 如何在 Openpyxl 中找到最后一个非空白单元格?
- java - Java 日志文件包含重复记录
- c# - Dynamics crm 查询表达式 Email Entity with to 属性