命令执行失败:
Exception occurred while executing 'swipe':
java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission
at com.android.server.input.InputManagerService.injectInputEventInternal(InputManagerService.java:928)
at com.android.server.input.InputManagerService.injectInputEvent(InputManagerService.java:880)
at android.hardware.input.InputManager.injectInputEvent(InputManager.java:1091)
at com.android.server.input.InputShellCommand.injectMotionEvent(InputShellCommand.java:138)
at com.android.server.input.InputShellCommand.sendSwipe(InputShellCommand.java:370)
at com.android.server.input.InputShellCommand.runSwipe(InputShellCommand.java:354)
at com.android.server.input.InputShellCommand.onCommand(InputShellCommand.java:194)
at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
at android.os.ShellCommand.exec(ShellCommand.java:38)
at com.android.server.input.InputManagerService.onShellCommand(InputManagerService.java:3554)
at android.os.Binder.shellCommand(Binder.java:953)
at android.os.Binder.onTransact(Binder.java:837)
at android.hardware.input.IInputManager$Stub.onTransact(IInputManager.java:1125)
at android.os.Binder.execTransactInternal(Binder.java:1187)
at android.os.Binder.execTransact(Binder.java:1146)
命令执行失败: Exception occurred while executing 'swipe': java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission at com.android.server.input.InputManagerService.injectInputEventInternal(InputManagerService.java:928) at com.android.server.input.InputManagerService.injectInputEvent(InputManagerService.java:880) at android.hardware.input.InputManager.injectInputEvent(InputManager.java:1091) at com.android.server.input.InputShellCommand.injectMotionEvent(InputShellCommand.java:138) at com.android.server.input.InputShellCommand.sendSwipe(InputShellCommand.java:370) at com.android.server.input.InputShellCommand.runSwipe(InputShellCommand.java:354) at com.android.server.input.InputShellCommand.onCommand(InputShellCommand.java:194) at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97) at android.os.ShellCommand.exec(ShellCommand.java:38) at com.android.server.input.InputManagerService.onShellCommand(InputManagerService.java:3554) at android.os.Binder.shellCommand(Binder.java:953) at android.os.Binder.onTransact(Binder.java:837) at android.hardware.input.IInputManager$Stub.onTransact(IInputManager.java:1125) at android.os.Binder.execTransactInternal(Binder.java:1187) at android.os.Binder.execTransact(Binder.java:1146)