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
解决办法:设置中搜索 “禁止权限监控”,开启此选项