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

Android 10 Can't paste text #3201

Closed
2 tasks done
QAQQL opened this issue Apr 21, 2022 · 1 comment
Closed
2 tasks done

Android 10 Can't paste text #3201

QAQQL opened this issue Apr 21, 2022 · 1 comment

Comments

@QAQQL
Copy link

QAQQL commented Apr 21, 2022

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

Environment

  • OS: Windows
  • scrcpy version: scrcpy 1.23
  • installation method: Windows release
  • device model: Xiaomi MI 4LTE
  • Android version: Android 10

Describe the bug
I get an error when I fetch text from my Android device

There is no error when pasting text into Android

!!!!Magisk+Lsposed for Android devices!!!!!

[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:251)
        at com.genymobile.scrcpy.Device$2.dispatchPrimaryClipChanged(Device.java:112)
        at android.content.IOnPrimaryClipChangedListener$Stub.onTransact(IOnPrimaryClipChangedListener.java:82)
        at android.os.Binder.execTransactInternal(Binder.java:1021)
        at android.os.Binder.execTransact(Binder.java:994)
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:333)
        ... 8 more
Caused by: android.os.RemoteException: Remote stack trace:
        at com.android.server.clipboard.ClipboardService.addActiveOwnerLocked(ClipboardService.java:688)
        at com.android.server.clipboard.ClipboardService.access$700(ClipboardService.java:157)
        at com.android.server.clipboard.ClipboardService$ClipboardImpl.getPrimaryClip(ClipboardService.java:391)
        at android.content.IClipboard$Stub.onTransact(IClipboard.java:173)
        at com.android.server.clipboard.ClipboardService$ClipboardImpl.onTransact(ClipboardService.java:341)

图片

@rom1v
Copy link
Collaborator

rom1v commented Apr 21, 2022

This happens because you are root. See #1606.

@rom1v rom1v closed this as completed Apr 21, 2022
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