Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
103.02k stars 10.01k forks source link

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

Open hazzics opened 3 weeks ago

hazzics commented 3 weeks ago

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

Environment

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 commented 3 weeks ago

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

hazzics commented 3 weeks ago

ç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 commented 3 weeks ago

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 commented 2 weeks ago

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