Bug 413961 - Clipboard only works from PC to phone, not the other way around
Summary: Clipboard only works from PC to phone, not the other way around
Status: RESOLVED DUPLICATE of bug 407837
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: 1.3.5
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-08 21:38 UTC by Joscha Henningsen
Modified: 2020-02-12 02:38 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joscha Henningsen 2019-11-08 21:38:37 UTC
SUMMARY
I'm using KDE Connect on Kubuntu 19.10 and the Clipboard extension only shares the clipboard contents from the PC to the phone. Whenever I copy something on my android phone the computer doesn't pick it up.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 19.10
KDE Plasma Version: Plasma 5.16.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.12.4

ADDITIONAL INFORMATION
Android version 10 (OxygenOS OP6T_O2_Beta_30)
Comment 1 Bennet 2019-11-14 14:00:25 UTC
I cannot confirm it. Have it ever work for you?
Comment 2 Joscha Henningsen 2019-11-14 14:40:59 UTC
It did never work, neither on my PC nor on my Laptop. Also reinstalling KDE connect on my phone or trying it on another network did not resolve the problem.
Comment 3 Bennet 2019-11-14 18:16:38 UTC
Are you using any Privacy app, which manages the permission to read the clipboard?
Comment 4 Joscha Henningsen 2019-11-14 21:28:18 UTC
Hi Bennet,

I did some debugging on the version of the app that is currently available on GitHub. When I set a breakpoint in the file "ClipboardPlugin.java" at line 68 it breaks as expected when copying something on my desktop PC. 
However a breakpoint at line 70 in "ClipboardListener.java" should be triggered whenever I copy something on my phone. This does not happen. 
I strongly believe that this problem is caused by the way Android handles clipboard access permissions as of version 10(see: https://developer.android.com/about/versions/10/privacy/changes#clipboard-data).

I also tried copying something into the phones clipboard while KDE Connect had focus by altering a part of the apps source code. This content was indeed transfered to my computer just fine. 

Do You think I should file a bug report on GitHub or am I missing something super obvious in my phone's settings?
Comment 5 Joscha Henningsen 2019-11-14 21:32:19 UTC
Edit: I do not use any 3rd-party privacy or antivirus software etc.
Comment 6 Joscha Henningsen 2019-11-14 21:54:36 UTC
EditEdit: Possibly mixed up the lines, I meant line 74 in ClipboardListener.java
Comment 7 sheepdestroyer 2019-11-27 15:49:52 UTC
I can confirm same behavior on Fedora 31 with gsconnect and pixel2-xl on android 10

However,I can confirm taht it used to work for me when my phone was on Android 8
It worked too on Android 9

Android 10 update broke the clipboard from phone to pc
Comment 8 Bennet 2019-12-13 16:22:53 UTC
Good to see that you found the exact line of code causing the problem, but I´m not really into Development. I just can point you to https://community.kde.org/Get_Involved/development.
Comment 9 Joscha Henningsen 2019-12-13 16:33:13 UTC
I've been chatting with the devs and it turns out that this problem is a well known issue on Android 10. Currently there doesn't seem to be an adequate workaround yet. Let's hope for the best!
Comment 10 Parker 2020-02-12 02:38:37 UTC
*** This bug has been marked as a duplicate of bug 407837 ***