zoukankan      html  css  js  c++  java
  • Pyhton3+AirTest+[005]+小程序UI自动化之报错:uid 2000 does not have android.permission.WRITE_SECURE_SETTINGS解决方法

    UI报错:

    stdout[b''] stderr[b'Security exception: uid 2000 does not have android.permission.WRITE_SECURE_SETTINGS. java.lang.SecurityException: uid 2000 does not have android.permission.WRITE_SECURE_SETTINGS. at android.app.ContextImpl.enforce(ContextImpl.java:1953) at android.app.ContextImpl.enforceCallingPermission(ContextImpl.java:1971) at com.android.server.inputmethod.InputMethodManagerService$ShellCommandImpl.lambda$onCommand$0$InputMethodManagerService$ShellCommandImpl(InputMethodManagerService.java:4867) at com.android.server.inputmethod.-$$Lambda$InputMethodManagerService$ShellCommandImpl$DbZq_GIUJWcuMsIpw_Jz5jVT2-Y.accept(Unknown Source:4) at java.util.Arrays$ArrayList.forEach(Arrays.java:3805) at com.android.server.inputmethod.InputMethodManagerService$ShellCommandImpl.onCommand(InputMethodManagerService.java:4867) at android.os.ShellCommand.exec(ShellCommand.java:104) at com.android.server.inputmethod.InputMethodManagerService.onShellCommand(InputMethodManagerService.java:4841) at android.os.Binder.shellCommand(Binder.java:881) at android.os.Binder.onTransact(Binder.java:765) at com.android.internal.view.IInputMethodManager$Stub.onTransact(IInputMethodManager.java:433) at com.android.server.inputmethod.InputMethodManagerService.onTransact(InputMethodManagerService.java:1628) at com.android.server.inputmethod.ColorInputMethodManagerService.onTransact(ColorInputMethodManagerService.java:82) at android.os.Binder.execTransactInternal(Binder.java:1021) at android.os.Binder.execTransact(Binder.java:994) ']

    解决方法:

    小米:在开发者选项里,把“USB调试(安全设置)"打开即可。 允许USB调试修改权限或模拟点击

    oppo:在开发者选项里,把"禁止权限监控"打开即可。

    当有些人一出生就有的东西,我们要为之奋斗几十年才拥有。但有一样东西,你一辈子都不会有,那就是我们曾经一无所有。
  • 相关阅读:
    500 多个 Linux 命令文档搜索
    C++ 字符串基本操作
    串的模式匹配算法
    查看、启动、关闭防火墙
    天润融通面试
    LeetCode 169. 求众数
    【面试题】人人车一次面试总结
    一个完整的 JS 身份证校验代码
    oracle多表查询
    百度地图的Icon
  • 原文地址:https://www.cnblogs.com/chushujin/p/15271857.html
Copyright © 2011-2022 走看看