BiglySoftware / BiglyBT-Android

BiglyBT for Android, torrent client and remote control app
https://android.biglybt.com
444 stars 51 forks source link

Folder Permissions Required #246

Open Wormsworth opened 6 months ago

Wormsworth commented 6 months ago

How do I set this?

Heptanas commented 6 months ago

Same shit. On android 12 tv cant get permission full control files on external drive. Please fix fast. Older biglybt version have permission in setting.

Wormsworth commented 6 months ago

Would this cause files to not be promoted to correct directories? I have been getting files sent to all 3 directories. Inprocess, complete, and removed Usually with only the Name and a tmp subdirectory included. When Completed the full torrent files are not moved or removed

antonsoroko commented 2 weeks ago

Older biglybt version have permission in setting.

so indeed, version v1.3.2.0 has "allow management of all files" permission in settings. i guess older versions are targeted for older android and older android (<=10) does not have separation for all/media files, so maybe with such old apk default "file permissions" were translated to "all file" in new android.

and v1.3.3 and later have only "allow access to media only" on android 11 and 12, in change log you can see that they are targeted to android 13. but it guess devs forgot to add new "file permission" mode, thus we stuck with "media only files".

Wormsworth commented 2 weeks ago

Has biglybt been abandoned?

TuxPaper commented 2 weeks ago

image

TuxPaper commented 2 weeks ago

If you change a directory, the app should use the new SAF dialog and grant permissions. If the app isn't doing that, please provide more details.

antonsoroko commented 1 week ago

@TuxPaper i think there are several issues about "Folder Permissions Needed":

(there are also reports in #248 and #250)

  1. with downloading torrent - see screenshots from https://github.com/BiglySoftware/BiglyBT-Android/issues/250

  2. with moving completed files - see https://github.com/BiglySoftware/BiglyBT-Android/issues/246#issuecomment-2144220098 (although, description of that issue is a bit unclear)

  3. i had issue with existing torrents data. i have torrent data on external usb hdd (in Android/Download/BiglyBT/ directory) that is formatted as portable (exFat). after reset of android tv box BiglyBT was not able to check the data of torrents that have non-media files (e.g. .txt), BiglyBT said that permission denied for opening file, then BiglyBT asked for "Folder Permissions Needed" and when i clicked it and then in new dialog i clicked "Authorize" - there was a system pop-up that said something like "there is no app to provide such activity". if i remove .txt file and then i do re-check and then i start downloading to download missing files - then BiglyBT fails to write needed chunks to existing media file as well. but if i download new torrent that have non-media files - then it is ok, BiglyBT can create all files.

maybe this is the reason of my issue: https://developer.android.com/training/data-storage/shared/media#app-attribution

looks like now android associate files and apps, so if app does not have "full access" then it can not read or write to existing files.

so to solve this i had to move all torrents to "BiglyBT private external storage" (which is Android/data/com.biglybt.android.client/files/ on my external hdd) and then back to directory i want (Android/Download/BiglyBT/)