Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No Permissions to write to /storage/emulated/0/Download/copy/2go.zip" even though I gave permission #22

Open
nicolas-raoul opened this issue Aug 13, 2019 · 11 comments
Labels

Comments

@nicolas-raoul
Copy link

Other settings are all default settings.

Maybe I have to create the copy folder by myself?
If so, the error message should be clearer.

Thanks! :-)

@k3b
Copy link
Owner

k3b commented Aug 13, 2019

at startup the app check if it has permissions to write to the predefined output folder and if not it opens the folder chooser.

At least this is working on my android-7.1 devices.

I have just added a check that the proposed folder exists hoping that this will fix the issue

@k3b k3b added the bug label Aug 13, 2019
@k3b
Copy link
Owner

k3b commented Jan 14, 2020

@nicolas-raoul does the problem still existist in the current version or can i close this ticket

@locuturus
Copy link

Android 12, Pixel 4a: yes, I observe something like this behavior.

I granted SAF access to /Documents and this works for a 'session'. But once the app has been inactive for some length of time it seemingly forgets the system granted access to /Documents and so the next time I share something to the app it gives a no permission error and pulls up the directory picker.

Conveniently the directory picker starts up at the last chosen folder and I can grant access again to get it working. But as before the app thinks it hasn't got access after a period of inactivity.

@k3b
Copy link
Owner

k3b commented Oct 29, 2021

@locuturus thanks for reporting.

if i understood https://developer.android.google.cn/topic/performance/app-hibernation correctly android-11 and later has a feature "Auto-reset permissions from unused apps" that may be the cause of this issue.

@locuturus
Copy link

@locuturus thanks for reporting.

if i understood https://developer.android.google.cn/topic/performance/app-hibernation correctly android-11 and later has a feature "Auto-reset permissions from unused apps" that may be the cause of this issue.

That is a feature, but it takes days or weeks to initiate, not like an hour or two. And in app info I can not see the previously granted SAF access which implies to me that the app is discarding the SAF granted access somehow.

Here is Material Files, from GitHub, showing SAF granted access to different content providers:
Screenshot_20211029-090933
vs your app which I've not interacted with for about 2 days:
Screenshot_20211029-091742
Which has had it's access cleared somehow. I'm fact, even immediately after granting access again this is not reflected in the app info section. Is your app actually using SAF? There should be a single item listed next to External Storage. Material Files has 5 in my case to compare with that.

@k3b
Copy link
Owner

k3b commented Nov 1, 2021

the app is using SAF (if you have android-5.0 and above) and it works without issues on my android-10 .

I have to further anayse and compare to material-files .....

@locuturus
Copy link

I wonder if this stack overflow might be relevant

k3b added a commit that referenced this issue Nov 2, 2021
@k3b
Copy link
Owner

k3b commented Nov 2, 2021

@locuturus thanks for the stack-overflow.

I have added the missing flags from https://stackoverflow.com/questions/32563428/storage-access-framework-persist-permissions-not-working

In the zip is the pre-release of the apk with the fix.
https://github.com/k3b/ToGoZip/files/7462555/togozip-debug.zip

can you test if this fixes the problem?

I only have an android-10 device and the android-emulator does not work on my computer.

@locuturus
Copy link

DISPLAY_NAME column is null error in is preventing me from installing.

@k3b
Copy link
Owner

k3b commented Nov 3, 2021

@locuturus : sorry something with the debug build went wrong.

this one should be working (at least i can install it on my android-10.

togozip-debug2.zip

@bege10
Copy link

bege10 commented Jul 3, 2022

This issue still exists with the latest version on Fairphone 3, /e/OS (based on LineageOS for microG, Android 10)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants