appium连接真机,点击启动会话报:settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy’’ exited with code 255’

机型:OPPO或其它安卓手机

场景:Start session 报错 settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy’’ exited with code 255’; Stderr: 'Exception occurred while executing ‘delete’: java.lang.SecurityException: Permission denial: writing to settings

解决办法:设置中搜索 “禁止权限监控”,开启此选项

posted @ 2024-10-27 21:32  干脆面666  Views(56)  Comments(0Edit  收藏  举报
/* 看板娘 */ /* 点击鼠标烟花效果 */