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:在开发者选项里,把"禁止权限监控"打开即可。