Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problème pour contrôler avec la souris #4887

Open
2 tasks
hazzics opened this issue Apr 24, 2024 · 4 comments
Open
2 tasks

problème pour contrôler avec la souris #4887

hazzics opened this issue Apr 24, 2024 · 4 comments

Comments

@hazzics
Copy link

hazzics commented Apr 24, 2024

Salut j'ai ce message qui s'affiche quand je clique sur la page avec ma souris

[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:3011)
at android.os.Parcel.createException(Parcel.java:2995)
at android.os.Parcel.readException(Parcel.java:2978)
at android.os.Parcel.readException(Parcel.java:2920)
at android.hardware.input.IInputManager$Stub$Proxy.injectInputEventToTarget(IInputManager.java:1294)
at android.hardware.input.InputManager.injectInputEvent(InputManager.java:1153)
at android.hardware.input.InputManager.injectInputEvent(InputManager.java:1182)
... 10 more

  • I have read the FAQ.
  • I have searched in existing issues.

Environment

  • OS: [e.g. Debian, Windows, macOS...]
  • scrcpy version: [e.g. 1.12.1]
  • installation method: [e.g. manual build, apt, snap, brew, Windows release...]
  • device model:
  • Android version: [e.g. 10]

Describe the bug
A clear and concise description of what the bug is.

On errors, please provide the output of the console (and adb logcat if relevant).

Please paste terminal output in a code block.

Please do not post screenshots of your terminal, just post the content as text instead.

@rom1v
Copy link
Collaborator

rom1v commented Apr 24, 2024

@hazzics
Copy link
Author

hazzics commented Apr 24, 2024

ça me dit que pour activer le debugging usb il me faut une carte sim, il n'y a pas moyen de contourner ça ?

@rom1v
Copy link
Collaborator

rom1v commented Apr 24, 2024

That's weird. It should not be necessary. Xiaomi, I suppose? (often they require to create a Xiaomi account to enable USB Debugging (security settings)).

@vortexfr1
Copy link

comment faire pour le USB Debugging (security settings) ???? Je trouve pas :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants