Skip to content

the length of texts copying from devices to PC is limited to 4093. #1117

Closed

Description

@NewUserHa

#145 (comment)

nowadays, the big file is not unusual.

what about increasing it to 32M or 64M? or even a whole binary data file like some .so or game data?

could it even detect clipboard changes automatically to avoid to let users need to find out they have to press c-c one time separately?

thanks!

Activity

  1. NewUserHa commented on Jan 28, 2020

    @NewUserHa
    Author

    4093 is even unable to copy an Adaway host/DNS plain text file from devices to PC.

  2. rom1v commented on Jan 28, 2020

    @rom1v
    Collaborator

    nowadays, the big file is not unusual.

    If you want to copy a file, you should use adb pull.

    what about increasing it to 32M or 64M?

    At the default bitrate (8Mbits/s, ie 1Mbyte/s), this would be the same size as 32 or 64 seconds of video in the clipboard. That seems huge to me.

    Anyway, I guess the Android clipboard has a lower limit anyway: https://stackoverflow.com/questions/28100218/is-there-any-characters-bytes-limit-in-the-android-clipboard-android-developme

    could it even detect clipboard changes automatically to avoid to let users need to find out they have to press c-c one time separately?

    I am not aware of any solution for this.

  3. NewUserHa commented on Jan 28, 2020

    @NewUserHa
    Author

    the big plain text config file is not unusual.

    I feel the windows clipboard can handle big MBs plain text.

    Then what about incresing it to 1M or 4M?

  4. NewUserHa commented on Jan 28, 2020

    @NewUserHa
    Author

    so it's able to copy some big logs from devices to PC

  5. reversegear commented on Feb 3, 2020

    @reversegear

    so it's able to copy some big logs from devices to PC

    Files can be easily copied via adb pull request
    only text copy paste has a limitation

  6. added 3 commits that reference this issue on Jun 4, 2020
    4bd6672
    47c6516
    913a9f3
  7. rom1v commented on Jun 4, 2020

    @rom1v
    Collaborator

    could it even detect clipboard changes automatically to avoid to let users need to find out they have to press c-c one time separately?

    This is done by #1465. Please test it and provide feedback :)

    Then what about incresing it to 1M or 4M?

    I increased the clipboard size form 4k to 256k: clipboard.

    After all previous commits for making it possible, the increase is done by 913a9f3. On my computer, beyond 256k, SDL_GetClipboard() returns an empty string.

    I implemented these changes above #1465, so shortcuts have changed! (TL;DR: just use LCtrl+c to copy and LCtrl+v to paste).

    Feedback welcome :)

    Binaries for testing

    For windows users, take both scrcpy.exe and scrcpy-server, and replace them in your scrcpy v1.14 release.

    For other platforms, take scrcpy-server and build only the client.

    • scrcpy.exe
      SHA256: b5fb3b193474702a6045545022e138a5daa7952ae3994dfa840491f694826231
    • scrcpy-server
      SHA256: 15533c3d4a4a12a20e2afe9cd7dfb8efecd3f990227ac8262bb79998c1fc3af5
  8. added 2 commits that reference this issue on Jun 8, 2020
    c452c20
    488d22d
  9. rom1v commented on Jun 11, 2020

    @rom1v
    Collaborator

    I rebased the increase from 4k to 256k on dev and merged, without the content of #1465 (which required more work).

  10. added 2 commits that reference this issue on Nov 19, 2026
    5e1182d
    1362490
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions