Bug 433033 - Cannot send some files from SD card since Android 11
Summary: Cannot send some files from SD card since Android 11
Status: REPORTED
Alias: None
Product: kdeconnect
Classification: Applications
Component: android-application (show other bugs)
Version: unspecified
Platform: Android Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-16 22:20 UTC by Tobias Roeser
Modified: 2022-05-04 12:29 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Roeser 2021-02-16 22:20:35 UTC
SUMMARY

Since the phone was updated to Android 11, sharing / sending files to my linux desktop no longer works. The specific file is (was) located under SD / Android / data / ... / ...gpx

When I try to share the GPX file from the app (OSMand+) and select KDE Connect followed by my linux machine, I get the following error message (translated): The file can not be send to .... Incomplete data.

STEPS TO REPRODUCE

1. Share a file via Android, which is located under SDcard / Android / data
2. Select KDE Connect
3. Select the receiver

OBSERVED RESULT

An error message shows up: Die Datei kann nicht an user@linuxmachine gesendet werden. (The file can not be send to ...)

On the receiver machine the message is more verbose: Unvollständige Datei erhalten von: Galaxy S10e: MyRoute.gpx (Received incomplete file from: Galaxy S10e: MyRoute.gpx)

EXPECTED RESULT

Successful file transfer without any error message.

SOFTWARE/OS VERSIONS

The sender:

Phone: Samsung Galaxy S10e / SM-G970F/DS
OS: Android 11 / One UI 3.0
KDE Connect: 1.16.0 installed via F-Droid

The receiver: 

Betriebssystem: Gentoo Linux
KDE-Plasma-Version: 5.20.5
KDE-Frameworks-Version: 5.77.0
Qt-Version: 5.15.2
Kernel-Version: 5.4.80-gentoo-r1-x86_64
Art des Betriebssystems: 64-bit
Prozessoren: 4 × Intel® Core™ i7-7500U CPU @ 2.70GHz
Speicher: 15,5 GiB Arbeitsspeicher
Grafikprozessor: Mesa DRI Intel® HD Graphics 620
kde-misc/kdeconnect 20.12.2

ADDITIONAL INFORMATION

It worked as expected in Android 10. I updated my system about a week ago. After some research, I think, it is related to the new permission concept of Android 11. Probably KDE connect needs to request a new permission? It's just a guess. I recognized, that the app that writes the files (OSMAnd+) has the permission "Speicher: Verwalten aller Dateien zugelassen" (Storage: all files granted) whereass KDE connect has only the permission "Speicher: Zugriff nur auf Mediendateien zugelassen" (Storage: Access to media files only)
Comment 1 Alban BROWAEYS 2022-03-24 22:30:33 UTC
I am on Android 11 to. I had to authorize access to the storage by going to the three dots menu in the top right corner, "Plugins Settings" then "Share and receive" then select the folder to send from and click on the bottom blue button "Authorize access to xxx". Then I was able to send from  this folder on android 11.
Comment 2 Simon Redman 2022-05-04 12:29:56 UTC
This is almost certainly related to https://bugs.kde.org/show_bug.cgi?id=447636 however some users report that they were able to continue sending files after upgrading to Android 11, just not able to select the storage root if not already selected.  Leaving these bugs un-linked, but readers interested in this bug report might want to CC to the other one.