Bug 490647 - KDE Connect : Cannot share files from PC to mobile
Summary: KDE Connect : Cannot share files from PC to mobile
Status: CONFIRMED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (other bugs)
Version First Reported In: 24.05.2
Platform: Compiled Sources All
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks: 510698
  Show dependency treegraph
 
Reported: 2024-07-22 12:19 UTC by MrShinigami
Modified: 2025-12-23 19:03 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MrShinigami 2024-07-22 12:19:12 UTC
SUMMARY
Regression: Cannot share files from PC to mobile(v1.31 android). 
Tried tinkering with "share and receive" config in plugin settings.

A related reddit thread discussion : https://www.reddit.com/r/kde/comments/1binblq/ever_since_the_new_update_of_kde_connect_i_have/

STEPS TO REPRODUCE
0. Give all storage permissions on for mobile app.
1. Open KDE connect on PC (linux).
2. click -> Share a file
3. Select a file to share.
4. Regardless of configuration at plugin settings: Share and receive: customized destination directory

OBSERVED RESULT
Upon trying to send a file to mobile, the mobile notification pop as received and tap to open. 
But the file cannot be opened and doesn't exist on storage.

EXPECTED RESULT
File to be expected in 'Downloads' folder or the folder configured in "Share and receive" plugin settings.

SOFTWARE/OS VERSIONS
KDE Connect : v1.31 - android
Operating System: openSUSE Tumbleweed 20240716
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.9.9-1-default (64-bit)
Graphics Platform: Wayland
Comment 1 laughingwater2315 2025-09-19 14:36:26 UTC
Same issue for me too on Windows 11 > Android 15, tapping on the notification just opens kde connect and the file does not appear in the downloads nor in the specified directory, it used to work earlier, on the reddit thread you linked one suggested that a older version also worked but the newer version just doesn't 


Also interestingly, now I don't get a notification at all for recieve file and also don't recieve the file, basically as if nothing happened
Comment 2 nutzboi 2025-12-17 09:21:07 UTC
Same on Windows 11 -> Android 14. A useless "tap to open" notification appears on the android device with the filename absent from notification description.
Instead of sharing directly from within the desktop app, a workaround is to share the file from explorer to KDE Connect through right-clicking the file -> Send to -> Send to remote device via KDE Connect.
Comment 3 laughingwater2315 2025-12-23 17:09:06 UTC
Looks like it has been fixed, now I can send files from my windows 11 pc to my android 16 phone with no issue, with expected behavior and multifile is functional too
Comment 4 laughingwater2315 2025-12-23 18:25:53 UTC
(In reply to laughingwater2315 from comment #3)
> Looks like it has been fixed, now I can send files from my windows 11 pc to
> my android 16 phone with no issue, with expected behavior and multifile is
> functional too

Oh my god it seriously JUST stopped working again, just like before...
Comment 5 laughingwater2315 2025-12-23 19:03:43 UTC
12-24 00:08:24.917  8835 32006 I SharePlugin: hasUrl:
12-24 00:08:24.923  8835 32006 E SharePlugin: Exception
12-24 00:08:24.923  8835 32006 W System.err: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat= flg=0x10000000 xflg=0x4 }
12-24 00:08:24.923  8835 32006 W System.err:    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2457)
12-24 00:08:24.923  8835 32006 W System.err:    at android.app.Instrumentation.execStartActivity(Instrumentation.java:2031)
12-24 00:08:24.923  8835 32006 W System.err:    at android.app.ContextImpl.startActivity(ContextImpl.java:1172)
12-24 00:08:24.923  8835 32006 W System.err:    at android.app.ContextImpl.startActivity(ContextImpl.java:1143)
12-24 00:08:24.923  8835 32006 W System.err:    at android.content.ContextWrapper.startActivity(ContextWrapper.java:448)
12-24 00:08:24.923  8835 32006 W System.err:    at org.kde.kdeconnect.Helpers.IntentHelper.startActivityFromBackgroundOrCreateNotification(IntentHelper.java:45)
12-24 00:08:24.923  8835 32006 W System.err:    at org.kde.kdeconnect.Plugins.SharePlugin.SharePlugin.receiveUrl(SharePlugin.java:252)
12-24 00:08:24.923  8835 32006 W System.err:    at org.kde.kdeconnect.Plugins.SharePlugin.SharePlugin.onPacketReceived(SharePlugin.java:231)
12-24 00:08:24.923  8835 32006 W System.err:    at org.kde.kdeconnect.Device.notifyPluginPacketReceived(Device.kt:450)
12-24 00:08:24.923  8835 32006 W System.err:    at org.kde.kdeconnect.Device.onPacketReceived(Device.kt:435)
12-24 00:08:24.923  8835 32006 W System.err:    at org.kde.kdeconnect.Backends.BaseLink.packetReceived(BaseLink.java:60)
12-24 00:08:24.923  8835 32006 W System.err:    at org.kde.kdeconnect.Backends.LanBackend.LanLink.receivedNetworkPacket(LanLink.java:261)
12-24 00:08:24.923  8835 32006 W System.err:    at org.kde.kdeconnect.Backends.LanBackend.LanLink.$r8$lambda$1roQrklD197DaNpVzAP29DenyWc(LanLink.java:91)
12-24 00:08:24.923  8835 32006 W System.err:    at org.kde.kdeconnect.Backends.LanBackend.LanLink$$ExternalSyntheticLambda1.run(R8$$SyntheticClass:0)
12-24 00:08:24.923  8835 32006 W System.err:    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1154)
12-24 00:08:24.924  8835 32006 W System.err:    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:652)
12-24 00:08:24.924  8835 32006 W System.err:    at java.lang.Thread.run(Thread.java:1563)



so from what i can gather, in the onPacketReceived function at https://invent.kde.org/network/kdeconnect-android/-/blob/master/src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java?ref_type=heads somehow it is skipping the "if (filename)" check and passing the url check, which bascially means that instead of CompositeReceiveFileJob being called, a browserintent is attempted to be opened, which causes the android.content.ActivityNotFoundException which inturn is unable to handle the file.


since i dont know much about android dev, would like to see if a maintainer can see this and look into whats wrong.