zdf-blog

今天在使用oppo手机执行appium自动化测试的时候,总是报如下异常:

 

java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS

原来写入的权限被手机拒绝了,需要在开发者选项中开启:“禁止权限监控”(默认是关闭的)

开启该权限后再次运行脚本,能正常启动App。

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-08
  • 2022-12-23
  • 2021-09-30
  • 2021-10-13
猜你喜欢
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2021-08-24
  • 2021-11-01
  • 2021-12-06
相关资源
相似解决方案