Bug 488809 - permission error when trying to open file sent to Android from the notification
Summary: permission error when trying to open file sent to Android from the notification
Status: REPORTED
Alias: None
Product: kdeconnect
Classification: Applications
Component: android-application (show other bugs)
Version: 24.05.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-20 17:59 UTC by Adam Fontenot
Modified: 2024-06-20 17:59 UTC (History)
1 user (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 Adam Fontenot 2024-06-20 17:59:11 UTC
SUMMARY

I can send a file to Android from my Linux computer using KDE Connect, and it works fine - saves in Internal > Download > KDEConnect. Navigating to this directory using a file manager app and opening it directly works as expected.

When the file is received by Android, a notification appears. Clicking on this notification launches an "open with" dialog, but no matter which application I select, it is unable to open the file.

STEPS TO REPRODUCE
1. Send any file (I used a PDF) to Android from KDE Connect.
2. Try to open the file by clicking on the notification. (For this I tried using "Simple File Manager", Firefox, etc.)

OBSERVED RESULT

Doesn't open. Simple File Manager shows a toast with the following message:

Error: Permission Denial: reading com.android.externalstorage.ExternalSto...

Note that using the same application to open the file directly works fine. The error seems to be a storage permission issue, but ironically this app has the "manage all files" permission, so this shouldn't be an issue.

Trying to use Firefox helpfully shows a URL in the location bar, which I've copied here:

content://com.android.externalstorage.documents/tree/primary%3ADownload%2FKDEConnect/document/primary%3ADownload%2FKDEConnect%2FOnline%20Booking%20(4).pdf

I don't know enough about Android to say whether opening this URL with an app should work or not.

EXPECTED RESULT

The file loads in the app I choose.

SOFTWARE/OS VERSIONS

Linux application version: 24.05.0
Android application version: 1.30.1 (fdroid)
Android version: 12 (vanilla Samsung ROM, Google Play system update 2024-05-01)