Bug 435241

Summary: Send files from Linux to Android silently fails if KDE Connect on Android doesn't have access rights
Product: [Applications] kdeconnect Reporter: skierpage <info>
Component: commonAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version First Reported In: 1.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description skierpage 2021-04-02 00:12:42 UTC
SUMMARY
I've used KDEConnect to transfer files from Android to Linux. I tried for the first time to go the other way, and got a success notification success, but no file ended up on Android.

STEPS TO REPRODUCE
1. Plug phone (mine is a Pixel 3) with KDE Connect app into laptop running KDE over USB
2. Pair devices if you haven't used KDE Connect before
3. In KDE Connect app, click ⋮ menu > Plugin settings, enable Share and Receive.
4. On laptop, click KDE Connect system tray icon, click ≡ next to phone name, click Share file, choose a video or audio file (over 1 MB so there's a progress notification).

OBSERVED RESULT
I get a KDE desktop notification
   KDE Connect
   Sending to Pixel 3 (Finished)
appears, but when I check on the Android device using Files app there's no file.
It turns out I needed to grant the KDE Connect app access permission in order to receive files (details below).

EXPECTED RESULT
It's fine for sharing to fail, but the Linux side mustn't display a success notification and ideally would indicate failure. Maybe the Android side should report the failure, I'll report a separate bug.


SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.25.5 
KDE Frameworks Version:  5.79.0
Qt Version: 5.15.2 xcb

Fedora 33 package kde-connect-20.08.1-1.fc33.src.rpm
`kdeconnect-app --version` reports kdeconnect.app 1.0 

Android KDE Connect version:
KDE Connect version 1.16.0 installed from Google Play Store
Android Version 11 on Pixel 3


ADDITIONAL INFORMATION

I can't remember what I did the first time to grant permissions on Android.After revoking the app's permission in System Settings > Apps to reproduce, to grant permission the second time, I opened the app, click the name of the laptop, scroll down to
  "Some plugins have features disabled because of lack of permission...
  Share and receive"
tap "Share and receive", get a prompt to choose a destination directory, get a prompt "Allow KDE Connect to access photos and media on your device?, click its Allow, navigate to Download, and click [Use this folder].
Comment 1 2wxsy58236r3 2021-04-02 00:34:05 UTC

*** This bug has been marked as a duplicate of bug 429257 ***