Skip to content

Conversation

@kapodamy
Copy link
Contributor

@kapodamy kapodamy commented Aug 15, 2019

Some ROMs are not CTS compliant, in these cases the Storage Access Framework is not fully implemented or functional.
This PR checks whatever is SAF available, otherwise, the legacy API (Java I/O) will be used

changes:

  • restore request permissions popups
  • use legacy file/folder picker if necessary

fixes #2498 and fixes #2504

* creating files though saf
* picking folder though saf
* restore permission request popup previously removed in #2486
* use legacy file picker in cases where saf file picker is not available
* fix missing file check logic in prepareSelectedDownload method (DownloadDialog.java)
@TobiGr
Copy link
Contributor

TobiGr commented Aug 15, 2019

@kapodamy Thanks!
Here is an APK for testing:
app-debug.apk.zip
app-debug.apk.zip

theScrabi
theScrabi previously approved these changes Aug 15, 2019
@theScrabi
Copy link
Member

Worx

@kapodamy
Copy link
Contributor Author

kapodamy commented Aug 16, 2019

commit 8f13a7e checks if the provider is disabled

switch for:
* Java I/O Api
* Storage Access Framework
@kapodamy kapodamy changed the title check if SAF is available Downloads: add switch for saf/legacy file picker Aug 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't enable "Documents" for 0.17.0 on Android 5.x crash when trying to download

3 participants