barry-ran / QtScrcpy

Android real-time display control software
https://blog.csdn.net/rankun1/article/details/87970523
Apache License 2.0
19.84k stars 2.63k forks source link

红米K40pro+ 澎湃系统,无法控制手机,显示坐标,手机无响应 #1001

Open jinx946 opened 3 months ago

jinx946 commented 3 months ago

start server... AdbProcessImpl::out:D:/sofeware/QtScrcpy-win-x64-v2.1.2/scrcpy-server: 1 file pushed, 0 skipped. 22.4 MB/s (41159 bytes in 0.002s)

AdbProcessImpl::out:[server] INFO: Device: Xiaomi M2012K11C (Android 14)

AdbProcessImpl::out:[server] ERROR: Could not invoke method

server start finish in 0.442s

AdbProcessImpl::error:java.lang.NoSuchMethodException: android.content.IClipboard$Stub$Proxy.addPrimaryClipChangedListener [interface android.content.IOnPrimaryClipChangedListener, class java.lang.String, int] at java.lang.Class.getMethod(Class.java:2937) at java.lang.Class.getMethod(Class.java:2449) at com.genymobile.scrcpy.wrappers.ClipboardManager.getAddPrimaryClipChangedListener(ClipboardManager.java:103) at com.genymobile.scrcpy.wrappers.ClipboardManager.addPrimaryClipChangedListener(ClipboardManager.java:111) at com.genymobile.scrcpy.Device.(Device.java:103) at com.genymobile.scrcpy.Server.scrcpy(Server.java:65) at com.genymobile.scrcpy.Server.main(Server.java:335) at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:368)

AdbProcessImpl::out:[server] DEBUG: Using encoder: 'c2.qti.avc.encoder'

AdbProcessImpl::out:[server] ERROR: Could not invoke method [server] ERROR: Could not get built-in display

AdbProcessImpl::error:java.lang.NoSuchMethodException: android.view.SurfaceControl.getInternalDisplayToken [] at java.lang.Class.getMethod(Class.java:2937) at java.lang.Class.getMethod(Class.java:2449) at com.genymobile.scrcpy.wrappers.SurfaceControl.getGetBuiltInDisplayMethod(SurfaceControl.java:94) at com.genymobile.scrcpy.wrappers.SurfaceControl.getBuiltInDisplay(SurfaceControl.java:103) at com.genymobile.scrcpy.Device.setScreenPowerMode(Device.java:283) at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:129) at com.genymobile.scrcpy.Controller.control(Controller.java:75) at com.genymobile.scrcpy.Server$3.run(Server.java:133) at java.lang.Thread.run(Thread.java:1012)

"pos": {"x": 0.516923, "y": 0.602778}

AdbProcessImpl::out:[server] ERROR: Exception on thread Thread[Thread-2,5,main]

AdbProcessImpl::error:java.lang.AssertionError: java.lang.reflect.InvocationTargetException at com.genymobile.scrcpy.wrappers.ServiceManager.getInputManager(ServiceManager.java:65) at com.genymobile.scrcpy.Device.injectEvent(Device.java:195) at com.genymobile.scrcpy.Device.injectEvent(Device.java:199) at com.genymobile.scrcpy.Controller.injectTouch(Controller.java:223) at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:98) at com.genymobile.scrcpy.Controller.control(Controller.java:75) at com.genymobile.scrcpy.Server$3.run(Server.java:133) at java.lang.Thread.run(Thread.java:1012) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at com.genymobile.scrcpy.wrappers.ServiceManager.getInputManager(ServiceManager.java:62) ... 7 more Caused by: java.lang.NullPointerException at java.util.Objects.requireNonNull(Objects.java:207) at android.hardware.input.InputManager.getInstance(InputManager.java:271) ... 9 more

"pos": {"x": 0.316923, "y": 0.597222}

"pos": {"x": 0.664615, "y": 0.331944}

update devices... adb run AdbProcessImpl::out:List of devices attached 40b38e69 device 192.168.112.18:5555 device

start server... AdbProcessImpl::out:D:/sofeware/QtScrcpy-win-x64-v2.1.2/scrcpy-server: 1 file pushed, 0 skipped. 103.6 MB/s (41159 bytes in 0.000s)

AdbProcessImpl::out:[server] INFO: Device: Xiaomi M2012K11C (Android 14)

AdbProcessImpl::out:[server] ERROR: Could not invoke method

server start finish in 0.321s

AdbProcessImpl::error:java.lang.NoSuchMethodException: android.content.IClipboard$Stub$Proxy.addPrimaryClipChangedListener [interface android.content.IOnPrimaryClipChangedListener, class java.lang.String, int] at java.lang.Class.getMethod(Class.java:2937) at java.lang.Class.getMethod(Class.java:2449) at com.genymobile.scrcpy.wrappers.ClipboardManager.getAddPrimaryClipChangedListener(ClipboardManager.java:103) at com.genymobile.scrcpy.wrappers.ClipboardManager.addPrimaryClipChangedListener(ClipboardManager.java:111) at com.genymobile.scrcpy.Device.(Device.java:103) at com.genymobile.scrcpy.Server.scrcpy(Server.java:65) at com.genymobile.scrcpy.Server.main(Server.java:335) at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:368)

