python - 如何在模拟器中控制 WiFi?
问题描述
我想通过我的 python 代码在 genymotion 设备中控制我的 WiFi 设置(只是关闭和打开它)。你有什么建议吗?我通过从导航菜单中单击来尝试它,但我知道不同的设备具有不同的 WiFi 可访问性 ID!
解决方案
You can use genyshell with command genyshell -c "network setprofile no-data"
. See https://docs.genymotion.com/desktop/latest/05_Genymotion_Shell.html.
推荐阅读
- pytorch - can't find the inplace operation: one of the variables needed for gradient computation has been modified by an inplace operation
- python - 选择具有边界规则的感兴趣区域
- php - Upon ajax success, div does not output php result
- html - 在第 5 个元素之后使用 flex-wrap 中断到下一行的问题。
- google-sheets - If any number in one range of cells matches a number in another range of cells, highlight them?
- r - 使用 dplyr 创建新标签并计算现有列中的相应值
- python-3.x - SQLAthanor:仅序列化为 json 特定字段
- swift - ARKit Stereo – 是否可以同时运行两个 ARSCNView?
- javascript - 如何为 ul 列表添加/删除活动类?
- java - 使用opencsv对空白csv文件将csv转换为bean时如何解决运行时异常