scrcpy: Can no longer paste from Windows 10 to Android 13 (QPR Beta 1)
Device: Pixel 6 Pro Android OS: 13 QPR Beta 1 Windows 10 Scrcpy 1.24
Terminal output when I press CTRL-V in scrcpy window:
[server] ERROR: Could not invoke method
[server] ERROR: Could not invoke method
java.lang.NoSuchMethodException: android.content.IClipboard$Stub$Proxy.getPrimaryClip [class java.lang.String, int]
at java.lang.Class.getMethod(Class.java:2103)
at java.lang.Class.getMethod(Class.java:1724)
at com.genymobile.scrcpy.wrappers.ClipboardManager.getGetPrimaryClipMethod(ClipboardManager.java:28)
at com.genymobile.scrcpy.wrappers.ClipboardManager.getText(ClipboardManager.java:63)
at com.genymobile.scrcpy.Device.getClipboardText(Device.java:251)
at com.genymobile.scrcpy.Device.setClipboardText(Device.java:264)
at com.genymobile.scrcpy.Controller.setClipboard(Controller.java:300)
at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:124)
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)
java.lang.NoSuchMethodException: android.content.IClipboard$Stub$Proxy.setPrimaryClip [class android.content.ClipData, class java.lang.String, int]
at java.lang.Class.getMethod(Class.java:2103)
at java.lang.Class.getMethod(Class.java:1724)
at com.genymobile.scrcpy.wrappers.ClipboardManager.getSetPrimaryClipMethod(ClipboardManager.java:39)
at com.genymobile.scrcpy.wrappers.ClipboardManager.setText(ClipboardManager.java:77)
at com.genymobile.scrcpy.Device.setClipboardText(Device.java:274)
at com.genymobile.scrcpy.Controller.setClipboard(Controller.java:300)
at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:124)
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)
EDIT by rom1v: Fixed in scrcpy v1.25.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 22
Commits related to this issue
- Adapt ClipboardManager for Android 13 A new "attributionTag" parameter has been added to the methods getPrimaryClip(), setPrimaryClip() and addPrimaryClipChangedListener() of IClipboard.aidl. Refs <... — committed to Genymobile/scrcpy by rom1v 2 years ago
- Adapt ClipboardManager for Android 13 A new "attributionTag" parameter has been added to the methods getPrimaryClip(), setPrimaryClip() and addPrimaryClipChangedListener() of IClipboard.aidl. Refs <... — committed to Genymobile/scrcpy by rom1v 2 years ago
Just FYI, alternatively, you could download it anywhere, and set the environment variable
SCRCPY_SERVER_PATH
:Just take this binary: https://github.com/Genymobile/scrcpy/issues/3497#issuecomment-1246780900 and replace it in your v1.24 release.
Merged into
dev
: 82cb8ab870140403f244fba80ddf2bc5b26b2d78 (will be in the next release)Confirmed to be working for Pixel 6 Pro as well. Thanks!
It’s working fine here on Pixel 7. Thanks!
They finally published the change in AOSP: 0e3e509b.
A new parameter
attributionTag
has been added. We can probably passnull
as a value.Please test this new binary and confirm that it works.
diff
EDIT: new binary:
scrcpy-server
SHA-256: f5e633584164bbd1105e58dedfd7bb1262e6a8a75553ec674737b8e7315dd2b2
OK, the function signature has changed on your device, but this does not match the AOSP source code on tag
android-13.0.0_r6
.So they probably changed something whose source code is not published yet, so I don’t know what is the meaning of this additional
String
parameter.Let’s try to pass the package name twice:
diff
scrcpy-server
SHA-256: b22d8354e3792f88afa2697d45e3dcf9c77724337392683d99c8941c7b824b73