AdbProcessImpl::out:[server] DEBUG: Using encoder: 'c2.qti.avc.encoder'

AdbProcessImpl::out:[server] ERROR: Could not invoke method [server] ERROR: Could not get built-in display

AdbProcessImpl::error:java.lang.NoSuchMethodException: android.view.SurfaceControl.getInternalDisplayToken [] at java.lang.Class.getMethod(Class.java:2937) at java.lang.Class.getMethod(Class.java:2449) at com.genymobile.scrcpy.wrappers.SurfaceControl.getGetBuiltInDisplayMethod(SurfaceControl.java:94) at com.genymobile.scrcpy.wrappers.SurfaceControl.getBuiltInDisplay(SurfaceControl.java:103) at com.genymobile.scrcpy.Device.setScreenPowerMode(Device.java:283) at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:129) at com.genymobile.scrcpy.Controller.control(Controller.java:75) at com.genymobile.scrcpy.Server$3.run(Server.java:133) at java.lang.Thread.run(Thread.java:1012)

update devices... adb run AdbProcessImpl::out:List of devices attached 40b38e69 device 192.168.112.18:5555 device

update devices... adb run AdbProcessImpl::out:List of devices attached 40b38e69 device 192.168.112.18:5555 device

update devices... adb run AdbProcessImpl::out:List of devices attached 40b38e69 device 192.168.112.18:5555 device

update devices... adb run AdbProcessImpl::out:List of devices attached 40b38e69 device 192.168.112.18:5555 device

update devices... adb run AdbProcessImpl::out:List of devices attached 40b38e69 device 192.168.112.18:5555 device

update devices... adb run AdbProcessImpl::out:List of devices attached 40b38e69 device 192.168.112.18:5555 device

update devices... adb run AdbProcessImpl::out:List of devices attached 40b38e69 device 192.168.112.18:5555 device

update devices... adb run AdbProcessImpl::out:List of devices attached 40b38e69 device 192.168.112.18:5555 device

update devices... adb run AdbProcessImpl::out:List of devices attached 40b38e69 device 192.168.112.18:5555 device

update devices... adb run AdbProcessImpl::out:List of devices attached 40b38e69 device 192.168.112.18:5555 device

update devices... adb run AdbProcessImpl::out:List of devices attached 40b38e69 device 192.168.112.18:5555 device

update devices... adb run AdbProcessImpl::out:List of devices attached 40b38e69 device 192.168.112.18:5555 device

update devices... adb run AdbProcessImpl::out:List of devices attached 40b38e69 device 192.168.112.18:5555 device

update devices... adb run AdbProcessImpl::out:List of devices attached 40b38e69 device 192.168.112.18:5555 device

"pos": {"x": 0.403694, "y": 0.429762}

AdbProcessImpl::out:[server] ERROR: Exception on thread Thread[Thread-2,5,main]

AdbProcessImpl::error:java.lang.AssertionError: java.lang.reflect.InvocationTargetException at com.genymobile.scrcpy.wrappers.ServiceManager.getInputManager(ServiceManager.java:65) at com.genymobile.scrcpy.Device.injectEvent(Device.java:195) at com.genymobile.scrcpy.Device.injectEvent(Device.java:199) at com.genymobile.scrcpy.Controller.injectTouch(Controller.java:223) at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:98) at com.genymobile.scrcpy.Controller.control(Controller.java:75) at com.genymobile.scrcpy.Server$3.run(Server.java:133) at java.lang.Thread.run(Thread.java:1012) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at com.genymobile.scrcpy.wrappers.ServiceManager.getInputManager(ServiceManager.java:62) ... 7 more Caused by: java.lang.NullPointerException at java.util.Objects.requireNonNull(Objects.java:207) at android.hardware.input.InputManager.getInstance(InputManager.java:271) ... 9 more

"pos": {"x": 0.519789, "y": 0.434524}

"pos": {"x": 0.585752, "y": 0.45}

update devices... adb run AdbProcessImpl::out:List of devices attached 40b38e69 device 192.168.112.18:5555 device

update devices... adb run AdbProcessImpl::out:List of devices attached 40b38e69 device 192.168.112.18:5555 device

update devices... adb run AdbProcessImpl::out:List of devices attached 40b38e69 device 192.168.112.18:5555 device

update devices... adb run AdbProcessImpl::out:List of devices attached 40b38e69 device 192.168.112.18:5555 device

ilh-github commented 2 months ago

我也是这样的问题,请问您是怎么解决的?