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

Automatic clipboard sending #1858

Closed
StrafeStopper opened this issue Sep 1, 2024 · 1 comment
Closed

Automatic clipboard sending #1858

StrafeStopper opened this issue Sep 1, 2024 · 1 comment
Labels
can't fix An issue that is out-of-scope or expected behaviour enhancement A request for a feature or additional functionality

Comments

@StrafeStopper
Copy link

Describe your request

Would it be possible to have automatic clipboard sharing like Microsoft phone link? So you wouldn't have to manually open the app and "send clipboard". Possibly even bi-directional clipboard sharing so you could paste things from you computer to your phone.

Proposed solution

No response

Alternatives

No response

GSConnect version

1.32.0

Installed from

GNOME Extensions website

GNOME Shell version

No response

Linux distribution/release

Ubuntu 24.04.1

Additional context

No response

@StrafeStopper StrafeStopper added the enhancement A request for a feature or additional functionality label Sep 1, 2024
@github-actions github-actions bot added the triage An issue that needs confirmation and labeling label Sep 1, 2024
@ferdnyc ferdnyc added can't fix An issue that is out-of-scope or expected behaviour and removed triage An issue that needs confirmation and labeling labels Oct 24, 2024
@ferdnyc
Copy link
Member

ferdnyc commented Oct 24, 2024

@StrafeStopper

Fun fact / historical note: That's precisely how clipboard-sharing support worked, in the earliest versions of GSConnect, working with the KDE Connect app versions that were current at the time. It was completely automatic and behind-the-scenes, you just copied/pasted on one device and the clipboard was mirrored to the other end of the pairing.

But then Google decided that giving apps unattended access to the device clipboard was insecure, and locked it down so that any clipboard operations had to be performed based on a (local) user interaction. Which... is hard to argue with, because theoretically under the old rules any app you installed on your phone could spirit away every piece of data you put on the clipboard, completely undetected. Including sensitive data like passwords, credit card numbers, addresses, etc...

Microsoft's Phone Link (Windows) and Link to Windows (Android) apps do still support a feature they call "Cross-Device Copy & Paste" that works the way KDE Connect used to, but (rather critically) it's only available on CERTAIN Android devices — some of those include Microsoft Surface devices, or devices running Samsung's One UI version 2.1+.

What that tells us is that Microsoft and Samsung overcame that Android clipboard restriction I mentioned by creating their own system service to provide seamless clipboard-sharing functionality; one that the Microsoft app would have access to, but which KDE Connect does not.

So, unfortunately, unattended clipboard-sharing functionality in modern Android devices requires the use of private APIs that KDE Connect does not have access to.

(Other Phone Link features, like drag-and-drop file transfers between Windows and Android, require not only specific Android devices, but they only work with a pre-installed version of the Link to Windows app, not the one generally downloadable from Google Play. Which says that not only does it depend on private APIs, but on credentials compiled into Samsung's private custom builds of the app that aren't included in the publicly-available version.)

@ferdnyc ferdnyc closed this as completed Oct 24, 2024
@ferdnyc ferdnyc closed this as not planned Won't fix, can't repro, duplicate, stale Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can't fix An issue that is out-of-scope or expected behaviour enhancement A request for a feature or additional functionality
Projects
None yet
Development

No branches or pull requests

2 participants