Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not copy text from device to computer #1833

Closed
2 tasks done
kirin233x opened this issue Oct 14, 2020 · 2 comments
Closed
2 tasks done

Could not copy text from device to computer #1833

kirin233x opened this issue Oct 14, 2020 · 2 comments

Comments

@kirin233x
Copy link

kirin233x commented Oct 14, 2020

  • I have read the FAQ.
  • I have searched in existing issues.

Environment

  • OS: windows
  • scrcpy version: [e.g. 1.16.1]
  • installation method: whole package
  • device model:
  • Android version: android 10

Describe the bug
I cannot copy text from device to computer

  1. copy text in device, or use mod+c/ctrl c
  2. paste in computer by using ctrl+v, not work.
[server] ERROR: Could not invoke method
java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Method.invoke(Native Method)
        at com.genymobile.scrcpy.wrappers.ClipboardManager.getPrimaryClip(ClipboardManager.java:49)
        at com.genymobile.scrcpy.wrappers.ClipboardManager.getText(ClipboardManager.java:64)
        at com.genymobile.scrcpy.Device.getClipboardText(Device.java:212)
        at com.genymobile.scrcpy.Device$2.dispatchPrimaryClipChanged(Device.java:95)
        at android.content.IOnPrimaryClipChangedListener$Stub.onTransact(IOnPrimaryClipChangedListener.java:82)
        at android.os.Binder.execTransactInternal(Binder.java:1028)
        at android.os.Binder.execTransact(Binder.java:1001)
Caused by: java.lang.SecurityException: Calling uid 0 does not own package com.android.shell
        at android.os.Parcel.createException(Parcel.java:2071)
        at android.os.Parcel.readException(Parcel.java:2039)
        at android.os.Parcel.readException(Parcel.java:1987)
        at android.content.IClipboard$Stub$Proxy.getPrimaryClip(IClipboard.java:352)
        ... 8 more
Caused by: android.os.RemoteException: Remote stack trace:
        at com.android.server.clipboard.ClipboardService.addActiveOwnerLocked(libmapleservices.so:6324436)
        at com.android.server.clipboard.ClipboardService$ClipboardImpl.getPrimaryClip(libmapleservices.so:6343820)
        at android.content.IClipboard$Stub.onTransact(libmapleframework.so:1597744)
        at com.android.server.clipboard.ClipboardService$ClipboardImpl.onTransact(libmapleservices.so:3137716)
        at android.os.Binder.execTransactInternal(libmapleframework.so:5521104)

[server] ERROR: Could not invoke method
java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Method.invoke(Native Method)
        at com.genymobile.scrcpy.wrappers.ClipboardManager.getPrimaryClip(ClipboardManager.java:49)
        at com.genymobile.scrcpy.wrappers.ClipboardManager.getText(ClipboardManager.java:64)
        at com.genymobile.scrcpy.Device.getClipboardText(Device.java:212)
        at com.genymobile.scrcpy.Device$2.dispatchPrimaryClipChanged(Device.java:95)
        at android.content.IOnPrimaryClipChangedListener$Stub.onTransact(IOnPrimaryClipChangedListener.java:82)
        at android.os.Binder.execTransactInternal(Binder.java:1028)
        at android.os.Binder.execTransact(Binder.java:1001)
Caused by: java.lang.SecurityException: Calling uid 0 does not own package com.android.shell
        at android.os.Parcel.createException(Parcel.java:2071)
        at android.os.Parcel.readException(Parcel.java:2039)
        at android.os.Parcel.readException(Parcel.java:1987)
        at android.content.IClipboard$Stub$Proxy.getPrimaryClip(IClipboard.java:352)
        ... 8 more
Caused by: android.os.RemoteException: Remote stack trace:
        at com.android.server.clipboard.ClipboardService.addActiveOwnerLocked(libmapleservices.so:6324436)
        at com.android.server.clipboard.ClipboardService$ClipboardImpl.getPrimaryClip(libmapleservices.so:6343820)
        at android.content.IClipboard$Stub.onTransact(libmapleframework.so:1597744)
        at com.android.server.clipboard.ClipboardService$ClipboardImpl.onTransact(libmapleservices.so:3137716)
        at android.os.Binder.execTransactInternal(libmapleframework.so:5521104)

