EACCESS (Permission denied)
I’m trying to set up ICSx5 on a new phone (Pixel 3a). I’m getting
/storage/emulated/0/Download/ical/local.ics: open failed: EACCESS (Permission denied). Path is correct, i.e. I’m not seeing
ENOENT. This is on Android 10,
Storagepermission is granted for ICSx5. On a Pixel XL (also Android 10,
Storagepermission granted) it works. Any ideas?
Sounds like a Scoped storage problem. Sooner or later, I think the direct access of files will be removed from ICSx⁵ (because it is clearly not the way how Android wants apps to work). Instead, only shared files (from Downloads or whatever, using the File Picker) and content URIs should be supported.
In your case, I don’t know why access to Download is denied.
FWIW I tried enabling
legacy_storagefollowing https://www.xda-developers.com/android-q-storage-access-framework-scoped-storage/ but this made no difference. If I’m reading https://gitlab.com/bitfireAT/icsx5/blob/master/app/src/main/AndroidManifest.xml correctly, you are already requesting that. I’m clearly an amateur in this, but shouldn’t that take care of scoped storage issues?
It should, but I’m not experienced enough with Android 10 to say whether it really always works.
File permissions are correct? How did you get the file on the disk?
Otherwise I don’t have an idea. Perhaps using an HTTP(S) source is an alternative? What’s your use case?
Hi there, file permissions are
-rw-rw---- 1 root sdcard_rw. The file synchronised/placed on the device using https://www.resilio.com/ since there’s no https source available (can’t serve it on the internet)
Can you try to put it into the public Downloads directory? If it is then accessible from a file manager, it should also be accessible by ICSx⁵.
Hi there, I now tried that but I’m still getting
EACCESS. I copied it using
Files, to make sure it’s not in some funny directory.
I see. Then I don’t have another idea.