Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
111.6k stars 10.69k forks source link

Make scrcpy work with adb over tcpip #5

Closed h43z closed 6 years ago

h43z commented 6 years ago

Great useful tool. Thank you. It would be really cool if the device did not have to be connected via usb.

moderatoburrito commented 6 years ago

No, 4.4.2 unfortunately. A bit ancient. Was trying to find a way to root it and upgrade Android unofficially but was proving very time-consuming.

moderatoburrito commented 6 years ago

Thanks anyway! I see that there's a fundamental compatibility issue.

alex-Symbroson commented 5 years ago

Will the issue be fixes in the near future? I'm currently having a similar problem while trying to use scrcpy via adb usb on a tolino tablet running android 4.4.4 scrcpy aborts after

error: closed
ERROR: "adb reverse" returned with value 1
WARNING: 'adb reverse' failed, fallback to 'adb forward'
Raju commented 4 years ago

this will allow scrcpy to work wirelessly

pranavburnwal commented 4 years ago

Question: Do we have to every time first connect via usb and then switch wireless or its just first time?

AdmoMontes commented 1 year ago

Help me... i have error: Phone: Xiaomi Redmi K40 / Poco F3

[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:37) at com.genymobile.scrcpy.Device.injectEvent(Device.java:192) at com.genymobile.scrcpy.Device.injectEvent(Device.java:196) at com.genymobile.scrcpy.Controller.injectTouch(Controller.java:320) at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:134) at com.genymobile.scrcpy.Controller.control(Controller.java:83) at com.genymobile.scrcpy.Controller.lambda$start$0$com-genymobile-scrcpy-Controller(Controller.java:90) at com.genymobile.scrcpy.Controller$$ExternalSyntheticLambda0.run(Unknown Source:2) 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

rom1v commented 1 year ago

@AdmoMontes https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#mouse-and-keyboard-do-not-work (but this is not the right place to ask, this issue is about adb over tcpip)