[server] ERROR: Could not invoke method
java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Method.invoke(Native Method)
        at com.genymobile.scrcpy.wrappers.ClipboardManager.getPrimaryClip(ClipboardManager.java:49)
        at com.genymobile.scrcpy.wrappers.ClipboardManager.getText(ClipboardManager.java:64)
        at com.genymobile.scrcpy.Device.getClipboardText(Device.java:212)
        at com.genymobile.scrcpy.Device$2.dispatchPrimaryClipChanged(Device.java:95)
        at android.content.IOnPrimaryClipChangedListener$Stub.onTransact(IOnPrimaryClipChangedListener.java:82)
        at android.os.Binder.execTransactInternal(Binder.java:1028)
        at android.os.Binder.execTransact(Binder.java:1001)
Caused by: java.lang.SecurityException: Calling uid 0 does not own package com.android.shell
        at android.os.Parcel.createException(Parcel.java:2071)
        at android.os.Parcel.readException(Parcel.java:2039)
        at android.os.Parcel.readException(Parcel.java:1987)
        at android.content.IClipboard$Stub$Proxy.getPrimaryClip(IClipboard.java:352)
        ... 8 more
Caused by: android.os.RemoteException: Remote stack trace:
        at com.android.server.clipboard.ClipboardService.addActiveOwnerLocked(libmapleservices.so:6324436)
        at com.android.server.clipboard.ClipboardService$ClipboardImpl.getPrimaryClip(libmapleservices.so:6343820)
        at android.content.IClipboard$Stub.onTransact(libmapleframework.so:1597744)
        at com.android.server.clipboard.ClipboardService$ClipboardImpl.onTransact(libmapleservices.so:3137716)
        at android.os.Binder.execTransactInternal(libmapleframework.so:5521104)

[server] ERROR: Could not invoke method
java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Method.invoke(Native Method)
        at com.genymobile.scrcpy.wrappers.ClipboardManager.getPrimaryClip(ClipboardManager.java:49)
        at com.genymobile.scrcpy.wrappers.ClipboardManager.getText(ClipboardManager.java:64)
        at com.genymobile.scrcpy.Device.getClipboardText(Device.java:212)
        at com.genymobile.scrcpy.Device$2.dispatchPrimaryClipChanged(Device.java:95)
        at android.content.IOnPrimaryClipChangedListener$Stub.onTransact(IOnPrimaryClipChangedListener.java:82)
        at android.os.Binder.execTransactInternal(Binder.java:1028)
        at android.os.Binder.execTransact(Binder.java:1001)
Caused by: java.lang.SecurityException: Calling uid 0 does not own package com.android.shell
        at android.os.Parcel.createException(Parcel.java:2071)
        at android.os.Parcel.readException(Parcel.java:2039)
        at android.os.Parcel.readException(Parcel.java:1987)
        at android.content.IClipboard$Stub$Proxy.getPrimaryClip(IClipboard.java:352)
        ... 8 more
Caused by: android.os.RemoteException: Remote stack trace:
        at com.android.server.clipboard.ClipboardService.addActiveOwnerLocked(libmapleservices.so:6324436)
        at com.android.server.clipboard.ClipboardService$ClipboardImpl.getPrimaryClip(libmapleservices.so:6343820)
        at android.content.IClipboard$Stub.onTransact(libmapleframework.so:1597744)
        at com.android.server.clipboard.ClipboardService$ClipboardImpl.onTransact(libmapleservices.so:3137716)
        at android.os.Binder.execTransactInternal(libmapleframework.so:5521104)

Please do not post screenshots of your terminal, just post the content as text instead.

@rom1v
Copy link
Collaborator

rom1v commented Oct 14, 2020

Duplicate of #1606. Your device is rooted?

@rom1v rom1v closed this as completed Oct 14, 2020
@kirin233x
Copy link
Author

Duplicate of #1606. Your device is rooted?

Yes. It's Huawei Phone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants