barry-ran / QtScrcpy

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

小米13连接上后,只能看,无法控制 #873

Open kzh521 opened 10 months ago

kzh521 commented 10 months ago

update devices... adb run AdbProcessImpl::out:List of devices attached 319e3385 device 192.168.5.18:5555 device emulator-5556 offline

start server... AdbProcessImpl::out:D:/QtScrcpy-win-x64-v2.1.1/scrcpy-server: 1 file pushed, 0 skipped. 65.6 MB/s (41159 bytes in 0.001s)

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

server start finish in 0.602s

AdbProcessImpl::out:[server] ERROR: Could not invoke method [server] DEBUG: Using encoder: 'c2.qti.avc.encoder'

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)

update devices... adb run AdbProcessImpl::out:List of devices attached 319e3385 device 192.168.5.18:5555 device emulator-5556 offline

update devices... adb run AdbProcessImpl::out:List of devices attached 319e3385 device 192.168.5.18:5555 device emulator-5556 offline

kechuan commented 10 months ago

看看你的开发者选项里的 USB调试(安全设置)有没有打开 下面的功能介绍里有这样一段话:允许透过usb调试修改权限或模拟点击

无论是scrcpy还是这个都会需要这个东西来点击操作的

kzh521 commented 10 months ago

开usb调试了 2728336d74be43e343be2cc2e9a3f15

kzh521 commented 10 months ago

还是没有作用

kzh521 commented 10 months ago

update devices... adb run AdbProcessImpl::out:List of devices attached 319e3385 device emulator-5556 offline

start server... AdbProcessImpl::out:D:/QtScrcpy-win-x64-v2.1.1/scrcpy-server: 1 file pushed, 0 skipped. 56.3 MB/s (41159 bytes in 0.001s)

update devices... adb run AdbProcessImpl::out:List of devices attached 319e3385 device emulator-5556 offline

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

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

server start finish in 0.556s

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'

"pos": {"x": 0.555556, "y": 0.563095}

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

update devices... adb run AdbProcessImpl::out:List of devices attached 319e3385 device emulator-5556 offline

update devices... adb run AdbProcessImpl::out:List of devices attached 319e3385 device emulator-5556 offline

update devices... adb run AdbProcessImpl::out:List of devices attached 319e3385 device emulator-5556 offline

update devices... adb run AdbProcessImpl::out:List of devices attached 319e3385 device emulator-5556 offline

update devices... adb run AdbProcessImpl::out:List of devices attached 319e3385 device emulator-5556 offline

update devices... adb run AdbProcessImpl::out:List of devices attached 319e3385 device emulator-5556 offline

update devices... adb run AdbProcessImpl::out:List of devices attached 319e3385 device emulator-5556 offline

update devices... adb run AdbProcessImpl::out:List of devices attached 319e3385 device emulator-5556 offline

update devices... adb run AdbProcessImpl::out:List of devices attached 319e3385 device emulator-5556 offline

update devices... adb run AdbProcessImpl::out:List of devices attached 319e3385 device emulator-5556 offline

update devices... adb run AdbProcessImpl::out:List of devices attached 319e3385 device emulator-5556 offline

update devices... adb run AdbProcessImpl::out:List of devices attached 319e3385 device emulator-5556 offline

update devices... adb run AdbProcessImpl::out:List of devices attached 319e3385 device emulator-5556 offline

kechuan commented 10 months ago

那。。不好意思 我也不知道了 我是发现这东西对安卓版本越高就越难用

以前我的安卓10的旧机 开了就能用

到后面我的安卓13需要root调那个安全中心的配置文件才能用。。 依据这个方法: https://zhuanlan.zhihu.com/p/603628922

image

JensonSuen commented 10 months ago

按照您知乎给的方法,我还是不行 设备:13Pro 版本:MIUI14.0.4 请问还有其他解决方案吗

00helloworld11 commented 10 months ago

兄弟我开始跟你一样的问题,重启一下手机就好了

开usb调试了 2728336d74be43e343be2cc2e9a3f15

controlledentropy commented 10 months ago

miui14路过,开启上面所有选项重启试试。我也是第一次使用usb和wireless debug都不能操控。后来打开所有调试相关选项,后续重启过机器后偶然尝试一下发现可以正常使用了

clovis01 commented 5 months ago

小米澎湃OS也是把USB的都打开,重启一下就可以控制了