scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

problème pour contrôler avec la souris

Open hazzics opened this issue 1 year ago • 4 comments

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.

hazzics avatar Apr 24 '24 18:04 hazzics

https://github.com/Genymobile/scrcpy#prerequisites

rom1v avatar Apr 24 '24 19:04 rom1v

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

hazzics avatar Apr 24 '24 20:04 hazzics

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)).

rom1v avatar Apr 24 '24 20:04 rom1v

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

vortexfr1 avatar Apr 29 '24 18:04 vortexfr1