yaga icon indicating copy to clipboard operation
yaga copied to clipboard

Local directory rights management for API 30+

Open vauvenal5 opened this issue 3 years ago • 2 comments

In future API 30+ we won't be able to get write access to the entire external storage. This effect is already visible when trying to access arbitrary locations on SD cards, see #23. To solve this we will have two options:

  • either try requesting MANAGE_EXTERNAL_STORAGE which is not by default granted to every app
  • use Android storage access framework which can be used through the Flutter file_picker for selecting local directories and granting access to those.

For latter we have to wait for https://github.com/miguelpruivo/flutter_file_picker/issues/721 to be fixed.

Also consider how Nextcloud Files app and the Simple Gallery app are going to handle this issue.

Simple Gallery for example, recommends requesting once access for the entire SD card and then continues working with it's native directory selector dialogs.

vauvenal5 avatar Jun 06 '21 09:06 vauvenal5

Hi guys, First of all, a great thanks to @vauvenal5 this app rocks, really ! I think I have a problem related with this issue. When i use "Delete remotely" feature, nothing is deleted. Do you think it is a right permission problem ? "Delete locally" doesn't work either. I tried to give full access to Yaga but without success signal-2021-12-30-092704_001 How to get it working on my Xiaomi Mi11 Lite (Android 11) ?

I need it to work in order to prove to the world that i've the power to bypass Google Photo... I feel like Thanos searching the last infinity stone !!!!

X-Raph-X avatar Dec 30 '21 08:12 X-Raph-X

So, I spent some time with this issue today and it doesn't look good. As far as I could figure out until now, the only way to retain full access across the entire device is the MANAGE_EXTERNAL_STORAGE permission which is not granted to all apps by Google Play Store. I have to see if Yaga will qualify for it or not.

If not, as far as I can tell, the quickest fix is to temporarily limit Yaga to its App directory and afterwards try to find a solution by using the media store api. Not sure yet how much effort this actually is.

vauvenal5 avatar Jul 16 '22 14:07 vauvenal5