AndreyPavlenko / transmissionbtc

Transmission BitTorrent Client for Android
GNU General Public License v2.0
92 stars 14 forks source link

Unable to access removable storage on android 11 w/ nvidia shield #17

Open woowoo0 opened 2 years ago

woowoo0 commented 2 years ago

Widespread issue with 9.0 release on nvidia shield - see more info here https://www.reddit.com/r/ShieldAndroidTV/comments/s3jg2b/android_11_application_issues/

related android docs: https://developer.android.com/about/versions/11/privacy/storage#file-access

note about this on nvidia forums: https://www.nvidia.com/en-us/geforce/forums/shield-tv/9/481782/shield-experience-upgrade-90-known-issues/3196393/

Hello there, fellow Shielders!

Shield was the first major OTT device with USB ports to be updated to Android TV 11 (dont forget even Google's own Chromecast with Google TV is still only running ATV10), which introduces a new scoped storage security feature. This is causing apps targeting earlier Android versions to lose removable storage access.

Those apps will need to be updated, but Shield being first, most devs never even had access to a ATV11+ powered device with USB ports to test their apps on before the update. Truth be told, Android storage management is becoming increasingly nightmarish as time goes on. (Don't take my word for it; just look at what the X-Plore app dev has to say about it.)

As everybody knows, with great power comes great responsibilities.

Therefore, Team Shield (not me) has taken on its own to list the problematic apps, then most likely try to contact those devs and provide some sort of support. This is what you get for beating Google to the punch! =S

Please list the app name and the type of issue, ie: Android 11 Storage/App privileges support, Won't start on Android 11, etc.

Please don't post things like "DAC does not work" in this thread. This thread is dedicated specifically to apps that were working fine on your SHIELD on 8.2.3 (Android 9) , but don't work on 9.0 (Android 11).

Please try to read through the list and not post duplicate comments. We know Plex server isn't working, we don't need each of you having an issue with Plex to add an entry here. Don't worry, they know as well; they are on it.

Thank you, keep cool, and keep an eye out for the next hotfix!

AndreyPavlenko commented 2 years ago

Try installing this https://github.com/AndreyPavlenko/transmissionbtc/releases/tag/1.3.10 version and enable the "Allow management of all files" permission.

woowoo0 commented 2 years ago

1.3.10 was already installed with all permissions turned to allow - was getting "bad file descriptor" errors.

Deleted and reinstalled the app and enabled all permissions - Still getting the same error "bad file descriptor"

grittershub commented 2 years ago

Same issue here. 1.3.10 installed from Play Store, all permissions enabled that I can see. transmission is configured to write to an external USB drive on nVidia SHIELD. The directory is along the lines of: /storage/123456789ABDCE/NVIDIA_SHIELD/myfiles The shield box creates the NVIDIA_SHIELD directory automatically on attached external NTFS formatted USB drive.

AndreyPavlenko commented 2 years ago

The Play Store version does not have this https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE permission. Try installing the github version - https://github.com/AndreyPavlenko/transmissionbtc/releases/tag/1.3.10 .

grittershub commented 2 years ago

sideloaded this version. Needed to set permissions for Files and media 'allow all the time', so it would permit me to change the download and watch directories. It all appears to work fine now. Thanks!

whelpy commented 2 years ago

Same problem on smart tv box (Amlogic S905X3), can download just fine to /storage/82BA8363BA835299/Android/data/com.ap.transmission.btc/files/Download but when i set it to /storage/82BA8363BA835299/Download it gives me different errors, mostly "bad file descriptor". Using 1.3.10 from release page, all permissions set.