F-droid fails to request storage permission for OBB files
- Device OS and version: Lineage 14.1 - Android 7.1.2
- Device model/manufacturer: LG Nexus 5
- F-Droid version (in the About screen): 1.0.3
- F-Droid privileged extension version (if installed): N/A
What did you do? (clear steps if possible)
I installed an app requiring an OBB file via f-droid from a private fdroid repo.
What did you expect to see?
On first start of the installed app, I expected the app to be able to locate its obb file in /Android/obb/packagename/ and start normally after unpacking the resource file.
Also, on this version of android I would expect to be prompted for device storage permission as fdroid was downloading the OBB file. I was not prompted.
What did you see instead?
The app requiring an OBB failed to find its resource file and after checking a file manager, no OBB was present in /Android/obb/packagename.
Workaround
To get the app to install properly I had to go to Android's system settings, Settings -> Apps -> F-Droid -> Permissions
and enable the storage permission. After granting the storage permission manually, uninstalling the app requiring an OBB and reinstalling it through F-Droid, the app started successfully and found the resource file.
Notes
FileInstallerActivity.java
requests storage permission, just need similar code for OBB file download.