Comments (3)
Error also shows in console, refer attached screenshot.
from scrcpy.
... 10 more
[server] ERROR: Could not invoke method
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at com.genymobile.scrcpy.wrappers.InputManager.injectInputEvent(InputManager.java:58)
at com.genymobile.scrcpy.Device.injectEvent(Device.java:230)
at com.genymobile.scrcpy.Device.injectEvent(Device.java:234)
at com.genymobile.scrcpy.Controller.injectTouch(Controller.java:362)
at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:162)
at com.genymobile.scrcpy.Controller.control(Controller.java:97)
at com.genymobile.scrcpy.Controller.lambda$start$0$com-genymobile-scrcpy-Controller(Controller.java:105)
at com.genymobile.scrcpy.Controller$$ExternalSyntheticLambda1.run(Unknown Source:4)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.lang.SecurityException: Injecting input events requires the caller (or the source of the instrumentation, if any) to have the INJECT_EVENTS permission.
at android.os.Parcel.createExceptionOrNull(Parcel.java:3057)
at android.os.Parcel.createException(Parcel.java:3041)
at android.os.Parcel.readException(Parcel.java:3024)
at android.os.Parcel.readException(Parcel.java:2966)
at android.hardware.input.IInputManager$Stub$Proxy.injectInputEventToTarget(IInputManager.java:1590)
at android.hardware.input.InputManagerGlobal.injectInputEvent(InputManagerGlobal.java:1217)
at android.hardware.input.InputManagerGlobal.injectInputEvent(InputManagerGlobal.java:1227)
... 10 more
[server] ERROR: Could not invoke method
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at com.genymobile.scrcpy.wrappers.InputManager.injectInputEvent(InputManager.java:58)
at com.genymobile.scrcpy.Device.injectEvent(Device.java:230)
at com.genymobile.scrcpy.Device.injectKeyEvent(Device.java:241)
at com.genymobile.scrcpy.Device.pressReleaseKeycode(Device.java:249)
at com.genymobile.scrcpy.Device.pressReleaseKeycode(Device.java:254)
at com.genymobile.scrcpy.Controller.pressBackOrTurnScreenOn(Controller.java:412)
at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:172)
at com.genymobile.scrcpy.Controller.control(Controller.java:97)
at com.genymobile.scrcpy.Controller.lambda$start$0$com-genymobile-scrcpy-Controller(Controller.java:105)
at com.genymobile.scrcpy.Controller$$ExternalSyntheticLambda1.run(Unknown Source:4)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.lang.SecurityException: Injecting input events requires the caller (or the source of the instrumentation, if any) to have the INJECT_EVENTS permission.
at android.os.Parcel.createExceptionOrNull(Parcel.java:3057)
at android.os.Parcel.createException(Parcel.java:3041)
at android.os.Parcel.readException(Parcel.java:3024)
at android.os.Parcel.readException(Parcel.java:2966)
at android.hardware.input.IInputManager$Stub$Proxy.injectInputEventToTarget(IInputManager.java:1590)
at android.hardware.input.InputManagerGlobal.injectInputEvent(InputManagerGlobal.java:1217)
at android.hardware.input.InputManagerGlobal.injectInputEvent(InputManagerGlobal.java:1227)
... 12 more
Caused by: android.os.RemoteException: Remote stack trace:
at com.android.server.input.InputManagerService.injectInputEventToTarget(InputManagerService.java:925)
at android.hardware.input.IInputManager$Stub.onTransact(IInputManager.java:752)
at android.os.Binder.execTransactInternal(Binder.java:1346)
at android.os.Binder.execTransact(Binder.java:1282)
from scrcpy.
Caused by: java.lang.SecurityException: Injecting input events requires the caller (or the source of the instrumentation, if any) to have the INJECT_EVENTS permission.
Please read https://github.com/Genymobile/scrcpy#prerequisites
from scrcpy.
Related Issues (20)
- Non-USB Debugging Mode (Mobile) HOT 1
- how can I control 3 devices at the same time?
- i would like you to help me to delete adb HOT 2
- Windows goes to sleep causing Android machine memory to increase HOT 9
- Android 5.1 can use??? HOT 1
- I need a two-finger press operation. How do I configure it? HOT 1
- How can i use the internal big screen with scrcpy when the Samsumg Galaxy Fold is on my desk and closed?
- I want feature send command click scrcpy not adb
- How Do I Uninstall and Install the Latest Version of scrcpy on Windows 11? HOT 7
- Xiaomi 10 , error on clic HOT 6
- Install Script: Server Version mismatch Client Version HOT 1
- black screen using Molly Foss (fork of signal messenger) HOT 2
- Windows 10 - decvice connects but shows no screen HOT 4
- Touch pen problem HOT 1
- scrcpy fails to start with Oppo Android 12 Device HOT 2
- spam
- Mouse & Keyboard not working (the same thing all again) HOT 4
- Audio graininess problem (basically unsolvable, since there's no error log o anything similar) HOT 1
- ThreadSanitizer reports a data race
- Windows 7 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scrcpy.